浏览代码

Merge pull request #375 from Automattic/independent-publisher-2-gutenberg-fixes

Independent Publisher 2: Minor fixes to Gutenberg implementation
Laurel 6 年之前
父节点
当前提交
69c2aad2b0
共有 3 个文件被更改,包括 175 次插入30 次删除
  1. 84 17
      independent-publisher-2/css/blocks.css
  2. 70 13
      independent-publisher-2/css/editor-blocks.css
  3. 21 0
      independent-publisher-2/rtl.css

+ 84 - 17
independent-publisher-2/css/blocks.css

@@ -68,6 +68,16 @@ body:not(.has-sidebar) .wp-block-latest-posts.alignfull {
 2.0 General Block Styles
 2.0 General Block Styles
 --------------------------------------------------------------*/
 --------------------------------------------------------------*/
 
 
+/* Captions */
+
+[class^="wp-block-"] figcaption {
+	font-size: 14.25px;
+	font-weight: 400;
+	font-style: italic;
+	color: #939393;
+
+}
+
 /*--------------------------------------------------------------
 /*--------------------------------------------------------------
 3.0 Blocks - Common Blocks
 3.0 Blocks - Common Blocks
 --------------------------------------------------------------*/
 --------------------------------------------------------------*/
@@ -234,11 +244,9 @@ body:not(.has-sidebar) .wp-block-table.alignfull {
 /* Buttons */
 /* Buttons */
 
 
 .wp-block-button .wp-block-button__link {
 .wp-block-button .wp-block-button__link {
-	background: #0087be;
 	border: solid 1px transparent;
 	border: solid 1px transparent;
 	border-radius: 3px;
 	border-radius: 3px;
 	box-sizing: content-box;
 	box-sizing: content-box;
-	color: #fff;
 	cursor: pointer;
 	cursor: pointer;
 	-webkit-transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
 	-webkit-transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
 			transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
 			transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
@@ -252,21 +260,24 @@ body:not(.has-sidebar) .wp-block-table.alignfull {
 	-moz-osx-font-smoothing: grayscale;
 	-moz-osx-font-smoothing: grayscale;
 }
 }
 
 
-.wp-block-button .wp-block-button__link:focus,
-.wp-block-button .wp-block-button__link:active {
+.wp-block-button__link {
+	background: #0087be;
+	color: #fff;
+}
+
+.wp-block-button__link:focus,
+.wp-block-button__link:active {
 	outline: 0;
 	outline: 0;
 	background: #767676;
 	background: #767676;
 	box-shadow: inset 0 2px 2px rgba(0, 0, 0, .25), 0 0 0 6px rgba(0, 0, 0, .08);
 	box-shadow: inset 0 2px 2px rgba(0, 0, 0, .25), 0 0 0 6px rgba(0, 0, 0, .08);
 }
 }
 
 
-.wp-block-button .wp-block-button__link:hover {
+.wp-block-button__link:hover {
 	text-decoration: none;
 	text-decoration: none;
 	color: #fff;
 	color: #fff;
 	background: #767676;
 	background: #767676;
 }
 }
 
 
-/* Columns */
-
 /* Separator */
 /* Separator */
 
 
 .wp-block-separator {
 .wp-block-separator {
@@ -308,6 +319,22 @@ body:not(.has-sidebar) .wp-block-table.alignfull {
 	margin-right: 0;
 	margin-right: 0;
 }
 }
 
 
+.wp-block-latest-comments__comment,
+.wp-block-latest-comments__comment-date,
+.wp-block-latest-comments__comment-excerpt p {
+	font-size: 17px;
+}
+
+.wp-block-latest-comments__comment-meta a {
+	color: #000;
+	font-weight: bold;
+}
+
+.wp-block-latest-comments__comment-date {
+	color: #b3b3b1;
+	font-size: 14px;
+}
+
 /* Latest Posts */
 /* Latest Posts */
 
 
 .wp-block-latest-posts.is-grid {
 .wp-block-latest-posts.is-grid {
@@ -319,42 +346,82 @@ body:not(.has-sidebar) .wp-block-table.alignfull {
 7.0 Blocks - Colors
 7.0 Blocks - Colors
 --------------------------------------------------------------*/
 --------------------------------------------------------------*/
 
 
-.has-medium-blue-color {
+.has-medium-blue-color,
+.has-medium-blue-color:hover,
+.has-medium-blue-color:active,
+.has-medium-blue-color:focus,
+.has-medium-blue-color:visited {
 	color: #0087be;
 	color: #0087be;
 }
 }
 
 
-.has-medium-blue-background-color {
+.has-medium-blue-background-color,
+.has-medium-blue-background-color:hover,
+.has-medium-blue-background-color:active,
+.has-medium-blue-background-color:focus,
+.has-medium-blue-background-color:visited {
 	background-color: #0087be;
 	background-color: #0087be;
 }
 }
 
 
-.has-bright-blue-color {
+.has-bright-blue-color,
+.has-bright-blue-color:hover,
+.has-bright-blue-color:focus,
+.has-bright-blue-color:active,
+.has-bright-blue-color:visited {
 	color: #00aadc;
 	color: #00aadc;
 }
 }
 
 
-.has-bright-blue-background-color {
+.has-bright-blue-background-color,
+.has-bright-blue-background-color:hover,
+.has-bright-blue-background-color:focus,
+.has-bright-blue-background-color:active,
+.has-bright-blue-background-color:visited {
 	background-color: #00aadc;
 	background-color: #00aadc;
 }
 }
 
 
-.has-dark-gray-color {
+.has-dark-gray-color,
+.has-dark-gray-color:hover,
+.has-dark-gray-color:focus,
+.has-dark-gray-color:active,
+.has-dark-gray-color:visited {
 	color: #4d4d4b;
 	color: #4d4d4b;
 }
 }
 
 
-.has-dark-gray-background-color {
+.has-dark-gray-background-color,
+.has-dark-gray-background-color:hover,
+.has-dark-gray-background-color:focus,
+.has-dark-gray-background-color:active,
+.has-dark-gray-background-color:visited {
 	background-color: #4d4d4b;
 	background-color: #4d4d4b;
 }
 }
 
 
-.has-light-gray-color {
+.has-light-gray-color,
+.has-light-gray-color:hover,
+.has-light-gray-color:focus,
+.has-light-gray-color:active,
+.has-light-gray-color:visited {
 	color: #b3b3b1;
 	color: #b3b3b1;
 }
 }
 
 
-.has-light-gray-background-color {
+.has-light-gray-background-color,
+.has-light-gray-background-color:hover,
+.has-light-gray-background-color:focus,
+.has-light-gray-background-color:active,
+.has-light-gray-background-color:visited {
 	background-color: #b3b3b1;
 	background-color: #b3b3b1;
 }
 }
 
 
-.has-white-color {
+.has-white-color,
+.has-white-color:hover,
+.has-white-color:focus,
+.has-white-color:active,
+.has-white-color:visited {
 	color: #fff;
 	color: #fff;
 }
 }
 
 
-.has-white-background-color {
+.has-white-background-color,
+.has-white-background-color:hover,
+.has-white-background-color:focus,
+.has-white-background-color:active,
+.has-white-background-color:visited {
 	background-color: #fff;
 	background-color: #fff;
 }
 }

+ 70 - 13
independent-publisher-2/css/editor-blocks.css

@@ -47,6 +47,7 @@ Description: Used to style Gutenberg Blocks in the editor.
 	color: #333332;
 	color: #333332;
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
 	font-size: 32px;
 	font-size: 32px;
+	font-weight: bold;
 }
 }
 
 
 @media screen and (min-width: 32.375em) {
 @media screen and (min-width: 32.375em) {
@@ -58,62 +59,81 @@ Description: Used to style Gutenberg Blocks in the editor.
 /* Headings */
 /* Headings */
 
 
 .edit-post-visual-editor h1,
 .edit-post-visual-editor h1,
+.wp-block-freeform.block-library-rich-text__tinymce h1,
 .edit-post-visual-editor h2,
 .edit-post-visual-editor h2,
+.wp-block-freeform.block-library-rich-text__tinymce h2,
 .edit-post-visual-editor h3,
 .edit-post-visual-editor h3,
+.wp-block-freeform.block-library-rich-text__tinymce h3,
 .edit-post-visual-editor h4,
 .edit-post-visual-editor h4,
+.wp-block-freeform.block-library-rich-text__tinymce h4,
 .edit-post-visual-editor h5,
 .edit-post-visual-editor h5,
-.edit-post-visual-editor h6 {
+.wp-block-freeform.block-library-rich-text__tinymce h5,
+.edit-post-visual-editor h6,
+.wp-block-freeform.block-library-rich-text__tinymce h6 {
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
 	line-height: 1.1;
 	line-height: 1.1;
 	color: #333332;
 	color: #333332;
+	font-weight: bold;
 }
 }
 
 
-.edit-post-visual-editor h1 {
+.edit-post-visual-editor h1,
+.wp-block-freeform.block-library-rich-text__tinymce h1 {
 	font-size: 32px;
 	font-size: 32px;
 }
 }
 
 
-.edit-post-visual-editor h2 {
+.edit-post-visual-editor h2,
+.wp-block-freeform.block-library-rich-text__tinymce h2 {
 	font-size: 24px;
 	font-size: 24px;
 }
 }
 
 
-.edit-post-visual-editor h3 {
+.edit-post-visual-editor h3,
+.wp-block-freeform.block-library-rich-text__tinymce h3 {
 	font-size: 19px;
 	font-size: 19px;
 }
 }
 
 
-.edit-post-visual-editor h4 {
+.edit-post-visual-editor h4,
+.wp-block-freeform.block-library-rich-text__tinymce h4 {
 	font-size: 15px;
 	font-size: 15px;
 }
 }
 
 
-.edit-post-visual-editor h5 {
+.edit-post-visual-editor h5,
+.wp-block-freeform.block-library-rich-text__tinymce h5 {
 	font-size: 14px;
 	font-size: 14px;
 }
 }
 
 
-.edit-post-visual-editor h6 {
+.edit-post-visual-editor h6,
+.wp-block-freeform.block-library-rich-text__tinymce h6 {
 	font-size: 13px;
 	font-size: 13px;
 }
 }
 
 
 @media screen and (min-width: 32.375em) {
 @media screen and (min-width: 32.375em) {
-	.edit-post-visual-editor h1 {
+	.edit-post-visual-editor h1,
+	.wp-block-freeform.block-library-rich-text__tinymce h1 {
 		font-size: 47px;
 		font-size: 47px;
 	}
 	}
 
 
-	.edit-post-visual-editor h2 {
+	.edit-post-visual-editor h2,
+	.wp-block-freeform.block-library-rich-text__tinymce h2 {
 		font-size: 32px;
 		font-size: 32px;
 	}
 	}
 
 
-	.edit-post-visual-editor h3 {
+	.edit-post-visual-editor h3,
+	.wp-block-freeform.block-library-rich-text__tinymce h3 {
 		font-size: 24px;
 		font-size: 24px;
 	}
 	}
 
 
-	.edit-post-visual-editor h4 {
+	.edit-post-visual-editor h4,
+	.wp-block-freeform.block-library-rich-text__tinymce h4 {
 		font-size: 19px;
 		font-size: 19px;
 	}
 	}
 
 
-	.edit-post-visual-editor h5 {
+	.edit-post-visual-editor h5,
+	.wp-block-freeform.block-library-rich-text__tinymce h5 {
 		font-size: 15px;
 		font-size: 15px;
 	}
 	}
 
 
-	.edit-post-visual-editor h6 {
+	.edit-post-visual-editor h6,
+	.wp-block-freeform.block-library-rich-text__tinymce h6 {
 		font-size: 14px;
 		font-size: 14px;
 	}
 	}
 }
 }
@@ -241,6 +261,16 @@ Description: Used to style Gutenberg Blocks in the editor.
 	padding: 1.75em;
 	padding: 1.75em;
 }
 }
 
 
+/* Captions */
+
+[class^="wp-block-"] figcaption {
+	font-size: 14.25px;
+	font-weight: 400;
+	font-style: italic;
+	color: #939393;
+
+}
+
 /*--------------------------------------------------------------
 /*--------------------------------------------------------------
 3.0 Blocks - Common Blocks
 3.0 Blocks - Common Blocks
 --------------------------------------------------------------*/
 --------------------------------------------------------------*/
@@ -312,6 +342,10 @@ p.has-drop-cap:not(:focus)::first-letter {
 
 
 /* File */
 /* File */
 
 
+.wp-block-file__textlink {
+	color: #0087be;
+}
+
 .wp-block-file .wp-block-file__button {
 .wp-block-file .wp-block-file__button {
 	background: #0087be;
 	background: #0087be;
 	border: solid 1px transparent;
 	border: solid 1px transparent;
@@ -540,3 +574,26 @@ p.has-drop-cap:not(:focus)::first-letter {
 [data-align="center"] .wp-block-archives ul {
 [data-align="center"] .wp-block-archives ul {
 	list-style-position: inside;
 	list-style-position: inside;
 }
 }
+
+/* Latest Comments */
+
+.wp-block-latest-comments {
+	margin-left: 0;
+	margin-right: 0;
+}
+
+.wp-block-latest-comments__comment,
+.wp-block-latest-comments__comment-date,
+.wp-block-latest-comments__comment-excerpt p {
+	font-size: 17px;
+}
+
+.wp-block-latest-comments__comment-meta a {
+	color: #000;
+	font-weight: bold;
+}
+
+.wp-block-latest-comments__comment-date {
+	color: #b3b3b1;
+	font-size: 14px;
+}

+ 21 - 0
independent-publisher-2/rtl.css

@@ -130,6 +130,12 @@ input[type="radio"] {
 	content: "\f432";
 	content: "\f432";
 }
 }
 
 
+.post-navigation .nav-links .nav-next a:after {
+	-webkit-transform: rotate(-90deg);
+	-ms-transform: rotate(-90deg);
+	transform: rotate(-90deg);
+}
+
 .post-navigation .nav-links .nav-next {
 .post-navigation .nav-links .nav-next {
 	margin: 0 0 0 -.21875em;
 	margin: 0 0 0 -.21875em;
 }
 }
@@ -654,3 +660,18 @@ ol.comment-list .trackback {
 	}
 	}
 
 
 }
 }
+
+@media screen and (min-width: 68.75em) {
+	/* Large tiled galleries */
+	body:not(.has-sidebar) .tiled-gallery-wrapper,
+	body:not(.has-sidebar) .jetpack-video-wrapper,
+	body:not(.has-sidebar) img.size-big,
+	body:not(.has-sidebar) .wp-caption.size-big img {
+		margin-left: auto;
+		margin-right: -180px;
+	}
+
+	body:not(.has-sidebar) .jetpack-slideshow img.size-big {
+		margin-right: auto;
+	}
+}