51

When the client sends you a template they want to use and half of the css file looks like this...

Comments
  • 4
    Omg that's just SAD 😂. Can't you ask them if you could build it from scratch? Cause its probably gonna take lesser tine than dealing with this.
  • 2
    It is pretty fine. I have seen much much worse 👍
  • 1
    @lamka02sk True. I just hate the overuse of !important. Makes everything so much harder
  • 1
    Good luck cleaning up ! important
  • 1
    @IMDownerzac I guess the only way to fix the shitload of !important is write more !important. Ehm....or CTRL+A and BACKSPACE :D
  • 5
    I noticed only now that "!important" seems "not important" and everything stops making sense. 😰
  • 3
    I worked on a project with a little bit over 6000 lines of css, exactly like that.

    Be thankful not all of your stuff has !important on it 😂
  • 2
    Your best option it to start moving the actually applied ones to a new css, and nuke the rest in the end.
    :/
  • 1
    Note to self: really need to write the css scrub tool.
  • 2
    Seems like ur client does not have a source code of SCSS, which is likely used to compile this CSS.

    I can't believe someone actually wrote this manually. Much more likely it was SCSS compiled with gulp.
  • 0
    @sinisas it was, but the !important tag makes it impossible to work. I’d be better off just creating my own
  • 1
    Find replace !important..
  • 0
    @jamesharrington I’d rather just start from scratch. It’s not in ANY cms so I have some freedom
  • 1
    As @sinisas Said, the template has been styled with a css preprocessor and the client have sent you only the CSS file
  • 1
    *ex client
  • 1
    Always think twice when you're about to use !important
  • 1
    Lol
    .submenu. sub-submenu. Sub-sub-submenu..........
  • 1
    @Condor

    Maybe they want it to be disgusting. So we don't use it. Because it's bad practice.
Add Comment