Переглянути джерело

Remove wide/full styles; this theme will not support them initially due to off-center content area regardless of whether a sidebar is active.

Caroline Moore 6 роки тому
батько
коміт
89bdff3ade
2 змінених файлів з 13 додано та 93 видалено
  1. 6 91
      canard/blocks.css
  2. 7 2
      canard/editor-blocks.css

+ 6 - 91
canard/blocks.css

@@ -48,96 +48,6 @@ p.has-drop-cap:not(:focus)::first-letter {
 	display: flex;
 }
 
-/* Full Width
-figure.alignfull,
-.wp-block-cover.alignfull,
-.wp-block-gallery.alignfull,
-.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 figure.alignfull,
-.rtl .wp-block-cover.alignfull,
-.rtl .wp-block-gallery.alignfull,
-.rtl .wp-block-embed.is-type-video.alignfull {
-	left: auto;
-	right: 50%;
-	transform: translateX(50%);
-}
-
-.wp-block-embed.is-type-video.alignfull:before {
-	content: "";
-	display: block;
-}
-
-.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 (min-width: 1024px) {
-	figure.alignwide,
-	.wp-block-cover.alignwide,
-	.wp-block-gallery.alignwide,
-	.wp-block-embed.is-type-video.alignwide {
-		width: 110%;
-		max-width: 110%;
-		margin-left: -5%;
-		margin-right: -5%;
-		position: relative;
-	}
-
-	.wp-block-embed.is-type-video.alignwide:before {
-		content: "";
-		display: block;
-	}
-
-	.wp-block-embed.is-type-video.alignwide iframe {
-		position:  absolute;
-		top: 0;
-		left: 0;
-		bottom: 0;
-		right: 0;
-		width: 100%;
-		height: 100%;
-	}
-} */
-
 /* Gallery */
 
 .wp-block-gallery {
@@ -241,7 +151,7 @@ figure.alignfull,
 	border-bottom: 2px solid currentColor;
 	color: #555;
 	font-style: italic;
-	margin: 0 0 30px;
+	margin: 15px 0 30px;
 	padding: 15px 0;
 	position: relative;
 }
@@ -255,6 +165,11 @@ figure.alignfull,
 	font-size: 20px;
 }
 
+.wp-block-pullquote.alignleft cite,
+.wp-block-pullquote.alignright cite {
+	font-size: 16px;
+}
+
 .rtl .wp-block-pullquote blockquote {
 }
 

+ 7 - 2
canard/editor-blocks.css

@@ -599,11 +599,16 @@ body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block:no
 	margin: 0;
 }
 
-.wp-block-pullquote.alignleft blockquote,
-.wp-block-pullquote.alignright blockquote {
+.wp-block-pullquote.alignleft blockquote p,
+.wp-block-pullquote.alignright blockquote p {
 	font-size: 20px;
 }
 
+.wp-block-pullquote.alignleft .wp-block-pullquote__citation,
+.wp-block-pullquote.alignright .wp-block-pullquote__citation {
+	font-size: 16px;
+}
+
 .wp-block-pullquote .wp-block-pullquote__citation {
 	text-transform: none;
 	font-size: inherit;