-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
128 lines (113 loc) · 2.05 KB
/
style.css
File metadata and controls
128 lines (113 loc) · 2.05 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
img {
display: block;
max-width: 80%;
height: auto;
margin: auto;
}
/* UTILITY class */
.nowrap {
white-space: nowrap;
}
body {
min-height: 100vh;
font-size: 1.5rem;
background-color: rgb(112, 119, 124);
background-image: radial-gradient(white, rgb(112, 119, 124));
display: flex;
flex-direction: column;
}
header,
footer {
position: sticky;
background-color: rgb(0, 49, 88);
color: whitesmoke;
font-size: 1rem;
text-align: center;
padding: 3px 0;
}
header {
top: 0;
}
footer {
bottom: 0;
font-size: 0.8rem;
}
nav {
background: white;
display: flex;
justify-content: space-evenly;
font-size: 1.2rem;
padding: 5px;
font-weight: bolder;
}
nav a {
text-decoration: none;
color: rgb(0, 49, 88);
}
main {
flex-grow: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
}
.card {
background-color: rgb(0, 49, 88);
width: min(90%, 350px);
margin: 25px auto;
padding: 15px;
text-align: center;
scroll-margin-top: 6rem;
border: 2px solid rgb(255, 255, 255);
border-radius: 10px;
box-shadow: 0 2px 5px black;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
color: white;
}
.card img {
border: 5px double white;
border-radius: 50%;
}
.card figcaption {
margin: 8px 0;
font-size: 2rem;
font-weight: bolder;
}
/* Media queries */
@media screen and (min-width: 576px) {
main {
flex-direction: row;
flex-wrap: wrap;
}
.card {
width: min(90%, 400px);
}
}
@media screen and (min-width: 768px) {
.card {
width: min(90%, 325px);
height: min(380px, 400px);
}
}
@media screen and (min-width: 992px) {
.card {
width: min(90%, 300px);
}
}
@media screen and (min-width: 1200px) {
.card {
width: min(calc(33%-1rem), 500px);
overflow: hidden;
}
}