This repository has been archived by the owner on Jun 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
base.scss
273 lines (239 loc) · 5.25 KB
/
base.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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
/*!
_________ ________ ________ _______-+-
/\* ______\ /\* ____ \ /\* ____ \ /\* ____ \
\ \ \_____/ \ \ \__/\ \\ \ \__/\ \\ \ \__/\ \
\ \ \ ____\ \ \_\_\ \\ \ \_\_\ \\ \ \_\_\ \
\ \ \ /\__ \\ \ __ _\\ \ __ _\\ \ __ _\
\ \ \_/_/\ \\ \ \/\ \/_\ \ \/\ \/_\ \ \/\ \/_
\ \________\\ \_\ \___\\ \_\ \___\\ \_\ \___\
\/________/ \/_/\/___/ \/_/\/___/ \/_/\/___/.nl -->
Author: Grrr.nl
*/
/* ==========================================================================
CONTENTS
==========================================================================
* Imports.............Import external stylesheets
* Primary styles......Non module styles (e.g. basic typography)
* Specific styles.....Common styles used througout the site
* Layout..............General layout stuff
* Modules.............Modules based on SMACSS
* Print styles........Styles for printing
*/
@import '../../node_modules/normalize.css/normalize';
@import 'utility/functions';
@import 'utility/mixins';
@import 'utility/variables';
@import 'utility/font-imports';
@import 'utility/font-mixins';
@import 'layout-mixins/*';
@import 'module-mixins/*';
/* ==========================================================================
PRIMER
========================================================================== */
html {
box-sizing: border-box; font-size: 62.5%;
quotes: '“' '”' '‘' '’';
}
// sass-lint:disable no-universal-selectors
*,
*::before,
*::after {
box-sizing: inherit;
}
// sass-lint:enable no-universal-selectors
body {
margin: 0; padding: 0;
background: $white; color: $text-color;
@include body-font; font-size: 14px; line-height: 1.5;
@include font-smoothing;
@include bp-min($small) {
font-size: 16px;
}
@include bp-min($large) {
font-size: 18px;
}
}
/**
* WordPress admin bar
* Use when having an absolute or fixed header for example.
*/
body.admin-bar {
/*
padding-top: 60px + 46px;
@include bp-min(782) {
padding-top: 60px + 32px;
}
*/
}
/*
* Forms
*/
input,
select,
textarea {
padding: 8px 10px;
border-radius: $border-radius; color: $text-color;
@include body-font; line-height: normal;
}
input[type='checkbox'],
input[type='radio'] {
border: 0;
}
label {
line-height: 1.3;
}
/*
* Links
*/
a {
color: inherit; text-decoration: underline;
text-decoration-skip-ink: auto;
}
a:hover,
a:focus {
text-decoration: none;
}
/*
* Typography
*/
p {
margin-top: 0; margin-bottom: 1.5em;
}
@mixin small-text {
font-size: 12px; line-height: 1.3;
@include bp-min($small) {
font-size: 14px;
}
}
small {
@include small-text;
}
@mixin h1 {
margin: 0 auto 0.5em;
@include heading-font; font-size: 32px; line-height: 1.2;
@include bp-min($small) {
font-size: 42px;
}
}
h1 {
@include h1;
}
@mixin h2 {
margin: 0 auto 0.5em;
@include heading-font; font-size: 24px; line-height: 1.2;
@include bp-min($small) {
font-size: 36px;
}
}
h2 {
@include h2;
}
@mixin h3 {
margin: 0 auto 0.5em;
@include heading-font; font-size: 20px; line-height: 1.2;
@include bp-min($small) {
font-size: 28px;
}
}
h3 {
@include h3;
}
@mixin h4 {
margin: 0 auto 0.25em;
@include heading-font; font-size: 16px; line-height: 1.2;
@include bp-min($small) {
font-size: 22px;
}
}
h4 {
@include h4;
}
/**
* Blockquote
*/
blockquote {
//
}
blockquote p:last-child {
margin-bottom: 0;
}
blockquote p:first-child::before {
content: open-quote;
}
blockquote p:last-child::after {
content: close-quote;
}
/**
* List
*/
ul,
ol {
//
}
ul li,
ol li {
//
}
/**
* Horizontal rule
*/
hr {
//
}
/*
* Media
*/
figure {
margin: 0;
}
img,
video,
canvas,
audio,
iframe,
embed,
object {
display: block; vertical-align: middle;
}
img,
object,
iframe,
video {
max-width: 100%; height: auto;
}
/* ==========================================================================
LAYOUT
========================================================================== */
@import 'layout/*';
/* ==========================================================================
MODULES
========================================================================== */
@import 'flexible-content/*';
@import 'modules/*';
/* ==========================================================================
HELPERS
========================================================================== */
.sr-only {
position: absolute; overflow: hidden;
margin: 0; clip: rect(0 0 0 0);
width: 1px; height: auto; padding: 0; border: 0;
white-space: nowrap;
}
.error {
color: #FF0000;
}
// sass-lint:disable no-ids
#__bs_notify__ {
background: $primary-color !important;
top: auto !important; bottom: 0 !important;
border-radius: 0 !important;
padding: 10px 15px !important;
@include ui-font; font-size: 14px !important;
}
// sass-lint:enable no-ids
/* ==========================================================================
HOVER - disable on scroll (see function disableHoverStylesOnScroll() in main.js)
========================================================================== */
.disable-hover body {
pointer-events: none;
}