423 lines
6.8 KiB
SCSS
423 lines
6.8 KiB
SCSS
$dark: (
|
|
"background": #2a2a2a,
|
|
"foreground": #eeeeee,
|
|
"item": #3a3a3a,
|
|
"button": #3a3a3a,
|
|
"buttonActive": #404040
|
|
);
|
|
|
|
$background: #252525;
|
|
$foreground: #eeeeee;
|
|
$brightRed: rgb(250, 117, 93);
|
|
$red: #ff4340;
|
|
$darkRed: #bb312f;
|
|
$brightCyan: #00d9ff;
|
|
$cyan: #00bee0;
|
|
$brightGreen: #85d82d;
|
|
$green: #7cb342;
|
|
$mastColor: #7cb342;
|
|
|
|
a,
|
|
p,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
b,
|
|
i,
|
|
body,
|
|
button {
|
|
font-family: "Spartan";
|
|
}
|
|
|
|
.code {
|
|
font-family: "Fira Code";
|
|
font-variant-ligatures: common-ligatures;
|
|
}
|
|
|
|
pre {
|
|
font-family: "Fira Code";
|
|
font-variant-ligatures: common-ligatures;
|
|
white-space: pre-wrap; /* css-3 */
|
|
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
|
|
white-space: -pre-wrap; /* Opera 4-6 */
|
|
white-space: -o-pre-wrap; /* Opera 7 */
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
body {
|
|
background-color: $background;
|
|
color: $foreground;
|
|
margin-left: 0px;
|
|
margin-right: 0px;
|
|
}
|
|
|
|
a {
|
|
color: $red;
|
|
&:hover {
|
|
color: $darkRed;
|
|
}
|
|
}
|
|
|
|
.masthead {
|
|
height: 100vh;
|
|
width: 100%;
|
|
background-color: $mastColor;
|
|
color: $background;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
p.content {
|
|
font-size: 64px;
|
|
font-weight: 900;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
|
|
.subheader {
|
|
font-size: 32px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.down {
|
|
position: absolute;
|
|
bottom: 0;
|
|
i {
|
|
font-size: 64px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.container {
|
|
width: 90vw;
|
|
margin: 2rem 5vw;
|
|
}
|
|
|
|
.centered {
|
|
text-align: center;
|
|
margin: auto;
|
|
}
|
|
|
|
.blurred {
|
|
filter: blur(5px);
|
|
|
|
&.unblurable {
|
|
&:hover {
|
|
transition: all ease-in 150ms;
|
|
filter: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
|
|
&.rounded {
|
|
border-radius: 8px;
|
|
}
|
|
|
|
&.thumbnail {
|
|
width: 24px;
|
|
}
|
|
|
|
&.small {
|
|
width: 128px;
|
|
}
|
|
|
|
&.medium {
|
|
width: 256px;
|
|
}
|
|
&.large {
|
|
width: 512px;
|
|
}
|
|
}
|
|
|
|
.titlebar.top {
|
|
background-color: map-get($dark, "background");
|
|
color: map-get($dark, "foreground");
|
|
position: fixed;
|
|
z-index: 1;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 3rem;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.5);
|
|
@at-root .masthead {
|
|
height: calc(100vh - 3rem);
|
|
}
|
|
|
|
@at-root body {
|
|
margin-top: 3rem;
|
|
}
|
|
|
|
a {
|
|
color: $foreground;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.item {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
|
|
background-color: map-get($dark, "item");
|
|
font-family: "Spartan";
|
|
padding: 0px 1rem;
|
|
height: 100%;
|
|
cursor: pointer;
|
|
|
|
span {
|
|
display: inline-flex;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: map-get($dark, "background");
|
|
transition: all ease-in 150ms;
|
|
}
|
|
}
|
|
}
|
|
|
|
.divider {
|
|
width: 70vw;
|
|
height: 10px;
|
|
border-bottom: 1px solid map-get($dark, "item");
|
|
margin: 1rem 15vw;
|
|
&.wide {
|
|
width: 100vw;
|
|
}
|
|
}
|
|
|
|
.dropdown.item {
|
|
position: relative;
|
|
display: inline-block;
|
|
|
|
&:hover .dropdown-content {
|
|
max-height: 100vh;
|
|
display: block;
|
|
}
|
|
|
|
& .dropdown-content {
|
|
max-height: 0px;
|
|
overflow-y: hidden;
|
|
top: 100%;
|
|
left: 0;
|
|
-webkit-transition: max-height 0.5s ease-in-out;
|
|
-moz-transition: max-height 0.5s ease-in-out;
|
|
-o-transition: max-height 0.5s ease-in-out;
|
|
transition: max-height 0.5s ease-in-out;
|
|
position: absolute;
|
|
background-color: map-get($dark, "item");
|
|
|
|
& .item {
|
|
color: $foreground;
|
|
padding: 12px 16px;
|
|
text-decoration: none;
|
|
display: block;
|
|
|
|
&:hover {
|
|
background-color: $background;
|
|
transition: all ease-in 150ms;
|
|
}
|
|
}
|
|
|
|
& .dropdown.item {
|
|
display: inline-block;
|
|
overflow: visible;
|
|
|
|
&:hover .dropdown-content {
|
|
position: unset;
|
|
max-height: 100vh;
|
|
}
|
|
|
|
& .dropdown-content {
|
|
max-height: 0px;
|
|
& .item {
|
|
display: inline-flex;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
& & .dropdown-content {
|
|
top: 0;
|
|
left: 100%;
|
|
}
|
|
}
|
|
|
|
button {
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 8px;
|
|
border: none;
|
|
outline: none;
|
|
background-color: map-get($dark, "button");
|
|
color: $foreground;
|
|
user-select: none;
|
|
cursor: pointer;
|
|
|
|
&.small {
|
|
padding: 0.5rem 0.75rem;
|
|
}
|
|
|
|
&.hoverable {
|
|
&.outlined {
|
|
&:hover {
|
|
background-color: transparent;
|
|
border: 2px solid map-get($dark, "buttonActive");
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
background-color: map-get($dark, "buttonActive");
|
|
}
|
|
}
|
|
|
|
&.outlined {
|
|
background-color: transparent;
|
|
border: 2px solid map-get($dark, "button");
|
|
&:active {
|
|
background-color: transparent;
|
|
border: 2px solid map-get($dark, "buttonActive");
|
|
}
|
|
}
|
|
|
|
&.red {
|
|
background-color: $red;
|
|
&:active {
|
|
background-color: $brightRed;
|
|
}
|
|
|
|
&.outlined {
|
|
background-color: transparent;
|
|
color: $red;
|
|
border: 2px solid $red;
|
|
&:active {
|
|
color: $brightRed;
|
|
border: 2px solid $brightRed;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.green {
|
|
background-color: $green;
|
|
&:active {
|
|
background-color: $brightGreen;
|
|
}
|
|
|
|
&.outlined {
|
|
background-color: transparent;
|
|
color: $green;
|
|
border: 2px solid $green;
|
|
&:active {
|
|
color: $brightGreen;
|
|
border: 2px solid $brightGreen;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.cyan {
|
|
background-color: $cyan;
|
|
color: $background;
|
|
&:active {
|
|
background-color: $brightCyan;
|
|
}
|
|
|
|
&.outlined {
|
|
background-color: transparent;
|
|
color: $cyan;
|
|
border: 2px solid $cyan;
|
|
&:active {
|
|
color: $brightCyan;
|
|
border: 2px solid $brightCyan;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:active {
|
|
background-color: map-get($dark, "buttonActive");
|
|
}
|
|
}
|
|
|
|
.bounce {
|
|
-moz-animation: bounce 2s infinite;
|
|
-webkit-animation: bounce 2s infinite;
|
|
animation: bounce 2s infinite;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0%,
|
|
20%,
|
|
50%,
|
|
80%,
|
|
100% {
|
|
transform: translateY(0);
|
|
}
|
|
40% {
|
|
transform: translateY(-30px);
|
|
}
|
|
60% {
|
|
transform: translateY(-15px);
|
|
}
|
|
}
|
|
|
|
// Desktop Titlebar Logic
|
|
@media (min-width: 767px) {
|
|
.dropdown.item.compact > *,
|
|
.dropdown.item.compact {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
// Mobile Titlebar Logic
|
|
@media (max-width: 767px) {
|
|
.titlebar.top .item:not(.compact) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.mobile-menu {
|
|
position: fixed;
|
|
z-index: 1024;
|
|
top: 0;
|
|
left: 0;
|
|
display: none;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background-color: rgba($background, 0.95);
|
|
color: $foreground;
|
|
|
|
.close-mobile-menu {
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
justify-items: flex-end;
|
|
width: 100vw;
|
|
max-width: 100vw;
|
|
font-size: 4rem;
|
|
background-color: rgba($darkRed, 0.5);
|
|
|
|
&:hover {
|
|
color: #ffffff;
|
|
}
|
|
}
|
|
.item {
|
|
width: 100vw;
|
|
height: 10px;
|
|
max-height: 4rem;
|
|
// height: 2rem;
|
|
}
|
|
|
|
.sub.item {
|
|
padding-left: 3rem;
|
|
background-color: map-get($dark, "buttonActive");
|
|
}
|
|
}
|