Soc/app/assets/stylesheets/main.css

247 lines
4.1 KiB
CSS
Raw Normal View History

2024-03-06 20:31:14 +00:00
@font-face {
font-family: "Rogue";
src: url("/fonts/rogue.otf");
}
2023-08-18 16:20:31 +00:00
:root {
2023-10-19 20:33:44 +00:00
--border-color: #282828;
--highlight-color: #d65d0e;
--background-color: #928374;
--dark-background-color: #1d2021;
2024-03-06 20:31:14 +00:00
--inset-background-color: #fffffa;
2023-10-19 20:33:44 +00:00
--alert-border-color: #98971a;
--form-error-color: #cc241d;
2023-08-18 16:20:31 +00:00
}
* {
box-sizing: border-box;
}
2024-03-06 20:31:14 +00:00
:root { font-family: 'Inter', sans-serif; }
@supports (font-variation-settings: normal) {
:root { font-family: 'InterVariable', sans-serif; }
}
2023-08-18 16:20:31 +00:00
body {
font-size: 1.2em;
2024-03-06 20:31:14 +00:00
background-color: var(--dark-background-color);
position: relative;
2023-08-18 16:20:31 +00:00
}
strong {
font-weight: bold;
}
em {
font-style: italic;
}
ol {
list-style-type: decimal;
}
2023-10-19 14:21:34 +00:00
ul {
list-style-type: disc;
}
2023-08-18 16:20:31 +00:00
h1, h2, h3, h4, h5, h6, h7 {
2024-03-06 20:31:14 +00:00
font-family: "Rogue", sans-serif;
2023-08-18 16:20:31 +00:00
font-weight: bold;
padding: .5em 0;
}
2023-10-05 18:22:31 +00:00
h3, h4, h5, h6, h7 {
text-decoration: underline;
}
2023-08-18 16:20:31 +00:00
h2 {
font-size: 2.5em;
}
2024-03-07 09:14:06 +00:00
h3 {
font-size: 1.5em;
}
2023-08-18 16:20:31 +00:00
header {
2024-03-06 20:31:14 +00:00
display: contents;
2024-03-07 09:14:06 +00:00
h1 {
background-color: var(--dark-background-color);
font-size: 5em;
text-align: center;
color: var(--highlight-color);
-webkit-text-stroke: 1px var(--background-color);
padding: .25em 0;
}
2023-08-18 16:20:31 +00:00
2024-03-08 11:33:58 +00:00
nav {
z-index: 999;
background-color: var(--dark-background-color);
padding: 1em;
font-family: "Rogue", sans-serif;
position: sticky;
top: 0;
> ul {
text-align: center;
animation-name: move-menu;
animation-duration: 3s;
animation-timeline: scroll(root block);
> li {
display: inline;
padding: 0 2em;
> a:link, > a:visited {
text-decoration: none;
font-size: 1.3em;
font-weight: bold;
}
> a:hover {
text-decoration: underline;
}
2023-08-18 16:20:31 +00:00
}
}
}
}
2024-03-06 20:31:14 +00:00
#flash_wrapper {
display: contents;
2023-08-18 16:45:38 +00:00
}
2023-10-05 18:22:31 +00:00
p {
2024-03-07 09:14:06 +00:00
margin: 1em 0;
2023-10-05 18:22:31 +00:00
}
2023-08-18 16:20:31 +00:00
a:link, a:visited {
color: var(--highlight-color);
}
a:hover {
text-decoration: none;
}
2023-08-18 18:36:24 +00:00
a:link:has(h1), a:visited:has(h1) {
text-decoration: none;
}
2023-10-05 18:22:31 +00:00
dl {
line-height: 1.3em;
}
dt {
font-weight: bold;
2024-03-07 09:14:06 +00:00
padding: 1em 0 .5em 0;
}
aside dt {
font-size: 1.2em;
2023-10-05 18:22:31 +00:00
}
dd {
margin-left: 2em;
}
2023-08-18 16:20:31 +00:00
main {
2024-03-06 20:31:14 +00:00
background-color: var(--inset-background-color);
display: grid;
grid-template-columns: 1fr 3fr;
grid-template-rows: 1fr;
}
@media (max-width: 800px) {
main {
display: flex;
flex-direction: column;
}
}
section.content {
grid-column: 2;
padding: 1em;
}
aside {
font-size: .8em;
grid-column: 1;
grid-row: 1;
2023-08-18 16:20:31 +00:00
padding: 1em;
}
form {
display: grid;
grid-template-columns: 1fr 2fr;
gap: .5em;
align-items: center;
max-width: 35em;
margin: 0 auto;
border: 1px solid var(--border-color);
border-radius: .5em;
font-size: 1.2em;
> label {
grid-column: 1;
text-align: right;
margin: 0 .1em 1em .5em;
}
> input {
font-size: 1em;
grid-column: 2;
padding: .25em;
margin: 0 .5em 1em .1em;
}
> input[type=submit] {
grid-column: 1/3;
margin: 0 .5em 1em .5em;
background-color: var(--highlight-color);
border: 1px solid var(--border-color);
border-radius: .25em;
}
> input[type=text]:focus, > input[type=password]:focus, > textarea:focus {
box-shadow: 0 0 10px var(--highlight-color);
}
> h2 {
text-align: center;
font-size: 1.5em;
background-color: var(--highlight-color);
grid-column: 1/3;
border-radius: .2em .2em 0 0;
}
> label.field_with_errors {
color: var(--form-error-color);
}
> input.field_with_errors {
border-color: var(--form-error-color);
}
2023-08-18 16:20:31 +00:00
}
2023-08-18 16:35:16 +00:00
div.flash {
border: 3px solid;
border-radius: .25em;
margin: 0 auto 1em auto;
max-width: 35em;
padding: .5em;
background-color: var(--dark-background-color);
color: var(--background-color);
}
div.notice {
border-color: var(--highlight-color);
}
div.alert {
border-color: var(--alert-border-color);
}
2024-03-06 20:31:14 +00:00
.avatar {
border: 2px solid var(--dark-background-color);
border-radius: 50%;
box-shadow: 6px 5px 5px rgba(0, 0, 0, 0.5);
margin: 0 auto;
}
.bordered-aside {
border: 2px solid var(--dark-background-color);
border-radius: .5em;
margin: 1em 0;
}