1
0
Fork 0
forked from CRSS/Website
Website-fixver/css/src/style.scss

441 lines
7.4 KiB
SCSS
Raw Normal View History

@use "fonts";
@use "colors/light" as light;
@use "colors/dark" as dark;
* {
-webkit-tap-highlight-color: transparent; // fuck you
}
html, body { overflow-x: hidden;}
2023-09-14 19:47:02 +00:00
body {
2023-11-26 21:40:10 +00:00
margin: 0;
background: light.$pageBG;
color: light.$pageFG;
2023-11-26 21:40:10 +00:00
@media (prefers-color-scheme: dark) {
background: dark.$pageBG;
color: dark.$pageFG;
2023-11-26 21:40:10 +00:00
}
2023-09-14 19:47:02 +00:00
}
2024-01-11 19:38:35 +00:00
main {
transition: 0.24s;
&.buffering {
transform: scale(1.01);
2024-01-11 19:38:35 +00:00
transition: 0.16s;
opacity: 0.4;
pointer-events: none;
user-select: none;
2024-01-11 19:38:35 +00:00
}
&.transition {
2024-01-11 19:38:35 +00:00
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.88;
2023-11-26 21:40:10 +00:00
}
img {
max-width: 100%;
}
.cards {
display: flex;
flex-wrap: wrap;
gap: 8px;
width: 100%;
@media (max-width: 600px) {
gap: 12px;
}
}
.card {
position: relative;
display: flex;
flex-direction: column;
box-sizing: border-box;
max-width: 100%;
height: 150px;
text-decoration: none;
border-radius: 4px;
padding: 8px 12px;
cursor: pointer;
overflow: hidden;
outline: 1px solid light.$cardNormalBorder;
background: light.$cardNormalBG;
color: light.$cardNormalFG;
@media (prefers-color-scheme: dark) {
outline-color: dark.$cardNormalBorder;
background: dark.$cardNormalBG;
color: dark.$cardNormalFG;
}
transition: 0.24s;
&:hover {
outline-width: 2px;
outline-color: light.$cardActiveBorder;
background: light.$cardActiveBG;
color: light.$cardActiveFG;
@media (prefers-color-scheme: dark) {
outline-color: dark.$cardActiveBorder;
background: dark.$cardActiveBG;
color: dark.$cardActiveFG;
}
transition: 0.08s;
.icon {
transition: 0.48s;
transform: scale(1.2);
}
}
width: calc(100% / 3 - 6px);
@media (max-width: 800px) {
width: calc(50% - 4px);
}
@media (max-width: 600px) {
border-radius: 8px;
width: 100%;
}
h1 {
margin: 0;
font-size: 1.2em;
font-weight: 400;
}
.icon {
position: absolute;
top: 0;
right: 0;
height: 100%;
aspect-ratio: 1/1;
object-fit: cover;
mask-image: linear-gradient(to right, transparent, rgba(red, 0.3));
@media (prefers-color-scheme: dark) {
mask-image: linear-gradient(to right, transparent, rgba(red, 0.1));
}
transition: 0.64s;
}
p {
margin: 8px 0;
}
}
2023-11-26 21:40:10 +00:00
a {
color: light.$linkColor;
2023-11-26 21:40:10 +00:00
@media (prefers-color-scheme: dark) {
color: dark.$linkColor;
2023-11-26 21:40:10 +00:00
}
&: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(light.$headerOverlay, 0.9),rgba(light.$headerOverlay, 0.9)), // white overlay. yeah that's a bit of an ugly hack?
2023-11-26 21:40:10 +00:00
url('/img/Panorama-Lens-Blur.png');
@media (prefers-color-scheme: dark) {
background-image:
linear-gradient(rgba(dark.$headerOverlay, 0.9),rgba(dark.$headerOverlay, 0.9)),
2023-11-26 21:40:10 +00:00
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
}
}
}
.navToggle {
2023-11-26 21:40:10 +00:00
@media (min-width: 601px) {
display: none;
}
z-index: 10;
position: fixed;
top: 8px;
right: 8px;
font-size: 18px;
background: light.$btnNormalBG;
color: light.$btnNormalFG;
@media (prefers-color-scheme: dark) {
background: dark.$btnNormalBG;
color: dark.$btnNormalFG;
}
2023-11-26 21:40:10 +00:00
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 light.$navBorder;
2023-11-26 21:40:10 +00:00
border-width: 0 0 1px 0;
2023-09-14 19:47:02 +00:00
background: light.$navBG;
2023-11-26 21:40:10 +00:00
@media (prefers-color-scheme: dark) {
border-color: dark.$navBorder;
background: dark.$navBG;
2023-11-26 21:40:10 +00:00
}
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;
backdrop-filter: blur(15px);
background: rgba(light.$navBG, 0.86);
@media (prefers-color-scheme: dark) {
background: rgba(dark.$navBG, 0.9);
}
justify-content: center;
flex-direction: column;
gap: 64px;
2023-11-26 21:40:10 +00:00
&, > * { transition: 0.16s }
2023-11-26 21:40:10 +00:00
2024-01-13 22:12:46 +00:00
&:not(.opened) {
2023-11-26 21:40:10 +00:00
opacity: 0;
pointer-events: none;
//&, > * { transition: 0.12s }
> * { transform: translateX(32px); }
2023-11-26 21:40:10 +00:00
}
}
> div {
margin: 0;
2023-09-14 19:47:02 +00:00
display: flex;
2023-11-26 21:40:10 +00:00
flex-wrap: wrap;
align-items: flex-end;
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%;
2023-11-26 21:40:10 +00:00
flex-direction: column;
}
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
> a {
font-family: Outfit;
2023-11-26 21:40:10 +00:00
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: light.$navLinkNormalColor;
@media (prefers-color-scheme: dark) { color: dark.$navLinkNormalColor; }
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
@media (max-width: 600px) {
font-size: 28px;
outline: none;
padding: 8px 32px;
text-align: end;
&.active::before {
content: ""; // i know..
}
2023-11-26 21:40:10 +00:00
}
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);
color: light.$navLinkActiveColor;
outline-color: light.$navLinkOutlineColor;
2023-11-26 21:40:10 +00:00
@media (prefers-color-scheme: dark) {
color: dark.$navLinkActiveColor;
outline-color: dark.$navLinkOutlineColor;
2023-09-14 19:47:02 +00:00
}
2023-11-26 21:40:10 +00:00
transition: 0.08s;
}
@media (min-width: 601px) {
&.buttonPrimary {
background: light.$btnNormalBG;
color: light.$btnNormalFG;
2023-11-26 21:40:10 +00:00
@media (prefers-color-scheme: dark) {
background: dark.$btnNormalBG;
color: dark.$btnNormalFG;
}
font-weight: 700 !important;
}
}
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
}