Browse Source

More editor styles; tables, preformatted, code, etc.

Caroline Moore 6 years ago
parent
commit
d54be5e152
1 changed files with 35 additions and 21 deletions
  1. 35 21
      libretto/css/editor-blocks.css

+ 35 - 21
libretto/css/editor-blocks.css

@@ -52,6 +52,7 @@
 	font-family: "Playfair Display";
 	font-size: 44px;
 	font-style: normal;
+	font-weight: normal;
 	letter-spacing: 0;
 	line-height: 1.2;
 	margin: 0;
@@ -533,50 +534,62 @@
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce pre {
-	background: rgba(0, 0, 0, 0.02);
-	font-family: "Courier 10 Pitch", Courier, monospace;
-	font-size: 15px;
-	font-size: 0.9375rem;
+	background: #d9d6d0;
+	font-family: "Droid Sans Mono", "Andale Mono", Consolas, "DejaVu Sans Mono", monospace;
+	font-size: 16px;
 	line-height: 1.6;
-	margin-bottom: 1.5em;
+	margin-bottom: 1.6em;
 	max-width: 100%;
-	overflow: auto;
-	padding: 1.5em;
+	padding: 1.6em;
+	white-space: pre;
+	white-space: pre-wrap;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce table {
-	background-color: rgba(0, 0, 0, 0.02);
+	font-size: 0.85em;
+	line-height: 1.4;
+	margin: 0.5em 0 1.5em;
 	width: 100%;
-	margin: 0 0 1.5em;
 }
 
-.wp-block-freeform.block-library-rich-text__tinymce .alternate {
-	background: transparent;
+.wp-block-freeform.block-library-rich-text__tinymce table tr:nth-of-type(odd) {
+  background: rgba(255, 255, 255, 0.5);
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce table td {
-	padding: 8px 5px;
 	border: 0;
+	border-bottom: 1px solid #d9d6d0;
+	padding: 0.8em 1em;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce table th {
-	padding: 8px 5px;
+	font-style: italic;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table thead:nth-of-type(odd) tr {
+	background: none;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table thead th {
+	border-width: 2px;
+	color: #a09a92;
+	font-style: normal;
 	font-weight: bold;
-	text-align: center;
+	padding: 0.4em 1em;
 }
 
 /* Preformatted */
 
 .editor-block-list__block .wp-block-preformatted pre {
-	background: rgba(0, 0, 0, 0.02);
-	font-family: "Courier 10 Pitch", Courier, monospace;
-	font-size: 15px;
-	font-size: 0.9375rem;
+	background: #d9d6d0;
+	font-family: "Droid Sans Mono", "Andale Mono", Consolas, "DejaVu Sans Mono", monospace;
+	font-size: 16px;
 	line-height: 1.6;
-	margin-bottom: 1.5em;
+	margin-bottom: 1.6em;
 	max-width: 100%;
-	overflow: auto;
-	padding: 1.5em;
+	padding: 1.6em;
+	white-space: pre;
+	white-space: pre-wrap;
 }
 
 /* Pullquote */
@@ -653,6 +666,7 @@
 }
 
 .editor-block-list__block table.wp-block-table td {
+	border: 0;
 	border-bottom: 1px solid #d9d6d0;
 	padding: 0.8em 1em;
 }