-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
105 lines (88 loc) · 1.76 KB
/
styles.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
* {
box-sizing: border-box;
}
body {
--main_color: #1c3fbbff;
--accent_color: #83a4fd;
--button_text_color: var(--main_color);
--button-bg-color: var(--accent_color);
--link-text-color: var(--accent_color);
--transition: 0.3s;
padding: 0;
margin: 0;
background-color: var(--main_color);
color: var(--accent_color);
font-family: "Press Start 2P", cursive;
transition: var(--transition);
}
body.dark {
--main_color: #000000;
--accent_color: #7af9c3;
--button_text_color: var(--main_color);
--button-bg-color: var(--accent_color);
--link-text-color: var(--accent_color);
background-color: var(--main_color);
color: var(--accent_color);
}
.page-wrapper {
max-width: 960px;
width: 90%;
margin: 0 auto;
}
.header {
padding: 1.5rem 0;
}
.options-wrapper {
display: flex;
flex-direction: column-reverse;
align-items: start;
}
.current-date {
font-size: clamp(0.75rem, 2.5vw, 1rem);
}
.mode-btn {
font-size: clamp(0.5rem, 2.5vw, 0.75rem);
}
.greeting {
font-size: clamp(1.1rem, 3vw, 2rem);
}
.main {
text-align: center;
padding: 6rem 0;
}
.btns-wrapper {
display: flex;
flex-direction: column;
gap: 1rem;
}
.counter {
font-size: clamp(6rem, 15vw, 10rem);
margin-bottom: 5rem;
}
.btn {
font-family: "Press Start 2P", cursive;
background-color: var(--button-bg-color);
color: var(--button_text_color);
border: none;
padding: 1em;
cursor: pointer;
}
.author {
font-size: clamp(0.5rem, 0.75vw, 0.75rem);
color: var(--link-text-color);
}
@media (min-width: 800px) {
.options-wrapper {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.main {
padding: 9rem;
}
.btns-wrapper {
flex-direction: row;
justify-content: space-evenly;
}
}