Browse Source

removes custom code for dealing with gallerys in varia based themes

Ben Dwyer 4 years ago
parent
commit
4c11d4aa2b

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

@@ -24,4 +24,4 @@
 	&.alignright {
 	&.alignright {
 		max-width: 50%;
 		max-width: 50%;
 	}
 	}
-}
+}

+ 8 - 9
seedlet/style-rtl.css

@@ -5,9 +5,8 @@ Author: Automattic
 Author URI: https://automattic.com/
 Author URI: https://automattic.com/
 Description: Seedlet is a free WordPress theme. A two-column layout and classically elegant typography creates a refined site that gives your works and images space to breathe - and shine. Seedlet was built to be the perfect partner to the block editor, and supports all the latest blocks. Writing, audio, illustrations, photography, video - use Seedlet to engage and direct visitors' eyes, without your theme getting in the way. And the responsive design shifts naturally between desktop and mobile devices. Seedlet is a great option for professionals and creatives looking for a sophisticated vibe. Whether you're looking to create a blog or a robust site promoting your business, do with simplicity, style, and Seedlet.
 Description: Seedlet is a free WordPress theme. A two-column layout and classically elegant typography creates a refined site that gives your works and images space to breathe - and shine. Seedlet was built to be the perfect partner to the block editor, and supports all the latest blocks. Writing, audio, illustrations, photography, video - use Seedlet to engage and direct visitors' eyes, without your theme getting in the way. And the responsive design shifts naturally between desktop and mobile devices. Seedlet is a great option for professionals and creatives looking for a sophisticated vibe. Whether you're looking to create a blog or a robust site promoting your business, do with simplicity, style, and Seedlet.
 Requires at least: 4.9.6
 Requires at least: 4.9.6
-Tested up to: 5.4.1
-Requires PHP: 7.3
-Version: 1.0.3-wpcom
+Tested up to: 5.5
+Version: 1.0.6-wpcom
 License: GNU General Public License v2 or later
 License: GNU General Public License v2 or later
 License URI: LICENSE
 License URI: LICENSE
 Text Domain: seedlet
 Text Domain: seedlet
@@ -1398,12 +1397,12 @@ object {
 	margin-bottom: var(--global--spacing-vertical);
 	margin-bottom: var(--global--spacing-vertical);
 }
 }
 
 
-.wp-block-cover .wp-block-cover__inner-container a,
-.wp-block-cover .wp-block-cover-image-text a,
-.wp-block-cover .wp-block-cover-text a,
-.wp-block-cover-image .wp-block-cover__inner-container a,
-.wp-block-cover-image .wp-block-cover-image-text a,
-.wp-block-cover-image .wp-block-cover-text a {
+.wp-block-cover .wp-block-cover__inner-container a:not(.has-text-color),
+.wp-block-cover .wp-block-cover-image-text a:not(.has-text-color),
+.wp-block-cover .wp-block-cover-text a:not(.has-text-color),
+.wp-block-cover-image .wp-block-cover__inner-container a:not(.has-text-color),
+.wp-block-cover-image .wp-block-cover-image-text a:not(.has-text-color),
+.wp-block-cover-image .wp-block-cover-text a:not(.has-text-color) {
 	color: currentColor;
 	color: currentColor;
 }
 }
 
 

+ 0 - 6
varia/sass/blocks/gallery/_style.scss

@@ -13,12 +13,6 @@
 		}
 		}
 	}
 	}
 
 
-	// On mobile and responsive viewports, we allow only 1 or 2 columns at the most.
-	& .blocks-gallery-image,
-	& .blocks-gallery-item {
-		width: calc( (100% - #{map-deep-get($config-global, "spacing", "unit")}) / 2);
-	}
-
 	// Apply max-width to floated items that have no intrinsic width.
 	// Apply max-width to floated items that have no intrinsic width.
 	&.alignleft,
 	&.alignleft,
 	&.alignright {
 	&.alignright {

+ 0 - 5
varia/style-rtl.css

@@ -1697,11 +1697,6 @@ button[data-load-more-btn], .button {
 	font-size: 0.69444rem;
 	font-size: 0.69444rem;
 }
 }
 
 
-.wp-block-gallery .blocks-gallery-image,
-.wp-block-gallery .blocks-gallery-item {
-	width: calc( (100% - 16px) / 2);
-}
-
 .wp-block-gallery.alignleft, .wp-block-gallery.alignright {
 .wp-block-gallery.alignleft, .wp-block-gallery.alignright {
 	max-width: 50%;
 	max-width: 50%;
 }
 }

+ 0 - 5
varia/style.css

@@ -1697,11 +1697,6 @@ button[data-load-more-btn], .button {
 	font-size: 0.69444rem;
 	font-size: 0.69444rem;
 }
 }
 
 
-.wp-block-gallery .blocks-gallery-image,
-.wp-block-gallery .blocks-gallery-item {
-	width: calc( (100% - 16px) / 2);
-}
-
 .wp-block-gallery.alignleft, .wp-block-gallery.alignright {
 .wp-block-gallery.alignleft, .wp-block-gallery.alignright {
 	max-width: 50%;
 	max-width: 50%;
 }
 }