-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
140 lines (138 loc) · 2.34 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
/* import fonts */
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");
/* styles */
*, *::before, *::after {
margin: 0;
padding: 0;
list-style: none;
outline: none;
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
background-color: #1d1d1d;
padding: 5em 0;
}
body, section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1, h3, p {
text-align: center;
color: #f0f0f0;
opacity: 0.9;
}
h1 {
font: bold 80px/120% Arial, "Helvetica", sans-serif;
}
h3 {
text-transform: uppercase;
font: bold 34px/120% Georgia, serif;
}
p {
font: 400 16px/120% "Rubik", sans-serif;
padding: 0.3em 1em;
}
section {
margin-top: 2em;
}
.clock-container {
padding: 0 2em;
}
.clock {
position: relative;
background-color: #f0f0f0;
border: 20px double #3b3b3b;
border-radius: 100%;
height: 17em;
width: 17em;
}
.hand {
position: absolute;
background: #1d1d1d;
border-radius: 5px;
left: 50%;
bottom: 50%;
transform-origin: bottom center; /* !important */
}
.hour {
height: 30%;
width: 0.3em;
}
.min {
height: 37%;
width: 0.3em;
}
.sec {
height: 41%;
width: 0.2em;
background-color: #b44848;
}
.center-dot {
position: absolute;
left: 50%;
width: 18px;
height: 18px;
border-radius: 100%;
margin-left: -7px;
margin-top: -146px;
background: #f0f0f0;
border: 3px solid #1d1d1d
}
.number {
position: absolute;
--rotation: 0;
color: #1d1d1d;
width: 100%;
height: 100%;
font: 400 18px/120% "Rubik", sans-serif;
text-align: center;
transform: rotate(var(--rotation));
padding: 3px;
}
.three {
--rotation: 90deg;
}
.nine {
--rotation: 270deg;
}
.six {
--rotation: 180deg;
}
.num-time {
color: #f0f0f0;
letter-spacing: 1px;
font: 400 18px/120% "Share Tech Mono", monospace;
}
@media screen and (max-width: 426px) {
h3 {
font-size: 24px;
}
p {
font-size: 14px;
padding: 0.3em 1em;
}
.clock-container {
padding: 0 1em;
}
.clock {
height: 13em;
width: 13em;
border: 17px double #3b3b3b;
}
.number {
font-size: 16px;
}
.num-time {
font-size: 16px;
}
.center-dot {
margin-left: -6px;
margin-top: -113px;
width: 16px;
height: 16px;
}
}