txtdot/packages/server/static/common.css

97 lines
1.3 KiB
CSS
Raw Normal View History

* {
box-sizing: border-box;
}
:root {
--bg: #fdfbff;
--fg: #1a1c1e;
--outline: #74777f;
2023-08-16 13:35:03 +03:00
--accent: #255fa4;
--accent-hl: #003060;
2023-08-21 16:02:52 +03:00
--btn-hl: #4178c1;
--btn2-hl: rgba(189, 199, 220, 0.5);
--error: #ff897d;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #1a1c1e;
--fg: #e3e2e6;
--outline: #8e9199;
--accent: #a6c8ff;
--accent-hl: #d6e3ff;
--btn-hl: #79adf9;
--btn2-hl: rgba(189, 199, 220, 0.2);
2023-08-16 13:35:03 +03:00
--error: #ffb4ab;
}
}
body {
margin: 0;
2023-08-15 18:44:41 +03:00
padding: 0.5rem;
background: var(--bg);
color: var(--fg);
2023-08-29 19:14:54 +03:00
font-family: 'Noto Sans', 'Cantarell', 'Roboto', system-ui, sans-serif;
font-size: 1.1rem;
}
main {
max-width: 50rem;
2023-08-15 18:44:41 +03:00
width: 100%;
margin: auto;
}
2023-08-16 13:35:03 +03:00
.menu {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 0.375rem;
align-items: flex-start;
}
2023-08-16 13:35:03 +03:00
.button {
padding: 0.25rem 1rem;
2023-08-16 13:35:03 +03:00
border: none;
border-radius: 1rem;
background: var(--accent);
color: var(--bg);
2023-08-16 13:35:03 +03:00
text-decoration: none;
font-size: 1rem;
2023-08-16 13:35:03 +03:00
cursor: pointer;
transition: background-color 0.15s ease-out;
2023-08-16 13:35:03 +03:00
}
2023-08-16 13:35:03 +03:00
.button:hover {
background: var(--btn-hl);
}
.button.secondary {
background: var(--bg);
2023-08-16 13:35:03 +03:00
color: var(--fg);
border: 1px solid var(--outline);
}
.button.secondary:hover {
background: var(--btn2-hl);
2023-08-16 13:35:03 +03:00
}
2023-08-17 17:58:09 +03:00
a {
text-decoration: none;
}