flex-flow: row; | flex-flow: row; | ||||
} | } | ||||
// Used to hide the ENTIRE page until the system has finished readying | |||||
// everything. | |||||
.cover { | |||||
@include cover(); | |||||
} | |||||
.coverFadeout { | |||||
-webkit-animation: coverFadeout 1s linear 1 forwards; | |||||
animation: coverFadeout 1s linear 1 forwards; | |||||
} | |||||
@-webkit-keyframes coverFadeout { | |||||
0% {@include opacity(1);} | |||||
100% {@include opacity(0);} | |||||
} | |||||
@keyframes coverFadeout { | |||||
0% {@include opacity(1);} | |||||
100% {@include opacity(0);} | |||||
} |
@mixin opacity($value){ | |||||
-webkit-opacity: $value; | |||||
-moz-opacity: $value; | |||||
opacity: $value; | |||||
} | |||||
@mixin transition($properties){ | |||||
-webkit-transition: $properties; | |||||
-moz-transition: $properties; | |||||
-ms-transition: $properties; | |||||
-o-transition: $properties; | |||||
transition: $properties; | |||||
} | |||||
@mixin cover(){ | |||||
position: fixed; /* Stay in place */ | |||||
z-index: 1; /* Sit on top */ | |||||
left: 0; | |||||
top: 0; | |||||
width: 100%; /* Full width */ | |||||
height: 100%; /* Full height */ | |||||
overflow: hidden; | |||||
background-color: rgb(0,0,0); /* Fallback color */ | |||||
} |
/* The Modal (background) */ | /* The Modal (background) */ | ||||
.modal { | .modal { | ||||
display: none; /* Hidden by default */ | display: none; /* Hidden by default */ | ||||
position: fixed; /* Stay in place */ | |||||
z-index: 1; /* Sit on top */ | |||||
left: 0; | |||||
top: 0; | |||||
width: 100%; /* Full width */ | |||||
height: 100%; /* Full height */ | |||||
overflow: hidden; | |||||
background-color: rgb(0,0,0); /* Fallback color */ | |||||
@include cover(); | |||||
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ | background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ | ||||
} | } | ||||
// Variables and Mixins | // Variables and Mixins | ||||
@import 'variables'; | @import 'variables'; | ||||
@import 'mixins'; | |||||
// NES Specific colors | // NES Specific colors | ||||
@import 'nescolors'; | @import 'nescolors'; |