Initial import
This commit is contained in:
commit
1ff831f80d
19 changed files with 956 additions and 0 deletions
150
public/css/style.css
Normal file
150
public/css/style.css
Normal file
|
@ -0,0 +1,150 @@
|
|||
/*
|
||||
* PoorBooru - Poorman's booru
|
||||
*
|
||||
* Written in 2023 by Lucas
|
||||
*
|
||||
* To the extent possible under law, the author(s) have dedicated all
|
||||
* copyright and related and neighboring rights to this software to the
|
||||
* public domain worldwide. This software is distributed without any
|
||||
* warranty.
|
||||
*
|
||||
* You should have received a copy of the CC0 Public Domain Dedication
|
||||
* along with this software. If not, see
|
||||
* <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
*/
|
||||
/*
|
||||
* Some parts copied from https://piccalil.li/blog/a-modern-css-reset/
|
||||
*/
|
||||
|
||||
:root {
|
||||
--bg-color: #0c0700;
|
||||
--fg-color: #fff8f0;
|
||||
--accent-color-0: #ec57bc;
|
||||
--accent-color-1: #f7be00;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body,
|
||||
h1,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0 auto;
|
||||
min-height: 100vh;
|
||||
background-color: var(--bg-color);
|
||||
color: var(--fg-color);
|
||||
font-family: monospace;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
h1,
|
||||
p {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
footer > p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
font-size: 4rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent-color-0);
|
||||
}
|
||||
|
||||
a:link,
|
||||
a:visited {
|
||||
color: var(--accent-color-0);
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a:active {
|
||||
color: var(--accent-color-1);
|
||||
}
|
||||
|
||||
nav {
|
||||
font-size: 1.25rem;
|
||||
line-height: 2.4;
|
||||
}
|
||||
|
||||
.viewport {
|
||||
margin: 0 auto;
|
||||
max-width: 60rem;
|
||||
}
|
||||
|
||||
.border-bottom {
|
||||
border-bottom: 1px solid;
|
||||
}
|
||||
|
||||
.border-top {
|
||||
border-top: 1px solid;
|
||||
}
|
||||
|
||||
.border-accent {
|
||||
border-color: var(--accent-color-0);
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bg-color {
|
||||
background-color: var(--bg-color);
|
||||
}
|
||||
|
||||
.fg-color {
|
||||
color: var(--fg-color);
|
||||
}
|
||||
|
||||
.fg-accent {
|
||||
color: var(--accent-color-0);
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav-link:link,
|
||||
.nav-link:visited {
|
||||
color: var(--accent-color-0);
|
||||
}
|
||||
|
||||
.nav-link:hover,
|
||||
.nav-link:active {
|
||||
color: var(--accent-color-1);
|
||||
}
|
||||
|
||||
.nav-link-gap {
|
||||
gap: 0 1rem;
|
||||
}
|
||||
|
||||
.flex-c-horizontal {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.flex-c-vertical {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.flex-c-center {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.flex-i-fullsize {
|
||||
flex: auto;
|
||||
}
|
Reference in a new issue