Ver Fonte

Remote: Comment form styles (#5580)

* Remote: adding form styles

* Remote: fixing button paddings

* Remote: removing grid  styles for post comments form
Matias Benedetto há 3 anos atrás
pai
commit
19c7c1207f
2 ficheiros alterados com 22 adições e 8 exclusões
  1. 13 0
      remote/style.css
  2. 9 8
      remote/theme.json

+ 13 - 0
remote/style.css

@@ -196,6 +196,19 @@ a:not(
 	outline-offset: 3px;
 }
 
+/*
+ * Comment form styles
+ */
+ 
+ .wp-block-post-comments input:not([type=submit]):not([type=checkbox]),
+ .wp-block-post-comments textarea,
+ .wp-block-post-comments select {
+	 border-radius: var(--wp--custom--button--border--radius);
+	 background-color: var(--wp--preset--color--background);
+	 color: var(--wp--preset--color--foreground);
+	 border: 1px solid var(--wp--preset--color--foreground);
+ }
+
 /*
  * Needed until https://github.com/WordPress/gutenberg/issues/34196 or something like it.
  */

+ 9 - 8
remote/theme.json

@@ -98,14 +98,6 @@
 				"color": {
 					"background": "var(--wp--preset--color--primary)",
 					"text": "var(--wp--preset--color--background)"
-				},
-				"spacing": {
-					"padding": {
-						"top": "0.375em",
-						"right": "0.625em",
-						"bottom": "0.375em",
-						"left": "0.625em"
-					}
 				}
 			},
 			"core/heading": {
@@ -122,6 +114,15 @@
 				"border": {
 					"color": "var(--wp--preset--color--primary)"
 				}
+			},
+			"core/post-comments": {
+				"elements": {
+					"h3": {
+						"typography": {
+							"fontSize": "var(--wp--preset--font-size--large)"
+						}
+					}
+				}
 			}
 		},
 		"color": {