浏览代码

Affinity: Remove wide and full alignments for now. Both alignments aren't available in all cases, which could be confusing. I think it's a good candidate to re-add down the road, though, once we figure out the best way to handle full alignments and offset content areas.

Laurel Fulford 6 年之前
父节点
当前提交
e714bdb0b8
共有 2 个文件被更改,包括 1 次插入95 次删除
  1. 1 90
      affinity/blocks.css
  2. 0 5
      affinity/functions.php

+ 1 - 90
affinity/blocks.css

@@ -44,95 +44,6 @@ p.has-drop-cap:not(:focus)::first-letter {
 	display: flex;
 }
 
-/* Full Width */
-
-.no-sidebar.page figure.alignfull,
-.no-sidebar.page .wp-block-cover.alignfull,
-.no-sidebar.page .wp-block-gallery.alignfull,
-.no-sidebar.page .wp-block-embed.is-type-video.alignfull {
-	width: 100vw;
-	max-width: 100vw;
-	margin-left: 0;
-	margin-right: 0;
-	position: relative;
-	left: 50%;
-	transform: translateX( -50% );
-}
-
-.rtl.no-sidebar.page figure.alignfull,
-.rtl.no-sidebar.page .wp-block-cover.alignfull,
-.rtl.no-sidebar.page .wp-block-gallery.alignfull,
-.rtl.no-sidebar.page .wp-block-embed.is-type-video.alignfull {
-	left: auto;
-	right: 50%;
-	transform: translateX( 50% );
-}
-
-.no-sidebar.page .wp-block-embed.is-type-video.alignfull:before {
-	content: "";
-	display: block;
-}
-
-.no-sidebar.page .wp-block-embed.is-type-video.alignfull iframe {
-	position:  absolute;
-	top: 0;
-	left: 0;
-	bottom: 0;
-	right: 0;
-	width: 100%;
-	height: 100%;
-}
-
-.wp-embed-aspect-1-1:before {
-	padding-top: 100%;
-}
-
-.wp-embed-aspect-2-1:before {
-	padding-top: 50%;
-}
-
-.wp-embed-aspect-1-2:before {
-	padding-top: 200%;
-}
-
-.wp-embed-aspect-4-3:before {
-	padding-top: 75%;
-}
-
-.wp-embed-aspect-16-9:before {
-	padding-top: 56.25%;
-}
-
-/* Wide Width */
-
-@media screen and ( min-width: 48em ) {
-	figure.alignwide.below-sidebar.below-entry-meta,
-	.wp-block-cover.alignwide.below-sidebar.below-entry-meta,
-	.wp-block-gallery.alignwide.below-sidebar.below-entry-meta,
-	.wp-block-embed.is-type-video.alignwide.below-sidebar.below-entry-meta {
-		width: 120%;
-		max-width: 120%;
-		margin-left: -10%;
-		margin-right: -10%;
-		position: relative;
-	}
-
-	.wp-block-embed.is-type-video.alignwide.below-sidebar.below-entry-meta:before {
-		content: "";
-		display: block;
-	}
-
-	.wp-block-embed.is-type-video.alignwide.below-sidebar.below-entry-meta iframe {
-		position:  absolute;
-		top: 0;
-		left: 0;
-		bottom: 0;
-		right: 0;
-		width: 100%;
-		height: 100%;
-	}
-}
-
 /* Gallery */
 
 .wp-block-gallery {
@@ -344,4 +255,4 @@ hr.wp-block-separator {
 	.wp-block-quote.is-style-large p {
 		font-size: 36px;
 	}
-}
+}

+ 0 - 5
affinity/functions.php

@@ -40,11 +40,6 @@ function affinity_setup() {
 	 */
 	add_editor_style();
 
-	/*
-	 * Add wide and full images support for Gutenberg
-	 */
-	add_theme_support( 'align-wide' );
-
 	/*
 	 * Add support for responsive embeds.
 	 */