Files
MagicMirror/modules/default/clock/clock_styles.css
T

79 lines
1.6 KiB
CSS
Raw Normal View History

2016-07-08 18:45:48 -06:00
.clockCircle {
2017-07-08 21:31:05 +02:00
margin: 0 auto;
position: relative;
border-radius: 50%;
background-size: 100%;
2016-07-08 18:45:48 -06:00
}
.clockFace {
width: 100%;
height: 100%;
2016-07-08 18:45:48 -06:00
}
.clockFace::after {
position: absolute;
top: 50%;
left: 50%;
width: 6px;
height: 6px;
margin: -3px 0 0 -3px;
background: white;
border-radius: 3px;
content: "";
display: block;
2016-07-08 18:45:48 -06:00
}
.clockHour {
width: 0;
height: 0;
position: absolute;
top: 50%;
left: 50%;
margin: -2px 0 -2px -25%; /* numbers much match negative length & thickness */
padding: 2px 0 2px 25%; /* indicator length & thickness */
background: white;
-webkit-transform-origin: 100% 50%;
-ms-transform-origin: 100% 50%;
transform-origin: 100% 50%;
border-radius: 3px 0 0 3px;
2016-07-08 18:45:48 -06:00
}
.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: white;
-webkit-transform-origin: 50% 100%;
-ms-transform-origin: 50% 100%;
transform-origin: 50% 100%;
border-radius: 3px 0 0 3px;
2016-07-08 18:45:48 -06:00
}
.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: #888;
-webkit-transform-origin: 50% 100%;
-ms-transform-origin: 50% 100%;
transform-origin: 50% 100%;
2016-07-09 05:11:50 -06:00
}
2020-01-17 21:52:04 -08:00
2020-01-18 08:45:52 -08:00
.module.clock .sun,
.module.clock .moon {
2020-01-17 21:52:04 -08:00
display: flex;
}
2020-01-18 08:45:52 -08:00
.module.clock .sun > *,
.module.clock .moon > * {
2020-01-17 21:52:04 -08:00
flex: 1;
}