smon/static/less/main.less

283 lines
3.6 KiB
Plaintext
Raw Permalink Normal View History

2024-06-25 08:59:07 +02:00
@import "theme-@{THEME}.less";
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
*:focus {
outline: none;
}
[onClick] {
cursor: pointer;
}
2024-04-29 08:36:13 +02:00
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);
&.show {
display: block;
position: fixed;
}
.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-25 08:59:07 +02:00
grid-template-columns: 104px 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: @bg2;
2024-05-22 07:32:53 +02:00
2024-05-22 07:49:50 +02:00
.entry {
2024-05-22 07:32:53 +02:00
&.selected {
2024-05-22 07:49:50 +02:00
background: @bg3;
2024-06-27 09:51:52 +02:00
a {
color: @text2 !important;
}
2024-05-22 07:49:50 +02:00
}
&>a {
display: grid;
justify-items: center;
grid-template-rows:
2024-06-27 09:51:52 +02:00
38px 16px;
2024-05-22 07:49:50 +02:00
padding: 16px;
2024-06-25 08:59:07 +02:00
color: @text3;
2024-05-22 07:49:50 +02:00
text-decoration: none;
img {
display: block;
width: 32px;
}
.label {
font-size: 0.9em;
font-weight: bold;
}
2024-05-22 07:32:53 +02:00
}
}
2024-04-29 08:36:13 +02:00
}
#page {
grid-area: content;
padding: 32px;
.page-label {
display: grid;
grid-template-columns: min-content 1fr;
grid-gap: 12px;
align-items: center;
margin-bottom: 32px;
div {
font-weight: @bold;
2024-04-29 08:36:13 +02:00
font-size: 1.5em;
color: @color1;
}
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;
.area {
background: @bg3;
border-radius: 4px;
&>.name {
background: @color1;
color: #fff;
2024-05-28 12:56:35 +02:00
font-weight: @bold;
2024-04-29 08:36:13 +02:00
padding: 4px 16px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.section {
margin: 8px 16px;
2024-05-23 10:16:21 +02:00
margin-top: 12px;
margin-bottom: 20px;
&:last-child {
margin-bottom: 12px;
}
2024-04-29 08:36:13 +02:00
2024-05-01 10:02:33 +02:00
.create {
display: grid;
grid-template-columns: min-content min-content;
grid-gap: 8px;
white-space: nowrap;
.new {
font-weight: @bold;
}
}
2024-04-29 08:36:13 +02:00
&>.name {
2024-05-01 10:02:33 +02:00
font-weight: @bold;
2024-04-29 08:36:13 +02:00
}
}
}
}
2024-05-01 10:02:33 +02:00
dialog {
background: @bg2;
border: 1px solid lighten(@bg2, 25%);
color: @text1;
box-shadow: 10px 10px 15px 0px rgba(0, 0, 0, 0.25);
}
2024-06-25 08:59:07 +02:00
html,
body {
margin: 0;
padding: 0;
}
body {
background: @bg1;
font-family: sans-serif;
font-weight: 300;
color: @text1;
font-size: 11pt;
}
h1,
h2 {
margin-bottom: 4px;
2024-06-27 09:51:52 +02:00
2024-06-25 08:59:07 +02:00
&: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: @color1;
font-weight: @bold;
}
h2 {
font-size: 1.25em;
color: @color3;
font-weight: @bold;
}
a {
color: @color4;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
b {
font-weight: @bold;
}
input[type="text"],
textarea,
select {
font-family: monospace;
background: @bg1;
color: @text1;
padding: 4px 8px;
border: 1px solid #484848;
font-size: 1em;
line-height: 1.5em; // fix for chrome hiding underscores
}
button {
background: @bg2;
color: @text1;
padding: 8px 32px;
border: 1px solid lighten(@bg2, 20%);
font-size: 1em;
height: 3em;
&:focus {
background: @bg3;
}
}
.line {
grid-column: 1 / -1;
border-bottom: 1px solid .lighterOrDarker(@bg1, 15%)[@result];
}
span.date {
color: @text1;
font-weight: @bold;
}
span.time {
font-size: 0.9em;
color: @text1;
}
span.seconds {
display: none;
}
label {
user-select: none;
}
.description {
border: 1px solid .lighterOrDarker(@bg3, 25%)[@result];
color: @color4;
background: @bg1;
padding: 4px 8px;
margin-top: 8px;
white-space: nowrap;
width: min-content;
border-radius: 8px;
}