-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
396 lines (331 loc) · 11.8 KB
/
styles.css
File metadata and controls
396 lines (331 loc) · 11.8 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
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
/*COLOR CODES USED ARE SHOWN BELOW WITH THEIR NAMES
Background colors:
Light Mode: #ffffff (white)
Dark Mode: #121212 (almost black)
Text colors:
Light Mode: #000000 (black)
Dark Mode: #ffffff (white)
Link colors:
Light Mode: #007BFF (a medium blue)
Dark Mode: #66b3ff (a soft light blue for visibility on dark backgrounds)
Hover colors:
Light Mode: #f2f2f2 (light gray for hover on links/buttons)
Dark Mode: #333333 (darker gray for hover on links/buttons)
Button colors:
Light Mode: #ddd (light gray background for buttons)
Dark Mode: #2a2a2a (dark gray background for buttons)
Borders: Light Mode: #ccc (light gray border)
Dark Mode: #444 (darker gray border for contrast)*/
body {
margin: 0; /* Removes default margin */
font-family: Arial, sans-serif; /* Sets default font */
display: flex; /* Enables flexbox for layout */
flex-direction: column; /* Stacks elements vertically */
}
/* Prevents scrolling when a certain class is added */
body.no-scroll {
overflow: hidden; /* Disables scrolling */
}
/* Top bar styles */
.top-bar {
display: flex; /* Uses flexbox layout */
background: #fff; /* Sets background color */
align-items: center; /* Centers items vertically */
border-bottom: 1px solid #ccc; /* Adds border under the top bar */
padding: 10px 20px; /* Adds padding around the top bar */
justify-content: space-between; /* Aligns content with space in between */
align-items: center; /* Ensures vertical centering */
width: 100%; /* Full width of the screen */
z-index: 10; /* Keeps the top bar above other content */
}
/* Menu button styles */
#menu-toggle {
font-size: 24px; /* Sets the font size of the button */
background: none; /* Removes background */
border: none; /* Removes border */
cursor: pointer; /* Adds pointer cursor */
margin-right: 15px; /* Adds margin to the right */
}
/* Ensures the buttons have the text color based on the theme */
#menu-toggle, #close-sidebar {
color: var(--text-color); /* Uses variable for text color */
}
/* Dark mode overrides for buttons */
body.dark-mode #menu-toggle, body.dark-mode #close-sidebar {
color: #fff; /* Changes the text color to white in dark mode */
}
/* Theme toggle button styles */
#theme-toggle {
margin: 10px; /* Adds margin */
align-self: center; /* Centers the button horizontally */
font-size: 14px; /* Font size */
padding: 8px 12px; /* Padding inside the button */
background-color: #ddd; /* Light background color */
border: none; /* No border */
border-radius: 5px; /* Rounded corners */
cursor: pointer; /* Pointer cursor on hover */
}
/* Top bar logo styles */
.top-bar .logo {
color: var(--text-color); /* Uses variable for text color */
font-weight: bold; /* Makes logo text bold */
font-size: 20px; /* Font size */
}
/* Transitions for smooth changes between light/dark mode */
.top-bar, #theme-toggle, #menu-toggle, .logo {
transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transitions for background color and text color */
}
/* Dark mode: changes color of logo */
body.dark-mode .top-bar .logo {
color: #fff; /* White color for logo in dark mode */
}
/* Sidebar styles */
.sidebar {
position: fixed; /* Fixes sidebar in place */
top: 50px; /* 50px from the top */
left: -100vw; /* Moves the sidebar completely offscreen */
width: 240px; /* Width of the sidebar */
height: 100vh; /* Full viewport height */
background-color: #fff; /* Background color */
transition: left 0.3s ease; /* Smooth transition when sidebar opens/closes */
padding: 10px; /* Padding inside the sidebar */
z-index: 10; /* Makes sure the sidebar stays above other content */
border-right: 1px solid #ccc; /* Border on the right side */
overflow-y: auto; /* Enables scrolling inside the sidebar */
display: flex; /* Flexbox layout */
flex-direction: column; /* Stacks items vertically */
justify-content: space-between; /* Pushes the content to the top and the button to the bottom */
}
/* When the sidebar has the 'open' class, it slides in */
.sidebar.open {
left: 0; /* Moves sidebar to the visible area */
}
/* Sidebar logo styles */
.sidebar .logo {
font-weight: bold; /* Makes the logo text bold */
font-size: 20px; /* Font size */
margin-bottom: 20px; /* Adds space below the logo */
}
/* Close button styles inside the sidebar */
#close-sidebar {
font-size: 24px; /* Font size of close button */
background: none; /* No background */
border: none; /* No border */
float: right; /* Floats the button to the right */
cursor: pointer; /* Pointer cursor on hover */
margin-bottom: 10px; /* Adds margin at the bottom */
display: none; /* Hidden by default */
}
/* Show the close button when the sidebar is open */
.sidebar.open #close-sidebar {
display: block; /* Makes the close button visible when the sidebar is open */
}
/* Navigation links styles */
.nav-links a {
display: block; /* Makes links block-level */
padding: 10px 15px; /* Padding inside the links */
color: var(--text-color); /* Text color based on theme */
text-decoration: none; /* Removes underline */
border-radius: 8px; /* Rounded corners */
}
/* Hover effect for links */
.nav-links a:hover {
background-color: #f2f2f2; /* Light background on hover */
}
/* Section title styles */
.section-title {
font-size: 14px; /* Font size */
margin: 15px 0 5px 15px; /* Adds margins around the title */
font: bold; /* Makes title bold */
color: #555; /* Dark gray color */
}
/* Main content styles */
.main-content {
margin-top: 60px; /* Adds top margin */
padding: 20px; /* Adds padding */
}
/* Overlay that covers the screen when sidebar is open */
.overlay {
display: none; /* Hidden by default */
position: fixed; /* Fixes the overlay in place */
top: 0; /* Position from the top */
left: 0; /* Position from the left */
height: 100%; /* Full height */
width: 100%; /* Full width */
background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black background */
z-index: 9; /* Positioned above content, but below sidebar */
}
/* Overlay shown when sidebar is active */
.overlay.active {
display: block; /* Shows the overlay */
}
/* Theme toggle button container at the bottom */
.theme-toggle-wrapper {
padding: 10px 15px; /* Adds padding */
}
/* Style for theme toggle button */
.theme-toggle-wrapper button {
width: 100%; /* Button takes full width */
padding: 10px; /* Padding inside the button */
background-color: #ddd; /* Light gray background */
border: none; /* No border */
border-radius: 5px; /* Rounded corners */
cursor: pointer; /* Pointer cursor on hover */
}
/* LIGHT AND DARK MODE THEME */
/* Root default light theme colors */
:root {
--background-color: #ffffff; /* Light background */
--text-color: #000000; /* Black text */
--link-color: #f9f9f9; /* Light link color */
--link-hover-color: #e0e0e0; /* Hover color for links */
}
/* Apply colors based on the theme */
body {
background-color: var(--background-color); /* Uses the background color variable */
color: var(--text-color); /* Uses the text color variable */
}
/* Apply colors for sidebar */
.sidebar {
background-color: var(--background-color); /* Sidebar background color */
}
/* Hover effect for links */
.nav-links a:hover {
background-color: var(--link-hover-color); /* Link hover color */
}
/* Dark mode theme overrides */
body.dark-mode {
--background-color: #121212; /* Dark background */
--text-color: #ffffff; /* White text */
--link-hover-color: #333; /* Darker link hover color */
--link-color: #ccc; /* Light link color */
}
/* Dark mode styles for the main content */
body.dark-mode .main-content {
background-color: #121212; /* Dark background */
color: #ffffff; /* White text */
}
/* Dark mode styles for the sidebar */
body.dark-mode .sidebar {
background-color: #1e1e1e; /* Dark sidebar background */
color: #ffffff; /* White text */
}
/* Dark mode link color */
body.dark-mode .nav-links a {
color: #ffffff; /* White text */
background-color: transparent; /* Transparent background */
}
/* Dark mode link hover effect */
body.dark-mode .nav-links a:hover {
background-color: #333; /* Dark background on hover */
color: #ffffff; /* White text */
}
/* Dark mode section title color */
body.dark-mode .section-title {
color: #cccccc; /* Light gray color */
}
/* Dark mode theme toggle button styles */
body.dark-mode #theme-toggle {
background-color: #2a2a2a; /* Dark button background */
color: #fff; /* White text */
}
/* Dark mode theme toggle button hover effect */
body.dark-mode #theme-toggle:hover {
background-color: #444; /* Lighter background on hover */
}
/* Dark mode top bar styles */
body.dark-mode .top-bar {
background-color: #1e1e1e; /* Dark top bar background */
color: #fff; /* White text */
border-bottom: 1px solid #444; /* Dark border */
}
/* Dark mode theme toggle button wrapper styles */
body.dark-mode .theme-toggle-wrapper {
border-top: 1px solid #444; /* Dark border for the bottom button wrapper */
}
/* Dark mode button inside theme toggle wrapper */
body.dark-mode .theme-toggle-wrapper button {
background-color: #2a2a2a; /* Dark button background */
color: #fff; /* White text */
}
/* Dark mode close sidebar button */
body.dark-mode #menu-toggle, body.dark-mode #close-sidebar {
color: #fff; /* White text for buttons */
}
/* LIGHT AND DARK MODE THEME ENDS HERE */
/* Responsive design for smaller screens (theme toggle) */
@media screen and (max-width: 600px) {
#theme-toggle {
font-size: 12px; /* Smaller font size for mobile */
padding: 6px 10px; /* Smaller padding */
}
}
/* Smooth transition for changes between light/dark modes */
body, .sidebar, .nav-links a, .main-content {
transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transitions */
}
.hero {
display: flex; /* Flexbox layout for hero section */
/* align-items: center; Centers items vertically */
justify-content: space-between; /* Space between items */
padding: 50px; /* Padding around the hero section */
background-color: var(--background-color); /* Background color based on theme */
color: var(--text-color); /* Text color based on theme */
}
.text-content {
flex: 1;
padding: 20px;
}
.image-content {
width: 260px; /* Fits the image content */
border-radius: 10px; /* Rounded corners for the image container */
}
.image-content img {
max-width: 100%; /* Ensures the image is responsive */
height: auto; /* Maintains aspect ratio */
border-radius: 10px; /* Rounded corners for the image */
}
/* Footer styles */
footer {
background-color: var(--background-color); /* Background color based on theme */
color: var(--text-color); /* Text color based on theme */
text-align: center; /* Centered text */
padding: 20px; /* Padding around the footer */
position: relative; /* Relative positioning for footer */
bottom: 0; /* Sticks to the bottom of the page */
width: 100%; /* Full width of the screen */
}
.footer-content {
max-width: 1200px; /* Maximum width for the footer content */
margin: 0 auto; /* Centers the footer content */
justify-content: space-between; /* Space between items */
display: flex; /* Flexbox layout for footer content */
flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}
.social-links a {
color: var(--text-color); /* Text color based on theme */
font-size: 24; /* Font size for social links */
text-decoration: none; /* Removes underline */
margin: 0 15px; /* Margin between social links */
}
.social-links a:hover {
color: var(--link-hover-color); /* Changes color on hover */
}
/* GLOWING BUTTON FOUND NEXT TO */
.glowing-button {
padding: 12px 24px;
background: transparent;
color: #00eeff;
border: 2px solid #00eeff;
border-radius: 5px;
font-weight: bold;
font-size: 16px;
cursor: pointer;
box-shadow: 0 0 5px #00eeff, 0 0 10px #00eeff;
transition: all 0.3s ease;
}
.glowing-button:hover {
background: #00eeff;
color: #000;
box-shadow: 0 0 10px #00eeff, 0 0 20px #00eeff, 0 0 40px #00eeff;
}