-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
97 lines (93 loc) · 2.22 KB
/
style.css
File metadata and controls
97 lines (93 loc) · 2.22 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
@import url('https://fonts.googleapis.com/css2?family=KoHo:wght@700&family=Roboto&display=swap');
body {
--accent-color: #fd0404;
/* --background-color: linear-gradient( #ffffff, #bfe689); */
--background-color: linear-gradient( #ffffff, #f8a1d1);
--text-color: black;
--button-text-color: #f7f1f4;
--transition-delay: 1s;
margin: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
background-image: var(--background-color);
color: var(--text-color);
transition: var(--transition-delay);
}
body.dark {
--accent-color: #f0e11a;
/*--background-color: linear-gradient(to bottom right, #000000, #060930);*/
--background-color: linear-gradient(#272844, #000000);
--text-color: white;
--button-text-color: #060930;
}
.title {
margin: 0;
margin-bottom: 2.5rem;
font-size: 2rem;
font-family: 'KoHo', sans-serif;
font-weight: bolder;
}
.theme-toggle-button {
background-color: var(--accent-color);
font-size: 1.2rem;
font-weight: bold;
font-family: 'Roboto', sans-serif;
color: var(--button-text-color);
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
padding: .5rem 1rem;
border-radius: .3rem;
border: none;
box-shadow: 3px 7px 17px #4e4d4d;
transition: var(--transition-delay);
transform: scale(1);
}
.theme-toggle-button:hover,
.theme-toggle-button:focus {
transform: scale(1.1);
}
.dark .theme-toggle-button {
box-shadow: 2px 3px 12px #bbbaba;
}
.theme-toggle-button .icon {
margin-right: .5rem;
}
.sun-moon-container {
--rotation: 0;
position: absolute;
display: flex;
justify-content: center;
align-items: center;
top: 0;
pointer-events: none;
height: 200vmin;
transform: rotate(calc(var(--rotation) * 1deg));
transition: transform var(--transition-delay);
}
.sun,
.moon {
position: absolute;
transition: opacity, fill, var(--transition-delay);
fill: var(--accent-color);
}
.sun {
top: 5%;
opacity: 1;
}
.dark .sun {
opacity: 0;
}
.moon {
bottom: 5%;
opacity: 0;
transform: rotate(180deg);
}
.dark .moon {
opacity: 1;
}