-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtypography.scss
168 lines (150 loc) · 2.96 KB
/
typography.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/* ==========================================================================
Typography
========================================================================== */
/*
Headings
========================================================================== */
h1, h2, h3, h4, h5, h6 {
font-family: $heading-font;
}
h1 {
@include font-size(32);
}
h2 {
@include font-size(28);
}
h3 {
@include font-size(24);
}
h4 {
@include font-size(18);
}
h5 {
@include font-size(16);
}
h6 {
@include font-size(14);
}
/*
Links
========================================================================== */
a {
text-decoration: none;
color: $link-color;
&:visited {
color: $linkcolorvisited;
}
&:hover {
color: $linkcolorhover;
}
&:focus {
outline: thin dotted;
color: $linkcolorfocus;
}
&:hover,
&:active {
outline: 0;
}
}
/*
Figure captions
========================================================================== */
figcaption {
padding-top: 10px;
@include font(14);
line-height: 1.3;
color: lighten($text-color, 10);
}
/*
Feature image captions
========================================================================== */
.image-credit {
@include grid(12,10);
@include prefix(12,1);
@include suffix(12,1);
display: block;
text-align: right;
@include font(12);
line-height: 1.3;
font-style: italic;
color: lighten($text-color, 30);
@media #{$small} {
@include grid(12,9);
@include prefix(12,0);
@include suffix(12,0);
}
@media #{$x-large} {
@include grid(12,8.5);
}
a {
color: lighten($text-color, 30);
}
}
/*
Notices
========================================================================== */
.notice {
margin-top: 1.5em;
padding: .5em 1em;
text-indent: 0;
@include font-rem(14);
background-color: $body-color;
border: 1px solid darken($body-color,20);
@include rounded(3px);
}
/*
Blockquotes
========================================================================== */
blockquote {
margin-left: -28px;
padding-left: 20px;
border-left: 8px solid $border-color;
font-family: $alt-font;
font-style: italic;
}
/*
Footnotes
========================================================================== */
.footnotes {
ol, li, p {
margin-bottom: 0;
@include font-rem(14);
}
}
/*
Paragraphs
========================================================================== */
p {
margin: 0 0 $indent-var;
// sibling indentation
@if $paragraph-indent == true {
& + p {
text-indent: $indent-var;
margin-top: -($indent-var);
}
}
}
/*
Code snippets
========================================================================== */
tt, code, kbd, samp, pre {
font-family: $code-font;
}
p,
li {
code {
@include font-rem(12);
line-height: 1.5;
white-space: nowrap;
margin: 0 2px;
padding: 0 5px;
border: 1px solid lighten($black, 90);
background-color: #efefef;
@include rounded(3px);
}
}
pre {
@include font-rem(12);
line-height: 1.5;
overflow-x: auto;
}