forked from Gyanthakur/Dev_Profiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
139 lines (118 loc) · 2.7 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
/* Consolidated Color Variables */
:root {
--primary-color: #3498db;
--secondary-color: #2ecc71;
--background-light: #f9f9f9;
--background-dark: #333;
--text-color-light: #ffffff;
--text-color-dark: #222;
--border-radius: 5px;
}
/* Global Styles */
body {
font-family: Arial, sans-serif;
background-color: var(--background-light);
color: var(--text-color-dark);
transition: background-color 0.3s ease, color 0.3s ease;
}
.dark-mode {
background-color: var(--background-dark);
color: var(--text-color-light);
}
/* Centralized Dark/Light Mode Backgrounds */
.light-background {
background-color: var(--background-light);
color: var(--text-color-dark);
}
.dark-background {
background-color: var(--background-dark);
color: var(--text-color-light);
}
/* Buttons and Links */
button, .btn, .menu__link {
border: none;
padding: 10px 20px;
border-radius: var(--border-radius);
background-color: var(--primary-color);
color: var(--text-color-light);
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover, .btn:hover, .menu__link:hover {
background-color: var(--secondary-color);
}
.dark-btn {
background-color: var(--background-dark);
color: var(--text-color-light);
}
/* Animation Improvements */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideIn {
from { transform: translateY(20px); }
to { transform: translateY(0); }
}
/* Updated Elements with Responsive Adjustments */
.title {
font-size: 2.5em;
margin-bottom: 20px;
animation: fadeIn 0.5s ease;
}
@media (max-width: 768px) {
.title {
font-size: 2em;
}
}
@media (max-width: 480px) {
.title {
font-size: 1.5em;
}
}
/* Accessibility: Focus Styles */
button:focus, .btn:focus, .menu__link:focus {
outline: 3px solid var(--primary-color);
}
/* Profile and Contact Sections */
.profile, .about-container, .contact-section {
padding: 20px;
background-color: var(--background-light);
color: var(--text-color-dark);
border-radius: var(--border-radius);
}
.social-icon {
background-color: var(--primary-color);
padding: 10px;
border-radius: 50%;
color: var(--text-color-light);
transition: background-color 0.3s ease;
}
.social-icon:hover {
background-color: var(--secondary-color);
}
/* Contact Information */
.contact-info {
color: var(--text-color-dark);
font-size: 1em;
line-height: 1.6;
}
@media (max-width: 480px) {
.contact-info {
font-size: 0.9em;
}
}
/* Footer Section */
.footer {
padding: 15px;
background-color: var(--background-dark);
color: var(--text-color-light);
text-align: center;
}
.footer a {
color: var(--text-color-light);
text-decoration: none;
}
.footer a:hover {
color: var(--primary-color);
}