opengoal-launcher/style.css
2022-04-11 01:45:29 -04:00

201 lines
3 KiB
CSS

* {
-webkit-user-drag: none;
font-family: 'AdventPro', sans-serif;
}
:root {
--bg-blue: #1B202B;
}
@font-face {
font-family: 'AdventPro';
font-style: normal;
font-weight: 400;
src: url('src/assets/fonts/AdventPro-Regular.ttf');
}
@font-face {
font-family: 'AdventPro';
font-style: normal;
font-weight: 700;
src: url('src/assets/fonts/AdventPro-Bold.ttf');
}
body {
height: 100vh;
padding: 0;
margin: 0;
overflow: hidden;
font-style: normal;
font-weight: 400;
}
.video-container {
position: absolute;
z-index: -1;
height: 100vh;
}
.overlay {
position: absolute;
top: 0;
left: 0;
background-color: whitesmoke;
width: 100%;
height: 100vh;
opacity: 0.35;
}
#background {
z-index: -1;
height: 100vh;
}
.container {
display: flex;
}
.sidebar {
display: flex;
flex-direction: column;
height: 100vh;
background-color: var(--bg-blue);
opacity: 50%;
transition: 500ms ease;
width: 10vw;
max-width: 10vw;
}
.sidebar:hover {
opacity: 100%;
}
.games {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
height: 50vh;
}
.nav-item {
margin: 0 5px;
filter: grayscale(100%);
transition: 500ms ease;
opacity: 50%;
}
.nav-item.active {
filter: grayscale(0%);
}
.nav-item:hover {
filter: grayscale(0%);
opacity: 100%;
cursor: pointer;
}
.nav-item.disabled:hover, .nav-item.disabled {
cursor: not-allowed;
filter: grayscale(100%);
}
.nav-item a::before,
.nav-item a::after {
--scale: 0;
position: absolute;
transform: translateX(55px) scale(var(--scale));
transition: 200ms ease;
transform-origin: left center;
}
.nav-item a::before {
padding: .5rem;
width: max-content;
background: #333;
color: white;
content: attr(data-tooltip);
border-radius: .3rem;
text-align: center;
}
.nav-item a:hover::before {
--scale: 1
}
.nav-item img {
width: 100%;
}
.spacer {
display: flex;
height: 20vh;
}
.controls {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
height: 30vh;
}
.controls i {
color: white;
font-size: 35px;
}
.main {
display: flex;
justify-content: center;
flex-direction: column;
height: 100vh;
width: 90vw;
max-width: 90vw;
}
.flex-center {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.flex-center > div {
margin: 15px 0;
}
.buttons > button {
text-align: center;
min-width: 200px;
padding: 10px 0;
background: linear-gradient(to top, #F3B33F, #FBEC4F);
border: none;
font-weight: bold;
font-size: x-large;
letter-spacing: 3px;
color: white;
border: black 1px solid;
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
border-radius: 5px;
transition: all 0.1s ease;
}
.buttons > button:not(:last-child) {
margin-right: 1em;
}
.buttons button:active {
transform: scale(0.9);
box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);
}
.buttons button:hover {
cursor: pointer;
color: orange;
}