By sordahl on
Why do drupal include the system css etc when showing pages? (where can I disable this?)
link type="text/css" rel="stylesheet" media="all" href="ms/modules/cck/theme/content-module.css?b"
link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?b"
link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?b"
link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?b"
link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?b"
link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css?b"
Comments
Use info file
In order to disable any core stylesheets you have to define them in theme's info file. This makes no sense (enable stylesheets to disable them?!), but it works. So in your case, you should put something like this in your
.info file:
; disable core Drupal stylesheets:
stylesheets[all][] = content-module.css
stylesheets[all][] = node.css
stylesheets[all][] = defaults.css
stylesheets[all][] = system.css
stylesheets[all][] = system-menus.css
stylesheets[all][] = user.css
Check documentation for more informations. And be careful when disabling system.css, it's going to break a lot of things which are not obvious to fix.
=-=
my read of the docs is that you are defining them in order to override them. Not enabling to disable.
You are overriding core
You are overriding core stylesheets only if corresponding files exist in theme directory, otherwise core stylesheets will be disabled.
Does not work for me. I put a
Does not work for me. I put a empty system.css in my theme folder, added stylesheets[all][] = system.css to the info and i get the Drupal-own-css.
======
There are 10 people who can count binary
They who can and they who don't
=-=
did you clear the theme registry so that drupal rereads your themes info file?
...
iF you just want to play around with unsetting stylesheets use the Style Stripper module, it makes this sort of thing a breeze, but like the other poster says, unsetting system.css is going to break a lot of stuff in the Drupal UI.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.