Soc/app/assets/stylesheets/main.css

194 lines
3.0 KiB
CSS
Raw Normal View History

2023-08-18 16:20:31 +00:00
:root {
--border-color: gray;
--highlight-color: #D36200;
2023-10-05 18:22:31 +00:00
--background-color: #CCC;
--dark-background-color: #333;
2023-08-18 16:20:31 +00:00
--inset-background-color: #FFFFFF;
2023-08-18 16:35:16 +00:00
--alert-border-color: #800000;
--form-error-color: #FF0000;
2023-08-18 16:20:31 +00:00
}
* {
box-sizing: border-box;
}
body {
font-size: 1.2em;
font-family: sans-serif;
background-color: var(--background-color);
}
strong {
font-weight: bold;
}
em {
font-style: italic;
}
ol {
list-style-type: decimal;
}
2023-08-18 16:20:31 +00:00
h1, h2, h3, h4, h5, h6, h7 {
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
h1 {
font-size: 4em;
text-align: center;
color: var(--highlight-color);
-webkit-text-stroke: 1px var(--background-color);
}
h2 {
font-size: 2.5em;
}
header {
background-color: var(--dark-background-color);
}
nav {
padding: 1em;
> ul {
text-align: center;
> 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:45:38 +00:00
main {
2023-10-05 15:08:53 +00:00
max-width: 60em;
2023-08-18 16:45:38 +00:00
margin: 0 auto;
}
2023-10-05 18:22:31 +00:00
p {
margin: .5em 0;
}
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
2023-10-06 07:38:43 +00:00
section.content, aside {
2023-10-05 18:22:31 +00:00
margin: 1em auto;
padding: .5em;
background-color: var(--inset-background-color);
border: 1px solid var(--border-color);
2023-10-06 07:38:43 +00:00
}
aside {
2023-10-05 18:22:31 +00:00
float: left;
}
dl {
line-height: 1.3em;
}
dt {
font-weight: bold;
}
dd {
margin-left: 2em;
}
2023-08-18 16:20:31 +00:00
main {
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;
background-color: var(--inset-background-color);
box-shadow: .5em .5em 3em var(--dark-background-color);
> 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);
}