-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
209 lines (178 loc) · 3.88 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
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
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap");
:root {
--main-color: rgba(31, 143, 255, 0.8);
--background-color: rgb(252, 252, 252);
--container-color: rgb(18, 18, 18);
--button-color: rgb(245, 245, 245);
--box-shadow-btn: 0 0.3rem rgba(255, 253, 253, 0.65);
--loader-circle: #f3f3f3;
}
[data-theme="dark"] {
--background-color: rgb(66, 66, 66);
--container-color: rgb(18, 18, 18);
--main-color: rgb(32, 33, 36);
--box-shadow-btn: 0 0.3rem rgba(22, 21, 21, 0.3);
--loader-circle: rgb(22, 21, 21);
--loader-circle-small: rgba(31, 143, 255);
}
html {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
background-color: var(--background-color);
background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23057ff7' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 0h35v35H0V0zm5 5h25v25H5V5zm5 5h15v15H10V10zm5 5h5v5h-5v-5zM40 5h25v25H40V5zm5 5h15v15H45V10zm5 5h5v5h-5v-5zM70 35H35v35h35V35zm-5 5H40v25h25V40zm-5 5H45v15h15V45zm-5 5h-5v5h5v-5zM30 40H5v25h25V40zm-5 5H10v15h15V45zm-5 5h-5v5h5v-5z'/%3E%3C/g%3E%3C/svg%3E");
font-family: "Lato", sans-serif;
font-weight: 400;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
.quote-container {
width: auto;
max-width: 900px;
padding: 20px 30px;
border-radius: 10px;
background-color: var(--main-color);
box-shadow: 0 10px 10px 10px rgba(0, 0, 0, 0.2);
}
.quote-text {
font-size: 2rem;
color: whitesmoke;
}
.long-quote {
font-size: 1.6rem;
}
.fa-quote-left {
font-size: 4rem;
}
.quote-author {
margin-top: 15px;
font-size: 2rem;
font-weight: 400;
font-style: italic;
color: white;
font-weight: 700;
}
.button-container {
margin-top: 15px;
display: flex;
justify-content: space-between;
align-items: center;
}
button {
cursor: pointer;
font-size: 1.2rem;
height: 2.5rem;
border: none;
outline: none;
border-radius: 10px;
color: var(--main-color);
background-color: var(--button-color);
padding: 0.5rem 1.8rem;
box-shadow: var(--box-shadow-btn);
}
button:hover {
filter: brightness(110%);
}
button:active {
transform: translate(0, 0.3rem);
box-shadow: 0 0.1rem rgba(255, 255, 255, 0.65);
}
.loader {
border: 16px solid var(--loader-circle); /* Light grey */
border-top: 16px solid var(--loader-circle-small);
border-radius: 50%;
width: 120px;
height: 120px;
animation: spin 2s linear infinite;
}
/* Switch dark mode */
.switcher {
width: 200px;
height: 50px;
display: flex;
justify-content: space-around;
align-items: center;
}
.theme-switch {
display: inline-block;
height: 34px;
position: relative;
width: 60px;
}
.theme-switch input {
display: none;
}
.slider {
position: absolute;
transition: 0.4s;
top: 0;
right: 0;
left: 0;
bottom: 0;
cursor: pointer;
background: var(--button-color);
}
.slider::before {
bottom: 4px;
content: "";
height: 26px;
left: 4px;
position: absolute;
transition: 0.4s;
width: 26px;
background-color: var(--main-color);
}
input:checked + .slider::before {
transform: translateX(26px);
}
.slider.round {
border-radius: 34px;
}
.slider.round::before {
border-radius: 50%;
}
.fa-sun {
font-size: 2rem;
color: var(--button-color);
}
.fa-moon {
font-size: 2rem;
color: var(--button-color);
}
/* End of switch dark mode */
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* Media querries */
@media screen and (max-width: 1000px) {
.quote-container {
margin: auto 10px;
}
.quote-text {
font-size: 1.2rem;
}
.quote-author {
font-size: 1.5rem;
}
.fa-sun {
font-size: 1.5rem;
}
.fa-moon {
font-size: 1.5rem;
}
button {
height: 2rem;
font-size: 1rem;
padding: 0 1rem;
}
}