-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
102 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,26 @@ | ||
/* | ||
todo: please unwrap the elements here | ||
so they're not just :is and have their | ||
own classes. otherwise we're going to have | ||
complex child elements which break | ||
*/ | ||
|
||
|
||
.container li { | ||
grid-column: 1 / -1; | ||
.article { | ||
margin: 0 1.25em | ||
} | ||
|
||
/* | ||
the article grid, and | ||
elements which inherit | ||
the article grid. | ||
Since subgrid doesn't | ||
exist yet, we can have | ||
sub-elements which also | ||
are in the grid by having | ||
them state the same grid | ||
as the parent. | ||
*/ | ||
.container, .container :is(article, blockquote, section, ol, ul, nav) { | ||
grid-column: 1 / -1; | ||
.gridded { | ||
display: grid; | ||
grid-template-columns: 1.25em repeat(12, minmax(0, 4em)) 1.25em; | ||
} | ||
|
||
/* defualt */ | ||
|
||
/* | ||
elements we need to defer to the regular | ||
model for | ||
*/ | ||
.container :is(article, blockquote) > * { | ||
grid-column: 2 / span 12; | ||
.fullWidth { | ||
grid-column: 1 / -1; | ||
} | ||
|
||
/* | ||
block level elements | ||
*/ | ||
.container :is(p, h1, h2, h3, h4, h5, h6, time, hr) { | ||
grid-column: 2 / span 12; | ||
.padded { | ||
grid-column: 2/span 12; | ||
} | ||
|
||
|
||
/* | ||
full width elements | ||
*/ | ||
.heroVideo, .container :is(img) { | ||
.container li { | ||
grid-column: 1 / -1; | ||
width: 100%; | ||
height: auto; | ||
} | ||
|
||
.noMargin { | ||
margin: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters