html-js-css-clocks/main.css

125 lines
2.1 KiB
CSS
Raw Permalink Normal View History

2021-01-25 16:26:38 +00:00
body{
background-color: #000;
margin: 0;
color: #fff;
font-family: "Fira Code";
}
nav{
display: flex;
font-weight: 300;
height: 5vh;
width: 100vw;
}
svg{
height: 100%;
width: 100%;
}
button{
background: none;
border: none;
color: #fff;
}
2021-01-25 16:39:49 +00:00
#s_start, #s_reset, #timer_button{
height: 42px;
width: 42px;
2021-01-25 16:26:38 +00:00
}
.select{
display: flex;
height: 90%;
justify-content: center;
width: inherit;
cursor: pointer;
}
.select.thing:before{
content: "";
height: 2px;
margin-top: 5vh;
background-color: white;
position: absolute;
width: 5%;
}
#clocks, #stopwatch, #timer{
display: none;
text-align: center;
justify-content: center;
height: 95vh;
}
#clocks.show, #stopwatch.show, #timer.show{
display: block;
}
.time{
2021-01-25 16:39:49 +00:00
font-size: 12vw;
2021-01-25 16:26:38 +00:00
margin: 0;
}
#main_time, #main_sw, #main_t{
margin: 0;
}
#msec_time, #msec_sw, #msec_t{
2021-01-25 16:39:49 +00:00
font-size: 2vw;
2021-01-25 16:26:38 +00:00
margin: 0;
}
#date{
margin: 0;
2021-01-25 16:47:15 +00:00
font-size: 2.25vw;
2021-01-25 16:26:38 +00:00
font-weight: 300;
justify-content: center;
display: flex;
align-items: center;
}
.timer_input{
width: 30px;
background: none;
color: #fff;
font-family: "Fira Code";
}
#analog, #sanalog, #tanalog{
width: 50vmin;
height: 50vmin;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
background: url("res/clockface.png");
background-size: cover;
}
#hour, #min, #sec, #shour, #smin, #ssec, #thour, #tmin, #tsec{
display: flex;
position: absolute;
justify-content: center;
}
#hour, #shour, #thour{
width: 30vmin;
height: 30vmin;
}
#min, #smin, #tmin{
width: 40vmin;
height: 40vmin;
}
#sec, #ssec, #tsec{
width: 45vmin;
height: 45vmin;
}
#hour::before, #shour::before, #thour::before{
content: "";
position: absolute;
background-color: yellow;
width: 9px;
height: 50%;
z-index: 10;
}
#min::before, #smin::before, #tmin::before{
content: "";
position: absolute;
width: 5px;
height: 50%;
background-color: #fff;
z-index: 11;
}
#sec::before, #ssec::before, #tsec::before{
content: "";
position: absolute;
width: 3px;
height: 55%;
background-color: #f00;
z-index: 12;
}