/
style.css
326 lines (292 loc) · 8.04 KB
/
style.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
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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
/*
#800b37 is dark pink accent color
*/
/*--------------------------------------------------------------
___
/ _ )___ ____ ___
/ _ / _ `(_-</ -_)
/____/\_,_/___/\__/
2.0 Base
--------------------------------------------------------------*/
* {
margin: 0;
}
body, html {
height: 100%;
}
body {
background: rgba(128,11,55,0.2);
}
/*--------------------------------------------------------------
2.1 Alignments
--------------------------------------------------------------*/
* {
box-sizing: border-box;
}
.spacer {
height: 100px;
}
/*--------------------------------------------------------------
2.2 Clearings
--------------------------------------------------------------*/
/* Keep images within their elements */
.clearfix::after {
content: "";
clear: both;
display: table;
}
/*--------------------------------------------------------------
2.3 Global Elements
--------------------------------------------------------------*/
/*--------------------------------------------------------------
__ __
/ / ___ ___ _____ __ __/ /_
/ /__/ _ `/ // / _ \/ // / __/
/____/\_,_/\_, /\___/\_,_/\__/
/___/
3.0 Layout
--------------------------------------------------------------*/
/*--------------------------------------------------------------
3.1 Header
--------------------------------------------------------------*/
#site-header {
background: url('images/pink-roses.jpg');
text-align: center;
height: 50px;
}
/*--------------------------------------------------------------
3.2 Navigation
--------------------------------------------------------------*/
nav {
min-height: 30px;
background-color: #800b37;
}
#toggle-menu {
display: block;
text-align: center;
color: white;
padding: 5px;
}
nav ul {
display: none;
justify-content: center;
flex-direction: column;
}
nav ul li {
font-size: 16px;
padding: 5px 30px;
text-align: center;
color: white;
}
nav ul li a {
color: white;
}
/* Hides the menu by default */
#main-menu {
display: none;
}
/* Turns the menu on */
#tm:checked + #main-menu {
display: flex;
}
#menu input[type="checkbox"], #menu ul span.drop-icon {
display: none;
}
/*--------------------------------------------------------------
3.3 Splash Page
--------------------------------------------------------------*/
/*--------------------------------------------------------------
3.4 Content
--------------------------------------------------------------*/
#primary {
padding: 25px;
}
/*--------------------------------------------------------------
3.5 Pages
--------------------------------------------------------------*/
#content {
min-height: calc(100% - 158px); /* Keeps footer at the bottom */
margin: 0;
line-height: 1.5em;
}
/*--------------------------------------------------------------
3.6 Sidebars
--------------------------------------------------------------*/
/*--------------------------------------------------------------
3.7 Footer
--------------------------------------------------------------*/
#colophon {
position: relative; /* Keeps footer at bottom of the page, regardless of height of content */
bottom: 0;
width: 100%;
min-height: 40px;
background: #800b37;
text-align: center;
color: white;
display: flex;
flex-direction: column;
}
#colophon > div {
width: 100%;
padding: 10px;
}
#colophon a {
color: white;
}
/*--------------------------------------------------------------
__ ___ __ __
/ |/ /__ ___/ /_ __/ /__
/ /|_/ / _ \/ _ / // / / -_)
/_/ /_/\___/\_,_/\_,_/_/\__/
4.0 Module
--------------------------------------------------------------*/
/*--------------------------------------------------------------
4.1 Tables
--------------------------------------------------------------*/
table {
margin: 10px;
border-collapse: collapse;
}
td:first-child {
width: 70%; /* Sets the first column's width */
}
td:last-child {
width: 30%; /* Sets the last column's width */
}
td {
padding: 5px;
}
/*--------------------------------------------------------------
4.2 Links
--------------------------------------------------------------*/
/*--------------------------------------------------------------
4.3 Forms
--------------------------------------------------------------*/
form {
text-align: left;
}
/*--------------------------------------------------------------
4.4 Lists
--------------------------------------------------------------*/
/* Style lists used as menus */
.menu {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
}
.menu li a{
text-decoration: none;
}
/*--------------------------------------------------------------
4.5 Buttons
--------------------------------------------------------------*/
/*--------------------------------------------------------------
______ __
/_ __/_ _____ ___ ___ ________ ____ / / __ __
/ / / // / _ \/ _ \/ _ `/ __/ _ `/ _ \/ _ \/ // /
/_/ \_, / .__/\___/\_, /_/ \_,_/ .__/_//_/\_, /
/___/_/ /___/ /_/ /___/
5.0 Typography
--------------------------------------------------------------*/
h1 {
font-family: 'Cinzel', Serif;
font-size: 30px;
text-align: center;
padding: 1em;
}
h2 {
text-align: left;
}
p {
margin: 10px;
text-align: left;
}
/* Sets the style of the header banner */
#banner {
margin: 0;
padding: 0;
color: #800b37;
font-size: 30px;
text-shadow: 0 0 30px #fff;
}
/* Sets the style of the tagline or motto or byline */
#byline {
display: none; /* Hides by default for mobile browsers */
margin: 0;
color: #800b37;
font-family: 'Parisienne', cursive;
font-size: 30px;
}
/*--------------------------------------------------------------
__ ___ ___
/ |/ /__ ___/ (_)__ _
/ /|_/ / -_) _ / / _ `/
/_/ /_/\__/\_,_/_/\_,_/
6.0 Media
--------------------------------------------------------------*/
/*--------------------------------------------------------------
___ _
/ _ \___ ___ ___ ___ ___ ___ (_) _____
/ , _/ -_|_-</ _ \/ _ \/ _ \(_-</ / |/ / -_)
/_/|_|\__/___/ .__/\___/_//_/___/_/|___/\__/
/_/
7.0 Responsive
--------------------------------------------------------------*/
/*--------------------------------------------------------------
7.1 Tablets > 768px
--------------------------------------------------------------*/
@media only screen and (min-width: 768px) {
#menu #main-menu {
display: flex;
flex-direction: row; /* Switches navigation menu to horizontal */
}
#toggle-menu, #menu label.drop-icon {
display: none; /* Hides the unnecessary toggle button */
}
#byline {
display: inline; /* Turns on the byline */
}
#site-header {
height: 85px;
}
#colophon {
flex-direction: row; /* Switches the footer to horizontal */
}
#content {
min-height: calc(100% - 155px); /* Keeps footer at the bottom */
}
}
/*--------------------------------------------------------------
7.2 Small desktop > 992px
--------------------------------------------------------------*/
@media only screen and (min-width: 992px) {
#banner {
font-size: 60px;
}
#site-header {
height: 130px;
}
#content {
width: 80%; /* Keeps the content from spreading out too much */
background-color: rgba(215,107,193,0.4);
margin: 0 auto;
min-height: calc(100% - 200px); /* Keeps footer at the bottom */
}
table {
width: 75%; /* Keeps tables from being unwieldy */
margin: auto;
}
}
/*--------------------------------------------------------------
7.3 Large desktop > 1200px
--------------------------------------------------------------*/
@media only screen and (min-width: 1200px) {
#content {
width: 60%; /* Keeps the content from spreading out too much */
}
table {
width: 50%; /* Keeps tables from being unwieldy */
margin: auto;
}
}