Explorar o código

fix for mobile scroll on alignfull galleries

Maggie Cabrera %!s(int64=4) %!d(string=hai) anos
pai
achega
fbfaba4b20

+ 1 - 1
seedlet/assets/css/ie.css

@@ -2406,7 +2406,7 @@ object {
 	padding: 12px 13px;
 	padding: 12px 13px;
 }
 }
 
 
-.wp-block-gallery {
+.wp-block-gallery:not(.alignfull) {
 	margin: 0 auto;
 	margin: 0 auto;
 }
 }
 
 

+ 3 - 1
seedlet/assets/sass/blocks/gallery/_style.scss

@@ -1,6 +1,8 @@
 .wp-block-gallery {
 .wp-block-gallery {
 
 
-	margin: 0 auto;
+	&:not(.alignfull) {
+		margin: 0 auto;
+	}
 
 
 	.blocks-gallery-image,
 	.blocks-gallery-image,
 	.blocks-gallery-item {
 	.blocks-gallery-item {

+ 1 - 1
seedlet/style-rtl.css

@@ -1516,7 +1516,7 @@ object {
 	padding: calc(0.5 * var(--button--padding-vertical)) calc(0.5 * var(--button--padding-horizontal));
 	padding: calc(0.5 * var(--button--padding-vertical)) calc(0.5 * var(--button--padding-horizontal));
 }
 }
 
 
-.wp-block-gallery {
+.wp-block-gallery:not(.alignfull) {
 	margin: 0 auto;
 	margin: 0 auto;
 }
 }
 
 

+ 7 - 7
seedlet/style.css

@@ -29,13 +29,13 @@ GNU General Public License for more details.
 Seedlet is derived from Twenty Nineteen. 2018-2020 WordPress.org
 Seedlet is derived from Twenty Nineteen. 2018-2020 WordPress.org
 Twenty Nineteen is distributed under the terms of the GNU GPL v2 or later.
 Twenty Nineteen is distributed under the terms of the GNU GPL v2 or later.
 
 
-Seedlet is also based on Underscores https://underscores.me/, (C) 2012-2018 Automattic, Inc.
+Seedlet is also based on Underscores https://underscores.me/, (C) 2012-2018 Automattic, Inc. 
 Underscores is distributed under the terms of the GNU GPL v2 or later.
 Underscores is distributed under the terms of the GNU GPL v2 or later.
 
 
 Normalizing styles have been helped along thanks to the fine work of
 Normalizing styles have been helped along thanks to the fine work of
 Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
 Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
 
 
-Unless otherwise noted, the icons in this theme are derived from the
+Unless otherwise noted, the icons in this theme are derived from the 
 WordPress Icons Library, licensed under the terms of the GNU GPL v2 or later.
 WordPress Icons Library, licensed under the terms of the GNU GPL v2 or later.
 https://github.com/WordPress/gutenberg/tree/master/packages/icons
 https://github.com/WordPress/gutenberg/tree/master/packages/icons
 
 
@@ -55,7 +55,7 @@ Included as part of the following classes and functions:
 
 
 Color Contrast Validation
 Color Contrast Validation
 Copyright (C) 2016 Per Soderlind
 Copyright (C) 2016 Per Soderlind
-License: GNU General Public License v3
+License: GNU General Public License v3 
 License URI: http://www.gnu.org/licenses/gpl-3.0.html
 License URI: http://www.gnu.org/licenses/gpl-3.0.html
 Source: https://github.com/soderlind/2016-customizer-demo
 Source: https://github.com/soderlind/2016-customizer-demo
 Included as part of the following classes and functions:
 Included as part of the following classes and functions:
@@ -1524,7 +1524,7 @@ object {
 	padding: calc(0.5 * var(--button--padding-vertical)) calc(0.5 * var(--button--padding-horizontal));
 	padding: calc(0.5 * var(--button--padding-vertical)) calc(0.5 * var(--button--padding-horizontal));
 }
 }
 
 
-.wp-block-gallery {
+.wp-block-gallery:not(.alignfull) {
 	margin: 0 auto;
 	margin: 0 auto;
 }
 }
 
 
@@ -2401,7 +2401,7 @@ table th,
 
 
 /* Block Alignments */
 /* Block Alignments */
 /**
 /**
- * These selectors set the default max width for content appearing inside a post or page.
+ * These selectors set the default max width for content appearing inside a post or page. 
  */
  */
 /**
 /**
  * .alignleft
  * .alignleft
@@ -2780,8 +2780,8 @@ table th,
 	padding-left: var(--global--spacing-vertical) !important;
 	padding-left: var(--global--spacing-vertical) !important;
 }
 }
 
 
-/*
- * Custom gradients
+/* 
+ * Custom gradients 
 */
 */
 .has-hard-diagonal-gradient-background {
 .has-hard-diagonal-gradient-background {
 	background: linear-gradient(to bottom right, var(--global--color-secondary) 49.9%, var(--global--color-tertiary) 50%);
 	background: linear-gradient(to bottom right, var(--global--color-secondary) 49.9%, var(--global--color-tertiary) 50%);