-
Notifications
You must be signed in to change notification settings - Fork 0
/
_typeography.scss
90 lines (88 loc) · 1.88 KB
/
_typeography.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
/* All Text */
@mixin allText() {
font-family: $primary-font-family;
}
/* Heading Mixin */
@mixin heading($margin) {
margin-top: $margin;
font-family: $title-font-family;
font-weight: $title-font-weight;
}
/* Subitlte Mixin */
@mixin subTitle($heading-size, $heading-margin) {
font-size: 0.4 * $heading-size;
font-weight: normal;
color: lighten($title-color,25%);
padding-top: 0.5 * $heading-margin;
}
h1,h2,h3,h4,h5,p,div,body {
@include allText();
}
// Base file assignments for titles
h1 {
&.title {
@include heading($title-margin-top);
font-size: $heading1-size;
}
&.subtitle {
@include subTitle($heading1-size, $title-margin-top);
}
}
h2 {
&.title {
@include heading($title-margin-top);
font-size: $heading2-size;
}
&.subtitle {
@include subTitle($heading1-size, $title-margin-top);
}
}
h3 {
&.title {
@include heading($title-margin-top);
font-size: $heading3-size
}
&.subtitle {
@include subTitle($heading2-size, $title-margin-top);
}
}
h4 {
&.title {
@include heading($title-margin-top);
font-size: $heading4-size;
}
&.subtitle {
@include subTitle($heading3-size, $title-margin-top);
}
}
h5 {
&.title {
@include heading($title-margin-top);
font-size: $heading4-size;
}
&.subtitle {
@include subTitle($heading1-size, $title-margin-top);
}
}
@mixin blockquote() {
margin-top: 1rem;
display: block;
padding: 1rem;
margin-left: 1.25rem;
margin-right: 1.25rem;
border-left: 2pt solid grey;
background-color: lighten(#000000, 95%);
}
p {
&.paragraph {
margin-top: 1rem;
margin-bottom: 0.5rem;
display: block;
}
&.quote {
@include blockquote();
}
}
blockquote {
@include blockquote();
}