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

markhalliwell’s picture

Status: Active » Closed (works as designed)

Because it's the compiled version of bootstrap_subtheme/less/overrides.less.

PlayfulWolf’s picture

Title: override.css should be human-readable » Do not use overrides.css changes
Status: Closed (works as designed) » Active

Ok, 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?

markhalliwell’s picture

Version: 7.x-3.0 » 7.x-3.x-dev
Component: Code » Documentation
Category: Task » Support request
Status: Active » Closed (works as designed)

Bootstrap 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.