smon/static/css/default_light/main.css
2024-07-05 12:04:56 +02:00

292 lines
4.8 KiB
CSS

.table {
display: grid;
grid-gap: 6px 16px;
align-items: center;
margin-top: 32px;
margin-bottom: 32px;
background-color: #2979b8;
padding: 16px 24px;
width: min-content;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.table .row {
grid-column: 1 / -1;
}
.table > div {
white-space: nowrap;
line-height: 24px;
}
.table .header {
font-size: 0.85em;
font-weight: bold;
color: #7bb8eb;
line-height: unset !important;
}
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
*:focus {
outline: none;
}
[onClick] {
cursor: pointer;
}
#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;
}
#layout {
display: grid;
grid-template-areas: "menu content";
grid-template-columns: 128px 1fr;
height: 100vh;
}
#menu {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: repeat(32, min-content);
align-items: start;
grid-area: menu;
background: #1b4e78;
}
#menu .entry.selected {
background: #2979b8;
}
#menu .entry.selected a {
color: #000 !important;
}
#menu .entry > a {
display: grid;
justify-items: center;
grid-template-rows: 38px 16px;
padding: 16px;
color: #7bb8eb;
text-decoration: none;
}
#menu .entry > a img {
display: block;
width: 32px;
}
#menu .entry > a .label {
font-size: 0.9em;
font-weight: bold;
}
#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 {
font-weight: 800;
font-size: 1.5em;
color: #1b4e78;
}
#page .page-label img {
display: block;
}
#areas {
display: flex;
flex-wrap: wrap;
gap: 24px;
margin-top: 16px;
}
#areas .area {
background: #2979b8;
border-radius: 4px;
}
#areas .area > .name {
background: #1b4e78;
color: #fff;
font-weight: 800;
padding: 4px 16px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
#areas .area .section {
margin: 8px 16px;
margin-top: 12px;
margin-bottom: 20px;
}
#areas .area .section:last-child {
margin-bottom: 12px;
}
#areas .area .section .create {
display: grid;
grid-template-columns: min-content min-content;
grid-gap: 8px;
white-space: nowrap;
}
#areas .area .section .create .new {
font-weight: 800;
}
#areas .area .section > .name {
font-weight: 800;
}
dialog {
background: #1b4e78;
border: 1px solid #3f90d4;
color: #555;
box-shadow: 10px 10px 15px 0px rgba(0, 0, 0, 0.25);
}
html,
body {
margin: 0;
padding: 0;
}
body {
background: #fff;
font-family: sans-serif;
font-weight: 300;
color: #555;
font-size: 11pt;
}
h1,
h2 {
margin-bottom: 4px;
}
h1:first-child,
h2:first-child {
margin-top: 0px;
}
h1 {
margin-top: 32px;
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;
color: #555;
padding: 4px 8px;
border: 1px solid #484848;
font-size: 1em;
line-height: 1.5em;
}
button {
background: #1b4e78;
color: #555;
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 {
color: #555;
font-weight: 800;
}
span.time {
font-size: 0.9em;
color: #555;
}
span.seconds {
display: none;
}
span.ok {
color: #0a0;
}
span.error {
color: #a00;
}
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;
}
#time-selector {
position: absolute;
top: 16px;
right: 16px;
display: grid;
grid-template-columns: 8px repeat(2, min-content) 8px 1px 8px repeat(3, min-content) 8px repeat(3, min-content) 8px 1px 8px repeat(2, min-content) 8px;
grid-gap: 6px 8px;
align-items: center;
width: min-content;
background-color: #fff;
border: 1px solid #2979b8;
border-radius: 6px;
}
#time-selector.hidden {
display: none;
}
#time-selector .vertical-line {
background-color: #2979b8;
}
#time-selector .header {
padding-top: 12px;
font-weight: bold;
font-size: 0.85em;
}
#time-selector button {
width: 100px;
margin-top: 12px;
justify-self: end;
}
#time-selector div {
white-space: nowrap;
}