Improved styles

This commit is contained in:
Alejandro Celaya 2019-01-07 13:45:16 +01:00
parent 6abc0e7d02
commit 2be771cbcc
5 changed files with 12 additions and 21 deletions

View file

@ -1,5 +1,4 @@
@import '../utils/base';
@import '../utils/mixins/box-shadow';
@import '../utils/mixins/vertical-align';
$asideMenuMobileWidth: 280px;
@ -26,8 +25,7 @@ $asideMenuMobileWidth: 280px;
width: $asideMenuMobileWidth !important;
transition: left 300ms;
top: $headerHeight - 3px;
@include box-shadow(-10px 0 50px 11px rgba(0, 0, 0, .55));
box-shadow: -10px 0 50px 11px rgba(0, 0, 0, .55);
}
}

View file

@ -1,4 +0,0 @@
@mixin border-radius($radius) {
border-radius: $radius;
-webkit-border-radius: $radius;
}

View file

@ -1,4 +0,0 @@
@mixin box-shadow($shadow) {
-webkit-box-shadow: $shadow;
box-shadow: $shadow;
}

View file

@ -0,0 +1,8 @@
@mixin fit-with-margin($margin) {
$offset: $margin * 2;
width: calc(100% - #{$offset});
max-width: calc(100% - #{$offset});
height: calc(100% - #{$offset});
margin: $margin;
}

View file

@ -1,24 +1,17 @@
@import '../../utils/base';
@import '../../utils/mixins/fit-with-margin';
.map-modal__modal {
@media (min-width: $mdMin) {
$margin: 20px;
$offset: $margin * 2;
width: calc(100% - #{$offset});
max-width: calc(100% - #{$offset});
height: calc(100% - #{$offset});
margin: $margin;
@include fit-with-margin($margin);
}
@media (max-width: $smMax) {
$margin: 10px;
$offset: $margin * 2;
width: calc(100% - #{$offset});
max-width: calc(100% - #{$offset});
height: calc(100% - #{$offset});
margin: $margin;
@include fit-with-margin($margin);
}
}