浏览代码

Merge pull request #430 from Automattic/button-add-fancy-styles

Button 2: Improve appearance of fancy image blocks in preview.
Laurel 6 年之前
父节点
当前提交
6f4ef04c51
共有 1 个文件被更改,包括 35 次插入0 次删除
  1. 35 0
      button-2/editor-blocks.css

+ 35 - 0
button-2/editor-blocks.css

@@ -249,6 +249,41 @@ Description: Gutenberg Block Editor Styles
 			transform: rotate(-180deg);
 }
 
+@media only screen and (min-width: 40.063em) {
+	.wp-block-image.is-style-fancy:before,
+	.wp-block-image.fancy:before,
+	.wp-block-image.is-style-fancy:after,
+	.wp-block-image.fancy:after,
+	.wp-block-image.is-style-fancy .components-resizable-box__container:before,
+	.wp-block-image.fancy .components-resizable-box__container:before,
+	.wp-block-image.is-style-fancy .components-resizable-box__container:after,
+	.wp-block-image.fancy .components-resizable-box__container:after {
+		width: 75px;
+		height: 75px;
+		background-size: 75px;
+	}
+}
+
+/* Improve appearance of fancy image block in preview */
+
+.editor-block-styles__item-preview .wp-block-image.is-style-fancy:before,
+.editor-block-styles__item-preview .wp-block-image.is-style-fancy:after,
+.editor-block-styles__item-preview .wp-block-image.is-style-fancy .components-resizable-box__container:before,
+.editor-block-styles__item-preview .wp-block-image.is-style-fancy .components-resizable-box__container:after {
+	width: 20px;
+	height: 20px;
+	background-size: 20px;
+}
+
+.editor-block-preview .wp-block-image.is-style-fancy:before,
+.editor-block-preview .wp-block-image.is-style-fancy:after,
+.editor-block-preview .wp-block-image.is-style-fancy .components-resizable-box__container:before,
+.editor-block-preview .wp-block-image.is-style-fancy .components-resizable-box__container:after {
+	width: 30px;
+	height: 30px;
+	background-size: 30px;
+}
+
 /* Quote */
 
 .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {