Adding CSS and Javascript to Specific Pages – the Drupal 7 Way
API / CSS / Dev / Drupal / JavaScript

Adding CSS and Javascript to Specific Pages – the Drupal 7 Way

Have you ever wondered how you can avoid loading that HUGE chunk of CSS or that giant Javascript file you have to every page? There’s a simple way to do it in drupal using a preprocess function in your template.php file. Continue reading

Advertisements
Functions in CSS? No.. in SASS? Yes!
CSS / SASS / THEMING THURSDAYS

Functions in CSS? No.. in SASS? Yes!

In CSS there’s absolutely no way to include functions as of today. It’s all just as is. In SASS you can create functions as well as mixins, more on what that is later. They are two ways that SASS allows you to keep your code DRY (because nobody likes repeating themselves.) Continue reading