Website/css/src/style.scss

311 lines
4.6 KiB
SCSS
Raw Normal View History

2023-09-14 19:47:02 +00:00
@import "fonts";
body {
2023-11-26 21:40:10 +00:00
background: white;
margin: 0;
@media (prefers-color-scheme: dark) {
background: #202120;
color: white;
}
2023-09-14 19:47:02 +00:00
}
2024-01-11 19:38:35 +00:00
main {
transition: 0.24s;
&.Loading {
transition: 0.16s;
opacity: 0.4;
}
&.InTransition {
transform: scale(0.96);
transition: 0.16s;
opacity: 0;
}
}
2023-09-14 19:47:02 +00:00
.container {
2023-11-26 21:40:10 +00:00
max-width: 960px;
2023-09-14 19:47:02 +00:00
width: 100%;
margin: 0 auto;
2023-11-26 21:40:10 +00:00
padding: 24px;
box-sizing: border-box;
2023-09-14 19:47:02 +00:00
}
ul, ol {
list-style-position: inside;
}
2023-11-26 21:40:10 +00:00
p {
line-height: 1.6;
opacity: 0.92;
}
img {
max-width: 100%;
}
a {
color: #527D52;
@media (prefers-color-scheme: dark) {
color: #D0DFD0;
}
&:visited {
opacity: 0.9;
}
}
2023-09-14 19:47:02 +00:00
.pageHero {
2023-11-26 21:40:10 +00:00
background-image:
linear-gradient(rgba(white, 0.9),rgba(white, 0.9)), // white overlay. yeah that's a bit of an ugly hack?
url('/img/Panorama-Lens-Blur.png');
@media (prefers-color-scheme: dark) {
background-image:
linear-gradient(rgba(#101610, 0.9),rgba(#101610, 0.9)),
url('/img/Panorama-Lens-Blur.png');
}
2023-09-14 19:47:02 +00:00
background-position: center;
2023-11-26 21:40:10 +00:00
background-size: cover;
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
height: 220px;
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
> .container {
height: 100%;
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
display: flex;
flex-direction: row;
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
align-items: center;
justify-content: space-between;
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
@media (max-width: 600px) {
justify-content: center;
}
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
> div {
2023-09-14 19:47:02 +00:00
display: flex;
2023-11-26 21:40:10 +00:00
flex-direction: column;
gap: 12px;
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
&.Branding {
align-items: flex-start;
@media (max-width: 600px) {
align-items: center;
}
@media (prefers-color-scheme: dark) {
img { filter: invert(1) }
}
span {
font-size: 24px;
opacity: 0.75;
}
}
&.Server-Information {
@media (max-width: 600px) {
display: none;
}
align-items: center;
gap: 4px;
input {
text-align: center;
font-size: 24px;
&:not(:hover, :focus) {
color: inherit;
border-color: transparent;
background: transparent;
}
}
}
2023-09-14 19:47:02 +00:00
}
}
}
2023-11-26 21:40:10 +00:00
.Nav-Toggle {
@media (min-width: 601px) {
display: none;
}
z-index: 10;
position: fixed;
top: 8px;
right: 8px;
font-size: 18px;
background: #527D52;
color: #fff;
padding: 8px 24px;
border-radius: 32px;
font-weight: bold;
user-select: none;
cursor: pointer;
}
2023-09-14 19:47:02 +00:00
.pageNav {
2023-11-26 21:40:10 +00:00
width: 100%;
border: solid #D0DFD0;
border-width: 0 0 1px 0;
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
background: #F9FFF9;
@media (prefers-color-scheme: dark) {
border-color: #575F57;
background: #272F27;
}
2023-09-14 19:47:02 +00:00
> .container {
2023-11-26 21:40:10 +00:00
padding: 16px 24px;
2023-09-14 19:47:02 +00:00
display: flex;
2023-11-26 21:40:10 +00:00
flex-wrap: wrap;
2023-09-14 19:47:02 +00:00
align-items: center;
justify-content: space-between;
2023-11-26 21:40:10 +00:00
@media (max-width: 600px) {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 9;
background: inherit;
transition: 0.12s;
&:not(.openned) {
opacity: 0;
pointer-events: none;
transform: scale(1.2);
transition: 0.24s;
}
}
> div {
margin: 0;
2023-09-14 19:47:02 +00:00
display: flex;
2023-11-26 21:40:10 +00:00
flex-wrap: wrap;
2023-09-14 19:47:02 +00:00
2024-01-11 19:38:35 +00:00
gap: 6px;
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
@media (max-width: 600px) {
width: 100%;
flex-direction: column;
gap: 6px;
align-items: center;
}
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
> a {
user-select: none;
2023-09-14 19:47:02 +00:00
2024-01-11 19:38:35 +00:00
font-size: 16px;
2023-11-26 21:40:10 +00:00
box-sizing: border-box;
color: #7E9E7E;
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
@media (max-width: 600px) {
font-size: 24px;
width: 100%;
padding: 12px 24px;
text-align: center;
}
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
text-decoration: none;
2024-01-11 19:38:35 +00:00
padding: 6px 20px;
2023-11-26 21:40:10 +00:00
border-radius: 32px;
outline: solid transparent 2px;
transition: 0.24s;
2024-01-11 19:38:35 +00:00
&.active {
pointer-events: none;
}
2023-11-26 21:40:10 +00:00
&:hover, &.active {
//background: rgba(15, 23, 42, 0.1);
outline-color: #D0DFD0;
color: #527D52;
@media (prefers-color-scheme: dark) {
color: #DEFEDE;
outline-color: #707F70;
2023-09-14 19:47:02 +00:00
}
2023-11-26 21:40:10 +00:00
transition: 0.08s;
}
&.buttonPrimary {
background: #527D52;
color: #fff;
font-weight: bold;
2023-09-14 19:47:02 +00:00
}
}
}
}
}
.pageContent {
2023-11-26 21:40:10 +00:00
//
2023-09-14 19:47:02 +00:00
}
.pageFooter {
2023-11-26 21:40:10 +00:00
opacity: 0.8;
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
> .SNS-Links {
2023-09-14 19:47:02 +00:00
display: flex;
2023-11-26 21:40:10 +00:00
flex-wrap: wrap;
gap: 16px;
2023-09-15 21:04:00 +00:00
2023-11-26 21:40:10 +00:00
> a {
display: flex;
gap: 8px;
font-size: 18px;
color: inherit;
img {
width: 1em;
@media (prefers-color-scheme: dark) {
filter: invert(1);
2023-09-15 21:04:00 +00:00
}
}
2023-11-26 21:40:10 +00:00
&:not(:hover, :focus) {
text-decoration: none;
}
2023-09-15 21:04:00 +00:00
}
}
2023-11-26 21:40:10 +00:00
}