Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Style Sheet Packaging

Style Sheet Packaging

A presentation on packaging of stylesheets used on the TViPlayer sites.

Rob Taylor

June 01, 2012
Tweet

More Decks by Rob Taylor

Other Decks in Technology

Transcript

  1. How do we get there? •Smaller Files •Fewer File Calls

    •Static files for Int/Test/Stage/Live •Variables
  2. What could we use? •LessCSS •It bloats the output badly

    •No centralised variables •No concatenation •No optimisation
  3. What did we do? •Built a Packaging Process •Concatenates CSS

    •Replaces Any Variables •Optimises with CSSTidy •View Packages without Building •Concatenates CSS •Replaces Any Variables •Output through a PAL View
  4. What are the disadvantages? Packages must be kept up to

    date Otherwise, things start to look... odd.
  5. Conclusion... Pros: •It's Fast •It's got $variables •It's optimised Cons:

    •Harder debugging •URLs have moved •Update regularly
  6. Q & A Can't promise I know the answer, but

    I'll try. http://bit.ly/cssSlides