Explorar el Código

Add crude quote styling

TODO:
 - we don't appear to have support for turning off specific border
   segments, so while we wanted to _only_ have a left border we
   are stuck with a full border.

 - the quote is adding top padding (from the <p>) that we can't
   eliminate. we're apparently not able to add a negative padding
   in order to work around this.

 - the citation is coupled to the quote and so it doesn't seem
   possible to apply different styling to it than from the rest.
Dennis Snell hace 3 años
padre
commit
f499ef97c4
Se han modificado 1 ficheros con 18 adiciones y 0 borrados
  1. 18 0
      rainfall/theme.json

+ 18 - 0
rainfall/theme.json

@@ -83,6 +83,24 @@
 		}
 	},
 	"styles": {
+		"blocks": {
+			"core/quote": {
+				"border": {
+					"color": "var(--wp--preset--color--orange)",
+					"width": "2px",
+					"style": "solid"
+				},
+				"spacing": {
+					"padding": {
+						"left": "31px"
+					}
+				},
+				"typography": {
+					"fontWeight": "bold",
+					"textTransform": "uppercase"
+				}
+			}
+		},
 		"typography": {
 			"fontFamily": "var(--wp--preset--font-family--helvetica-neue)",
 			"lineHeight": "1.6"