Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use modular scale, organize typographic elements
- Loading branch information
Showing
20 changed files
with
187 additions
and
174 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// 1. Remove the bottom border in Firefox 39-. | ||
// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. | ||
abbr[title] { | ||
border-bottom: none; // 1 | ||
text-decoration: underline; // 2 | ||
text-decoration: underline dotted; // 2 | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
blockquote { | ||
margin: 0 0 1rem; | ||
padding: 0 1rem; | ||
color: $darker-gray; | ||
border-left: 4px solid $light-gray; | ||
|
||
&>:first-child { margin-top: 0; } | ||
&>:last-child { margin-bottom: 0; } | ||
} |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Add the correct font style in Android 4.3-. | ||
dfn { font-style: italic; } | ||
|
||
dd { margin-left: 0; } | ||
|
||
dl { | ||
padding: 0; | ||
|
||
dt { | ||
padding: 0; | ||
margin-top: 1em; | ||
font-size: 1em; | ||
font-style: italic; | ||
font-weight: bold; | ||
} | ||
|
||
dd { | ||
padding: 0 1em; | ||
margin-bottom: 1em; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// 1. Prevent the duplicate application of `bolder` by the next rule in Safari 6. | ||
// 2. Add the correct font weight in Chrome, Edge, and Safari. | ||
b, | ||
strong { | ||
font-weight: inherit; // 1 | ||
font-weight: 600; // 2 | ||
} | ||
|
||
// Add the correct background and color in IE 9-. | ||
mark { | ||
background-color: #ff0; | ||
color: #000; | ||
} | ||
|
||
// Prevent `sub` and `sup` elements from affecting the line height in | ||
// all browsers. | ||
sub, | ||
sup { | ||
font-size: 75%; | ||
line-height: 0; | ||
position: relative; | ||
vertical-align: baseline; | ||
} | ||
|
||
sub { bottom: -0.25em; } | ||
sup { top: -0.5em; } |
File renamed without changes.
Empty file.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
line-height: 1.25em; | ||
margin-top: 2rem; | ||
margin-bottom: 1rem; | ||
font-weight: 600; | ||
position: relative; | ||
} | ||
|
||
// modular scale: 1.2 | ||
// http://www.modularscale.com/?1&em&1.125&sass&text | ||
h1 { font-size: ms(6); } | ||
h2 { font-size: ms(5); } | ||
h3 { font-size: ms(4); } | ||
h4 { font-size: ms(3); } | ||
h5 { font-size: ms(2); } | ||
h6 { font-size: ms(1); color: $darkest-gray; } |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// 1. Add the correct box sizing in Firefox. | ||
// 2. Show the overflow in Edge and IE. | ||
hr { | ||
box-sizing: content-box; // 1 | ||
overflow: visible; // 2 | ||
background: transparent; | ||
height: 4px; | ||
padding: 0; | ||
margin: 1em 0; | ||
background-color: #e7e7e7; | ||
border: 0 none; | ||
|
||
&::before { | ||
display: table; | ||
content: ''; | ||
} | ||
|
||
&::after { | ||
display: table; | ||
clear: both; | ||
content: ''; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Remove the border on images inside links in IE 10-. | ||
img { | ||
border-style: none; | ||
border: 0; | ||
max-width: 100%; | ||
box-sizing: border-box; | ||
} | ||
|
||
// Hide the overflow in IE. | ||
svg:not(:root) { | ||
overflow: hidden; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// same margins for all typographic block elements | ||
p, | ||
blockquote, | ||
ul, | ||
ol, | ||
dl, | ||
table, | ||
pre { | ||
margin-top: 0; | ||
margin-bottom: 1em; | ||
} | ||
|
||
// Add the correct font size in all browsers. | ||
small { font-size: 80%; } | ||
|
||
@import 'headings'; | ||
@import 'paragraphs'; | ||
@import 'links'; | ||
@import 'lists'; | ||
@import 'blockquotes'; | ||
@import 'emphasis'; | ||
@import 'code'; | ||
@import 'tables'; | ||
@import 'horizontal-rules'; | ||
@import 'images'; | ||
@import 'figures'; | ||
|
||
@import 'abbreviations'; | ||
@import 'definitions'; | ||
@import 'footnotes'; | ||
@import 'special-emphasis'; |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ul, | ||
ol { | ||
padding: 0; | ||
padding-left: 2em; | ||
|
||
ol { list-style-type: lower-roman; } | ||
|
||
ul, | ||
ol { | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
|
||
ol { list-style-type: lower-alpha; } | ||
} | ||
} | ||
|
||
li > p { margin-top: 1em; } |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// tighten up body copy just a smidge | ||
p { letter-spacing: -0.01em; } |
Empty file.
File renamed without changes.
Oops, something went wrong.