refactor: Style with vars, various design experiments

This commit is contained in:
moanos [he/him] 2024-04-19 20:16:50 +02:00
parent 2fa6f59374
commit 09fe1990b3

View File

@ -1,14 +1,28 @@
:root {
--background-one: #5daa68;
--background-two: #203f24;
--background-three: #faf1cf;
--highlight-one: #5daa68;
--text-one: #faf1cf;
--text-three: var(--background-two);
}
html, body { html, body {
margin: 0; margin: 0;
height: 100%; height: 100%;
} }
body {
background: var(--background-one);
}
.content-box { .content-box {
margin: 20px; margin: 20px;
} }
a { a {
text-decoration: none; text-decoration: none;
color: inherit;
} }
.col-sm-2 { .col-sm-2 {
@ -44,11 +58,11 @@ h1 {
.header { .header {
overflow: hidden; overflow: hidden;
background-color: #addade; background-color: var(--background-two);
} }
.header a, .sidebar-nav a { .header a, .sidebar-nav a {
color: black; color: var(--text-one);
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
border-radius: 4px; border-radius: 4px;
@ -61,7 +75,7 @@ h1 {
} }
.header a:hover { .header a:hover {
background-color: #4090b6; background-color: var(--highlight-one);
color: black; color: black;
} }
@ -81,7 +95,7 @@ h1 {
.header-right select.option { .header-right select.option {
color: #000; color: #000;
background-color: #4ba3cd; background-color: var(--highlight-one);
padding: 0 10px; padding: 0 10px;
border: 1px; border: 1px;
} }
@ -239,7 +253,6 @@ h1 {
} }
.detail-animal-header { .detail-animal-header {
border: 2px lavender solid;
border-radius: 5px; border-radius: 5px;
display: flex; display: flex;
align-items: center; align-items: center;
@ -325,8 +338,9 @@ h1 {
flex: 1 16%; flex: 1 16%;
margin: 10px; margin: 10px;
border-radius: 3%; border-radius: 3%;
border: 4px grey solid;
padding: 5px; padding: 5px;
background: var(--background-three);
color: var(--text-three);
} }
.card-adoption-notice img { .card-adoption-notice img {