Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there a reason that override.css is not readable by human? CSS is used on all pages, and there is sometimes a need to understand, what is in there.
Comments
Comment #1
markhalliwellBecause it's the compiled version of bootstrap_subtheme/less/overrides.less.
Comment #2
PlayfulWolf CreditAttribution: PlayfulWolf commentedOk, the question is different: want to throw away most things which are in overrides.css - what is the best way to do it in sub-theme?
Comment #3
markhalliwellBootstrap only includes the "overrides.css" file if the CDN option (Method 2, default) is being used. You can exclude it by putting the following in your sub-theme's .info file (where the path to this base theme is appropriate):
exclude[css][] = 'sites/all/themes/bootstrap/css/overrides.css'
I wouldn't recommend removing it though, it bridges the gap between a lot of Drupal/Bootstrap assumptions. If there is something not quite right in the overrides file, it should be fixed.
If you need to customize the overrides file, then you'll need to compile your own (which is what Method 1 is for: compiling your own source).
If you decide to go that route, then just comment out or remove the line that includes it in bootstrap_subtheme/less/style.less. Or you could modify the file to your liking if you don't want to exclude it.