2023-02-19 21:36:50 +01:00
|
|
|
.clock-grid {
|
2021-08-07 10:05:45 +02:00
|
|
|
display: inline-flex;
|
|
|
|
gap: 15px;
|
|
|
|
}
|
|
|
|
|
2023-02-19 21:36:50 +01:00
|
|
|
.clock-grid-left {
|
2021-08-07 10:05:45 +02:00
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2023-02-19 21:36:50 +01:00
|
|
|
.clock-grid-right {
|
2021-08-07 10:05:45 +02:00
|
|
|
flex-direction: row-reverse;
|
|
|
|
}
|
|
|
|
|
2023-02-19 21:36:50 +01:00
|
|
|
.clock-grid-top {
|
2021-08-07 10:05:45 +02:00
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2023-02-19 21:36:50 +01:00
|
|
|
.clock-grid-bottom {
|
2021-08-07 10:05:45 +02:00
|
|
|
flex-direction: column-reverse;
|
|
|
|
}
|
|
|
|
|
2023-02-19 21:36:50 +01:00
|
|
|
.clock-circle {
|
2021-08-07 10:05:45 +02:00
|
|
|
place-self: center;
|
2020-05-11 22:22:32 +02:00
|
|
|
position: relative;
|
|
|
|
border-radius: 50%;
|
|
|
|
background-size: 100%;
|
|
|
|
}
|
|
|
|
|
2023-02-19 21:36:50 +01:00
|
|
|
.clock-face {
|
2020-05-11 22:22:32 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2023-02-19 21:36:50 +01:00
|
|
|
.clock-face::after {
|
2020-05-11 22:22:32 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
width: 6px;
|
|
|
|
height: 6px;
|
|
|
|
margin: -3px 0 0 -3px;
|
2021-04-17 09:50:12 +02:00
|
|
|
background: var(--color-text-bright);
|
2020-05-11 22:22:32 +02:00
|
|
|
border-radius: 3px;
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2023-02-19 21:36:50 +01:00
|
|
|
.clock-hour {
|
2020-05-11 22:22:32 +02:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
2021-03-17 22:29:20 +01:00
|
|
|
margin: -2px 0 -2px -25%; /* numbers must match negative length & thickness */
|
2020-05-11 22:22:32 +02:00
|
|
|
padding: 2px 0 2px 25%; /* indicator length & thickness */
|
2021-04-17 09:50:12 +02:00
|
|
|
background: var(--color-text-bright);
|
2020-05-11 22:22:32 +02:00
|
|
|
transform-origin: 100% 50%;
|
|
|
|
border-radius: 3px 0 0 3px;
|
|
|
|
}
|
|
|
|
|
2023-02-19 21:36:50 +01:00
|
|
|
.clock-minute {
|
2020-05-11 22:22:32 +02:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
margin: -35% -2px 0; /* numbers must match negative length & thickness */
|
|
|
|
padding: 35% 2px 0; /* indicator length & thickness */
|
2021-04-17 09:50:12 +02:00
|
|
|
background: var(--color-text-bright);
|
2020-05-11 22:22:32 +02:00
|
|
|
transform-origin: 50% 100%;
|
|
|
|
border-radius: 3px 0 0 3px;
|
|
|
|
}
|
|
|
|
|
2023-02-19 21:36:50 +01:00
|
|
|
.clock-second {
|
2020-05-11 22:22:32 +02:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
margin: -38% -1px 0 0; /* numbers must match negative length & thickness */
|
|
|
|
padding: 38% 1px 0 0; /* indicator length & thickness */
|
2021-04-17 09:50:12 +02:00
|
|
|
background: var(--color-text);
|
2020-05-11 22:22:32 +02:00
|
|
|
transform-origin: 50% 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module.clock .sun,
|
|
|
|
.module.clock .moon {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module.clock .sun > *,
|
|
|
|
.module.clock .moon > * {
|
|
|
|
flex: 1;
|
|
|
|
}
|