-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoggleTheme.css
More file actions
104 lines (82 loc) · 1.26 KB
/
Copy pathtoggleTheme.css
File metadata and controls
104 lines (82 loc) · 1.26 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
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:"Segoe UI",sans-serif;
}
body{
min-height:100vh;
background:#f5f5f5;
color:#222;
transition:0.4s ease;
}
.container{
width:90%;
max-width:1200px;
margin:auto;
}
nav{
display:flex;
justify-content:space-between;
align-items:center;
padding:25px 0;
}
h1{
font-size:2rem;
}
#theme-btn{
width:60px;
height:60px;
border:none;
border-radius:50%;
cursor:pointer;
background:white;
box-shadow:
0 5px 15px rgba(0,0,0,0.15);
transition:0.3s ease;
}
#theme-btn:hover{
transform:scale(1.08);
}
.icon{
font-size:1.5rem;
}
main{
margin-top:120px;
text-align:center;
}
main h2{
font-size:3rem;
margin-bottom:20px;
}
main p{
font-size:1.2rem;
max-width:600px;
margin:auto;
line-height:1.8;
}
/* DARK THEME */
body.dark{
background:#121212;
color:white;
}
body.dark #theme-btn{
background:#222;
box-shadow:
0 5px 15px rgba(255,255,255,0.1);
}
body.light{
background:#f5f5f5;
color:#222;
}
body.light #theme-btn{
background:white;
box-shadow:
0 5px 15px rgba(0,0,0,0.15);
}
body.light nav{
color:#222;
}
body.light p{
color:#444;
}