-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDarkMode.css
307 lines (246 loc) · 7.36 KB
/
DarkMode.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
/* Theme Toggle Styles */
.theme-toggle {
position: relative;
display: flex;
align-items: center;
margin-left: 20px;
}
.theme-toggle input[type="checkbox"] {
display: none;
}
.theme-toggle .toggle {
display: flex;
align-items: center;
justify-content: space-between;
width: 50px;
height: 24px;
background-color: #ccc;
border-radius: 12px;
padding: 2px;
cursor: pointer;
position: relative;
transition: background-color 0.3s ease;
}
.theme-toggle .toggle::before {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 20px;
height: 20px;
background-color: #fff;
border-radius: 50%;
transition: transform 0.3s ease;
z-index: 2;
}
.theme-toggle input[type="checkbox"]:checked + .toggle::before {
transform: translateX(26px);
}
.theme-toggle .sun-icon {
font-size: 14px;
color: #f39c12;
position: absolute;
left: 8px; /* Positioned inside the toggle track */
transition: opacity 0.3s ease;
z-index: 1;
}
.theme-toggle .moon-icon {
font-size: 14px;
color: #3498db;
position: absolute;
right: 8px; /* Positioned inside the toggle track */
transition: opacity 0.3s ease;
z-index: 1;
}
.theme-toggle input[type="checkbox"]:checked + .toggle .sun-icon {
opacity: 1; /* Make the sun icon visible when in light mode */
}
.theme-toggle input[type="checkbox"]:checked + .toggle .moon-icon {
opacity: 1; /* Make the moon icon visible when in dark mode */
}
/* Dark Mode Styles */
body.dark-mode {
background-color: #1e1e1e;
color: #e0e0e0;
}
header.dark-mode {
background: #1f1f1f;
color: #e0e0e0;
}
header.dark-mode .logo {
color: #e0e0e0;
}
header.dark-mode nav ul li a {
color: #e0e0e0;
}
header.dark-mode nav ul li a:hover {
color: #f4a261;
}
/* Hero Section Dark Mode */
body.dark-mode .hero {
background: #1e1e1e; /* Darker background for hero section */
}
body.dark-mode .intro-text {
color: #f5f5f5; /* Very light gray for paragraph text */
background: rgba(18, 15, 15, 0.581); /* Semi-transparent dark background */
box-shadow: 0 8px 15px rgba(255, 255, 255, 0.1); /* Subtle white shadow */
}
body.dark-mode .hero h1 {
color: #ffffff; /* White for heading */
}
body.dark-mode .profile-name {
color: #ffffff; /* White for name */
text-shadow: 4px 0 8px rgba(79, 73, 73, 0.3); /* Light shadow effect */
}
body.dark-mode .profile-photo {
box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1); /* Light shadow for profile photo */
}
body.dark-mode .hero .btn {
background: #f4a261;
color: #ffffff;
}
body.dark-mode .hero .btn:hover {
background: #e76f51;
}
/* Social Icons Dark Mode */
body.dark-mode .social-icon i {
color: #ffffff; /* White for social icons */
}
body.dark-mode .name-line {
background-color: #ffffff; /* White for the invisible line */
}
/* Name Styling */
body.dark-mode .hero.in-view .profile-name {
color: #ebd5d5; /* Black text color */
text-shadow: 4px 0 8px rgba(203, 166, 166, 0.323); /* Shadow effect to create a subtle depth */
}
body.dark-mode .name-line {
background-color:#121212
}
body.dark-mode .side-nav {
background-color: #333; /* Dark background for the side navigation bar */
}
body.dark-mode .side-nav ul li a {
color: #ffffff; /* White text color for all links inside the side navigation bar */
}
body.dark-mode .side-nav ul li a:hover {
color: #f4a261; /* Optional: Highlight color on hover */
}
/* Active Section Indicator */
body.dark-mode .side-nav ul li a.active {
color: #74d77afd; /* Active section color */
}
/* Hero Section Dark Mode */
body.dark-mode .skills {
background: #1e1e1e; /* Darker background for hero section */
}
body.dark-mode .skills h2{
color: #ffffff;
}
/* Adjusted Category Title */
body.dark-mode .category-title {
color: #e9bcbc;
}
/* Experience Section */
body.dark-mode .experience {
background-color:#1e1e1e;
}
body.dark-mode .experience h2{
color: #ffffff;
}
/* Experience Item */
body.dark-mode .experience-item {
background-color: #0000008f;
}
body.dark-mode .experience-duration {
color: #e9bcbc;
}
body.dark-mode .experience-description {
color: #e9bcbc;
}
/* Highlighted Company Name */
body.dark-mode .company-name {
color: #0072ff; /* Strong color for emphasis */
background-color: #2e2e2f; /* Light background color for contrast */
}
/* Company Name Hover Effect */
body.dark-mode .company-name:hover {
background-color: #0072ff; /* Inverted hover effect */
color: #4c0f0fa7;
}
body.dark-mode .projects {
background-color: #1e1e1e88; /* Dark background */
color: #e0e0e0; /* Light text */
}
body.dark-mode .projects h2 {
color: #ffffff; /* White title */
}
body.dark-mode .projects.in-view h2 {
color: #f0f0f0; /* Slightly softer white for the in-view title */
}
body.dark-mode .projects.in-view .project-card {
background-color: #1e1e1e; /* Darker card background */
color: #d0d0d0; /* Lighter text inside the card */
box-shadow: 0 6px 15px rgba(255, 255, 255, 0.05); /* Softer shadow */
}
body.dark-mode .project-card h3 {
color: #80bfff; /* Light blue for project titles */
}
body.dark-mode .project-card p {
color: #cccccc; /* Lighter grey for paragraph text */
}
body.dark-mode .project-card ul li {
color: #bbbbbb; /* Slightly lighter grey for list items */
}
body.dark-mode .project-link {
background-color: #1a73e8; /* Light blue background for the link */
color: #ffffff; /* White link text */
}
body.dark-mode .project-link:hover {
background-color: #005bb5; /* Darker blue for hover effect */
}
/* Contact Section */
body.dark-mode .contact.in-view {
background-color: #1a1a1a; /* Dark background */
color: #e0e0e0; /* Light text for readability */
}
/* Contact Box */
body.dark-mode .contact.in-view .contact-box {
background-color: rgba(33, 33, 33, 0.9); /* Semi-transparent dark background */
box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1); /* Softer shadow in light colors */
}
/* Contact Content */
body.dark-mode .contact-content {
color: #f0f0f0; /* Lighter text for contrast */
}
/* Contact Section Title */
body.dark-mode .contact-content h2 {
color: #ffffff; /* Bright white for the title */
}
/* Form Elements in Dark Mode */
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode textarea {
background-color: rgba(50, 50, 50, 0.9); /* Darker input background */
color: #ffffff; /* White text */
border: 2px solid #26a69a; /* Dark teal border for input */
box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05); /* Light shadow */
}
/* Input & Textarea Focus Effect in Dark Mode */
body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="email"]:focus,
body.dark-mode textarea:focus {
background-color: #2c2c2c; /* Slightly lighter dark background on focus */
border-color: #004d40; /* Darker teal border on focus */
box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2); /* Lighter shadow on focus */
}
/* Submit Button Styling */
body.dark-mode button {
background-color: #26a69a; /* Dark teal button background */
color: #ffffff; /* White button text */
box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1); /* Light shadow */
}
body.dark-mode button:hover {
background-color: #004d40; /* Darker teal on hover */
box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2); /* More intense shadow on hover */
}