Last active
February 9, 2017 05:41
-
-
Save Robin-bob/7f04cd56314a3e94759555c48768b25f to your computer and use it in GitHub Desktop.
Uscreen Foundation Themes typography
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
/* -------------------- Theme typography -------------------- */ | |
em, | |
i { | |
font-style: italic; | |
line-height: inherit; } | |
strong, | |
b { | |
font-weight: bold; | |
line-height: inherit; } | |
small { | |
font-size: 80%; | |
line-height: inherit; } | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
font-family: '{{ settings.data.fonts.name_text_font }}', sans-serif; | |
font-style: normal; | |
font-weight: normal; | |
color: inherit; | |
text-rendering: optimizeLegibility; } | |
h1 small, | |
h2 small, | |
h3 small, | |
h4 small, | |
h5 small, | |
h6 small { | |
line-height: 0; | |
color: #cacaca; } | |
h1 { | |
font-size: 1.5rem; | |
line-height: 1.4; | |
margin-top: 0; | |
margin-bottom: 0.5rem; } | |
h2 { | |
font-size: 1.25rem; | |
line-height: 1.4; | |
margin-top: 0; | |
margin-bottom: 0.5rem; } | |
h3 { | |
font-size: 1.1875rem; | |
line-height: 1.4; | |
margin-top: 0; | |
margin-bottom: 0.5rem; } | |
h4 { | |
font-size: 1.125rem; | |
line-height: 1.4; | |
margin-top: 0; | |
margin-bottom: 0.5rem; } | |
h5 { | |
font-size: 1.0625rem; | |
line-height: 1.4; | |
margin-top: 0; | |
margin-bottom: 0.5rem; } | |
h6 { | |
font-size: 1rem; | |
line-height: 1.4; | |
margin-top: 0; | |
margin-bottom: 0.5rem; } | |
@media print, screen and (min-width: 40em) { | |
h1 { | |
font-size: 3rem; } | |
h2 { | |
font-size: 2.5rem; } | |
h3 { | |
font-size: 1.9375rem; } | |
h4 { | |
font-size: 1.5625rem; } | |
h5 { | |
font-size: 1.25rem; } | |
h6 { | |
font-size: 1rem; } } | |
hr { | |
clear: both; | |
max-width: none; | |
height: 0; | |
margin: 1.25rem auto; | |
border-top: 0; | |
border-right: 0; | |
border-bottom: 1px solid #cacaca; | |
border-left: 0; } | |
ul, | |
ol, | |
dl { | |
margin-bottom: 1rem; | |
list-style-position: outside; | |
line-height: 1.6; } | |
li { | |
font-size: inherit; } | |
ul { | |
margin-left: 1.25rem; | |
list-style-type: disc; } | |
ol { | |
margin-left: 1.25rem; } | |
ul ul, ol ul, ul ol, ol ol { | |
margin-left: 1.25rem; | |
margin-bottom: 0; } | |
dl { | |
margin-bottom: 1rem; } | |
dl dt { | |
margin-bottom: 0.3rem; | |
font-weight: bold; } | |
blockquote { | |
margin: 0 0 1rem; | |
padding: 0.5625rem 1.25rem 0 1.1875rem; | |
border-left: 1px solid #cacaca; } | |
blockquote, blockquote p { | |
line-height: 1.6; | |
color: #8a8a8a; } | |
cite { | |
display: block; | |
font-size: 2rem; | |
color: #8a8a8a; } | |
cite:before { | |
content: "— "; } | |
abbr { | |
border-bottom: 1px dotted #0a0a0a; | |
color: #0a0a0a; | |
cursor: help; } | |
figure { | |
margin: 0; } | |
code { | |
padding: 0.125rem 0.3125rem 0.0625rem; | |
border: 1px solid #cacaca; | |
background-color: #e6e6e6; | |
font-family: '{{ settings.data.fonts.name_text_font }}', sans-serif; | |
font-weight: normal; | |
color: #0a0a0a; } | |
kbd { | |
margin: 0; | |
padding: 0.125rem 0.25rem 0; | |
background-color: #e6e6e6; | |
font-family: '{{ settings.data.fonts.name_text_font }}', sans-serif; | |
color: #0a0a0a; | |
border-radius: 3px; } | |
/* -------------------- End Theme typography -------------------- */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment