-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
128 lines (112 loc) · 2.44 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
min-height: 100vh;
display: flex;
flex-direction: column;
transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
header {
position: fixed;
top: 0;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
backdrop-filter: blur(10px);
z-index: 1000;
transition: all 0.3s ease;
}
h1 {
font-size: 1.5rem;
font-weight: 500;
}
#themeSelector {
font-size: 1rem;
padding: 0.5rem 2rem 0.5rem 1rem;
border-radius: 20px;
border: 2px solid rgba(255, 255, 255, 0.3);
background-color: rgba(255, 255, 255, 0.1);
color: inherit;
cursor: pointer;
transition: all 0.3s ease;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 1rem center;
background-size: 1em;
}
#themeSelector:hover,
#themeSelector:focus {
background-color: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.5);
outline: none;
}
#themeSelector option {
background-color: #2c2c2e;
color: #ffffff;
}
main {
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
}
#clock {
font-size: 12rem;
font-weight: 200;
display: flex;
justify-content: center;
align-items: center;
}
#hours,
#minutes {
min-width: 2ch;
text-align: center;
}
.digit {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.digit.out {
transform: translateY(-100%);
opacity: 0;
}
.digit.in {
transform: translateY(100%);
opacity: 0;
}
.digit.current {
transform: translateY(0);
opacity: 1;
}
footer {
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
padding: 10px;
background: transparent;
}
footer a {
margin: 0 15px;
display: inline-block;
font-size: 20px;
color: #fff;
}