Bladeren bron

Final tweaks based on new test data; I think this PR is almost ready to ship.

Caroline Moore 6 jaren geleden
bovenliggende
commit
ba47ffba1a
2 gewijzigde bestanden met toevoegingen van 46 en 15 verwijderingen
  1. 21 6
      affinity/blocks.css
  2. 25 9
      affinity/editor-style.css

+ 21 - 6
affinity/blocks.css

@@ -174,15 +174,16 @@ p.has-drop-cap:first-letter {
 }
 
 /* Verse */
-.wp-block-verse {
-	background: #e8e9ea;
-	font-family: "Courier 10 Pitch", Courier, monospace;
-	font-size: 13.2px;
-	line-height: 1.6;
+pre.wp-block-verse {
+	background: transparent;
+	font-family: inherit;
+	font-size: 18px;
+	line-height: inherit;
 	margin-bottom: 1.6em;
 	max-width: 100%;
 	overflow: auto;
-	padding: 1.6em;
+	padding: 0;
+	padding-left: 1.6em;
 }
 .wp-block-verse.aligncenter {
 	text-align: center;
@@ -267,6 +268,12 @@ p.has-drop-cap:first-letter {
 	margin: 0 0 1.6em;
 }
 
+/* Latest Comments */
+
+ol.wp-block-latest-comments {
+	margin: 0;
+}
+
 /* Media queries */
 
 @media screen and ( min-width: 46em ) {
@@ -311,4 +318,12 @@ p.has-drop-cap:first-letter {
 		margin-left: 1.6em;
 		text-align: right;
 	}
+
+	.wp-block-quote.alignright {
+		margin-left: 1.6em;
+	}
+
+	.wp-block-quote.alignleft {
+		margin-right: 1.6em;
+	}
 }

+ 25 - 9
affinity/editor-style.css

@@ -12,9 +12,9 @@
 }
 
 .editor-block-list__block,
-.editor-block-list__block p,
-.editor-block-list__block ol,
-.editor-block-list__block ul,
+.editor-block-list__block p.wp-block-paragraph,
+.editor-block-list__block .block-library-list ol,
+.editor-block-list__block .block-library-list ul,
 .editor-block-list__block td {
 	color: #5e5853;
 	font-size: 18px;
@@ -349,15 +349,17 @@ blockquote cite {
 }
 
 /* Verse */
-.wp-block-verse {
-	background: #e8e9ea;
-	font-family: "Courier 10 Pitch", Courier, monospace;
-	font-size: 13.2px;
-	line-height: 1.6;
+.wp-block-verse pre {
+	color: #5e5853;
+	background: transparent;
+	font-family: inherit;
+	font-size: 18px;
+	line-height: inherit;
 	margin-bottom: 1.6em;
 	max-width: 100%;
 	overflow: auto;
-	padding: 1.6em;
+	padding: 0;
+	padding-left: 1.6em;
 }
 
 .wp-block-verse.aligncenter {
@@ -437,6 +439,12 @@ blockquote cite {
 	margin: 0 0 1.6em !important;
 }
 
+/* Latest Comments */
+
+ol.wp-block-latest-comments {
+	margin: 0;
+}
+
 /* Media Queries */
 
 @media screen and ( min-width: 68em ) {
@@ -461,6 +469,14 @@ blockquote cite {
 		margin-left: 1.6em;
 		text-align: right;
 	}
+
+	.wp-block-quote.alignright {
+		margin-left: 1.6em;
+	}
+
+	.wp-block-quote.alignleft {
+		margin-right: 1.6em;
+	}
 }
 
 @media screen and ( min-width: 46em ) {