smon/static/less/theme.less

144 lines
1.7 KiB
Plaintext
Raw Normal View History

2024-04-29 08:36:13 +02:00
@bg1: #282828;
@bg2: #202020;
@bg3: #333;
@text1: #d5c4a1;
@text2: #f7edd7;
@error: #fb4934;
@color1: #fb4934;
2024-04-30 08:04:16 +02:00
@color2: #fabd2f;
@color3: #b8bb26;
@color4: #3f9da1;
@color5: #fe8019;
2024-05-28 12:56:35 +02:00
@bold: 800;
2024-04-29 08:36:13 +02:00
2024-05-01 20:01:43 +02:00
.lighterOrDarker(@color, @amount) {
@result: lighten(@color, @amount);
}
2024-04-29 08:36:13 +02:00
html {
2024-05-01 20:01:43 +02:00
box-sizing: border-box;
2024-04-29 08:36:13 +02:00
}
2024-05-01 20:01:43 +02:00
*,
*:before,
*:after {
box-sizing: inherit;
2024-04-29 08:36:13 +02:00
}
*:focus {
outline: none;
}
[onClick] {
2024-05-01 20:01:43 +02:00
cursor: pointer;
2024-04-29 08:36:13 +02:00
}
html,
body {
margin: 0;
padding: 0;
}
body {
background: @bg1;
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: @text1;
font-size: 11pt;
}
2024-05-01 20:01:43 +02:00
h1,
h2 {
2024-04-29 08:36:13 +02:00
margin-bottom: 4px;
2024-05-28 07:37:22 +02:00
&:first-child {
margin-top: 0px;
}
2024-04-29 08:36:13 +02:00
}
h1 {
font-size: 1.5em;
color: @color1;
font-weight: @bold;
2024-04-29 08:36:13 +02:00
}
h2 {
font-size: 1.25em;
2024-05-28 07:37:22 +02:00
color: @color3;
font-weight: @bold;
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: @color4;
2024-04-30 08:04:16 +02:00
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
b {
font-weight: @bold;
}
2024-05-01 20:01:43 +02:00
input[type="text"],
textarea,
select {
2024-05-25 15:00:01 +02:00
font-family: monospace;
2024-04-29 08:36:13 +02:00
background: @bg2;
color: @text1;
padding: 4px 8px;
border: none;
font-size: 1em;
2024-05-25 15:00:01 +02:00
line-height: 1.5em; // fix for chrome hiding underscores
2024-04-29 08:36:13 +02:00
}
button {
background: @bg2;
color: @text1;
padding: 8px 32px;
2024-05-01 10:02:33 +02:00
border: 1px solid lighten(@bg2, 20%);
2024-04-29 08:36:13 +02:00
font-size: 1em;
height: 3em;
2024-04-30 08:04:16 +02:00
&:focus {
background: @bg3;
}
2024-04-29 08:36:13 +02:00
}
2024-05-01 20:01:43 +02:00
.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;
}
2024-05-25 15:00:01 +02:00
.description {
border: 1px solid .lighterOrDarker(@bg3, 25%)[@result];
color: @color4;
background: @bg2;
padding: 4px 8px;
margin-top: 8px;
white-space: nowrap;
width: min-content;
border-radius: 8px;
}