-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.scss
234 lines (198 loc) · 5.04 KB
/
styles.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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
/*-- scss:defaults --*/
// Import fonts
@import url('https://fonts.googleapis.com/css2?family=Sen:wght@400;700;800&display=swap');
// Colors (define Sass color variables here; syntax = `$varName: value;`)
$white: #FFFFFF;
$light-gray1: #EEEEEE;
$light-gray2: #DBDBDA;
$medium-gray1: #999999;
$medium-gray2: #555555;
$dark-gray: #333333;
$blue: #38A7BB;
$light-blue: #53C9DF;
$light-yellow: #FFF6E1;
// Base document colors (find more Quarto Sass vars here: https://quarto.org/docs/output-formats/html-themes.html#sass-variables)
$navbar-bg: $white;
$navbar-fg: $dark-gray;
$navbar-hl: $dark-gray;
$body-bg: $white;
$body-color: $dark-gray;
$footer-bg: $medium-gray2;
$link-color: $blue;
/*-- scss:rules --*/
//////////// Element selectors ////////////
body { // set body text size & line height
line-height: 1.5; // min 1.5 suggested for assistive tech
font-size: 17px;
}
blockquote { // style blockquotes (for speech bubbles)
background: $white;
border-left: 3px solid $white;//$blue;
margin: 1.5em 10px;
padding: 0.5em 10px;
}
.blockquote-blue { // style blockquotes (for blue vert line) was called .blockquote-blue
background: $white;
border-left: 3px solid $blue;
}
//////////// Class selectors (identified by "Inspect"ing the site) ////////////
// navbar hover color
.navbar-dark .navbar-nav .show>.nav-link, .navbar-dark .navbar-nav .active>.nav-link, .navbar-dark .navbar-nav .nav-link.active {
background-color: $light-blue;
}
// highlights dropdown navbar item while user is selecting a submenu item (https://stackoverflow.com/questions/70871365/higlight-opened-dropdown-menu-on-bootstrap-5-navbar)
.nav-link.dropdown-toggle.show{
background: $light-blue;
}
// openscapes logo size/position (navbar top left); see https://github.com/robertmitchellv/robertmitchellv.github.io/blob/main/custom-dark.scss
.navbar-brand img {
max-height: 70px; // was 200px when using alt logo (from blogdown site)
width: auto;
padding-left: 20px;
}
// udpate blog listing card color on landing page
.card {
background-color: $light-gray1;
}
//////////// Class selectors (self-defined) ////////////
// see https://stackoverflow.com/questions/1734618/how-to-increase-the-gap-between-text-and-underlining-in-css
.blue-underline {
text-decoration: underline $blue;
text-underline-offset: 10px; // https://developer.mozilla.org/en-US/docs/Web/CSS/text-underline-offset
text-decoration-thickness: 4px;
}
// largest-sized text (used for stat box numbers on landing page)
.large-stat-num {
font-size: 50px;
}
// large-sized text
.large-body-text {
font-size: 35px;
}
// medium-sized text
.medium-body-text {
font-size: 25px;
}
// medium/small-sized text
.med-sm-body-text {
font-size: 20px;
}
// small-sized text
.small-body-text {
font-size: 15px;
}
// styled image caption text
.caption-text {
font-size: 15px;
color: $medium-gray2;
}
// blue text
.blue-text {
color: $blue;
}
// gray text
.medium-gray1-text{
color: $medium-gray1;
}
// center text
.center-text {
text-align: center;
}
// right-align elements
.right-align {
text-align: right;
}
// used to create white div
.white-div {
background-color: $white;
max-width: 100%;
height: auto;
width: auto;
padding-top: 1%; // percentages necessary for content to adjust with viewport
padding-bottom: 1%;
padding-right: 10%;
padding-left: 10%;
}
// used to create light gray div on landing page
.light-gray-div {
background-color: $light-gray2;
max-width: 100%;
height: auto;
width: auto;
padding-top: 1%;
padding-bottom: 1%;
padding-right: 10%;
padding-left: 10%;
}
// used to create stat boxes on landing page
.stat-box {
width: 85%;
background-color: $light-gray1;
border: 6px solid $blue;
padding: 5%;
margin: 8%;
border-radius: 15px; // for rounded corners
}
// used to create boxes on resoure page
.resource-box {
width: 85%;
background-color: $light-gray1;
border: 4px solid $blue;
padding: 5%;
margin: 8%;
border-radius: 8px;
}
// yellow background color
.yellow-box {
background-color: $light-yellow;
width: 75%;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 10px;
padding-left: 10px;
border-radius: 15px;
margin: auto;
}
/* SPEECH BUBBLES, created using https://projects.verou.me/bubbly/ */
// creates box
.speech-bubble-bottom-left {
position: relative;
background: $white;
border-radius: .4em;
}
// creates down left-facing arrow
.speech-bubble-bottom-left:after {
content: '';
position: absolute;
bottom: 0;
left: 25%;
width: 0;
height: 0;
border: 50px solid transparent;
border-top-color: $white;
border-bottom: 0;
border-left: 0;
margin-left: -24.5px;
margin-bottom: -50px;
}
// creates box
.speech-bubble-bottom-right {
position: relative;
background: $white;
border-radius: .4em;
}
// creates down right-facing arrow
.speech-bubble-bottom-right:after {
content: '';
position: absolute;
bottom: 0;
left: 65%;
width: 0;
height: 0;
border: 50px solid transparent;
border-top-color: $white;
border-bottom: 0;
border-right: 0;
margin-left: -11.5px;
margin-bottom: -50px;
}