vendor/assets/stylesheets/furatto/_modal.scss in furatto-1.0.1 vs vendor/assets/stylesheets/furatto/_modal.scss in furatto-1.0.2
- old
+ new
@@ -4,10 +4,11 @@
//@variables
//
//General settings
$modal-width: 80% !default;
+$modal-margin-left: ((40 * $modal-width) / 80) !default;
$modal-z-index: 1050 !default;
$modal-color: #FFF !default;
$modal-top-position: px-to-rems(80) !default;
$modal-position: absolute !default;
@@ -70,10 +71,10 @@
@include transform(translateX(-50%) translateY(-50%));
visibility: hidden;
color: $modal-color;
top: $modal-top-position;
width: $modal-width;
- margin-left: -40%;
+ margin-left: -$modal-margin-left;
left: 50%;
&.modal-show {
visibility: visible;
}