smon/static/css/main.css

223 lines
3.6 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;
}
html,
body {
margin: 0;
padding: 0;
}
body {
background: #282828;
2024-05-25 15:00:01 +02:00
font-family: sans-serif;
2024-04-30 08:04:16 +02:00
font-weight: 300;
2024-04-29 08:36:13 +02:00
color: #d5c4a1;
font-size: 11pt;
}
h1,
h2 {
margin-bottom: 4px;
}
2024-05-28 07:37:22 +02:00
h1:first-child,
h2:first-child {
margin-top: 0px;
}
2024-04-29 08:36:13 +02:00
h1 {
font-size: 1.5em;
color: #fb4934;
2024-05-28 12:56:35 +02:00
font-weight: 800;
2024-04-29 08:36:13 +02:00
}
h2 {
font-size: 1.25em;
2024-05-28 07:37:22 +02:00
color: #b8bb26;
2024-05-28 12:56:35 +02:00
font-weight: 800;
2024-04-29 08:36:13 +02:00
}
2024-04-30 08:04:16 +02:00
a {
2024-05-28 07:37:22 +02:00
color: #3f9da1;
2024-04-30 08:04:16 +02:00
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
b {
2024-05-28 12:56:35 +02:00
font-weight: 800;
2024-04-30 08:04:16 +02:00
}
2024-04-29 08:36:13 +02:00
input[type="text"],
2024-04-30 08:04:16 +02:00
textarea,
select {
2024-05-25 15:00:01 +02:00
font-family: monospace;
2024-04-29 08:36:13 +02:00
background: #202020;
color: #d5c4a1;
padding: 4px 8px;
border: none;
font-size: 1em;
2024-05-25 15:00:01 +02:00
line-height: 1.5em;
2024-04-29 08:36:13 +02:00
}
button {
background: #202020;
color: #d5c4a1;
padding: 8px 32px;
2024-05-01 10:02:33 +02:00
border: 1px solid #535353;
2024-04-29 08:36:13 +02:00
font-size: 1em;
height: 3em;
}
2024-04-30 08:04:16 +02:00
button:focus {
background: #333;
}
2024-05-01 20:01:43 +02:00
.line {
grid-column: 1 / -1;
border-bottom: 1px solid #4e4e4e;
}
span.date {
color: #d5c4a1;
2024-05-28 12:56:35 +02:00
font-weight: 800;
2024-05-01 20:01:43 +02:00
}
span.time {
font-size: 0.9em;
color: #d5c4a1;
}
span.seconds {
display: none;
}
label {
user-select: none;
}
2024-05-25 15:00:01 +02:00
.description {
border: 1px solid #737373;
color: #3f9da1;
background: #202020;
padding: 4px 8px;
margin-top: 8px;
white-space: nowrap;
width: min-content;
border-radius: 8px;
}
2024-04-29 08:36:13 +02:00
#layout {
display: grid;
grid-template-areas: "menu content";
2024-05-22 07:32:53 +02:00
grid-template-columns: 96px 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;
background: #202020;
2024-05-22 07:49:50 +02:00
}
#menu .entry.selected {
background: #333;
}
#menu .entry.selected a {
color: #f7edd7 !important;
}
#menu .entry > a {
display: grid;
justify-items: center;
grid-template-rows: 38px
16px
;
2024-04-29 08:36:13 +02:00
padding: 16px;
2024-05-22 07:49:50 +02:00
color: #777;
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;
color: #fb4934;
}
#page .page-label img {
display: block;
}
#areas {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 16px;
}
#areas .area {
background: #333;
border-radius: 4px;
}
#areas .area > .name {
background: #fb4934;
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;
}
2024-05-28 07:37:22 +02:00
#areas .area .section.configuration {
margin-top: 8px;
margin-bottom: 8px;
}
2024-05-23 10:16:21 +02:00
#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
}
#areas .area .section .triggers .trigger {
display: grid;
grid-template-columns: min-content 1fr;
grid-gap: 8px;
align-items: center;
margin-top: 8px;
}
#areas .area .section .triggers .trigger img {
height: 16px;
}
#areas .area .section .triggers .trigger .label {
2024-05-01 10:02:33 +02:00
color: inherit;
}
dialog {
background: #202020;
border: 1px solid #606060;
color: #d5c4a1;
box-shadow: 10px 10px 15px 0px rgba(0, 0, 0, 0.25);
2024-04-29 08:36:13 +02:00
}