This repository has been archived on 2026-03-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
gractwo-pl/styles/globals.scss
jakubmanczak d8fbbe0706 fix: nav lengthens landing banner as side effect
a measure was already in place to make sure content wouldn't get eaten by the fixed navbar - but not a global one
simply removing the prior one to make sure they don't stack and thus extend the length of the banner
2022-08-08 15:17:12 +02:00

218 lines
3.7 KiB
SCSS

:root {
--black0: #121212;
--black1: #1a1a1a;
--black2: #2c2c2c;
--black3: #1d1d1d;
--accent: #61f2ea;
}
* {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}
body {
background-color: var(--black1);
color: white;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.navpusher {
height: 4rem;
}
nav.main {
z-index: 1;
height: 4rem;
width: 100%;
background-color: var(--black1);
display: flex;
align-items: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
position: fixed;
a {
font-family: "Lexend", sans-serif;
display: block;
padding: 0 2rem;
display: flex;
align-items: center;
height: 100%;
color: white;
text-decoration: none;
transition-duration: 150ms;
// font-size: 16px;
&:hover {
background-color: var(--black0);
}
&:focus {
outline: none;
background-color: var(--black0);
}
&:last-of-type {
background-color: #c0c0c0;
color: var(--black1);
margin-left: auto;
margin-right: 0;
&:hover,
&:focus {
background-color: #909090;
}
}
}
.logo {
margin: 0 1rem 0 1rem;
--size: 4rem;
width: var(--size);
height: var(--size);
}
}
section.banner {
display: flex;
overflow: hidden;
justify-content: center;
align-items: center;
width: 100%;
height: 30rem;
// padding-top: 4rem;
h1,
p {
position: absolute;
text-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
}
h1 {
font-size: 3.5rem;
}
p {
margin-top: 6rem;
}
div {
// filter: blur(0.2rem);
width: 100%;
height: 100%;
background-size: cover;
background-color: var(--black0);
}
img {
filter: blur(0.25rem) brightness(50%);
margin-top: 26rem;
width: 100%;
}
}
article.main {
width: 100%;
display: flex;
justify-content: center;
.Map {
margin: 2rem;
display: grid;
grid-gap: 2rem;
grid-template-rows: repeat(2, 10rem);
grid-template-columns: repeat(7, 11rem);
a {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: var(--black3);
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
overflow: hidden;
position: relative;
h1 {
font-family: "Lexend", sans-serif;
font-size: 4.5rem;
}
p {
font-family: "Lexend", sans-serif;
font-size: 1.6rem;
}
}
a:hover {
background-color: var(--black0);
box-shadow: 7 px 21px rgba(0, 0, 0, 0.25);
}
.icons {
width: 6rem;
height: 6rem;
position: absolute;
color: white;
}
.icons {
width: 6rem;
height: 6rem;
position: absolute;
color: white;
}
.msg {
grid-column: 1/3;
grid-row: 1;
.icons {
margin-bottom: 4rem;
margin-left: 11rem;
transform: rotate(195deg);
width: 15rem;
height: 15rem;
opacity: 5%;
position: absolute;
}
}
.bots {
grid-column: 3/6;
grid-row: 1;
}
.discord {
grid-column: 6;
grid-row: 1;
}
.twitter {
grid-column: 7;
grid-row: 1;
}
.members {
grid-column: 1/3;
grid-row: 2;
.icons {
transform: scaleX(-1) rotate(20deg);
margin-top: rem;
margin-left: 16rem;
width: 16rem;
height: 15rem;
opacity: 5%;
position: absolute;
color: white;
}
}
.days {
grid-column: 3/5;
grid-row: 2;
.icons {
transform: rotate(20deg);
margin-top: rem;
margin-left: 14rem;
width: 14rem;
height: 15rem;
opacity: 5%;
position: absolute;
color: white;
}
}
.yt {
grid-column: 5;
grid-row: 2;
}
.github {
grid-column: 6;
grid-row: 2;
}
.minecraft {
grid-column: 7;
grid-row: 2;
}
}
}
/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
display: none;
}