-
Notifications
You must be signed in to change notification settings - Fork 1
/
_typography.scss
63 lines (58 loc) · 1.05 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
/*!
* Spry Typography
*/
input, textarea, select {
font-family: inherit;
font-weight: inherit;
color: inherit;
}
// Heading Font Sizes and Classes
@each $type_name, $type in $types {
.#{$type_name}, #{$type_name} {
@each $type_field, $type_value in $type {
#{$type_field}: $type_value;
}
p + & {
margin-top: 2rem;
}
}
}
section {
h1 {
margin-top: -.7rem;
}
h2 {
margin-top: -.6rem;
}
h3 {
margin-top: -.5rem;
}
}
:not(article) > :is(h1, h2, h3, h4, h5, h6, p) + :is(h2, h3, h4, h5, h6, p, .btn) {
margin-top: 1rem;
}
a {
cursor: pointer;
color: map-get($colors, 'primary');
text-decoration: none;
transition: color .2s ease-in-out;
&:hover,
&:focus {
text-decoration: none;
// color: lighten(map-get($colors, 'primary'), 10%);
}
}
blockquote {
margin: 1rem;
&::before {
content: '\201C';
}
&::after {
content: '\201D';
}
p {
font: inherit;
display: inline;
color: inherit;
}
}