Skip to content

Commit 33d4675

Browse files
committed
Improve per-page CSS documentation
1 parent e96ce4c commit 33d4675

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

css/_settings.global.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ $brand-color: #f43059;
66
$brand-round: 3px;
77
$base-round: $brand-round;
88

9+
// Styles specific to page headers. Implemented in
10+
// `_components.page-head[--masthead].scss`, but defined globally here.
911
$header-border-width: 6px;
1012
$header-max-height: 480px;
1113

css/isolated/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Isolated Components
2+
3+
Certain components are not required on every page, so we pull them out of the
4+
main CSS file and compile them out into individual files. This means we can only
5+
include them on pages that need them.

css/isolated/components.page-head--masthead.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
@import "../tools.all";
77

88
/**
9+
* This class extends the `.page-head` class found in the base
10+
* `_components.page-head.scss` file. The masthead-style page headers are only
11+
* used on the homepage, so we pull it out into its own file.
12+
*
913
* Large site headers act more like mastheads. They have a faux-fluid-height
1014
* which is controlled by the wrapping element inside it.
1115
*

0 commit comments

Comments
 (0)