<link rel="stylesheet" type="text/css" href="/mytheme.css" />
Core
Modules
Themes
stylesheets[all][] = system-menus.css
The base theme and the sub-theme must have the same entry:
stylesheets[all][] = masterStyle.css
If the file exists inside the sub-theme, it will be used. Remove the file in the sub-theme to prevent the file from loading altogether.
function mytheme_css_alter(&$css) {
foreach ($css as $key => $value) {
if ($value['group'] != CSS_THEME) {
$exclude[$key] = FALSE;
}
}
$css = array_diff_key($css, $exclude);
}; Add a style sheet for all media
stylesheets[all][] = theStyle.css
; Add a style sheet for screen and projection media
stylesheets[screen, projection][] = theScreenProjectionStyle.css
; Add a style sheet for print media
stylesheets[print][] = thePrintStyle.css
; Add a style sheet with media query
stylesheets[screen and (max-width: 600px)][] = theStyle600.css<?php
function mytheme_preprocess_html(&$variables) {
drupal_add_css('http://fonts.googleapis.com/css?family=News+Cycle',
array('type' => 'external'));
}
?>