-
Notifications
You must be signed in to change notification settings - Fork 10
/
wc_base.css
131 lines (106 loc) · 2.11 KB
/
wc_base.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
/*
Autor: Raphael Hoeser
Datum: 11.07.2017
Version: 1.1
WordClock Default Style
*/
/*@CHARSET "ISO-8859-1";*/
/* Begin: WC Design --- feel free to change */
:root {
--on-color: #fff;
--off-color: #333;
--background-color: #000;
--dot-padding: 4%;
--fontSize: 2em;
}
.wc__row__letter {
transition: color 1s;
}
.wc__row__letter {
color: var(--off-color);
}
.wc__row__letter--bright {
color: var(--on-color);
}
.wc__row__stencil {
background: var(--off-color);
display: block;
width: calc(var(--fontSize) / 1);
height: var(--fontSize);
}
.wc__row__stencil.wc__row__letter--bright {
background: var(--on-color);
}
.wc__minute {
transition: background-color 1s;
}
.wc__minute {
background-color: var(--off-color);
}
.wc__minute--bright {
background-color: var(--on-color);
}
/* End: WC Design */
/* !!!WARNING!!! Don't change without thinking from here */
/* Begin: WC Layout (this has to be here) */
.wc--hidden {
display: none;
}
.wc__wrapper {
position: relative;
}
.wc {
width: calc(100% - 2 * var(--dot-padding));
height: calc(100% - 2 * var(--dot-padding));
display: flex;
position: absolute;
top: 50%;
left: 50%;
font-size: var(--fontSize);
transform: translate(-50%, -50%);
flex-direction: column;
justify-content: space-around;
}
.wc--lettersOut {
justify-content: space-between;
}
.wc__row {
width: 100%;
display: flex;
justify-content: space-around;
}
.wc--lettersOut > .wc__row {
justify-content: space-between;
}
.wc__minute {
width: 1vh;
height: 1vh;
border-radius: 50%;
position: absolute;
}
.wc__minute--stencil {
width: var(--fontSize);
height: var(--fontSize);
border-radius: 0%;
}
.wc__minute__1 {
top: var(--dot-padding);
left: var(--dot-padding);
transform: translate(-50%, -50%);
}
.wc__minute__2 {
top: var(--dot-padding);
right: var(--dot-padding);
transform: translate(50%, -50%);
}
.wc__minute__3 {
bottom: var(--dot-padding);
right: var(--dot-padding);
transform: translate(50%, 50%);
}
.wc__minute__4 {
bottom: var(--dot-padding);
left: var(--dot-padding);
transform: translate(-50%, 50%);
}
/* End: WC Layout */