pvpokemon/src/ts/app/styles/PokemonApp.scss
2019-04-16 20:26:53 -04:00

155 lines
2.3 KiB
SCSS

@import '~styles/Variables.scss';
$overlay-opacity: 0.7;
$footer-height: 60px;
.displayWrapper {
margin: 0 auto;
& > * {
width: map-get($container-width, 'desktop');
margin: 0 1em;
@media only screen and (max-width: $max-mobile-width) {
width: auto;
margin: 0 0.1em;
}
}
}
.wrapper {
display: flex;
flex-flow: column nowrap;
align-items: stretch;
height: 100vh;
.body {
background-color: $main-background-color;
display: flex;
flex-flow: row nowrap;
align-items: stretch;
position: relative;
padding-bottom: $footer-height * 1.25;
}
&.overlaid {
background-color: rgba($main-overlay-color, $overlay-opacity);
.highlight {
z-index: 1;
}
}
}
.header {
display: flex;
flex: 0 0 auto;
justify-content: space-between;
align-items: center;
padding: 0.5rem 1rem;
position: sticky;
top: 0;
a {
display: inline-block;
display: flex;
}
}
ul {
display: grid;
justify-items: center;
}
.footer {
height: $footer-height;
position: fixed;
right: 0;
bottom: 0;
left: 0;
display: grid;
grid-template-columns: 1fr auto 1fr;
grid-column-gap: 1em;
justify-content: center;
padding-top: 0;
padding-bottom: 0;
.adWrapper {
width: 320px;
height: 50px;
grid-column-start: 2;
display: flex;
justify-content: space-evenly;
align-items: center;
}
.contactWrapper {
margin: auto 0 auto auto;
> * {
display: inline;
margin: 1em;
}
.feedback {
vertical-align: super;
}
}
}
.header,
.footer {
margin: 0.1em;
z-index: 10;
}
.navigationButton {
composes: navigationButton from '../components/PokemonExplorer/styles/Navigation.scss';
&.hamburgerIcon {
font-size: 2rem;
margin-top: -6px;
}
}
.overlay {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: $main-overlay-color;
opacity: $overlay-opacity;
&.complete {
z-index: 1;
}
}
.navigationWrapper {
display: flex;
margin: 0 auto;
}
.container {
display: flex;
justify-content: space-evenly;
.leftColumn,
.rightColumn {
display: flex;
flex-flow: column nowrap;
align-items: center;
}
.leftColumn {
width: 45%;
text-align: center;
}
.rightColumn {
flex-grow: 0;
align-items: start;
}
}