hibiscus/public/main.css

117 lines
2.9 KiB
CSS
Raw Normal View History

2024-05-08 13:12:10 +03:00
/* Default theme */
:root {
/* Light theme */
2024-10-07 16:04:39 +03:00
--text-light: #2b2a2a;
--bg-light: #f4edd7;
2024-05-08 13:12:10 +03:00
--clickable-light: #f85552;
--clickable-hover-light: #e66868;
2024-10-07 16:04:39 +03:00
--clickable-label-light: #f4edd7;
2024-05-08 13:12:10 +03:00
--text-hover-light: #656565;
--textarea-bg-light: #f5f2ee;
--textarea-border-light: #454545;
/* Dark theme */
--text-dark: #f5f0e1;
2024-10-07 16:04:39 +03:00
--bg-dark: #1b1916;
2024-05-08 13:12:10 +03:00
--clickable-dark: #f85552;
--clickable-hover-dark: #e66868;
--clickable-label-dark: #f5f2ee;
2024-10-07 16:04:39 +03:00
--text-hover-dark: #a9a8a4;
2024-05-08 13:12:10 +03:00
--textarea-bg-dark: #383030;
--textarea-border-dark: #454545;
}
* { box-sizing: border-box; }
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-10-07 16:04:39 +03:00
font-size: 18px;
2024-06-02 00:36:37 +03:00
margin: auto auto;
2024-03-18 00:51:27 +03:00
max-width: 640px;
2024-10-07 16:04:39 +03:00
padding: 15px;
2024-03-15 18:34:24 +03:00
line-height: 1.4;
font-family: serif;
min-height: 85vh;
display: flex;
flex-direction: column;
}
2024-10-07 16:04:39 +03:00
h1,h2,h3,h4,h5,h6 { line-height: 1.2 }
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-10-07 16:04:39 +03:00
ul:not(li ul), ol:not(li ol){
margin-left: 0;
padding-left: 0;
list-style-position: inside;
}
2024-04-23 14:13:45 +03:00
.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-10-07 16:04:39 +03:00
border: 2px 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
}