-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
228 lines (187 loc) · 4.45 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
/**
* ------------------------------------------
* Responsive Grid Media Queries - 1280, 1024, 768, 480, 400
* 1280-1024 - desktop (default grid)
* 1024-768 - tablet landscape
* 768-480 - tablet
* 480-400 - small phone
* 400-less - very small devices
* --------------------------------------------
*/
/* Root variables for reusable values */
:root {
--main-bg-color: rgb(225, 248, 244);
--main-text-color: #49494b;
--accent-color: Blue;
--hover-color: hotpink;
--font-size-base: 16px;
}
/* Global defaults */
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: var(--main-bg-color);
font-size: var(--font-size-base);
}
h1, h2, h3 {
margin-top: 3rem;
}
header {
padding: 2rem 4rem;
color: var(--main-bg-color);
background-color: blue;
border-bottom: 2px solid var(--accent-color);
text-align: center;
}
header h1 {
color: var(--main-bg-color);
text-decoration: none;
margin-bottom: 0.5rem;
}
header ul {
list-style: none;
padding: 0;
}
header a {
color: inherit;
text-decoration: none;
font-style: normal;
}
header a:hover {
color: var(--hover-color);
}
header img {
display: block;
aspect-ratio: 1;
border-radius: 50%;
background-color: var(--main-bg-color);
border: 5px solid var(--hover-color);
object-fit: cover;
filter: grayscale(1); /* Always in grayscale */
margin: 1rem auto;
}
main {
margin: 2rem 4rem;
}
main section {
margin-bottom: 3rem;
}
p {
max-width: 80ch;
}
section {
font-size: 0.8rem;
letter-spacing: 0.5px;
}
section li {
margin: 0.5rem;
}
section li h3 {
margin-bottom: 1rem;
margin-top: 1rem;
}
/* Responsive Design Media Queries */
/* Smartphones */
@media all and (max-width: 480px) {
body {
font-size: 14px;
}
}
/* Very small screens (less than 400px) */
@media all and (max-width: 400px) {
header {
display: flex;
flex-direction: column; /* Stack content vertically */
align-items: center; /* Center horizontally */
justify-content: center; /* Center vertically */
padding: 1rem; /* Reduce padding for smaller screens */
text-align: center;
}
header h1 {
font-size: 1.5rem; /* Adjust font size */
text-align: center; /* Center the title */
}
header img {
width: 80px; /* Adjust image size */
height: auto;
filter: grayscale(1); /* Keep grayscale */
}
header ul {
display: flex;
flex-direction: column; /* Stack navigation items */
align-items: center; /* Center links */
padding: 0;
text-align: center; /* Additional centering */
}
header a {
font-size: 0.9rem; /* Reduce font size for links */
margin: 0.5rem 0; /* Add spacing between links */
}
p {
text-align: left;
}
/* Tablets */
@media all and (min-width: 481px) and (max-width: 768px) {
body {
font-size: 15px;
}
}
/* Tablets Landscape */
@media all and (min-width: 768px) and (max-width: 1024px) {
main {
margin: 1rem 3rem;
}
}
/* Desktops */
@media all and (min-width: 1024px) and (max-width: 1280px) {
main {
margin: 2rem 6rem;
}
}
/* Portrait */
@media screen and (orientation: portrait) {
header {
padding: 1.5rem 3rem;
}
}
/* Landscape */
@media screen and (orientation: landscape) {
header {
padding: 2.5rem 5rem;
}
}
/* Retina Displays */
@media only screen and (min-resolution: 2dppx) {
header img {
filter: grayscale(1); /* Keep grayscale */
}
}
/* iPhone Portrait */
@media screen and (max-device-width: 480px) and (orientation: portrait) {
header {
text-align: center; /* Center for iPhone portrait mode */
}
}
/* iPhone Landscape */
@media screen and (max-device-width: 480px) and (orientation: landscape) {
header {
text-align: center; /* Center for iPhone landscape mode */
}
}
/* iPad Portrait */
@media screen and (min-device-width: 481px) and (orientation: portrait) {
main {
margin: 2rem 2rem;
}
}
/* iPad Landscape */
@media screen and (min-device-width: 481px) and (orientation: landscape) {
main {
margin: 2rem 4rem;
}
}