-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathheader.css
More file actions
129 lines (112 loc) · 2.35 KB
/
header.css
File metadata and controls
129 lines (112 loc) · 2.35 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
:root {
--header-bg: #ffffff;
--header-text: #333333;
--header-accent: #4f46e5; /* Indigo */
--header-radius: 12px;
--header-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
[data-theme="dark"] {
--header-bg: #1f2937;
--header-text: #f9fafb;
--header-accent: #6366f1;
}
header {
height: 64px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 1.5rem;
margin-bottom: 70px;
background-color: var(--header-bg);
border-radius: var(--header-radius);
box-shadow: var(--header-shadow);
position: relative;
transition: background-color 0.3s ease, color 0.3s ease;
}
header .logo {
display: flex;
align-items: center;
}
header .logo img {
max-width: 40px;
cursor: pointer;
transition: transform 0.2s ease;
}
header .logo img:hover {
transform: scale(1.05);
}
header .logo span {
font-size: 20px;
margin-left: 10px;
cursor: pointer;
font-family: "Inter", sans-serif;
font-weight: 600;
color: var(--header-accent);
}
header nav {
display: flex;
align-items: center;
gap: 20px;
}
header nav a {
font-family: "Inter", sans-serif;
font-size: 15px;
font-weight: 500;
text-decoration: none;
color: var(--header-text);
transition: color 0.3s ease;
}
header nav a:hover {
color: var(--header-accent);
}
header .user {
height: 40px;
width: 40px;
border-radius: 50%;
display: inline-block;
margin-left: 5px;
cursor: pointer;
border: 1px solid #dfdfdf;
transition: box-shadow 0.3s ease;
}
header .user:hover {
box-shadow: 0 0 0 3px rgba(79,70,229,0.2);
}
header .themeSelector img {
height: 40px;
width: 40px;
border-radius: 50%;
display: inline-block;
position: absolute;
right: 60px;
top: 12px;
margin-left: 5px;
cursor: pointer;
border: 1px solid #dfdfdf;
transition: transform 0.3s ease;
}
header .themeSelector img:hover {
transform: rotate(20deg);
}
header .themeSelector .activeTheme {
height: 30px;
width: 30px;
}
@media (max-width: 768px) {
header {
flex-direction: column;
align-items: flex-start;
gap: 12px;
height: auto;
padding: 1rem;
}
header nav {
flex-direction: column;
gap: 12px;
width: 100%;
}
header .themeSelector img {
position: static;
margin-left: 0;
}
}