smon/static/css/default_light/main.css

275 lines
4.5 KiB
CSS
Raw Normal View History

2024-04-29 08:36:13 +02:00
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
*:focus {
outline: none;
}
[onClick] {
cursor: pointer;
}
2024-06-27 09:51:52 +02:00
#page-error {
display: none;
position: fixed;
z-index: 8192;
width: 500px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 48px;
border: 2px solid #a00;
font-weight: bold;
background: #fff;
box-shadow: 10px 10px 15px 0px rgba(0, 0, 0, 0.25);
}
#page-error.show {
display: block;
position: fixed;
}
#page-error .close {
position: absolute;
top: 16px;
right: 16px;
font-size: 1.5em;
}
2024-04-29 08:36:13 +02:00
#layout {
display: grid;
grid-template-areas: "menu content";
2024-06-29 15:20:31 +02:00
grid-template-columns: 128px 1fr;
2024-04-29 08:36:13 +02:00
height: 100vh;
}
#menu {
2024-05-22 07:32:53 +02:00
display: grid;
2024-05-22 07:49:50 +02:00
grid-template-columns: 1fr;
grid-template-rows: repeat(32, min-content);
2024-05-22 07:32:53 +02:00
align-items: start;
2024-04-29 08:36:13 +02:00
grid-area: menu;
2024-06-25 08:59:07 +02:00
background: #1b4e78;
2024-05-22 07:49:50 +02:00
}
#menu .entry.selected {
2024-06-25 08:59:07 +02:00
background: #2979b8;
2024-05-22 07:49:50 +02:00
}
#menu .entry.selected a {
2024-06-25 08:59:07 +02:00
color: #000 !important;
2024-05-22 07:49:50 +02:00
}
#menu .entry > a {
display: grid;
justify-items: center;
2024-06-27 09:51:52 +02:00
grid-template-rows: 38px 16px;
2024-04-29 08:36:13 +02:00
padding: 16px;
2024-06-25 08:59:07 +02:00
color: #7bb8eb;
2024-05-22 07:49:50 +02:00
text-decoration: none;
2024-04-29 08:36:13 +02:00
}
2024-05-22 07:49:50 +02:00
#menu .entry > a img {
2024-04-29 08:36:13 +02:00
display: block;
width: 32px;
}
2024-05-22 07:49:50 +02:00
#menu .entry > a .label {
2024-05-22 07:32:53 +02:00
font-size: 0.9em;
font-weight: bold;
}
2024-04-29 08:36:13 +02:00
#page {
grid-area: content;
padding: 32px;
}
#page .page-label {
display: grid;
grid-template-columns: min-content 1fr;
grid-gap: 12px;
align-items: center;
margin-bottom: 32px;
}
#page .page-label div {
2024-05-28 12:56:35 +02:00
font-weight: 800;
2024-04-29 08:36:13 +02:00
font-size: 1.5em;
2024-06-25 08:59:07 +02:00
color: #1b4e78;
2024-04-29 08:36:13 +02:00
}
#page .page-label img {
display: block;
}
#areas {
display: flex;
flex-wrap: wrap;
2024-06-25 10:50:31 +02:00
gap: 24px;
2024-04-29 08:36:13 +02:00
margin-top: 16px;
}
#areas .area {
2024-06-25 08:59:07 +02:00
background: #2979b8;
2024-04-29 08:36:13 +02:00
border-radius: 4px;
}
#areas .area > .name {
2024-06-25 08:59:07 +02:00
background: #1b4e78;
2024-04-29 08:36:13 +02:00
color: #fff;
2024-05-28 12:56:35 +02:00
font-weight: 800;
2024-04-29 08:36:13 +02:00
padding: 4px 16px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
#areas .area .section {
margin: 8px 16px;
2024-05-23 10:16:21 +02:00
margin-top: 12px;
margin-bottom: 20px;
}
#areas .area .section:last-child {
margin-bottom: 12px;
2024-04-29 08:36:13 +02:00
}
2024-05-01 10:02:33 +02:00
#areas .area .section .create {
display: grid;
grid-template-columns: min-content min-content;
grid-gap: 8px;
white-space: nowrap;
}
#areas .area .section .create .new {
2024-05-28 12:56:35 +02:00
font-weight: 800;
2024-04-29 08:36:13 +02:00
}
2024-05-01 10:02:33 +02:00
#areas .area .section > .name {
2024-05-28 12:56:35 +02:00
font-weight: 800;
2024-04-29 08:36:13 +02:00
}
2024-05-01 10:02:33 +02:00
dialog {
2024-06-25 08:59:07 +02:00
background: #1b4e78;
border: 1px solid #3f90d4;
2024-06-25 10:50:31 +02:00
color: #555;
2024-05-01 10:02:33 +02:00
box-shadow: 10px 10px 15px 0px rgba(0, 0, 0, 0.25);
2024-04-29 08:36:13 +02:00
}
2024-06-25 08:59:07 +02:00
html,
body {
margin: 0;
padding: 0;
}
body {
background: #fff;
font-family: sans-serif;
font-weight: 300;
2024-06-25 10:50:31 +02:00
color: #555;
2024-06-25 08:59:07 +02:00
font-size: 11pt;
}
h1,
h2 {
margin-bottom: 4px;
}
h1:first-child,
h2:first-child {
margin-top: 0px;
}
h1 {
2024-06-25 09:49:09 +02:00
margin-top: 32px;
2024-06-25 08:59:07 +02:00
font-size: 1.5em;
color: #1b4e78;
font-weight: 800;
}
h2 {
font-size: 1.25em;
color: #2c6e97;
font-weight: 800;
}
a {
color: #2c6e97;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
b {
font-weight: 800;
}
input[type="text"],
textarea,
select {
font-family: monospace;
background: #fff;
2024-06-25 10:50:31 +02:00
color: #555;
2024-06-25 08:59:07 +02:00
padding: 4px 8px;
border: 1px solid #484848;
font-size: 1em;
line-height: 1.5em;
}
button {
background: #1b4e78;
2024-06-25 10:50:31 +02:00
color: #555;
2024-06-25 08:59:07 +02:00
padding: 8px 32px;
border: 1px solid #2e84cb;
font-size: 1em;
height: 3em;
}
button:focus {
background: #2979b8;
}
.line {
grid-column: 1 / -1;
border-bottom: 1px solid #d9d9d9;
}
span.date {
2024-06-25 10:50:31 +02:00
color: #555;
2024-06-25 08:59:07 +02:00
font-weight: 800;
}
span.time {
font-size: 0.9em;
2024-06-25 10:50:31 +02:00
color: #555;
2024-06-25 08:59:07 +02:00
}
span.seconds {
display: none;
}
2024-07-04 15:14:24 +02:00
span.ok {
color: #0a0;
}
span.error {
color: #a00;
}
2024-06-25 08:59:07 +02:00
label {
user-select: none;
}
.description {
border: 1px solid #123450;
color: #2c6e97;
background: #fff;
padding: 4px 8px;
margin-top: 8px;
white-space: nowrap;
width: min-content;
border-radius: 8px;
}
2024-07-04 13:29:39 +02:00
#time-selector {
display: grid;
grid-template-columns: min-content min-content;
grid-gap: 6px 16px;
width: min-content;
2024-07-04 16:29:53 +02:00
background-color: #fff;
border: 1px solid #2979b8;
padding: 16px;
2024-07-04 13:29:39 +02:00
border-radius: 6px;
}
2024-07-04 15:14:24 +02:00
#time-selector.hidden {
display: none;
}
2024-07-04 13:29:39 +02:00
#time-selector button {
width: 100px;
margin-top: 12px;
justify-self: end;
}
#time-selector #time-filter {
display: grid;
grid-template-columns: min-content repeat(3, min-content);
grid-gap: 16px;
margin-top: 16px;
align-items: center;
justify-items: center;
}
#time-selector #time-filter .header-1 {
font-weight: bold;
justify-self: start;
}
#time-selector #time-filter .header-2 {
font-weight: bold;
justify-self: start;
grid-column: 2 / -1;
}
#time-selector #time-filter .preset {
white-space: nowrap;
justify-self: start;
padding-right: 32px;
}