I was just assigned the task of refactoring a huge 5000-line CSS file ... but here's the worst part - I also need to make it compatible with IE6. Do all CSS gurus have tool suggestions or maybe tips (common traps) to use on my monolithic expedition? Greetings.
checkout sass ... includes the ability to convert css to sass. http://haml.hamptoncatlin.com/docs/rdoc/classes/Sass.html
Sass example:
!main_color = #00ff00 #main :color = !main_color :p :background-color = !main_color :color #000000
css output:
#main { color: #00ff00; } #main p { background-color: #00ff00; color: #000000; }
:
<link type="text/css" href="newhotness.css" /> <link type="text/css" href="newhotness-ie6.css" /> <link type="text/css" href="oldandbusted.css" />
() , , . , , , , Ctrl-Tab , ..
( CSS , @import .)
!
, , . IE6, , , , CSS-, .
5000 2000 , CSS. , CSS 2k CSS, 5k CSS.
http://www.codebeautifier.com/
http://csstidy.sourceforge.net/
CSS, : GIT.
git bisect
CSS, .
, . , :
: (, Selenium?), , - ImageMagick .
, . , -, , , , , . Git .
. , goodluck .
, CSS NCover, , CSS . Google CSS : , : http://development.lombardi.com/?p=436
sass, css2sass 5000 css, . sass , sass2css, css. !
Stylizer - CSS . CSS , ..
, , , , . . , . . , . . , , .
. , "", HTML/CSS.
, . .
, CSS , , CSS reset. , #id , , , , , , . , , .
Firefox Plugin . CSS.
: ReSharper JetBrains. CSS CSS.