Show embedded blocks full width on mobile
This commit is contained in:
parent
e6c8546129
commit
a0ddf1c434
2 changed files with 11 additions and 6 deletions
|
@ -1,9 +1,15 @@
|
||||||
@mixin center-block {
|
@mixin center-block($width: 85%, $mobile-width: 90%) {
|
||||||
width: $embed-width;
|
width: $width;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
max-width: $embed-width;
|
max-width: $width;
|
||||||
min-width: $embed-width;
|
min-width: $width;
|
||||||
|
|
||||||
|
@include touch {
|
||||||
|
max-width: $mobile-width;
|
||||||
|
min-width: $mobile-width;
|
||||||
|
width: $mobile-width;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div.block-image {
|
div.block-image {
|
||||||
|
@ -25,6 +31,6 @@ div.block-image {
|
||||||
|
|
||||||
div.block-embed {
|
div.block-embed {
|
||||||
lite-youtube {
|
lite-youtube {
|
||||||
@include center-block;
|
@include center-block(50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
$embed-width: 85%;
|
|
Loading…
Reference in a new issue