Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
109 lines (87 loc) · 1.79 KB
/
Copy pathstyle.css
File metadata and controls
109 lines (87 loc) · 1.79 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
98
99
100
101
102
/* My Project no. #12 */
:root {
--hue: 0;
--alpha: 1;
}
* {
padding: 0;
margin: 0;
font-family: "Madimi One", sans-serif;
}
body {
background-color: #070709;
color: hsl(var(--hue), 100%, 50%);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
text-shadow: 0 0 20px hsl(var(--hue), 100%, 50%);
}
#container {
width: 300px;
height: 400px;
background-color: #100F14;
border-radius: 20px;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
box-sizing: border-box;
}
h2 {
font-size: 2em;
margin: 20px;
width: 100%;
text-align: center;
border-bottom: 2px solid hsl(var(--hue), 100%, 50%);
}
#clock-container {
width: 100%;
font-size: 2.5em;
}
#hour-min-container {
height: 100px;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
#second-container {
height: 100px;
display: flex;
justify-content: center;
align-items: center;
}
.time {
width: 100px;
height: 100px;
margin: 0 5px;
background-color: hsla(var(--hue), 100%, 50%, 0.1);
border: 1px solid hsl(var(--hue), 100%, 50%);
border-radius: 10px;
box-shadow: inset 0 0 5px hsla(var(--hue), 100%, 50%, 0.4);
inset -2px 2px 15px hsla(var(--hue), 100%, 50%, 0.5);
font-size: 1.5em;
overflow: hidden;
}
.toggle {
animation: swipe 1s infinite;
}
@keyframes swipe {
50%, to {
transform: translateY(-100px);
}
}
.text {
width: 100px;
height: 100px;
display: flex;
justify-content: center;
align-items: center;
}
#colon {
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 8;
}