127 lines
1.9 KiB
CSS
127 lines
1.9 KiB
CSS
:root {
|
|
--accent-bkg-color: black;
|
|
--accent-txt-color: white;
|
|
--content-bkg-color: white;
|
|
--content-txt-color: black;
|
|
--form-disabled-color: #606060;
|
|
--button-accept: #0F0;
|
|
--button-cancel: #F00;
|
|
}
|
|
|
|
* {
|
|
font-family: monospace;
|
|
font-size: large;
|
|
}
|
|
|
|
body {
|
|
display: grid;
|
|
min-height: 100vh;
|
|
grid-template-rows: 1fr auto;
|
|
grid-template-columns: auto 1fr;
|
|
grid-template-areas:
|
|
"header main"
|
|
"footer main"
|
|
;
|
|
margin: 0px;
|
|
}
|
|
|
|
header, footer {
|
|
background-color: var(--accent-bkg-color);
|
|
color: var(--accent-txt-color);
|
|
padding: 20px;
|
|
width: 15vw;
|
|
min-width: max-content;
|
|
max-width: 25ch;
|
|
}
|
|
|
|
main {
|
|
background-color: var(--content-bkg-color);
|
|
color: var(--content-txt-color);
|
|
padding: 20px;
|
|
}
|
|
|
|
footer p {
|
|
text-align: center;
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
nav a {
|
|
color: var(--accent-txt-color);
|
|
font-size: xx-large;
|
|
text-decoration: none;
|
|
position: relative;
|
|
padding: 10px;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
nav a:before {
|
|
position: absolute;
|
|
width: 0px;
|
|
height: 100%;
|
|
left: 0px;
|
|
top: 0px;
|
|
content: '';
|
|
background: var(--accent-txt-color);
|
|
opacity: 0.3;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
nav a[aria-current="true"]:before {
|
|
width: 10px;
|
|
}
|
|
|
|
nav a:hover:before {
|
|
width: 100%;
|
|
}
|
|
|
|
h1, h2, h3, p {
|
|
font-family: monospace;
|
|
}
|
|
|
|
h1 {
|
|
font-size: xx-large;
|
|
text-align: center;
|
|
}
|
|
|
|
h2 {
|
|
font-size: x-large;
|
|
text-align: center;
|
|
}
|
|
|
|
h3 {
|
|
font-size: larger;
|
|
text-align: center;
|
|
}
|
|
|
|
p {
|
|
text-align: left;
|
|
}
|
|
|
|
@media screen and (min-width: 480px) {
|
|
.center-div {
|
|
min-width: 480px;
|
|
max-width: 50%;
|
|
width: fit-content;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
}
|
|
@media screen and (max-width: 480px) {
|
|
.center-div {
|
|
width: 100%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
}
|
|
|
|
.hidden {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.none {
|
|
display: none;
|
|
} |