console-hub/html/styles.scss
2019-06-23 10:03:46 +02:00

430 lines
9.8 KiB
SCSS

/*
* VARS
*/
$unselected: rgb(182,182,182);
$selected: white;
/*
* FONTS
*/
@font-face {
font-family: 'Open sans';
src: url('https://console.danbulant.eu/open-sans/OpenSans-Regular.ttf');//online version
}
@font-face {
font-family: 'Gilroy-bold';
src: url('https://console.danbulant.eu/Gilroy-ExtraBold.otf');//online version, if you want offline, put fonts in this folder and change the link here
}
body {
background: #5d75ad;
background: linear-gradient(216deg, #6b89cf, #3a3766);
background-size: 400% 400%;
-webkit-animation: BackgroundGradient 33s ease infinite;
-moz-animation: BackgroundGradient 33s ease infinite;
-o-animation: BackgroundGradient 33s ease infinite;
animation: BackgroundGradient 33s ease infinite;
}
/*
* Background
*/
@-webkit-keyframes BackgroundGradient {
0%{background-position:0% 22%}
50%{background-position:100% 79%}
100%{background-position:0% 22%}
}
@-moz-keyframes BackgroundGradient {
0%{background-position:0% 22%}
50%{background-position:100% 79%}
100%{background-position:0% 22%}
}
@-o-keyframes BackgroundGradient {
0%{background-position:0% 22%}
50%{background-position:100% 79%}
100%{background-position:0% 22%}
}
@keyframes BackgroundGradient {
0%{background-position:0% 22%}
50%{background-position:100% 79%}
100%{background-position:0% 22%}
}
/*
* Main menu
*/
.main {
display: block;
position: fixed;
bottom: 40px;
left: 10px;
.button-main-container {
display: inline-block;
height: 120px;
.button-main {
transition: 0.5s margin-top;
margin-top: 20px;
color: $unselected;
span {
padding-left: 10px;
}
.button-menu {
margin-left: 5px;
margin-right: 5px;
padding-left: 45px;
padding-right: 45px;
border-radius: 5px;
height: 100px;
width: 100px;
color: white;
background: #414E92;
.material-icons {
font-size: 100px;
}
}
}
}
}
.button-main-container .button-main.selected{
color: white;
margin-top: 0px;
.button-menu{
background: #3D7BFF;
box-shadow: 0px 0px 5px rgba(61, 123, 255, 0.8);
}
}
html {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
body {
padding: 0;
margin: 0;
width: 100%;
height: 95%;
}
font-family: 'Open Sans', sans-serif;
}
.hidden {
display: none !important;
}
.title-font {
font-family: 'Gilroy-bold', 'Open Sans', sans-serif;
}
/*
* Tab views
*/
#selection {
position: absolute;
top: 50px;
left: 15px;
width: calc(100% - 15px);
.menu-item {
color: white;
h1 {
font-family: 'Gilroy-bold', 'Open Sans', sans-serif;
padding: 10px;
font-size: 50px;
margin: 0;
}
}
#games-view {
.previews {
height: 150px;
.game {
height: auto;
text-align: justify;
height: 150px;
.game-preview {
height: 130px;
border-radius: 5px;
// Now in JS
// -webkit-transition: 0.5s width, 0.5s height, 0.5s max-height, 0.3s top, 0.3s left, 0.5s opacity;
// -moz-transition: 0.5s width, 0.5s height, 0.5s max-height, 0.3s top, 0.3s left, 0.5s opacity;
// transition: 0.5s width, 0.5s height, 0.5s max-height, 0.3s top, 0.3s left, 0.5s opacity;
}
font-size: 20px;
display: inline-block;
color: $unselected;
opacity: 1;
-webkit-transition: 0.5s width, 0.5s height, 0.5s max-height, 0.3s top, 0.3s left, 0.5s opacity;
-moz-transition: 0.5s width, 0.5s height, 0.5s max-height, 0.3s top, 0.3s left, 0.5s opacity;
transition: 0.5s width, 0.5s height, 0.5s max-height, 0.3s top, 0.3s left, 0.5s opacity;
}
.game.selected {
height: 190px;
color: $selected;
.game-preview {
height: 170px;
-webkit-box-shadow: 0px 27px 72px -32px rgba(0,0,0,0.51);
-moz-box-shadow: 0px 27px 72px -32px rgba(0,0,0,0.51);
box-shadow: 0px 27px 72px -32px rgba(0,0,0,0.51);
}
}
}
}
}
/*
* Information panel, marked as 'nav'
*/
nav {
z-index:999;
display: flex;
justify-content: space-between;
padding: 10px;
position: fixed;
top: 0;
left: 0;
height: 30px;
width: calc(100% - 20px);
.profile {
left: 0;
}
.info {
right: 0;
}
div {
display: inline;
color: white;
}
}
/*
* Dialog
*/
#dialog {
display: block;
position: fixed;
z-index: 998;
}
/*
* Account
*/
#account-view {
button {
color: white;
background-color: transparent;
border: 1px solid white;
border-radius: 40px;
font-size: 20px;
}
}
/*
* Settings page
*/
#settings-view {
.option {
color: $unselected;
}
.option.selected {
color: $selected;
}
.option.switchable {
.switch .slider{
width: 52px;
height: 25px;
}
.switch .slider:before {
width: 18px;
height: 18px;
}
}
}
/*
* Startup
*/
.welcome-main {
color: white;
width: 500px;
margin-left: auto;
margin-right: auto;
position: relative;
top: 50%;
transform: translateY(-50%);
//fade out transition
-webkit-transition: opacity 1s ease-in-out;
-moz-transition: opacity 1s ease-in-out;
-ms-transition: opacity 1s ease-in-out;
-o-transition: opacity 1s ease-in-out;
transition: opacity 1s ease-in-out;
h1 {
font-size: 100px;
margin: 0;
}
h5 {
margin-top: 0;
b {
}
}
}
.welcome-main.hide {
opacity: 0;
}
.glow {
color: #fff;
text-align: center;
-webkit-animation: glow 1s ease-in-out infinite alternate;
-moz-animation: glow 1s ease-in-out infinite alternate;
animation: glow 1s ease-in-out infinite alternate;
}
$innerGlowColor: #fff;
$outerGlowColorLight: #fff;//#e60073
$outerGlowColorDark: #969696;//#ff4da6
$GlowSize: 1px;
@-webkit-keyframes glow {
from {
text-shadow: 0 0 $GlowSize*1 $innerGlowColor, 0 0 $GlowSize*2 $innerGlowColor, 0 0 $GlowSize*3 $outerGlowColorLight, 0 0 $GlowSize*4 $outerGlowColorLight, 0 0 $GlowSize*5 $outerGlowColorLight, 0 0 $GlowSize*6 $outerGlowColorLight, 0 0 $GlowSize*7 $outerGlowColorLight;
}
to {
text-shadow: 0 0 $GlowSize*2 $innerGlowColor, 0 0 $GlowSize*3 $outerGlowColorDark, 0 0 $GlowSize*4 $outerGlowColorDark, 0 0 $GlowSize*5 $outerGlowColorDark, 0 0 $GlowSize*6 $outerGlowColorDark, 0 0 $GlowSize*7 $outerGlowColorDark, 0 0 $GlowSize*8 $outerGlowColorDark;
}
}
/*
* UI
*/
$MainColor: #fff;
$SecondaryColor: #fff;
$OutlineColor: rgb(196, 213, 1);
.back-arrow {
position: fixed;
bottom: 20px;
left: 20px;
color: $OutlineColor;
.circle {
border-radius: 50%;
border: 1px solid $OutlineColor;
}
vertical-align: middle;
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
}
/*
* Snackbar / toast messages
*/
/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
visibility: hidden; /* Hidden by default. Visible on click */
min-width: 250px; /* Set a default minimum width */
margin-left: -125px; /* Divide value of min-width by 2 */
//background-color: #333; /* Black background color */
color: #fff; /* White text color */
text-align: center; /* Centered text */
border-radius: 2px; /* Rounded borders */
padding: 16px; /* Padding */
position: fixed; /* Sit on top of the screen */
z-index: 100; /* Add a z-index if needed */
left: 50%; /* Center the snackbar */
bottom: 15px; /* 30px from the bottom */
}
/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
visibility: visible; /* Show the snackbar */
/* Add animation: Take 0.5 seconds to fade in and out the snackbar.
However, delay the fade out process for 2.5 seconds */
-webkit-animation: snackbarFadein 0.5s, snackbarFadeout 0.5s 2.5s;
animation: snackbarFadein 0.5s, snackbarFadeout 0.5s 2.5s;
}
/* Animations to fade the snackbar in and out */
@-webkit-keyframes snackbarFadein {
from {bottom: 0; opacity: 0;}
to {bottom: 30px; opacity: 1;}
}
@keyframes snackbarFadein {
from {bottom: 0; opacity: 0;}
to {bottom: 30px; opacity: 1;}
}
@-webkit-keyframes snackbarFadeout {
from {bottom: 30px; opacity: 1;}
to {bottom: 0; opacity: 0;}
}
@keyframes snackbarFadeout {
from {bottom: 30px; opacity: 1;}
to {bottom: 0; opacity: 0;}
}
/*
* Switches / sliders
*/
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}