-
Notifications
You must be signed in to change notification settings - Fork 10
/
styles.css
executable file
·193 lines (149 loc) · 4.58 KB
/
styles.css
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
@import url('https://fonts.googleapis.com/css?family=Libre+Baskerville:300, 300i&display=swap');
@import url('https://fonts.googleapis.com/css?family=Work+Sans&display=swap');
@import url('https://fonts.googleapis.com/css?family=DM+Mono&display=swap');
body {
font-family: "Work Sans";
/*color: #1f1f1f;*/
color: #405359;
font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Libre Baskerville";
letter-spacing: 2px;
line-height: 2rem; /* increases, so wrapping headers don't overlap */
color: #096B72;
font-weight: 300;
}
d-title {
padding-top: 13rem; /*so that navbar doesn't overlap fixed title */
}
d-title h1,
d-article h2 {
font-weight: 300;
}
d-article div.sourceCode code,
d-article pre code {
font-family: "DM Mono", monospace;
font-size: 1rem;
}
/* --------------Navbar-------------------- */
/* background-image for fade-to-white color of navbar */
.distill-site-header{
padding: 40px 0px;
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255,255,255,0.5));
background-color: transparent;
font-size: 15px;
font-family: "Libre Baskerville";
letter-spacing: 2px;
text-transform: uppercase;
}
.distill-site-header .logo img{
max-height: 40px; /* Makes logo bigger, default was 20px */
}
/* dropdown navbar color on mobile */
@media screen and (max-width: 768px){
.distill-site-header.responsive {
background: rgba(255,255,255,0.99);
}
}
/* Navbar Links with Animated Hover */
.distill-site-header a { /* A normal link in navbar */
color: #1f1f1f;
display: inline-block; /* This line and line below is so pseudo-element will work later */
position: relative;
text-decoration: none;
padding-left: 0px; /* overrides default so animation looks Ok */
padding-right: 0px; /* overrides default so animation looks Ok */
margin: 10px 14px; /* replaces default padding values for margin values */
}
.distill-site-header a:hover { /* (unanimated) hover behavior for navbar links */
color: #787878;
padding-left: 0px; /* overrides default so animation looks Ok */
padding-right: 0px; /* overrides default so animation looks Ok */
margin: 10px 14px; /* replaces default padding values for margin values */
}
.distill-site-header a:before { /*Creates pseudoelement line under link */
background-color: #787878;
content: '';
height: 1px;
position: absolute;
bottom: -1px;
transition: width 0.3s ease-in-out; /* animate the width */
width: 100%;
}
.distill-site-header a:hover:before {
width: 0; /* Shrinks width of pseudoelement to 0 when hovered */
}
/* Makes sure animation does NOT apply to Title or Logo links (or toggle on mobile) */
.distill-site-header a.title:before, .distill-site-nav a.logo:before, a.nav-toggle:before {
display: none;
}
.distill-site-header a.title, .distill-site-nav a.logo {
padding: 10px 0px;
margin: 10px 14px;
}
/* No navbar links on mobile except title and nav-toggle */
@media screen and (max-width: 768px) {
.distill-site-header a, .distill-site-header .nav-dropdown {
display: none;
}
.distill-site-header a.title, .distill-site-header a.nav-toggle {
display: inline-block;
padding: 10px 0px;
margin: 10px 14px;
}
}
/* -------------Appendix---------------- */
d-appendix {
background-color: #e6f3fc;
border-top: none !important;
}
/* -------------Footer------------------*/
.distill-site-footer {
color: #f7f7f7b0;
background-color: #1f1f1f;
margin-top: 0px;
padding: 50px 20px;
font-size: 13px;
letter-spacing: 1px;
text-transform: uppercase;
line-height: 12px;
}
d-byline div.byline.grid div p,
d-byline,
d-byline p,
p.author,
p.affiliation,
d-byline h3,
.d-toc,
.d-toc-header,
.d-toc ul,
d-appendix p {
font-size: 0.9rem;
}
d-appendix h3 + * {
margin-top: 1.5em !important;
}
/*----- COLORED LIST BULLET----*/
d-article ul {
list-style: none; /* Remove default bullets */
}
d-article ul li::before {
content: "\2022"; /* Add content: \2022 is the CSS Code/unicode for a bullet */
color: #79beee; /* Change the color */
font-weight: normal; /* If you want it to be bold */
display: inline-block; /* Needed to add space between the bullet and the text */
width: 1.5em; /* Also needed for space (tweak if needed) */
margin-left: -1.5em; /* Also needed for space (tweak if needed) */
}
d-article ul > li > p {
display: inline; /* to have content show up next to bullet */
line-height: 1.6em;
}
d-article ul > li { /*to add back in space between bullet items that I took away by making p display inline */
margin-top: 1em;
margin-bottom: 1em;
}
.d-toc ul li::before {
content: " "; /* Remove toc bullets */
}