Преглед изворни кода

Merge pull request #305 from Automattic/canard-add-gutenberg-support

Canard: Fix a couple small issues with Gutenberg support
Laurel пре 6 година
родитељ
комит
8d8b2e8a04
2 измењених фајлова са 39 додато и 15 уклоњено
  1. 1 5
      canard/blocks.css
  2. 38 10
      canard/editor-blocks.css

+ 1 - 5
canard/blocks.css

@@ -262,7 +262,7 @@ hr.wp-block-separator {
 	max-width: 66%;
 	max-width: 66%;
 }
 }
 
 
-.wp-block-separator:not(.is-style-wide) {
+.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
 	margin-left: auto;
 	margin-left: auto;
 	margin-right: auto;
 	margin-right: auto;
 	max-width: 100px;
 	max-width: 100px;
@@ -272,10 +272,6 @@ hr.wp-block-separator {
 	max-width: 100%;
 	max-width: 100%;
 }
 }
 
 
-.wp-block-separator.is-style-dots::before {
-	padding-left: 0;
-}
-
 /*--------------------------------------------------------------
 /*--------------------------------------------------------------
 5.0 Blocks - Widget Blocks
 5.0 Blocks - Widget Blocks
 --------------------------------------------------------------*/
 --------------------------------------------------------------*/

+ 38 - 10
canard/editor-blocks.css

@@ -422,6 +422,22 @@
 
 
 .wp-block-code {
 .wp-block-code {
 	font-family: Inconsolata, monospace;
 	font-family: Inconsolata, monospace;
+	background: #eee;
+	border: 0;
+	border-left: 2px solid #d11415;
+	border-radius: 0;
+	max-width: 100%;
+	overflow: auto;
+	padding: 30px;
+}
+
+.wp-block-code textarea {
+	background: transparent;
+}
+
+.rtl .wp-block-code {
+	border-left: 0;
+	border-right: 2px solid #d11415;
 }
 }
 
 
 /* Classic */
 /* Classic */
@@ -650,28 +666,40 @@
 
 
 /* Table */
 /* Table */
 
 
-.editor-block-list__block table.wp-block-table {
-	display: table;
-	border: 0;
+.wp-block-table {
 	border-top: 1px solid #ddd;
 	border-top: 1px solid #ddd;
 	margin: 0 0 30px;
 	margin: 0 0 30px;
 	text-align: left;
 	text-align: left;
 	width: 100%;
 	width: 100%;
 }
 }
 
 
-.editor-block-list__block table.wp-block-table td,
-.editor-block-list__block table.wp-block-table th {
-	border: 0;
-	border-bottom: 1px solid #ddd;
-	padding: 5px;
+.wp-block-table thead {
+	background: #eee;
 }
 }
 
 
-.editor-block-list__block table.wp-block-table th {
-	font-family: Lato, sans-serif;
+.wp-block-table th {
+	border: 0;
+	border-bottom: 1px solid #ddd;
+	font-family: "Lato", sans-serif;
 	font-weight: bold;
 	font-weight: bold;
+	padding: 0;
 	text-transform: uppercase;
 	text-transform: uppercase;
 }
 }
 
 
+.wp-block-table td {
+	border: 0;
+	border-bottom: 1px solid #ddd;
+	padding: 0;
+}
+
+.wp-block-table .wp-block-table__cell-content {
+	padding: 3px 5px;
+}
+
+.rtl .wp-block-table {
+	text-align: right;
+}
+
 /*--------------------------------------------------------------
 /*--------------------------------------------------------------
 5.0 Blocks - Layout Elements
 5.0 Blocks - Layout Elements
 --------------------------------------------------------------*/
 --------------------------------------------------------------*/