-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
506 lines (428 loc) · 9.51 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
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
:root {
--outer-space: #d5f1f1;
--bright-turquoise: #d90429;
--gin: #d90429;
--heliotrope: #1d3557;
}
/* set content highlight color and background */
::selection {
background-color: var(--bright-turquoise);
color: var(--outer-space);
}
html {
font-size: 62.5%;
}
header {
flex:auto;
position: static;
top: 0;
width: 100%;
margin: 0;
text-align: left;
border-bottom: 10px ridge #457b9d;
}
header h1.page-title {
font-size: 4.5rem;
}
body {
font-family: 'STIX Two Text', serif; ;
display: flex;
/* Forces elements to the next line if they don't fit */
flex-wrap: wrap;
margin-top: .5%;
/* set body font size to 1.75rem, which is 1.75x more than the font-size of 10px, making it 17.5px */
font-size: 1.75rem;
line-height: 1.5;
color: var(--gin);
background-color: var(--outer-space);
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-bottom: 0.25rem;
color: var(--heliotrope);
font-weight: 700;
line-height: 1;
}
h1 {
font-size: 5rem;
}
h2 {
font-size: 3.5rem;
}
h3 {
font-size: 3rem;
}
h4 {
font-size: 2.5rem;
}
h5 {
font-size: 2rem;
}
h6 {
font-size: 1.5rem;
}
p {
margin-bottom: 1rem;
color: #1d3557;
}
img {
flex:auto;
max-width:98%;
padding: 1px;
text-align: center;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
padding-top: 60px;
}
/* Modal Content/Box */
.modal-content {
background-color: #fefefe;
margin: 5px auto; /* 15% from the top and centered */
border: 1px solid #888;
width: 80%; /* Could be more or less, depending on screen size */
}
/* The Close Button */
.close {
/* Position it in the top right corner outside of the modal */
position: absolute;
right: 25px;
top: 0;
color: #000;
font-size: 35px;
font-weight: bold;
}
/* Close button on hover */
.close:hover,
.close:focus {
color: rgb(107, 1, 1);
cursor: pointer;
}
/* Add Zoom Animation */
.animate {
-webkit-animation: animatezoom 0.6s;
animation: animatezoom 0.6s
}
@-webkit-keyframes animatezoom {
from {-webkit-transform: scale(0)}
to {-webkit-transform: scale(1)}
}
@keyframes animatezoom {
from {transform: scale(0)}
to {transform: scale(1)}
}
main {
width: 96%;
margin: 1rem auto;
text-align: center
}
section {
position: sticky;
top: 0 auto;
width: 96%;
margin: 0 auto;
padding: 2.5rem;
text-align: center;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #1d3557;
}
li {
float: right;
}
li a {
display: block;
color:#f1faee;
text-align: right;
padding: 14px 16px;
text-decoration: none;
}
/* Change the link color on hover */
li a:hover {
background-color: #8ec5e7;
}
footer {
display:flexbox;
position:relative;
float:none;
bottom: 0px;
margin: 0;
text-align: center;
color: white;;
background-color: #1d3557;
border-style: ridge;
border-color: #1d3557;
border-width: 2.5px;
border-radius: 8px;
}
/* create our main grid with flexbox, use negative margins to offset the padding on the .card-column class */
.row {
display: flex;
flex-wrap: wrap;
flex-direction: row;
margin-left: -1.5rem;
margin-right: -1.5rem;
}
.justify-center {
justify-content: center;
}
/* Add a red text color to links */
a {
color: rgb(107, 1, 1);
text-shadow:var(--heliotrope);
}
#featuredcontent {
display:flexbox;
position:sticky;
float:none;
background-color: #f1faee;
text-align: center ;
color: #1d3557;
width: 75%;
border-style: ridge;
border-radius: 20px;
border-color:#457b9d;
border-width: 5px;
margin-bottom: 2rem;
}
/* Set a background color and center the text of the "sign in" section */
#register {
display:flexbox;
position:sticky;
float:none;
background-color: #8ec5e7;
text-align: center;
color: #1d3557;
width: 50%;
border-style: ridge;
border-radius: 20px;
border-color:rgb(107, 1, 1);
border-width: 5px;
}
.white {
color: white
}
.red {
color: rgb(107, 1, 1);
}
/* using a mobile-first approach, set base column width to be 100% and we'll update it using media queries for larger screen sizes */
.card-column {
flex: 1 0 100%;
padding: 1.5rem;
/* when the screen resizes, make it so our columns don't jump in size */
transition: flex-basis 500ms linear;
margin-bottom: 1.5rem;
}
/* make each code card a flexbox column to align and justify content within it */
.code-card {
display: flex;
flex-direction: column;
justify-content: flex-start;
min-height: 100%;
padding: 2rem;
color: var(--heliotrope);
}
.code-card .card-header {
/* use position and negative margins to move title of card over the card's outline and create an overlap effect */
position: relative;
margin: -4rem 0 1.5rem 0;
padding: 0.5rem 1rem;
background-color: #f1faee;
color: var(--heliotrope);
border: 2px ridge var(--gin);
border-radius: 8px;
transition: all 0.5s ease-in-out;
}
/* set an outer and inner drop shadow on the card to create a glowing effect on hover */
.code-card:hover,
.code-card:hover .card-header {
box-shadow: inset 0px 0px 8px var(--heliotrope), 0 0 15px var(--heliotrope);
}
/* each card's code block grows to the height of the largest code block on the page, making each card even in height */
.code-card .code-block {
flex-grow: 1;
}
/* Chat containers */
.container {
display:flexbox;
position:sticky;
float:none;
width:60%;
border: 2px solid #d90429;
background-color: #f1faee;
text-align: center;
border-style: ridge;
border-radius: 8px;
border-color:#457b9d;
border-width: 5px;
padding: 10px;
margin: 10px 0;
}
#sendMessage{ display:flexbox;
position:sticky;
float:none;
min-height:50px;
min-width: 100px;
margin-bottom:10px;
border-color: var(--gin);
}
#content{display:flexbox;
position:sticky;
float:none;
min-width:500px;
min-height: 400px;
border:3px ridge var(--heliotrope);
border-radius: 8px;
background-color: whitesmoke;
overflow: scroll;
}
#messColumn{width:300px;background-color: whitesmoke;}
#btn {border-color:var(--heliotrope);
border-width: 2px;
border-style: ridge;
background-color:var(--bright-turquoise);}
/* Darker chat container */
.darker {
border-color: #ccc;
background-color: #ddd;
}
/* Clear floats */
.container::after {
content: "";
clear: both;
display: table;
}
/* Style images */
.container img {
float: left;
max-width: 60px;
width: 75%;
margin-right: 20px;
border-radius: 50%;
}
/* Style the right image */
.container img.right {
float: right;
margin-left: 20px;
margin-right:0;
}
/* Style time text */
.time-right {
float: right;
color: #aaa;
}
/* Style time text */
.time-left {
float: left;
color: #999;
}
/* Button used to open the chat form - fixed at the bottom of the page */
.open-button {
background-color: #555;
color: white;
padding: 16px 20px;
border: none;
cursor: pointer;
opacity: 0.8;
position: fixed;
bottom: 23px;
right: 28px;
width: 280px;
}
/* The popup chat - hidden by default */
.form-popup {
display: flexbox;
position: sticky;
float: left;
bottom: 0;
right: 15px;
border: 3px ridge #d90429;
border-radius: 8px;
z-index: 9;
}
/* Add styles to the form container */
.form-container {
display: flexbox;
position: sticky;
float: left;
bottom: 15px;
left: 15px;
background: #ccc;
border: 3px ridge #d90429;
border-radius: 8px;
z-index: 9;
}
/* textarea */
.form-container textarea {
width: 90%;
padding: 15px;
margin: 5px 0 5px 0;
border: none;
background: #f1f1f1;
min-height: 200px;
}
/* When the textarea gets focus, do something */
.form-container textarea:focus {
background-color: #ddd;
outline: none;
}
/* Set a style for the submit/login button */
.form-container .btn {
background-color: #457b9d;
color: white;
padding: 16px 20px;
border: none;
cursor: pointer;
width: 100%;
margin-bottom:10px;
opacity: 0.8;
}
/* Add a red background color to the cancel button */
.form-container .cancel {
background-color: red;
}
/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
opacity: 1;
}
/* end of chatbox*/
/* using a mobile-first approach, use `min-width` values going from narrow -> wide for a responsive design */
@media screen and (min-width: 768px) {
/* on tablets, set columns to only be 50% of the width and not grow */
.card-column {
flex: 0 0 50%;
max-width: 50%;
}
/* select the last child to grow to full width if it has space to grow */
.card-column:last-child {
flex-grow: 1;
}
}
/* media query for larger screens */
@media screen and (min-width: 992px) {
header {
width: 75%;
}
.card-column {
flex: 0 0 33.333%;
max-width: 33.333%;
}
}