Browse Source

fix horizontal scroll

Maggie 3 years ago
parent
commit
7a5e5f4db9
2 changed files with 4 additions and 13 deletions
  1. 2 7
      skatepark/assets/theme.css
  2. 2 6
      skatepark/sass/blocks/_cover.scss

+ 2 - 7
skatepark/assets/theme.css

@@ -140,13 +140,8 @@ p {
 }
 
 .wp-block-cover.alignfull {
-	padding-left: 0;
-	padding-right: 0;
-}
-
-.wp-block-cover.alignfull .wp-block-cover__inner-container {
-	padding-left: calc( max( 0.5 * ( 100% - var(--wp--custom--layout--wide-size) ), var(--wp--custom--post-content--padding--left) ));
-	padding-right: calc( max( 0.5 * ( 100% - var(--wp--custom--layout--wide-size) ), var(--wp--custom--post-content--padding--left) ));
+	padding-left: calc( max( 0.5 * ( 100% - var(--wp--custom--layout--wide-size) ) + var(--wp--custom--post-content--padding--left), var(--wp--custom--post-content--padding--left) ));
+	padding-left: calc( max( 0.5 * ( 100% - var(--wp--custom--layout--wide-size) ) + var(--wp--custom--post-content--padding--left), var(--wp--custom--post-content--padding--left) ));
 }
 
 .wp-block-post-comments .reply a {

+ 2 - 6
skatepark/sass/blocks/_cover.scss

@@ -1,10 +1,6 @@
 .wp-block-cover {
 	&.alignfull {
-		padding-left: 0;
-		padding-right: 0;
-		.wp-block-cover__inner-container {
-			padding-left: calc( max( 0.5 * ( 100% - var(--wp--custom--layout--wide-size) ), var(--wp--custom--post-content--padding--left) ));
-			padding-right: calc( max( 0.5 * ( 100% - var(--wp--custom--layout--wide-size) ), var(--wp--custom--post-content--padding--left) ));
-		}
+		padding-left: calc( max( 0.5 * ( 100% - var(--wp--custom--layout--wide-size) ) + var(--wp--custom--post-content--padding--left), var(--wp--custom--post-content--padding--left) ));
+		padding-left: calc( max( 0.5 * ( 100% - var(--wp--custom--layout--wide-size) ) + var(--wp--custom--post-content--padding--left), var(--wp--custom--post-content--padding--left) ));
 	}
 }