@import 'partials/_colors.scss';
html,body {
height: 100vh;
margin: 0;
padding: 0;
font-family: 'Roboto', sans-serif;
overflow: hidden;
background-color: $primary;
color: $primary-text;
user-select: none;
}
body {
display: flex;
flex-direction: column;
background-color: $secondary;
position: relative;
}
.backdrop {
background-color: $secondary;
color: $secondary-text;
font-size: 1rem;
.header-bar {
display: flex;
align-items: center;
.menu-icon {
background-image: url("/ressources/menu.png");
background-position: center;
background-repeat: no-repeat;
width: 36px;
height: 36px;
padding: 4px;
margin: 1rem;
display: inline-block;
border: none;
border-radius: 32px;
transition: background-color 100ms ease;
&:hover {
background-color: $secondary-dark;
}
&.open {
background-image: url("/ressources/menu_close.png");
}
}
.header {
margin: 0;
padding: 16px;
text-align: center;
z-index: 2;
flex-grow: 1;
@media (min-width: 450px) {
margin-right: 56px;
}
}
}
.menu-actions {
box-sizing: border-box;
transition: max-height 200ms ease, color 200ms ease, background-color 100ms ease;;
position: relative;
max-height: 16rem;
margin: 0 1rem;
.menu-option {
color: $primary-text;
text-decoration: none;
box-sizing: border-box;
display: inline-block;
font-size: 1.5rem;
width: 100%;
text-align: center;
padding: 1rem;
border: none;
border-radius: 8px;
cursor: pointer;
&:hover {
background-color: $secondary-half-dark;
}
&.active {
background-color: $secondary-dark;
}
}
&.hidden {
max-height: 0;
color: rgba(0,0,0,0);
.menu-option {
color: rgba(0,0,0,0);
background-color: rgba(0,0,0,0) !important;
}
}
}
}
.container {
@keyframes start {
from {top: 100vh;}
to {top: 0;}
}
position: relative;
border: none;
border-radius: 16px 16px 0 0;
min-height: 0;
box-sizing: border-box;
background-color: white;
margin-top: 8px;
animation-name: start;
animation-duration: 1s;
animation-timing-function: ease;
color: black;
display: flex;
flex-direction: column;
.banner {
z-index: 1;
background-color: white;
border: none;
border-radius: 16px 16px 0 0;
display: flex;
margin: 0;
margin-bottom: 1rem;
padding-top: 1rem;
max-height: 10rem;
flex-direction: row;
flex-wrap: wrap;
transform-origin: top;
transition: max-height 200ms ease, transform 200ms ease, visibility 200ms step-start;
&.hidden {
transform: scaleY(0);
visibility: hidden;
max-height: 0;
transition: max-height 200ms ease, transform 200ms ease, visibility 200ms step-end;
}
.banner-text {
align-self: left;
margin: 1rem;
flex-grow: 1;
}
.btn-container{
flex-grow: 1;
text-align: right;
.banner-button {
display: inline-block;
background: none;
color: $secondary-dark;
border: none;
box-shadow: none;
font-size: 1rem;
align-self: right;
text-transform: uppercase;
padding: 16px;
margin: 0;
margin-right: 1rem;
font-family: 'Roboto Condensed', sans-serif;
cursor: pointer;
font-weight: bold;
letter-spacing: 0.125rem;
}
}
hr {
width: 100%;
}
}
.server-listing {
box-sizing: border-box;
background-color: $primary;
color: $primary-text;
min-height: 0;
display: flex;
flex-direction: column;
border-style: none;
border-radius: 8px;
margin: 1rem;
margin-bottom: 2rem;
padding: 0.5rem;
padding-top: 0.25rem;
box-shadow: 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12), 0 5px 5px -3px rgba(0, 0, 0, .2);
h1 {
text-align: center;
}
hr {
width: 100%;
}
.server-entries {
overflow-y: auto;
min-height: 0;
}
}
.copyright-container {
box-sizing: border-box;
position: absolute;
width: 100%;
margin: 4px;
bottom: 0;
text-align: center;
}
}