Clock/styles/clock.css

148 lines
2.5 KiB
CSS
Raw Normal View History

2022-09-09 03:45:41 +00:00
.body {
width: calc(100vw - 64px);
height: 100%;
2022-09-09 03:45:41 +00:00
position: fixed;
left: 64px;
top: 0;
padding: 0 16px;
box-sizing: border-box;
z-index: 1;
overflow-y: auto;
}
.body .clock, .body .timer, .body .noteobject {
2022-09-09 03:45:41 +00:00
width: 100%;
min-height: max-content;
border-radius: 8px;
position: relative;
overflow: hidden;
padding: 16px;
box-sizing: border-box;
2022-09-09 15:09:27 +00:00
color: var(--foreground);
2022-09-09 03:45:41 +00:00
margin: 16px 0;
2022-09-09 15:42:54 +00:00
zoom: 1.25;
2022-09-09 03:45:41 +00:00
}
.body .clock::before, .body .timer::before, .body .noteobject::before {
2022-09-09 03:45:41 +00:00
content: "";
background-color: #FFFFFF40;
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
backdrop-filter: blur(8px);
z-index: -1;
}
.body .timer-paused::before {
content: "";
background-color: #40404040;
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
backdrop-filter: blur(8px);
z-index: -1;
}
2022-09-09 03:45:41 +00:00
.body .clock h1, .body .timer h1, .body .noteobject h1 {
2022-09-09 03:45:41 +00:00
margin: 0;
margin-top: 16px;
padding: 0;
2022-09-09 15:09:27 +00:00
color: var(--foreground);
2022-09-09 03:45:41 +00:00
font-weight: lighter;
vertical-align: middle;
}
.body .clock div.labels, .body .timer div.labels, .body .noteobject div.labels {
2022-09-09 03:45:41 +00:00
display: inline-block;
vertical-align: middle;
}
.body .clock div.labels *, .body .timer div.labels *, .body .noteobject div.labels * {
2022-09-09 03:45:41 +00:00
margin: 0;
padding: 0;
2022-09-09 15:09:27 +00:00
color: var(--foreground);
2022-09-09 03:45:41 +00:00
font-weight: lighter;
display: inline-block;
vertical-align: middle;
}
canvas {
margin: 0;
margin-right: 16px;
padding: 0;
vertical-align: middle;
}
textarea {
resize: none;
width: 100%;
margin-top: 8px;
box-sizing: border-box;
height: max-content;
2022-09-09 15:42:54 +00:00
font-size: 48px;
2022-09-09 03:45:41 +00:00
max-height: 100%;
padding: 8px;
border: none;
border-radius: 4px;
background-color: #00000040;
2022-09-09 15:09:27 +00:00
color: var(--foreground);
2022-09-09 03:45:41 +00:00
}
.deleteclock {
margin-top: 16px;
min-width: 32px;
2022-09-09 03:45:41 +00:00
width: 32px;
height: 32px;
padding: 0;
border: none;
background-color: #FF000080;
2022-09-09 15:09:27 +00:00
color: var(--foreground);
2022-09-09 03:45:41 +00:00
border-radius: 16px;
transition: background-color 0.125s;
}
.deleteclock:focus {
background-color: #FF0000A0;
}
.deleteclock:hover {
background-color: #FF0000C0;
}
.deleteclock:active {
background-color: #FF0000FF;
}
.normalclock {
margin-top: 16px;
min-width: 32px;
width: 32px;
height: 32px;
padding: 0;
border: none;
background-color: #00000040;
color: var(--foreground);
border-radius: 16px;
transition: background-color 0.125s;
}
.normalclock:focus {
background-color: #00000030;
}
.normalclock:hover {
background-color: #00000010;
}
.normalclock:active {
background-color: #00000020;
2022-09-09 03:45:41 +00:00
}