|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- .clockGrid {
- display: inline-flex;
- gap: 15px;
- }
-
- .clockGrid--left {
- flex-direction: row;
- }
-
- .clockGrid--right {
- flex-direction: row-reverse;
- }
-
- .clockGrid--top {
- flex-direction: column;
- }
-
- .clockGrid--bottom {
- flex-direction: column-reverse;
- }
-
- .clockCircle {
- place-self: center;
- position: relative;
- border-radius: 50%;
- background-size: 100%;
- }
-
- .clockFace {
- width: 100%;
- height: 100%;
- }
-
- .clockFace::after {
- position: absolute;
- top: 50%;
- left: 50%;
- width: 6px;
- height: 6px;
- margin: -3px 0 0 -3px;
- background: var(--color-text-bright);
- border-radius: 3px;
- content: "";
- display: block;
- }
-
- .clockHour {
- width: 0;
- height: 0;
- position: absolute;
- top: 50%;
- left: 50%;
- margin: -2px 0 -2px -25%; /* numbers must match negative length & thickness */
- padding: 2px 0 2px 25%; /* indicator length & thickness */
- background: var(--color-text-bright);
- transform-origin: 100% 50%;
- border-radius: 3px 0 0 3px;
- }
-
- .clockMinute {
- 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 */
- background: var(--color-text-bright);
- transform-origin: 50% 100%;
- border-radius: 3px 0 0 3px;
- }
-
- .clockSecond {
- 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 */
- background: var(--color-text);
- transform-origin: 50% 100%;
- }
-
- .module.clock .sun,
- .module.clock .moon {
- display: flex;
- }
-
- .module.clock .sun > *,
- .module.clock .moon > * {
- flex: 1;
- }
|