Posts Tagged ‘css’

Symfony2: A Few Assetic Notes

Just a quick post with a few notes on Assetic. These are mainly on topics people have been searching for when they have visited this blog. Loading Filters If you are using Assetic from Symfony2 then its worth being aware that it does not automatically load up all the available filters. Only the filters you [...]

Symfony2: Using Assetic from Twig

After my earlier post digging in to how Assetic (Symfony2‘s asset manager) works, I am now going to look at how you should actually use it from Symfony2′s templating engine Twig. Kris Wallsmith the developer of Assetic pointed me in the right direction in the comments on that post. He has now added some official [...]

Symfony2: Using Assetic for CSS and JavaScript Management

Edit: Please read the first the first comment from Kris Wallsmith, this explains that you do not need to write any PHP at all to make use of Assetic, it can be configured directly from Twig templates. My follow up post Symfony2: Using Assetic from Twig has more on this. Nevertheless the following should give [...]

CSS Organisation – Variables

In the previous post in this series I wrote about organising rule sets in CSS and came to the conclusion that it would be best not to try and avoid all repetition. This means that there is some additional maintenance to be done when changing values that appear in several places. In this post I [...]

CSS Organisation – Grouping Selectors

In the previous post in this short series on CSS I wrote about splitting CSS files into sections. Whilst this is a simple technique, the choice of how to group is more difficult though, sometimes the most obvious groupings into different areas of the page will lead to duplicating rule sets where the selectors could [...]

CSS Organisation – Sections

This is the first of a few posts on some CSS organisation tips. These are by no means unique to me or new ideas but are the ones I have found to be consistently useful over the years. Splitting the CSS file up into sections of similarly grouped declarations is invaluable as a way of [...]

Subscribe to RSS Feed Follow me on Twitter!