Browse Source

Split block editor styles into their own stylesheet, separate from editor styles.

Caroline Moore 6 years ago
parent
commit
ac45a2dd00
3 changed files with 944 additions and 452 deletions
  1. 638 0
      affinity/editor-blocks.css
  2. 305 451
      affinity/editor-style.css
  3. 1 1
      affinity/functions.php

+ 638 - 0
affinity/editor-blocks.css

@@ -0,0 +1,638 @@
+
+/*
+ * Theme Name: Affinity
+ * Description: Gutenberg Block Editor Styles
+ */
+
+/*--------------------------------------------------------------
+>>> TABLE OF CONTENTS:
+----------------------------------------------------------------
+1.0 General Typography
+2.0 General Block Styles
+3.0 Blocks - Common Blocks
+4.0 Blocks - Formatting
+5.0 Blocks - Layout Elements
+6.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+/*--------------------------------------------------------------
+1.0 General Typography
+--------------------------------------------------------------*/
+
+.edit-post-visual-editor .editor-block-list__block,
+.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
+	color: #5e5853;
+	font-size: 18px;
+	font-family: Lora, Baskerville, Georgia, Times, serif;
+	line-height: 1.6;
+}
+
+.edit-post-visual-editor .editor-block-list__block {
+	color: #5e5853;
+	font-size: 18px;
+}
+
+/* Title */
+
+.editor-post-title__block .editor-post-title__input {
+	color: #5e5853;
+	font-family: Lora, Baskerville, Georgia, Times, serif;
+	font-size: 28px;
+	font-style: italic;
+	font-weight: normal;
+	margin-top: 0.2em;
+	margin-bottom: 0.2em;
+}
+
+/* Headings */
+
+.edit-post-visual-editor h1,
+.edit-post-visual-editor h2,
+.edit-post-visual-editor h3,
+.edit-post-visual-editor h4,
+.edit-post-visual-editor h5,
+.edit-post-visual-editor h6 {
+	color: #5e5853;
+	font-family: Lora, Baskerville, Georgia, Times, serif;
+	font-style: italic;
+	font-weight: normal;
+	margin-top: 0.2em;
+	margin-bottom: 0.2em;
+}
+
+.edit-post-visual-editor h1 {
+	font-size: 34px;
+}
+
+.edit-post-visual-editor h2 {
+	font-size: 29.2px;
+}
+
+.edit-post-visual-editor h3 {
+	font-size: 26px;
+}
+
+.edit-post-visual-editor h4 {
+	font-size: 18px;
+}
+
+.edit-post-visual-editor h5 {
+	font-size: 16px;
+}
+
+.edit-post-visual-editor h6 {
+	font-size: 14px;
+}
+
+@media screen and (min-width: 46em) {
+	.edit-post-visual-editor h1,
+	.editor-post-title__block .editor-post-title__input {
+		font-size: 47.12px;
+	}
+
+	.edit-post-visual-editor h2 {
+		font-size: 42px;
+	}
+
+	.edit-post-visual-editor h3 {
+		font-size: 29.2px;
+	}
+
+	.edit-post-visual-editor h4 {
+		font-size: 26px;
+	}
+
+	.edit-post-visual-editor h5 {
+		font-size: 18px;
+	}
+
+	.edit-post-visual-editor h6 {
+		font-size: 16px;
+	}
+}
+
+/* Paragraphs */
+
+.edit-post-visual-editor p {
+	margin: 0 0 1.6em;
+}
+
+.edit-post-visual-editor blockquote p {
+	margin-bottom: 1.6em;
+}
+
+/* Images */
+
+.wp-block-image figcaption {
+	font-size: 13.2px;
+	font-style: italic;
+}
+
+/*--------------------------------------------------------------
+2.0 General Block Styles
+--------------------------------------------------------------*/
+
+/* Main column width */
+
+body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
+body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
+body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
+	max-width: 747px;
+}
+
+/* Link styles */
+
+.edit-post-visual-editor a,
+.editor-block-list__block a,
+.wp-block-freeform.block-library-rich-text__tinymce a {
+	color: #99908a;
+	transition: 0.3s;
+}
+
+.edit-post-visual-editor a:hover,
+.edit-post-visual-editor a:focus,
+.edit-post-visual-editor a:active,
+.editor-block-list__block a:hover,
+.editor-block-list__block a:focus,
+.editor-block-list__block a:active,
+.wp-block-freeform.block-library-rich-text__tinymce a:hover,
+.wp-block-freeform.block-library-rich-text__tinymce a:focus,
+.wp-block-freeform.block-library-rich-text__tinymce a:active {
+	color: #383e44;
+	text-decoration: underline !important;
+}
+
+/* List styles */
+
+.edit-post-visual-editor ul:not(.wp-block-gallery),
+.editor-block-list__block ul:not(.wp-block-gallery),
+.block-library-list ul,
+.edit-post-visual-editor ol,
+.editor-block-list__block ol,
+.block-library-list ol {
+	margin: 0 0 1.6em 3.2em;
+	padding-left: 0;
+}
+
+.edit-post-visual-editor ul:not(.wp-block-gallery),
+.editor-block-list__block ul:not(.wp-block-gallery),
+.block-library-list ul {
+	list-style: disc;
+}
+
+.edit-post-visual-editor ol,
+.editor-block-list__block ol,
+.block-library-list ol {
+	list-style: decimal;
+}
+
+.edit-post-visual-editor ul:not(.wp-block-gallery) li,
+.editor-block-list__block ul:not(.wp-block-gallery) li,
+.edit-post-visual-editor ol li,
+.editor-block-list__block ol li,
+.block-library-list li {
+	margin-bottom: 0;
+}
+
+.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
+.editor-block-list__block ul:not(.wp-block-gallery) li > ul,
+.block-library-list li > ul,
+.edit-post-visual-editor li > ol,
+.editor-block-list__block li > ol,
+.block-library-list li > ol {
+	margin-bottom: 0;
+}
+
+.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
+.rtl .editor-block-list__block ul:not(.wp-block-gallery),
+.rtl .block-library-list ul,
+.rtl .edit-post-visual-editor ol,
+.rtl .editor-block-list__block ol,
+.rtl .block-library-list ol {
+	margin-left: 0;
+	margin-right: 1.6em;
+	padding: 0;
+}
+
+.rtl .edit-post-visual-editor ol,
+.rtl .editor-block-list__block ol,
+.rtl .block-library-list ol {
+	margin-left: 1.6em;
+	margin-right: 1.6em;
+}
+
+/* Quotes */
+
+.rtl .editor-block-list__block blockquote {
+	border-left: 0;
+	padding-left: 0;
+}
+
+/* Captions */
+
+[class^="wp-block-"] figcaption {
+	color: #686868;
+	font-style: italic;
+	line-height: 1.6153846154;
+	padding-top: 0.5384615385em;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
+	font-family: Lora, Baskerville, Georgia, Times, serif;
+	font-size: 64px;
+}
+
+.rtl .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
+}
+
+/* Quote */
+
+.wp-block-quote {
+	color: #99908a;
+	font-size: 18px;
+	font-style: italic;
+	margin: 0;
+	margin-bottom: .8em;
+	border-top: 3px solid #e8e9ea;
+	border-bottom: 1px solid #e8e9ea;
+	padding-top: .8em;
+	padding-bottom: .8em;
+}
+
+.wp-block-quote:not(.is-large):not(.is-style-large),
+.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
+.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
+	border-left: 0;
+	padding-left: 0;
+}
+
+.editor-block-list__block .wp-block-quote p {
+	color: #99908a;
+	font-size: 18px;
+}
+
+.wp-block-quote__citation {
+	color: #99908a;
+	display: block;
+	text-align: right;
+	font-style: normal;
+	font-size: 16px;
+}
+
+.wp-block-quote__citation:before {
+}
+
+.wp-block-quote em,
+.wp-block-quote i,
+.wp-block-quote__citation:before {
+	font-style: normal;
+}
+
+.wp-block-quote > :last-child {
+	margin-bottom: 0;
+}
+
+.wp-block-quote.alignleft {
+	margin: .8em 1.6em .8em 0;
+}
+
+.wp-block-quote.alignright {
+	margin: .8em 0 .8em 1.6em;
+}
+
+.wp-block-quote.aligncenter {
+	margin-bottom: 1.6em;
+}
+
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright  {
+}
+
+.wp-block-quote.is-large,
+.wp-block-quote.is-style-large {
+	padding: .4em 0 .8em;
+}
+
+.wp-block-quote.is-large p,
+.wp-block-quote.is-style-large p {
+	font-size: 26px;
+}
+
+@media screen and ( min-width: 68em ) {
+	.wp-block-quote,
+	.wp-block-pullquote blockquote {
+		font-size: 26px;
+	}
+
+	.wp-block-quote.is-large p,
+	.wp-block-quote.is-style-large p {
+		font-size: 36px;
+	}
+
+	.wp-block-pullquote blockquote,
+	.wp-block-pullquote blockquote > .editor-rich-text p {
+		font-size: 26px;
+	}
+}
+
+/* Audio */
+
+/* Cover Images */
+
+/* File */
+
+.wp-block-file__textlink {
+	box-shadow: 0 1px 0 0 currentColor;
+	color: #007acc;
+}
+
+.wp-block-file .wp-block-file__button {
+	background: #1a1a1a;
+	border: 0;
+	border-radius: 2px;
+	color: #fff;
+	font-family: Montserrat, "Helvetica Neue", sans-serif;
+	font-weight: 700;
+	letter-spacing: 0.046875em;
+	line-height: 1;
+	padding: 0.84375em 0.875em 0.78125em;
+	text-transform: uppercase;
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Formatting
+--------------------------------------------------------------*/
+
+/* Verse */
+
+.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: 0;
+}
+
+/* Code */
+
+.wp-block-code {
+	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
+	font-size: 13.2px;
+}
+
+/* Classic */
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote {
+	border: 0 solid #1a1a1a;
+	border-left-width: 4px;
+	color: #686868;
+	font-style: italic;
+	line-height: 1.4736842105;
+	margin: 0 0 1.4736842105em;
+	overflow: hidden;
+	padding: 0 0 0 1.263157895em;
+}
+
+.editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote:not(.alignleft):not(.alignright) {
+	margin-left: 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
+	font-size: 19px;
+	font-size: 1.1875rem;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
+	color: #1a1a1a;
+	display: block;
+	font-size: 16px;
+	font-size: 1rem;
+	font-style: normal;
+	line-height: 1.75;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote cite:before {
+	content: "\2014\00a0";
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
+	margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
+	margin: 0.3157894737em 0 1.473684211em 1.4736842105em;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
+	margin-bottom: 1.473684211em;
+}
+
+@media screen and (min-width: 44.375em) {
+	.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft,
+	.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
+		border-width: 4px 0 0 0;
+		padding: 0.9473684211em 0 0;
+		width: -webkit-calc(50% - 0.736842105em);
+		width: calc(50% - 0.736842105em);
+	}
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
+	border-left-width: 0;
+	border-right-width: 4px;
+	overflow: hidden;
+	padding-left: 0;
+	padding-right: 1.263157895em;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignleft {
+	float: left;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignright {
+	float: right;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
+	margin: 0.3157894737em 0 1.473684211em 1.4736842105em;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
+	margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
+}
+
+/* Preformatted */
+
+.editor-block-list__block .wp-block-preformatted pre {
+	background: #e8e9ea;
+	font-family: "Courier 10 Pitch", Courier, monospace;
+	font-size: 13.2px;
+	margin-bottom: 1.6em;
+	max-width: 100%;
+	overflow: auto;
+	padding: 1.6em;
+}
+
+/* Pullquote */
+
+.editor-block-list__block .wp-block-pullquote blockquote {
+	margin: 0;
+	padding: 0;
+	border: 0;
+}
+
+.wp-block-pullquote {
+	border-color: #e8e9ea;
+	padding: 1.6em 0;
+}
+
+.wp-block-pullquote blockquote {
+	font-size: 18px;
+	font-style: italic;
+}
+
+.wp-block-pullquote blockquote > .editor-rich-text p {
+	color: #99908a;
+	font-size: 18px;
+}
+
+.wp-block-pullquote .wp-block-pullquote__citation {
+	color: #99908a;
+	display: block;
+	text-transform: uppercase;
+	font-size: 14px;
+}
+
+.wp-block-pullquote .wp-block-pullquote__citation:before {
+}
+
+/* Table */
+
+.editor-block-list__block table.wp-block-table {
+	display: table;
+	margin: 0 0 1.6em;
+	width: 100%;
+}
+
+.editor-block-list__block table.wp-block-table td,
+.editor-block-list__block table.wp-block-table th {
+	padding: 0.4em 0.2em;
+	border: 0;
+	border-bottom: 1px solid #e8e9ea;
+}
+
+.editor-block-list__block table.wp-block-table th {
+	font-weight: bold;
+	border-bottom-width: 3px;
+	text-align: left;
+}
+
+.rtl .wp-block-table th,
+.rtl .wp-block-table td {
+	text-align: right;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+.wp-block-button .wp-block-button__link {
+	border-radius: 0;
+	display: inline-block;
+	font-size: 13.2px;
+	font-family: Raleway, "Helvetica Neue", sans-serif;
+	text-transform: uppercase;
+	letter-spacing: 1px;
+	font-weight: bold;
+	line-height: 1 !important;
+	transition: 0.3s;
+	text-decoration: none;
+}
+
+.wp-block-button .wp-block-button__link:hover,
+.wp-block-button .wp-block-button__link:focus,
+.wp-block-button .wp-block-button__link:active {
+}
+
+.wp-block-button__link:not(.has-text-color),
+.wp-block-button__link:not(.has-text-color):active,
+.wp-block-button__link:not(.has-text-color):focus,
+.wp-block-button__link:not(.has-text-color):hover {
+	color: white;
+}
+
+.wp-block-button__link:not(.has-background) {
+	background-color: #99908a;
+	outline: 4px solid #99908a;
+	border: 2px solid white;
+	position: relative;
+	left: 4px;
+}
+
+.wp-block-button__link:not(.has-background):active,
+.wp-block-button__link:not(.has-background):focus,
+.wp-block-button__link:not(.has-background):hover {
+	outline-color: #5e5853;
+	background-color: #5e5853;
+}
+
+/* Separator */
+.wp-block-separator {
+	background-color: #e8e9ea;
+	border: 0;
+	height: 1px;
+	margin: 0.8em auto;
+	max-width: 66%;
+}
+
+.wp-block-separator.is-wide {
+	max-width: 100%;
+}
+
+/*--------------------------------------------------------------
+6.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+/* Latest Comments */
+
+.editor-block-list__block .wp-block-latest-comments__comment-meta a {
+	box-shadow: none;
+	font-weight: 700;
+	text-decoration: none;
+}
+
+.wp-block-latest-comments__comment-date {
+}
+
+.wp-block-latest-comments .wp-block-latest-comments__comment {
+	border-top: 1px solid #d1d1d1;
+	margin-bottom: 0;
+	padding: 1.75em 0;
+}
+
+.wp-block-latest-comments__comment-excerpt p:last-child {
+	margin-bottom: 0;
+}
+
+/* Latest Posts */
+
+.edit-post-visual-editor .wp-block-latest-posts.is-grid {
+	list-style: none;
+	margin-left: 0;
+	margin-right: 0;
+}
+
+.edit-post-visual-editor .wp-block-latest-posts.is-grid li {
+	margin-bottom: 1em;
+}

+ 305 - 451
affinity/editor-style.css

@@ -1,57 +1,45 @@
 /*
 Theme Name: Affinity
-Description: Used to style Gutenberg Blocks in the editor.
+Description: Used to style the TinyMCE editor.
 */
 
-/*--------------------------------------------------------------
->>> TABLE OF CONTENTS:
-----------------------------------------------------------------
-1.0 General Typography
-2.0 General Block Styles
-3.0 Blocks - Common Blocks
-4.0 Blocks - Formatting
-5.0 Blocks - Layout Elements
-6.0 Blocks - Widgets
---------------------------------------------------------------*/
-
-/*--------------------------------------------------------------
-1.0 General Typography
---------------------------------------------------------------*/
-
-.edit-post-visual-editor .editor-block-list__block,
-.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
-	color: #5e5853;
-	font-size: 18px;
+/**
+ * Table of Contents:
+ *
+ * 1.0 - Body
+ * 2.0 - Typography
+ * 3.0 - Elements
+ * 4.0 - Alignment
+ * 5.0 - Caption
+ * 6.0 - Galleries
+ * 7.0 - Audio / Video
+ * 8.0 - RTL
+ */
+
+
+/**
+ * 1.0 - Body
+ */
+
+body {
+	color: #1e1c1b;
 	font-family: Lora, Baskerville, Georgia, Times, serif;
+	font-size: 16px;
+	font-size: 1rem;
 	line-height: 1.6;
 }
 
-.edit-post-visual-editor .editor-block-list__block {
-	color: #5e5853;
-	font-size: 18px;
+body.post-type-page {
+	max-width: 747px;
 }
 
-/* Title */
-
-.editor-post-title__block .editor-post-title__input {
-	color: #5e5853;
-	font-family: Lora, Baskerville, Georgia, Times, serif;
-	font-size: 28px;
-	font-style: italic;
-	font-weight: normal;
-	margin-top: 0.2em;
-	margin-bottom: 0.2em;
-}
 
-/* Headings */
+/**
+ * 2.0 - Typography
+ */
 
-.edit-post-visual-editor h1,
-.edit-post-visual-editor h2,
-.edit-post-visual-editor h3,
-.edit-post-visual-editor h4,
-.edit-post-visual-editor h5,
-.edit-post-visual-editor h6 {
-	color: #5e5853;
+h1, h2, h3, h4, h5, h6 {
+	clear: both;
 	font-family: Lora, Baskerville, Georgia, Times, serif;
 	font-style: italic;
 	font-weight: normal;
@@ -59,566 +47,432 @@ Description: Used to style Gutenberg Blocks in the editor.
 	margin-bottom: 0.2em;
 }
 
-.edit-post-visual-editor h1 {
+h1 {
 	font-size: 34px;
+	font-size: 2.125rem;
 }
 
-.edit-post-visual-editor h2 {
+h2 {
 	font-size: 29.2px;
+	font-size: 1.825rem;
 }
 
-.edit-post-visual-editor h3 {
+h3 {
 	font-size: 26px;
+	font-size: 1.625rem;
 }
 
-.edit-post-visual-editor h4 {
+h4 {
 	font-size: 18px;
+	font-size: 1.125rem;
+	margin-top: 0.4em;
+	margin-bottom: 0.4em;
 }
 
-.edit-post-visual-editor h5 {
+h5 {
 	font-size: 16px;
+	font-size: 1rem;
+	margin-top: 0.8em;
+	margin-bottom: 0.8em;
 }
 
-.edit-post-visual-editor h6 {
+h6 {
 	font-size: 14px;
+	font-size: 0.875rem;
+	margin-top: 0.8em;
+	margin-bottom: 0.8em;
 }
 
-@media screen and (min-width: 46em) {
-	.edit-post-visual-editor h1,
-	.editor-post-title__block .editor-post-title__input {
-		font-size: 47.12px;
-	}
-
-	.edit-post-visual-editor h2 {
-		font-size: 42px;
-	}
-
-	.edit-post-visual-editor h3 {
-		font-size: 29.2px;
-	}
-
-	.edit-post-visual-editor h4 {
-		font-size: 26px;
-	}
-
-	.edit-post-visual-editor h5 {
-		font-size: 18px;
-	}
-
-	.edit-post-visual-editor h6 {
-		font-size: 16px;
-	}
-}
-
-/* Paragraphs */
-
-.edit-post-visual-editor p {
-	margin: 0 0 1.6em;
-}
-
-.edit-post-visual-editor blockquote p {
+p {
+	margin-top: 0;
 	margin-bottom: 1.6em;
 }
 
-/* Images */
-
-.wp-block-image figcaption {
-	font-size: 13.2px;
-	font-style: italic;
-}
-
-/*--------------------------------------------------------------
-2.0 General Block Styles
---------------------------------------------------------------*/
-
-/* Main column width */
-
-body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
-body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
-body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
-	max-width: 747px;
-}
-
-/* Link styles */
-
-.edit-post-visual-editor a,
-.editor-block-list__block a,
-.wp-block-freeform.block-library-rich-text__tinymce a {
-	color: #99908a;
-  	transition: 0.3s;
-}
-
-.edit-post-visual-editor a:hover,
-.edit-post-visual-editor a:focus,
-.edit-post-visual-editor a:active,
-.editor-block-list__block a:hover,
-.editor-block-list__block a:focus,
-.editor-block-list__block a:active,
-.wp-block-freeform.block-library-rich-text__tinymce a:hover,
-.wp-block-freeform.block-library-rich-text__tinymce a:focus,
-.wp-block-freeform.block-library-rich-text__tinymce a:active {
-	color: #383e44;
-	text-decoration: underline !important;
-}
-
-/* List styles */
-
-.edit-post-visual-editor ul:not(.wp-block-gallery),
-.editor-block-list__block ul:not(.wp-block-gallery),
-.block-library-list ul,
-.edit-post-visual-editor ol,
-.editor-block-list__block ol,
-.block-library-list ol {
-	margin: 0 0 1.6em 3.2em;
-	padding-left: 0;
-}
-
-.edit-post-visual-editor ul:not(.wp-block-gallery),
-.editor-block-list__block ul:not(.wp-block-gallery),
-.block-library-list ul {
-	list-style: disc;
-}
-
-.edit-post-visual-editor ol,
-.editor-block-list__block ol,
-.block-library-list ol {
-	list-style: decimal;
-}
-
-.edit-post-visual-editor ul:not(.wp-block-gallery) li,
-.editor-block-list__block ul:not(.wp-block-gallery) li,
-.edit-post-visual-editor ol li,
-.editor-block-list__block ol li,
-.block-library-list li {
-	margin-bottom: 0;
-}
-
-.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
-.editor-block-list__block ul:not(.wp-block-gallery) li > ul,
-.block-library-list li > ul,
-.edit-post-visual-editor li > ol,
-.editor-block-list__block li > ol,
-.block-library-list li > ol {
-	margin-bottom: 0;
-}
-
-.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
-.rtl .editor-block-list__block ul:not(.wp-block-gallery),
-.rtl .block-library-list ul,
-.rtl .edit-post-visual-editor ol,
-.rtl .editor-block-list__block ol,
-.rtl .block-library-list ol {
-	margin-left: 0;
-	margin-right: 1.6em;
-	padding: 0;
-}
-
-.rtl .edit-post-visual-editor ol,
-.rtl .editor-block-list__block ol,
-.rtl .block-library-list ol {
-	margin-left: 1.6em;
-	margin-right: 1.6em;
+b,
+strong {
+	font-weight: 700;
 }
 
-/* Quotes */
-
-.rtl .editor-block-list__block blockquote {
-	border-left: 0;
-	padding-left: 0;
+dfn, cite, em, i {
+	font-style: italic;
 }
 
-/* Captions */
-
-[class^="wp-block-"] figcaption {
+blockquote {
+	border-left: 4px solid #1a1a1a;
 	color: #686868;
+	font-size: 19px;
 	font-style: italic;
-	line-height: 1.6153846154;
-	padding-top: 0.5384615385em;
-}
-
-/*--------------------------------------------------------------
-3.0 Blocks - Common Blocks
---------------------------------------------------------------*/
-
-/* Paragraph */
-
-.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
-	font-family: Lora, Baskerville, Georgia, Times, serif;
-	font-size: 64px;
-}
-
-.rtl .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
+	line-height: 1.4736842105;
+	margin-bottom: 28px;
+	overflow: hidden;
+	padding: 0 0 0 24px;
 }
 
-/* Quote */
-
-.wp-block-quote {
+blockquote {
 	color: #99908a;
 	font-size: 18px;
+	font-size: 1.125rem;
 	font-style: italic;
 	margin: 0;
-	margin-bottom: .8em;
 	border-top: 3px solid #e8e9ea;
-	border-bottom: 1px solid #e8e9ea;
 	padding-top: .8em;
+	border-bottom: 1px solid #e8e9ea;
+	margin-bottom: .8em;
 	padding-bottom: .8em;
 }
-
-.wp-block-quote:not(.is-large):not(.is-style-large),
-.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
-.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
-	border-left: 0;
-	padding-left: 0;
+blockquote.aligncenter {
+	text-align: center;
 }
-
-.editor-block-list__block .wp-block-quote p {
-	color: #99908a;
-	font-size: 18px;
+blockquote p:last-of-type {
+	margin-bottom: 0;
 }
-
-.wp-block-quote__citation {
-	color: #99908a;
+blockquote blockquote {
+	border-top: 0;
+	border-bottom: 0;
+	padding-left: .8em;
+	padding-bottom: 0;
+}
+blockquote cite {
 	display: block;
 	text-align: right;
 	font-style: normal;
 	font-size: 16px;
+	font-size: 1rem;
+}
+blockquote, q {
+	quotes: "" "";
+}
+blockquote:before, blockquote:after, q:before, q:after {
+	content: "";
 }
 
-.wp-block-quote__citation:before {
+address {
+	margin: 0 0 1.6em;
 }
 
-.wp-block-quote em,
-.wp-block-quote i,
-.wp-block-quote__citation:before {
-	font-style: normal;
+pre {
+	background: #e8e9ea;
+	font-family: "Courier 10 Pitch", Courier, monospace;
+	font-size: 13.2px;
+	font-size: 0.825rem;
+	line-height: 1.6;
+	margin-bottom: 1.6em;
+	max-width: 100%;
+	overflow: auto;
+	padding: 1.6em;
 }
 
-.wp-block-quote > :last-child {
-	margin-bottom: 0;
+code, kbd, tt, var {
+	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
+	font-size: 13.2px;
+	font-size: 0.825rem;
 }
 
-.wp-block-quote.alignleft {
-	margin: .8em 1.6em .8em 0;
+abbr, acronym {
+	border-bottom: 1px dotted #666666;
+	cursor: help;
 }
 
-.wp-block-quote.alignright {
-	margin: .8em 0 .8em 1.6em;
+mark, ins {
+	background: #fff9c0;
+	text-decoration: none;
 }
 
-.wp-block-quote.aligncenter {
-	margin-bottom: 1.6em;
+big {
+	font-size: 125%;
 }
 
-.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
-.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright  {
+abbr[title] {
+	border-bottom: 1px dotted #d1d1d1;
+	cursor: help;
 }
 
-.wp-block-quote.is-large,
-.wp-block-quote.is-style-large {
-	padding: .4em 0 .8em;
+mark {
+	background: #ff0;
+	color: #000;
 }
 
-.wp-block-quote.is-large p,
-.wp-block-quote.is-style-large p {
-	font-size: 26px;
+small {
+	font-size: 80%;
 }
 
-@media screen and ( min-width: 68em ) {
-	.wp-block-quote,
-	.wp-block-pullquote blockquote {
-		font-size: 26px;
-	}
+sub,
+sup {
+	font-size: 75%;
+	line-height: 0;
+	position: relative;
+	vertical-align: baseline;
+}
 
-	.wp-block-quote.is-large p,
-	.wp-block-quote.is-style-large p {
-		font-size: 36px;
-	}
+sup {
+	top: -0.5em;
+}
 
-	.wp-block-pullquote blockquote,
-	.wp-block-pullquote blockquote > .editor-rich-text p {
-		font-size: 26px;
-	}
+sub {
+	bottom: -0.25em;
 }
 
-/* Audio */
 
-/* Cover Images */
+/**
+ * 3.0 - Elements
+ */
 
-/* File */
+hr {
+	background-color: #e8e9ea;
+	border: 0;
+	height: 1px;
+	margin: 0.8em auto;
+	max-width: 66%;
+}
 
-.wp-block-file__textlink {
-	box-shadow: 0 1px 0 0 currentColor;
-	color: #007acc;
+ul, ol {
+	margin: 0 0 1.6em 3.2em;
+	padding-left: 0;
 }
 
-.wp-block-file .wp-block-file__button {
-	background: #1a1a1a;
-	border: 0;
-	border-radius: 2px;
-	color: #fff;
-	font-family: Montserrat, "Helvetica Neue", sans-serif;
-	font-weight: 700;
-	letter-spacing: 0.046875em;
-	line-height: 1;
-	padding: 0.84375em 0.875em 0.78125em;
-	text-transform: uppercase;
+ul {
+	list-style: disc;
 }
 
-/*--------------------------------------------------------------
-4.0 Blocks - Formatting
---------------------------------------------------------------*/
+ol {
+	list-style: decimal;
+}
 
-/* Verse */
+li > ul,
+li > ol {
+	margin-bottom: 0;
+	margin-left: 1.6em;
+	padding-left: 0;
+}
 
-.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: 0;
+dt {
+	font-weight: bold;
 }
 
-/* Code */
+dd {
+	margin: 0 1.6em 1.6em;
+}
 
-.wp-block-code {
-	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
-	font-size: 13.2px;
+.mce-item-table,
+table {
+	margin: 0 0 1.6em;
+	width: 100%;
 }
 
-/* Classic */
+td,
+th
+.mce-item-table th,
+.mce-item-table td {
+	padding: 0.4em 0.2em;
+	border-bottom: 1px solid #e8e9ea;
+}
 
-.wp-block-freeform.block-library-rich-text__tinymce blockquote {
-	border: 0 solid #1a1a1a;
-	border-left-width: 4px;
-	color: #686868;
-	font-style: italic;
-	line-height: 1.4736842105;
-	margin: 0 0 1.4736842105em;
-	overflow: hidden;
-	padding: 0 0 0 1.263157895em;
+th {
+	font-weight: bold;
+	border-bottom-width: 3px;
+	text-align: left;
 }
 
-.editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote:not(.alignleft):not(.alignright) {
-	margin-left: 0;
+caption {
+	font-style: italic;
+	font-weight: bold;
 }
 
-.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
-	font-size: 19px;
-	font-size: 1.1875rem;
+img {
+	border: 0;
+	height: auto;
+	max-width: 100%;
+	vertical-align: middle;
 }
 
-.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
-	color: #1a1a1a;
+a img {
 	display: block;
-	font-size: 16px;
-	font-size: 1rem;
-	font-style: normal;
-	line-height: 1.75;
 }
 
-.wp-block-freeform.block-library-rich-text__tinymce blockquote cite:before {
-	content: "\2014\00a0";
+figure {
+	margin: 0;
 }
 
-.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
-	margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
+del {
+	opacity: 0.8;
 }
 
-.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
-	margin: 0.3157894737em 0 1.473684211em 1.4736842105em;
+a {
+	color: #99908a;
+	transition: 0.3s;
 }
-
-.wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
-	margin-bottom: 1.473684211em;
+a:visited {
+	color: #99908a;
 }
-
-@media screen and (min-width: 44.375em) {
-	.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft,
-	.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
-		border-width: 4px 0 0 0;
-		padding: 0.9473684211em 0 0;
-		width: -webkit-calc(50% - 0.736842105em);
-		width: calc(50% - 0.736842105em);
-	}
+a:hover, a:focus, a:active {
+	color: #383e44;
+}
+a:focus {
+	outline: thin dotted;
+}
+a:hover, a:active {
+	outline: 0;
 }
 
-.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
-	border-left-width: 0;
-	border-right-width: 4px;
-	overflow: hidden;
-	padding-left: 0;
-	padding-right: 1.263157895em;
+fieldset {
+	border: 1px solid silver;
+	margin: 0 2px;
+	padding: 0.35em 0.625em 0.75em;
 }
 
-.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignleft {
+
+/**
+ * 4.0 - Alignment
+ */
+
+.alignleft {
+	display: inline;
 	float: left;
+	margin: 0.4em 1.6em 0.4em 0;
 }
 
-.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignright {
+.alignright {
+	display: inline;
 	float: right;
+	margin: 0.4em 0 0.4em 1.6em;
 }
 
-.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
-	margin: 0.3157894737em 0 1.473684211em 1.4736842105em;
+.aligncenter {
+	clear: both;
+	display: block;
+	margin-left: auto;
+	margin-right: auto;
 }
 
-.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
-	margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
-}
 
-/* Preformatted */
+/**
+ * 5.0 - Caption
+ */
 
-.editor-block-list__block .wp-block-preformatted pre {
-	background: #e8e9ea;
-	font-family: "Courier 10 Pitch", Courier, monospace;
+.wp-caption {
 	font-size: 13.2px;
+	font-style: italic;
 	margin-bottom: 1.6em;
 	max-width: 100%;
-	overflow: auto;
-	padding: 1.6em;
+}
+.wp-caption img[class*="wp-image-"] {
+	display: block;
+	margin-left: auto;
+	margin-right: auto;
+}
+.wp-caption-text,
+.wp-caption-dd {
+	margin: 0.8em 0;
+	text-align: center;
 }
 
-/* Pullquote */
 
-.editor-block-list__block .wp-block-pullquote blockquote {
-	margin: 0;
-	padding: 0;
-	border: 0;
-}
+/**
+ * 6.0 - Galleries
+ */
 
-.wp-block-pullquote {
-	border-color: #e8e9ea;
-	padding: 1.6em 0;
+.mce-content-body .wpview-wrap {
+	margin-bottom: 1.6em;
 }
 
-.wp-block-pullquote blockquote {
-	font-size: 18px;
-	font-style: italic;
+.gallery .gallery-item {
+	display: inline-block;
+	text-align: center;
+	vertical-align: top;
+	padding: .4em;
+	width: 100%;
 }
 
-.wp-block-pullquote blockquote > .editor-rich-text p {
-	color: #99908a;
-	font-size: 18px;
+.gallery-columns-1 .gallery-item {
+	max-width: 100%;
 }
 
-.wp-block-pullquote .wp-block-pullquote__citation {
-	color: #99908a;
-	display: block;
-	text-transform: uppercase;
-	font-size: 14px;
+.gallery-columns-2 .gallery-item {
+	max-width: 50%;
 }
-
-.wp-block-pullquote .wp-block-pullquote__citation:before {
+.gallery-columns-3 .gallery-item {
+	max-width: 33.33%;
 }
-
-/* Table */
-
-.editor-block-list__block table.wp-block-table {
-	display: table;
-	margin: 0 0 1.6em;
-	width: 100%;
+.gallery-columns-4 .gallery-item {
+	max-width: 25%;
 }
-
-.editor-block-list__block table.wp-block-table td,
-.editor-block-list__block table.wp-block-table th {
-  padding: 0.4em 0.2em;
-  border: 0;
-  border-bottom: 1px solid #e8e9ea;
+.gallery-columns-5 .gallery-item {
+	max-width: 20%;
 }
-
-.editor-block-list__block table.wp-block-table th {
-  font-weight: bold;
-  border-bottom-width: 3px;
-  text-align: left;
+.gallery-columns-6 .gallery-item {
+	max-width: 16.66%;
 }
-
-.rtl .wp-block-table th,
-.rtl .wp-block-table td {
-	text-align: right;
+.gallery-columns-7 .gallery-item {
+	max-width: 14.28%;
+}
+.gallery-columns-8 .gallery-item {
+	max-width: 12.5%;
+}
+.gallery-columns-9 .gallery-item {
+	max-width: 11.11%;
 }
 
-/*--------------------------------------------------------------
-5.0 Blocks - Layout Elements
---------------------------------------------------------------*/
-
-/* Buttons */
-.wp-block-button .wp-block-button__link {
-	border-radius: 0;
-	display: inline-block;
+.gallery .gallery-caption {
+	display: block;
 	font-size: 13.2px;
-	font-family: Raleway, "Helvetica Neue", sans-serif;
-	text-transform: uppercase;
-	letter-spacing: 1px;
-	font-weight: bold;
-	line-height: 1 !important;
-	transition: 0.3s;
-	text-decoration: none;
+	font-size: 0.825rem;
 }
 
-.wp-block-button .wp-block-button__link:hover,
-.wp-block-button .wp-block-button__link:focus,
-.wp-block-button .wp-block-button__link:active {
+
+/**
+ * 7.0 - Audio / Video
+ */
+
+.wp-audio-shortcode a,
+.wp-playlist a {
+	box-shadow: none;
 }
 
-.wp-block-button__link:not(.has-text-color),
-.wp-block-button__link:not(.has-text-color):active,
-.wp-block-button__link:not(.has-text-color):focus,
-.wp-block-button__link:not(.has-text-color):hover {
-	color: white;
+.mce-content-body .wp-audio-playlist {
+	margin: 0;
+	padding-bottom: 0;
 }
 
-.wp-block-button__link:not(.has-background) {
-	background-color: #99908a;
-	outline: 4px solid #99908a;
-	border: 2px solid white;
-	position: relative;
-	left: 4px;
+.mce-content-body .wp-playlist-tracks {
+	margin-top: 0;
 }
 
-.wp-block-button__link:not(.has-background):active,
-.wp-block-button__link:not(.has-background):focus,
-.wp-block-button__link:not(.has-background):hover {
-	outline-color: #5e5853;
-	background-color: #5e5853;
+.mce-content-body  .wp-playlist-item {
+	padding: .8em 0;
 }
 
-/*--------------------------------------------------------------
-6.0 Blocks - Widgets
---------------------------------------------------------------*/
+.mce-content-body .wp-playlist-item-length {
+	top: .8em;
+}
 
-/* Latest Comments */
 
-.editor-block-list__block .wp-block-latest-comments__comment-meta a {
-	box-shadow: none;
-	font-weight: 700;
-	text-decoration: none;
-}
+/**
+ * 8.0 - RTL
+ */
 
-.wp-block-latest-comments__comment-date {
+.rtl blockquote:not(.alignleft):not(.alignright) {
+	padding: 0 1.6em 0 0;
 }
 
-.wp-block-latest-comments .wp-block-latest-comments__comment {
-	border-top: 1px solid #d1d1d1;
-	margin-bottom: 0;
-	padding: 1.75em 0;
+.rtl blockquote blockquote:not(.alignleft):not(.alignright) {
+	margin-right: 0;
+	margin-left: auto;
 }
 
-.wp-block-latest-comments__comment-excerpt p:last-child {
-	margin-bottom: 0;
+.rtl li > ul,
+.rtl blockquote > ul {
+	margin-right: 1.6em;
+	margin-left: auto;
 }
 
-/* Latest Posts */
-
-.edit-post-visual-editor .wp-block-latest-posts.is-grid {
-	list-style: none;
-	margin-left: 0;
-	margin-right: 0;
+.rtl li > ol,
+.rtl blockquote > ol {
+	margin-right: 1.6em;
+	margin-left: auto;
 }
 
-.edit-post-visual-editor .wp-block-latest-posts.is-grid li {
-	margin-bottom: 1em;
+.rtl table th,
+.rtl .mce-item-table th,
+.rtl table caption {
+	text-align: right;
 }

+ 1 - 1
affinity/functions.php

@@ -265,7 +265,7 @@ add_action( 'wp_enqueue_scripts', 'affinity_scripts' );
  * Gutenberg Editor Styles 
  */
 function affinity_editor_styles() {
-	wp_enqueue_style( 'affinity-editor-style', get_template_directory_uri() . '/editor-style.css');
+	wp_enqueue_style( 'affinity-blocks-editor-style', get_template_directory_uri() . '/editor-blocks.css');
 	wp_enqueue_style( 'affinity-fonts', affinity_fonts_url(), array(), null );
 }
 add_action( 'enqueue_block_editor_assets', 'affinity_editor_styles' );