Refactor clock to allow finer placement of analog clock

This commit is contained in:
rejas
2021-08-07 10:05:45 +02:00
parent 4c345c4f33
commit f9639d9705
2 changed files with 92 additions and 98 deletions

View File

@@ -1,5 +1,26 @@
.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 {
margin: 0 auto;
place-self: center;
position: relative;
border-radius: 50%;
background-size: 100%;
@@ -61,6 +82,10 @@
transform-origin: 50% 100%;
}
.digital {
text-align: center;
}
.module.clock .sun,
.module.clock .moon {
display: flex;