fix btn positioning using media queries
This commit is contained in:
parent
438afc6241
commit
7c6e490b82
@ -14,15 +14,26 @@
|
||||
|
||||
> * {
|
||||
margin: 0 $sm-padding-x;
|
||||
|
||||
@include mq($small-only) {
|
||||
margin: 0 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.left{
|
||||
position: absolute;
|
||||
@include mq($small-only) {
|
||||
bottom: $sm-padding-x;
|
||||
left: $sm-padding-x;
|
||||
}
|
||||
}
|
||||
|
||||
.center {
|
||||
align-items: center;
|
||||
@include mq($xsmall-only) {
|
||||
justify-content: right;
|
||||
}
|
||||
}
|
||||
|
||||
.button {
|
||||
|
@ -7,6 +7,11 @@
|
||||
> * {
|
||||
margin: 0 $sm-padding-x;
|
||||
|
||||
@include mq($xsmall-only) {
|
||||
margin: 0 5px;
|
||||
justify-content: right;
|
||||
}
|
||||
|
||||
span:first-child {
|
||||
box-shadow: 0 2px 5px 0 rgb(0, 0, 0);
|
||||
}
|
||||
|
@ -13,9 +13,10 @@
|
||||
@return nth($range, 2);
|
||||
}
|
||||
|
||||
|
||||
$small-range: (0em, 40em);
|
||||
/* 0, 640px */
|
||||
$xsmall-range: (0em, 23.437em);
|
||||
/* 0, 375px */
|
||||
$small-range: (23.5em, 40em);
|
||||
/* 376p, 640px */
|
||||
$medium-range: (40.063em, 64em);
|
||||
/* 641px, 1024px */
|
||||
$large-range: (64.063em, 90em);
|
||||
@ -30,6 +31,7 @@ $landscape: "#{$screen} and (orientation: landscape)";
|
||||
$portrait: "#{$screen} and (orientation: portrait)";
|
||||
$small-up: $screen;
|
||||
$small-only: "#{$screen} and (max-width: #{upper-bound($small-range)})";
|
||||
$xsmall-only: "#{$screen} and (min-width:#{lower-bound($xsmall-range)}) and (max-width:#{upper-bound($xsmall-range)})";
|
||||
$medium-up: "#{$screen} and (min-width:#{lower-bound($medium-range)})";
|
||||
$medium-only: "#{$screen} and (min-width:#{lower-bound($medium-range)}) and (max-width:#{upper-bound($medium-range)})";
|
||||
$large-up: "#{$screen} and (min-width:#{lower-bound($large-range)})";
|
||||
@ -44,6 +46,7 @@ $breakpoints: (
|
||||
'landscape': $landscape,
|
||||
'portrait': $portrait,
|
||||
'small': $small-only,
|
||||
'xsmall': $xsmall-only,
|
||||
'medium': $medium-only,
|
||||
'large': $large-only,
|
||||
'xlarge': $xlarge-only,
|
||||
|
Loading…
Reference in New Issue
Block a user