hibiscus/public/main.css

108 lines
2.7 KiB
CSS
Raw Normal View History

2024-05-08 13:12:10 +03:00
/* Default theme */
:root {
/* Light theme */
--text-light: #454545;
--bg-light: #f5f0e1;
--clickable-light: #f85552;
--clickable-hover-light: #e66868;
--clickable-label-light: #f5f2ee;
--text-hover-light: #656565;
--textarea-bg-light: #f5f2ee;
--textarea-border-light: #454545;
/* Dark theme */
--text-dark: #f5f0e1;
--bg-dark: #2c2825;
--clickable-dark: #f85552;
--clickable-hover-dark: #e66868;
--clickable-label-dark: #f5f2ee;
--text-hover-dark: #656565;
--textarea-bg-dark: #383030;
--textarea-border-dark: #454545;
}
2024-03-15 18:34:24 +03:00
body {
2024-05-08 13:12:10 +03:00
color: var(--text-light);
background-color: var(--bg-light);
2024-06-02 00:36:37 +03:00
margin: auto auto;
2024-03-18 00:51:27 +03:00
max-width: 640px;
2024-03-15 18:34:24 +03:00
padding: 1em;
line-height: 1.4;
font-family: serif;
min-height: 85vh;
display: flex;
flex-direction: column;
}
2024-05-08 13:12:10 +03:00
a, a:visited { color: var(--clickable-light); }
a:hover, a:visited:hover { color: var(--clickable-hover-light); }
a.no-accent, a.no-accent:visited { color: var(--text-light); }
a.no-accent:hover, a.no-accent:visited:hover { color: var(--text-hover-light); }
2024-03-15 18:34:24 +03:00
2024-04-23 14:13:45 +03:00
h2 { margin-bottom:12px; }
.list-title { margin-bottom: 0}
.list-desc { margin-top: 0 }
2024-03-15 18:34:24 +03:00
textarea, input {
2024-05-08 13:12:10 +03:00
background: var(--textarea-bg-light);
2024-03-18 00:51:27 +03:00
max-width: 640px;
width: 100%;
display: block;
resize: vertical;
outline: 0;
box-shadow: none;
2024-05-08 13:12:10 +03:00
border: 0.0625em solid var(--textarea-border-light);
2024-03-18 00:51:27 +03:00
margin-bottom: 1em;
2024-03-26 14:44:58 +03:00
font-size: 18px;
2024-03-18 00:51:27 +03:00
}
2024-03-28 10:56:13 +03:00
input { height: 2.5em; }
2024-03-15 18:34:24 +03:00
button {
2024-05-08 13:12:10 +03:00
background-color: var(--clickable-light);
2024-03-15 18:34:24 +03:00
border: none;
2024-05-08 13:12:10 +03:00
color: var(--clickable-label-light);
2024-03-15 18:34:24 +03:00
padding: 10px;
text-align: center;
text-decoration: none;
display: inline-block;
2024-03-18 00:51:27 +03:00
font-size: 20px;
2024-03-15 18:34:24 +03:00
margin: 4px 2px;
2024-03-18 00:51:27 +03:00
border-radius: 4px;
2024-03-15 18:34:24 +03:00
cursor: pointer;
2024-03-18 00:51:27 +03:00
max-width: 640px;
width: 100%;
2024-03-15 18:34:24 +03:00
}
2024-05-08 13:12:10 +03:00
button:hover { background-color: var(--clickable-hover-light); }
2024-03-15 18:34:24 +03:00
2024-03-28 10:56:13 +03:00
footer { margin-top: auto; }
2024-03-18 12:46:20 +03:00
header > h1, header > p {
2024-03-28 10:56:13 +03:00
margin-bottom: 0;
margin-top: 0;
2024-03-18 12:46:20 +03:00
}
2024-03-18 00:51:27 +03:00
/* Dark theme */
@media (prefers-color-scheme: dark) {
body {
2024-05-08 13:12:10 +03:00
color: var(--text-dark);
background-color: var(--bg-dark);
2024-03-18 00:51:27 +03:00
}
textarea, input {
2024-05-08 13:12:10 +03:00
color: var(--text-dark);
background-color: var(--textarea-bg-dark);
border-color: var(--textarea-border-dark)
}
a, a:visited { color: var(--clickable-dark); }
a:hover, a:visited:hover { color: var(--clickable-hover-dark); }
a.no-accent, a.no-accent:visited { color: var(--text-dark); }
a.no-accent:hover, a.no-accent:visited:hover { color: var(--text-hover-dark); }
button {
background-color: var(--clickable-dark);
color: var(--clickable-label-dark);
2024-03-18 00:51:27 +03:00
}
2024-05-08 13:12:10 +03:00
button:hover { background-color: var(--clickable-hover-dark); }
2024-03-18 00:51:27 +03:00
}