Skip to content
Snippets Groups Projects
Unverified Commit 3b42ec27 authored by Patrick Marsceill's avatar Patrick Marsceill Committed by GitHub
Browse files

Merge pull request #206 from iamcarrico/allow-for-overrides

Allow for custom overrides by the user
parents a98bba77 1aee233e
No related branches found
No related tags found
No related merge requests found
//
// Custom overrides from a user.
//
......@@ -46,3 +46,4 @@ $logo: "{{ site.logo | absolute_url }}";
@import "./tables";
@import "./code";
@import "./utilities/utilities";
@import "./overrides";
......@@ -69,3 +69,20 @@ $link-color: $blue-000;
```
_Note:_ Editing the variables directly in `_sass/support/variables.scss` is not recommended and can cause other dependencies to fail.
## Override styles
To add your own CSS at the end of the cascade, edit `_sass/overrides.scss` to add in your own custom CSS. This will allow for all overrides to be kept in a single file, and allow for any upstream changes to still be allowed.
For example, if you'd like to add your own styles for printing a page, you could add the following styles.
#### Example
{: .no_toc }
```scss
// Print-only styles.
@media print {
.side-bar, .page-header { display: none; }
.main-content { max-width: auto; margin: 1em;}
}
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment