Show embedded blocks full width on mobile

This commit is contained in:
Jake Howard 2022-06-28 22:14:23 +01:00
parent e6c8546129
commit a0ddf1c434
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 11 additions and 6 deletions

View File

@ -1,9 +1,15 @@
@mixin center-block {
width: $embed-width;
@mixin center-block($width: 85%, $mobile-width: 90%) {
width: $width;
margin: 0 auto;
max-width: $embed-width;
min-width: $embed-width;
max-width: $width;
min-width: $width;
@include touch {
max-width: $mobile-width;
min-width: $mobile-width;
width: $mobile-width;
}
}
div.block-image {
@ -25,6 +31,6 @@ div.block-image {
div.block-embed {
lite-youtube {
@include center-block;
@include center-block(50%);
}
}

View File

@ -1 +0,0 @@
$embed-width: 85%;