blob: 638de52aaed25ce658b45ba17875279e7492ad20 (
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
|
// Widget configuration.
form.dashboard-widget-clock {
.fields-group {
&.fields-group-date,
&.fields-group-time,
&.fields-group-tzone {
display: grid;
grid-template-columns: 60px 120px repeat(2, minmax(60px, max-content) auto);
align-items: center;
column-gap: 10px;
row-gap: 5px;
label {
text-align: right;
}
.field-size {
input {
margin-right: 5px;
}
}
}
&.fields-group-time {
.field-format {
grid-column: 4 / -1;
}
}
&.fields-group-tzone {
.form-field {
&.field-tzone-timezone,
&.field-tzone-format {
grid-column: 2 / -1;
}
}
}
}
}
// Widget view.
div.dashboard-widget-clock {
.clock-digital {
$line-height: 1.14;
box-sizing: border-box;
min-height: 100%;
padding: 10px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.clock-date,
.clock-time,
.clock-time-zone {
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: calc(var(--content-height) * var(--widget-clock-font) / #{$line-height});
line-height: $line-height;
flex-shrink: 0;
}
.bold {
font-weight: bold;
}
.clock-disabled {
font-size: calc(var(--content-height) * 0.6 / #{$line-height});
color: $font-alt-color;
font-weight: bold;
}
}
}
|