3
3
/**
4
4
* css_template.css
5
5
*
6
- * Decscription and notes...
6
+ * Description and notes...
7
7
*
8
8
* Sections
9
9
* - Variables
10
+ * - Base
10
11
* - Typography
11
12
* - Links
12
13
* - Buttons
13
- * - Lists
14
- * - Tables
15
- * - Images
16
14
* - Layout
17
- * - Forms
18
15
* - Components
19
- * - Cosmetic
20
16
* - Utility
21
17
* - State
22
18
* - Animation
34
30
--heading-color : rgba (40 , 40 , 80 , .9 );
35
31
--subheading-color : rgb (0 , 0 , 0 );
36
32
--body-color : rgba (70 , 70 , 85 , .9 );
37
- --minor-color : rgb (200 , 200 , 210 );
38
33
--emphasis-color : rgb (120 , 120 , 140 );
39
34
--emphasis-color-dark : rgb (100 , 100 , 120 );
40
35
}
41
36
42
- /* -- Typography ---------------------------------------------------------- */
37
+ /* -- Base ------ ---------------------------------------------------------- */
43
38
44
39
html {
45
40
color : var (--body-color );
69
64
padding : 0 ;
70
65
}
71
66
67
+ button {
68
+ border : none;
69
+ margin : 0 ;
70
+ padding : 0 ;
71
+ width : auto;
72
+ overflow : visible;
73
+ background : transparent;
74
+ color : inherit;
75
+ font : inherit;
76
+ line-height : normal;
77
+ -webkit-font-smoothing : inherit;
78
+ -moz-osx-font-smoothing : inherit;
79
+ -webkit-appearance : none;
80
+ -moz-appearance : none;
81
+ outline : none;
82
+ text-align : inherit;
83
+ cursor : pointer;
84
+ }
85
+
86
+ input ,
87
+ textarea ,
88
+ label ,
89
+ select {
90
+ -moz-appearance : none;
91
+ -webkit-appearance : none;
92
+ appearance : none;
93
+ background : none;
94
+ border : none;
95
+ border-radius : 0 ;
96
+ box-shadow : none;
97
+ font-family : inherit;
98
+ outline : none;
99
+ }
100
+
101
+ /* -- Typography ---------------------------------------------------------- */
102
+
72
103
.small-allcaps {
73
104
color : var (--heading-color );
74
105
font-size : .85rem ;
@@ -127,14 +158,12 @@ ul {
127
158
}
128
159
129
160
.btn {
130
- background : none;
131
161
border-radius : 2px ;
132
162
display : inline-block;
133
163
font-size : 1rem ;
134
164
font-weight : 600 ;
135
165
line-height : 1em ;
136
166
padding : 10px 20px 12px 20px ;
137
- text-decoration : none;
138
167
}
139
168
140
169
.btn--dark ,
@@ -178,82 +207,71 @@ ul {
178
207
background : var (--emphasis-color-dark );
179
208
}
180
209
181
- /* -- Lists --------------------------------------------------------------- */
182
-
183
- /* -- Tables -------------------------------------------------------------- */
184
-
185
- /* -- Images -------------------------------------------------------------- */
186
-
187
210
/* -- Layout -------------------------------------------------------------- */
188
211
189
- /* -- Forms --------------------------------------------------------------- */
190
-
191
- .subscribe-form {
192
- width : 100% ;
193
- }
194
-
195
- .subscribe-form__item {
196
- color : var (--emphasis-color );
197
- }
212
+ /* -- Components ---------------------------------------------------------- */
198
213
199
- .subscribe-form__field {
200
- background : # fff ;
201
- border-radius : 4px 0 0 4px ;
202
- color : var (--emphasis-color );
203
- font-size : .85rem ;
204
- padding : 10px 0 ;
205
- text-indent : 10px ;
206
- width : 65% ;
207
- }
214
+ /* -- Utility ------------------------------------------------------------- */
208
215
209
- .subscribe-form__field : focus {
210
- box-shadow : 0 0 5px rgba (180 , 180 , 180 , .5 );
216
+ .center {
217
+ display : flex;
218
+ align-items : center;
219
+ justify-content : center;
211
220
}
212
221
213
- .subscribe-form__submit {
214
- background : var (--emphasis-color );
215
- border-radius : 0 4px 4px 0 ;
216
- color : # fff ;
217
- cursor : pointer;
218
- font-weight : 600 ;
219
- padding : 10px 0 ;
220
- text-indent : 0 ;
221
- width : 35% ;
222
- }
223
-
224
- .subscribe-form__submit : focus {
225
- background : var (--emphasis-color-dark );
222
+ .nomargin {
223
+ margin : 0 ;
226
224
}
227
225
228
- /* -- Components ---------------------------------------------------------- */
229
-
230
- /* -- Cosmetic ------------------------------------------------------------ */
231
-
232
226
.gradient-bg {
233
227
background : var (--emphasis-color );
234
228
background : linear-gradient (to bottom right, var (--emphasis-color-dark ), var (--emphasis-color ));
235
229
}
236
230
237
- /* -- Utility ------------------------------------------------------------- */
238
-
239
- .u-nomargin {
240
- margin : 0 ;
231
+ .is-hidden {
232
+ display : none;
241
233
}
242
234
243
235
/* -- State --------------------------------------------------------------- */
244
236
245
- .is-hidden {
246
- display : none;
237
+ ::-moz-selection {
238
+ background : var (--emphasis-color );
239
+ color : # fff ;
240
+ text-shadow : none;
247
241
}
248
242
249
243
::selection {
250
244
background : var (--emphasis-color );
251
245
color : # fff ;
246
+ text-shadow : none;
252
247
}
253
248
254
- ::-moz-selection {
255
- background : var (--emphasis-color );
256
- color : # fff ;
249
+ ::-webkit-input-placeholder {
250
+ color : # 000 ;
251
+ font-style : normal;
252
+ font-weight : 400 ;
253
+ opacity : .25 ;
254
+ }
255
+
256
+ ::-moz-placeholder {
257
+ color : # 000 ;
258
+ font-style : normal;
259
+ font-weight : 400 ;
260
+ opacity : .25 ;
261
+ }
262
+
263
+ : -ms-input-placeholder {
264
+ color : # 000 ;
265
+ font-style : normal;
266
+ font-weight : 400 ;
267
+ opacity : .25 ;
268
+ }
269
+
270
+ ::placeholder {
271
+ color : # 000 ;
272
+ font-style : normal;
273
+ font-weight : 400 ;
274
+ opacity : .25 ;
257
275
}
258
276
259
277
::-moz-focus-inner {
@@ -279,13 +297,6 @@ ul {
279
297
280
298
/* -- Hacks --------------------------------------------------------------- */
281
299
282
- /* fixes a firefox bug where select menu options appear slightly indented */
283
- @-moz-document url-prefix() {
284
- select {
285
- text-indent : -2px ;
286
- }
287
- }
288
-
289
300
/* In event delegation, prevents child elements from being event.target */
290
301
button > * {
291
302
pointer-events : none;
0 commit comments