blob: 9089bc6306a327623ebeb5893af5d3db445eff40 (
plain)
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
|
/* MASU */
/* Design decisions:
* * Minimum viewport resolution: 440x440px
* * simple is better
*
* Good and simple UI sites:
* * https://archlinux.org/packages/ (https://github.com/archlinux/archweb)
* * https://suckless.org/
*/
body {
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
}
header {
width: 100%;
height: 80px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
header button, header label {
margin: 0 10px;
}
#container {
width: 100%;
/* max-width: 1920px; */
padding: 20px;
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
.block {
width: 420px;
height: 420px;
flex-shrink: 0;
padding: 5px;
border: 1px solid black;
}
@media (max-width: 440px) {
.grid {
padding: 20px 0;
}
}
/* tooltip: span element with "title" attribute (KISS) */
span[title] {
/*border-bottom: 1px dotted;*/
text-decoration: dotted underline;
}
/* block_time */
#time .block {
justify-content: center;
}
#time-localClock {
}
#time-worldClock {
font-size: 12px;
}
#time-timeVisualizer .grid {
display: grid;
grid-template-columns: repeat(8, 42px);
grid-template-rows: repeat(3, 42px);
gap: 2px;
background: #f0f0f0;
padding: 5px;
width: fit-content;
margin: 0 auto;
}
#time-timeVisualizer .cell {
width: 42px;
height: 42px;
background: #ffffff;
position: relative;
border: 1px solid #ddd;
}
#time-timeVisualizer .sleep {
background: #e6f3ff;
}
#time-timeVisualizer .past {
background: #cccccc;
}
#time-timeVisualizer .current::after {
content: '';
position: absolute;
left: 0;
top: 0;
height: 100%;
width: var(--fill);
background: #cccccc;
}
#time-timeVisualizer .timeline {
position: absolute;
width: 2px;
height: 100%;
background: #000000;
z-index: 1;
}
/* block_weather */
|