Selaa lähdekoodia

Radcliffe 2: Update and organize existing Gutenberg styles; fill in things that are missing.

Laurel Fulford 6 vuotta sitten
vanhempi
commit
c10ca66fa1
3 muutettua tiedostoa jossa 751 lisäystä ja 409 poistoa
  1. 272 123
      radcliffe-2/assets/css/blocks.css
  2. 408 237
      radcliffe-2/assets/css/editor-style.css
  3. 71 49
      radcliffe-2/functions.php

+ 272 - 123
radcliffe-2/assets/css/blocks.css

@@ -1,12 +1,29 @@
+/*
+Theme Name: Radcliffe 2
+Description: Used to style Gutenberg Blocks.
+*/
+
+/*--------------------------------------------------------------
+>>> TABLE OF CONTENTS:
+----------------------------------------------------------------
+1.0 General Block Alignments
+2.0 General Block Styles
+3.0 Blocks - Common Blocks
+4.0 Blocks - Formatting
+5.0 Blocks - Layout Elements
+6.0 Blocks - Widgets
+7.0 Blocks - Colors
+--------------------------------------------------------------*/
+
 /*--------------------------------------------------------------
-## Gutenberg Styles
+1.0 General Block Alignments
 --------------------------------------------------------------*/
 
 #page {
 	overflow-x: hidden;
 }
 
-*[class^="wp-block-"] {
+.entry-content > *[class^="wp-block-"] {
 	margin-bottom: 1.5em;
 }
 
@@ -17,13 +34,17 @@
 }
 
 /* Text-based blocks with alignfull */
+
 .wp-block-text-columns.alignfull,
+.wp-block-columns.alignfull,
 .wp-block-preformatted.alignfull,
 .wp-block-button.alignfull,
 .wp-block-pullquote.alignfull,
 .wp-block-latest-posts.alignfull,
 .wp-block-categories.alignfull,
+.wp-block-latest-comments.alignfull,
 .wp-block-verse.alignfull,
+.wp-block-audio.alignfull,
 p.alignfull {
 	margin-left: auto;
 	margin-right: auto;
@@ -46,29 +67,40 @@ p.alignfull {
 
 	/* Let's reduce this a bit for blocks with text */
 	.wp-block-text-columns.alignfull,
+	.wp-block-columns.alignfull,
 	.wp-block-table.alignfull,
 	.wp-block-preformatted.alignfull,
 	.wp-block-button.alignfull,
 	.wp-block-pullquote.alignfull,
 	.wp-block-latest-posts.alignfull,
 	.wp-block-categories.alignfull,
+	.wp-block-latest-comments.alignfull,
 	.wp-block-verse.alignfull,
+	.wp-block-audio.alignfull,
 	p.alignfull {
 		margin-left: calc(50% - 48vw);
 		margin-right: calc(50% - 48vw);
 	}
 
 	.wp-block-text-columns.alignwide,
+	.wp-block-columns.alignwide,
 	.wp-block-table.alignwide,
 	.wp-block-preformatted.alignwide,
 	.wp-block-button.alignwide,
 	.wp-block-pullquote.alignwide,
 	.wp-block-latest-posts.alignwide,
+	.wp-block-latest-comments.alignwide,
 	.wp-block-categories.alignwide,
 	p.alignwide {
 		margin-left: calc(25% - 23vw);
 		margin-right: calc(25% - 23vw);
 	}
+
+	.wp-block-embed.is-type-video.alignwide iframe,
+	.wp-block-embed.is-type-video.alignfull iframe {
+		width: 100% !important;
+		height: 100% !important;
+	}
 }
 
 .alignfull > *,
@@ -92,10 +124,45 @@ p.alignfull {
 	margin-right: auto !important;
 }
 
-/* Dropcaps */
-.has-drop-cap {}
+/* Video */
+
+.wp-block-embed.is-type-video iframe {
+	max-height: 100%;
+}
+
+/*--------------------------------------------------------------
+2.0 General Block Styles
+--------------------------------------------------------------*/
+
+/* Caption */
+
+[class^="wp-block-"] figcaption {
+	font-size: 80%;
+}
+
+[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
+	opacity: 0.8;
+}
+
+/* Video */
+
+.wp-block-embed.is-type-video iframe {
+	max-height: 100%;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+p.has-drop-cap:not(:focus)::first-letter {
+	font-size: 5em;
+	margin-top: 0.15em;
+}
+
+/* Image */
 
-/* Images */
 .wp-block-image {}
 
 .wp-block-image figure {
@@ -114,7 +181,6 @@ p.alignfull {
 	margin-left: 1.6em;
 }
 
-.wp-block-image.alignwide {}
 .wp-block-image.alignfull {
 	width: 100vw;
 	max-width: 100vw;
@@ -126,22 +192,30 @@ p.alignfull {
 	opacity: 0.8;
 }
 
-/* Galleries */
+/* Gallery */
+
 ul.wp-block-gallery,
 ul.wp-block-gallery li {
 	padding: 0;
 }
 
-/* Blockquotes*/
-.wp-block-quote {}
+/* Quote */
 
-.wp-block-quote.blocks-quote-style-1 {}
-.wp-block-quote.blocks-quote-style-2 {}
 .wp-block-quote cite {
 	color: inherit;
 	opacity: 0.8;
 }
 
+.wp-block-quote.is-large p,
+.wp-block-quote.is-style-large p {
+	font-size: 28px;
+}
+
+.wp-block-quote.is-large cite,
+.wp-block-quote.is-style-large cite {
+	font-size: 22px;
+}
+
 @media (min-width: 600px) {
 	.wp-block-pullquote.alignleft,
 	.wp-block-pullquote.alignright {
@@ -149,25 +223,45 @@ ul.wp-block-gallery li {
 	}
 }
 
-/* Cover Images */
-@media (min-width: 750px) {
-	.wp-block-cover-image:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) {
-		left: 50%;
-		margin-left: -50vw;
-		position: relative;
-		width: 100vw;
-	}
+/* Audio */
+
+.wp-block-audio {}
+
+.wp-block-audio audio {
+	display: block;
+	min-width: 270px;
+	width: 100%;
 }
 
-.wp-block-cover-image {
+/* Cover */
+
+.wp-block-cover-image.alignwide,
+.wp-block-cover.alignwide,
+.wp-block-cover-image.alignfull,
+.wp-block-cover.alignfull {
 	height: 75vh;
-	min-height: 400px;
 }
 
-.wp-block-cover-image.has-background-dim {}
-.wp-block-cover-image.has-parallax {}
+/* File */
+
+.wp-block-file .wp-block-file__button {
+	background: #222;
+	border-radius: 3px;
+	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
+	font-size: 1.4rem;
+	font-size: 14px;
+	line-height: 1.29;
+	padding: 9px 18px;
+}
+
+.wp-block-file .wp-block-file__button:hover,
+.wp-block-file .wp-block-file__button:focus {
+	background: #ca2017;
+	opacity: 1.0;
+}
 
 /* Video */
+
 .wp-block-video {}
 
 .wp-block-video video,
@@ -175,19 +269,31 @@ ul.wp-block-gallery li {
 	max-width: 100%;
 }
 
-/* Audio */
-.wp-block-audio {}
+/*--------------------------------------------------------------
+4.0 Blocks - Formatting
+--------------------------------------------------------------*/
 
-.wp-block-audio audio {
-	display: block;
-	min-width: 270px;
-	width: 100%;
+/* Verse */
+
+.wp-block-verse {
+	background-color: transparent;
+	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
+	font-size: 1.1em;
+	font-style: italic;
+	line-height: 1.8;
+	padding: 0;
 }
 
-/* Embed */
-.wp-block-embed {}
+/* Code */
+
+.wp-block-code {}
+
+/* Preformatted */
+
+.wp-block-preformatted {}
 
 /* Pullquotes */
+
 .wp-block-pullquote {
 	border: none;
 	color: #666;
@@ -201,6 +307,7 @@ ul.wp-block-gallery li {
 }
 
 /* Tables */
+
 .wp-block-table {
 	display: table;
 }
@@ -214,37 +321,13 @@ ul.wp-block-gallery li {
 	width: 96vw;
 }
 
-/* Preformatted */
-.wp-block-preformatted {}
-
-/* Code */
-.wp-block-code {}
-
-/* Verse */
-.wp-block-verse {
-	background-color: transparent;
-	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
-	font-size: 1.1em;
-	font-style: italic;
-	line-height: 1.8;
-	padding: 0;
-}
-
-/* Separator */
-.wp-block-separator {
-	border: none;
-	max-width: 100px;
-	margin: 1.6em auto;
-}
-
-.wp-block-separator.is-style-wide {
-	max-width: 100%;
-}
+/*--------------------------------------------------------------
+5.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
 
 /* Buttons */
-.wp-block-file .wp-block-file__button,
+
 .wp-block-button .wp-block-button__link {
-	background: #222;
 	border-radius: 3px;
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
 	font-size: 1.4rem;
@@ -253,26 +336,16 @@ ul.wp-block-gallery li {
 	padding: 9px 18px;
 }
 
-.wp-block-file a:hover,
-.wp-block-file a:focus,
-.wp-block-button a:hover,
-.wp-block-button a:focus {
-	opacity: 1.0;
-}
-
-.wp-block-button a:not([style]) {
-	border: 0;
+.wp-block-button__link {
+	background: #222;
 	color: #fff;
 }
 
-.wp-block-button:not([style]) a:hover,
-.wp-block-button:not([style]) a:focus {
-	color: #fff;
-	text-decoration: none;
+.wp-block-button__link:hover,
+.wp-block-button__link:focus {
+	opacity: 1.0;
 }
 
-.wp-block-file__button:hover,
-.wp-block-file__button:focus,
 .wp-block-button__link:not(.has-background):hover,
 .wp-block-button__link:not(.has-background):focus {
 	background: #ca2017;
@@ -284,54 +357,45 @@ ul.wp-block-gallery li {
 	display: block;
 }
 
-/* Text Columns */
-@media only screen and ( max-width: 32em ) {
-	.wp-block-text-columns,
-	.wp-block-text-columns.aligncenter {
-		display: block;
-	}
+/* Columns */
 
-	.wp-block-text-columns.columns-2 .wp-block-column,
-	.wp-block-text-columns.columns-3 .wp-block-column,
-	.wp-block-text-columns.columns-4 .wp-block-column {
-		float: none;
-		margin-left: 0;
-		margin-right: 0;
-		width: 100%;
-	}
-}
+/* Separator */
 
-/* Latest Posts */
-.wp-block-latest-posts__post-date {
-	color: inherit;
-	margin-bottom: 0;
-	opacity: 0.8;
+.wp-block-separator {
+	border: none;
+	max-width: 100px;
+	margin: 1.6em auto;
 }
 
-.wp-block-latest-posts,
-.wp-block-latest-posts li {
-	list-style: none;
-	margin: 0;
-	padding: 0;
+.wp-block-separator.is-style-wide {
+	max-width: 100%;
 }
 
-.wp-block-latest-posts li {
-	padding: 0.25em 0;
-}
+/* Media & Text */
 
-.wp-block-latest-posts li:not(:last-child) {
-	border-bottom: 1px solid rgba(0,0,0,0.2);
+.wp-block-media-text *:last-child {
+	margin-bottom: 0;
 }
 
-.wp-block-latest-posts.is-grid li {
-	border: 0;
-}
+/*--------------------------------------------------------------
+6.0 Blocks - Widgets
+--------------------------------------------------------------*/
 
-/* Widget blocks */
-.wp-block-categories {}
+/* Categories, Latest Posts & Archives */
+
+.wp-block-categories.aligncenter,
+.wp-block-categories.aligncenter ul,
+.wp-block-latest-posts.aligncenter,
+.wp-block-archives.aligncenter {
+	list-style-position: inside;
+	margin-left: 0;
+	margin-right: 0;
+	text-align: center;
+}
 
 .wp-block-archives,
 .wp-block-latest-comments,
+.wp-block-latest-posts,
 .wp-block-categories-list {
 	list-style: none;
 	padding: 0;
@@ -355,38 +419,123 @@ ul.wp-block-gallery li {
 	padding-bottom: 0;
 }
 
-.wp-block-categories-dropdown {}
+/* Latest Posts */
 
-/* Colours */
+.wp-block-latest-posts__post-date {
+	color: inherit;
+	margin-bottom: 0;
+	opacity: 0.8;
+}
 
-.has-white-color {
-	color: #fff;
+.wp-block-latest-posts,
+.wp-block-latest-posts li {
+	list-style: none;
 }
 
-.has-dark-grey-color {
-	color: #222;
+.wp-block-latest-posts li {
+	padding: 0.25em 0;
 }
 
-.has-light-grey-color {
-	color: #666;
+.wp-block-latest-posts li:not(:last-child) {
+	border-bottom: 1px solid rgba(0,0,0,0.2);
 }
 
-.has-red-color {
-	color: #ca2017;
+.wp-block-latest-posts.is-grid li {
+	border: 0;
+}
+
+/* Latest Comments */
+
+.wp-block-latest-comments {
+	margin-left: 0;
+	margin-right: 0;
 }
 
-.has-white-background-color {
+.wp-block-latest-comments__comment,
+.wp-block-latest-comments__comment-date {
+	font-size: inherit;
+}
+
+.wp-block-latest-comments__comment-meta {
+	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
+	font-size: 80%;
+	font-weight: bold;
+	margin-bottom: 0;
+}
+
+.wp-block-latest-comments__comment-excerpt p {
+	font-size: 90%;
+}
+
+.wp-block-latest-comments__comment-date {
+	color: #707070;
+	font-size: 80%;
+}
+
+/*--------------------------------------------------------------
+7.0 Blocks - Colors
+--------------------------------------------------------------*/
+
+.has-white-color,
+.has-white-color:hover,
+.has-white-color:active,
+.has-white-color:focus,
+.has-white-color:visited {
+	color: #fff;
+}
+
+.has-white-background-color,
+.has-white-background-color:hover,
+.has-white-background-color:active,
+.has-white-background-color:focus,
+.has-white-background-color:visited {
 	background-color: #fff
 }
 
-.has-dark-grey-background-color {
+.has-dark-gray-color,
+.has-dark-gray-color:hover,
+.has-dark-gray-color:active,
+.has-dark-gray-color:focus,
+.has-dark-gray-color:visited {
+	color: #222;
+}
+
+.has-dark-gray-background-color,
+.has-dark-gray-background-color:hover,
+.has-dark-gray-background-color:active,
+.has-dark-gray-background-color:focus,
+.has-dark-gray-background-color:visited {
 	background-color: #222;
 }
 
-.has-light-grey-background-color {
+.has-light-gray-color,
+.has-light-gray-color:hover,
+.has-light-gray-color:active,
+.has-light-gray-color:focus,
+.has-light-gray-color:visited {
+	color: #666;
+}
+
+.has-light-gray-background-color,
+.has-light-gray-background-color:hover,
+.has-light-gray-background-color:active,
+.has-light-gray-background-color:focus,
+.has-light-gray-background-color:visited {
 	background-color: #666;
 }
 
-.has-red-background-color {
+.has-red-color,
+.has-red-color:hover,
+.has-red-color:active,
+.has-red-color:focus,
+.has-red-color:visited {
+	color: #ca2017;
+}
+
+.has-red-background-color,
+.has-red-background-color:hover,
+.has-red-background-color:active,
+.has-red-background-color:focus,
+.has-red-background-color:visited {
 	background-color: #ca2017;
 }

+ 408 - 237
radcliffe-2/assets/css/editor-style.css

@@ -1,320 +1,541 @@
-/*!
-Editor Styles for Radcliffe 2
---------------------------------------------------------------*/
-
-/* Widths */
+/*
+Theme Name: Radcliffe 2
+Description: Used to style Gutenberg Blocks in the editor.
+*/
 
-@media screen and ( min-width: 788px ) {
-	/* 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: 770px; /* 740px + 30px for editor block margins */
-	}
-}
+/*--------------------------------------------------------------
+>>> TABLE OF CONTENTS:
+----------------------------------------------------------------
+1.0 General Typography
+2.0 General Block Settings
+3.0 Blocks - Common Blocks
+4.0 Blocks - Formatting
+5.0 Blocks - Layout Elements
+6.0 Blocks - Widgets
+--------------------------------------------------------------*/
 
 /*--------------------------------------------------------------
-# Typography
+1.0 General Typography
 --------------------------------------------------------------*/
 
-.edit-post-visual-editor,
-.edit-post-visual-editor p,
-.edit-post-visual-editor button,
-.edit-post-visual-editor input,
-.edit-post-visual-editor select,
-.edit-post-visual-editor optgroup,
-.edit-post-visual-editor textarea,
-.edit-post-visual-editor blockquote {
-	color: #222;
+.edit-post-visual-editor .editor-block-list__block,
+.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
 	font-family: Palatino,"Palatino Linotype","Palatino LT STD","Book Antiqua",Times,"Times New Roman",serif;
-	font-size: 20px;
+}
+
+/* Font size */
+
+.edit-post-visual-editor .editor-block-list__block,
+.edit-post-visual-editor .editor-block-list__block p,
+.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
+	font-size: 18px;
 	line-height: 1.8;
 }
 
+@media (min-width: 600px) {
+	.edit-post-visual-editor .editor-block-list__block,
+	.edit-post-visual-editor .editor-block-list__block p,
+	.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
+		font-size: 20px;
+	}
+}
+
 .blocks-rich-text__tinymce.mce-content-body {
 	line-height: inherit;
 }
 
-h1.mce-content-body,
-h2.mce-content-body,
-h3.mce-content-body,
-h4.mce-content-body,
-h5.mce-content-body,
-h6.mce-content-body,
-.edit-post-visual-editor textarea.editor-post-title__input,
-.mce-content-body h1,
-.mce-content-body h2,
-.mce-content-body h3,
-.mce-content-body h4,
-.mce-content-body h5,
-.mce-content-body h6,
-#poststuff h1,
-#poststuff h2,
-#poststuff h3,
-#poststuff h4,
-#poststuff h5,
-#poststuff h6 {
-	clear: both;
-	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
-	line-height: 1.1;
-	margin-top: 0;
+/* Color */
+
+.edit-post-visual-editor .editor-block-list__block {
+	color: #222;
 }
 
-/* Post/Page title */
-.edit-post-visual-editor textarea.editor-post-title__input {
+/* Post title */
+
+.editor-post-title__block .editor-post-title__input {
 	font-family: Palatino,"Palatino Linotype","Palatino LT STD","Book Antiqua",Times,"Times New Roman",serif;
-	font-size: 60px;
+	font-size: 36px;
 	line-height: 1.2;
 	text-align: center;
 }
 
+@media all and (min-width: 600px) {
+	.editor-post-title__block .editor-post-title__input {
+		font-size: 50px;
+	}
+}
+
+@media screen and (min-width: 768px) {
+	.editor-post-title__block .editor-post-title__input {
+		font-size: 60px;
+	}
+}
+
 .edit-post-visual-editor .editor-post-title {
 	max-width: 100%;
 }
 
-h1.editor-rich-text__tinymce.mce-content-body {
+/* Headings */
+
+.edit-post-visual-editor h1,
+.wp-block-freeform.block-library-rich-text__tinymce h1,
+.edit-post-visual-editor h2,
+.wp-block-freeform.block-library-rich-text__tinymce h2,
+.edit-post-visual-editor h3,
+.wp-block-freeform.block-library-rich-text__tinymce h3,
+.edit-post-visual-editor h4,
+.wp-block-freeform.block-library-rich-text__tinymce h4,
+.edit-post-visual-editor h5,
+.wp-block-freeform.block-library-rich-text__tinymce h5,
+.edit-post-visual-editor h6,
+.wp-block-freeform.block-library-rich-text__tinymce h6 {
+	clear: both;
+	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
+	line-height: 1.1;
+}
+
+.edit-post-visual-editor h1,
+.wp-block-freeform.block-library-rich-text__tinymce h1 {
 	font-size: 36px;
 	line-height: 1.25;
 }
 
-h2.editor-rich-text__tinymce.mce-content-body,
-#poststuff .wp-block-heading h2 {
+.edit-post-visual-editor h2,
+.wp-block-freeform.block-library-rich-text__tinymce h2 {
 	font-size: 30px;
 	line-height: 1.2;
 }
 
-h3.editor-rich-text__tinymce.mce-content-body {
+.edit-post-visual-editor h3,
+.wp-block-freeform.block-library-rich-text__tinymce h3 {
 	font-size: 25px;
 	line-height: 1.44;
 }
 
-h4.editor-rich-text__tinymce.mce-content-body {
+.edit-post-visual-editor h4,
+.wp-block-freeform.block-library-rich-text__tinymce h4 {
 	font-size: 20px;
 	line-height: 1.8em
 }
 
-h5.editor-rich-text__tinymce.mce-content-body,
-h6.editor-rich-text__tinymce.mce-content-body {
+.edit-post-visual-editor h5,
+.wp-block-freeform.block-library-rich-text__tinymce h5,
+.edit-post-visual-editor h6,
+.wp-block-freeform.block-library-rich-text__tinymce h6 {
 	font-size: 15px;
 	line-height: 2.4em;
 	text-transform: uppercase;
 }
 
-.mce-content-body dfn,
-.mce-content-body cite,
-.mce-content-body em,
-.mce-content-body i {
-	font-style: italic;
+@media screen and (min-width: 768px) {
+	.edit-post-visual-editor h1,
+	.wp-block-freeform.block-library-rich-text__tinymce h1 {
+		font-size: 40px;
+	}
 }
 
-.mce-content-body address {
-	margin: 0 0 1.8em;
-}
+/*--------------------------------------------------------------
+2.0 General Block Settings
+--------------------------------------------------------------*/
 
-.mce-content-body pre,
-.wp-block-code .editor-plain-text,
-.wp-block-preformatted pre {
-	font-family: "Courier 10 Pitch", Courier, monospace;
-	font-size: 16px;
-	line-height: 1.6;
-	margin-bottom: 1.6em;
-	max-width: 100%;
-	overflow: auto;
-	padding: 1.6em;
-	word-wrap: nowrap;
-}
+/* Main content width */
 
-.wp-block-code .editor-plain-text {
-	margin-bottom: 0;
+@media screen and ( min-width: 788px ) {
+	.wp-block {
+		max-width: 770px; /* 740px + 30px for editor block margins */
+	}
 }
 
+/* All elements */
 
-.mce-content-body blockquote {
-	margin: 0 1.5em;
+.edit-post-visual-editor *,
+.edit-post-visual-editor *:before,
+.edit-post-visual-editor *:after {
+	/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
+	box-sizing: inherit;
 }
 
-.mce-content-body code,
-.mce-content-body kbd,
-.mce-content-body tt,
-.mce-content-body var {
-	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
-	font-size: 16px;
-	font-size: 1.6rem;
-}
+/* Link styles */
 
-.mce-content-body abbr,
-.mce-content-body acronym {
-	border-bottom: 1px dotted #666;
-	cursor: help;
+.edit-post-visual-editor a,
+.editor-block-list__block a,
+.wp-block-freeform.block-library-rich-text__tinymce a {
+	color: #ca2017;
+	text-decoration: none;
 }
 
-.mce-content-body mark,
-.mce-content-body ins {
-	background: #fff9c0;
-	text-decoration: none;
+/* Caption styles */
+
+[class^="wp-block-"] figcaption {
+	font-size: 80%;
 }
 
-.mce-content-body big {
-	font-size: 125%;
+[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
+	color: inherit;
+	opacity: 0.8;
 }
 
-/*--------------------------------------------------------------
-# Elements
---------------------------------------------------------------*/
+/* Address styles */
 
-.edit-post-visual-editor *,
-.edit-post-visual-editor *:before,
-.edit-post-visual-editor *:after {
-	/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
-	box-sizing: inherit;
+.wp-block-freeform.block-library-rich-text__tinymce address {
+	margin: 0 0 1.8em;
 }
 
-/* Subhead */
-.edit-post-visual-editor p.wp-block-subhead {
-	color: inherit;
+/* Preformatted styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce pre {
+	background: #eee;
+	font-family: "Courier 10 Pitch", Courier, monospace;
+	font-size: 16px;
+	line-height: 1.6;
+	margin-bottom: 1.6em;
+	padding: 1.6em;
 }
 
-.mce-content-body hr {
+/* HR styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce hr {
 	background-color: #ccc;
 	border: 0;
 	height: 1px;
 	margin-bottom: 1.6em;
 }
 
-.mce-content-body ul,
-.mce-content-body ol {
+/* List styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce ul,
+.wp-block-freeform.block-library-rich-text__tinymce ol {
 	margin: 0 0 1.6em;
 	padding: 0;
 }
 
-.mce-content-body ul {
+.wp-block-freeform.block-library-rich-text__tinymce ul {
 	list-style: disc;
 }
 
-.mce-content-body ol {
+.wp-block-freeform.block-library-rich-text__tinymce ol {
 	list-style: decimal;
 }
 
-.mce-content-body li > ul,
-.mce-content-body li > ol {
+.wp-block-freeform.block-library-rich-text__tinymce li > ul,
+.wp-block-freeform.block-library-rich-text__tinymce li > ol {
 	margin-bottom: 0;
 }
 
-.mce-content-body dt {
+/* Definition list styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce dt {
 	font-weight: bold;
 }
 
-.edit-post-visual-editor dd {
+.wp-block-freeform.block-library-rich-text__tinymce dd {
 	margin: 0 1.5em 1.5em;
 }
 
-.edit-post-visual-editor img {
-	height: auto;
-	/* Make sure images are scaled correctly. */
-	max-width: 100%;
-	/* Adhere to container width. */
-}
+/* Figure styles */
 
-.edit-post-visual-editor figure {
+.wp-block-freeform.block-library-rich-text__tinymce figure {
 	margin: 1em 0;
-	/* Extra wide images within figure tags don't overflow the content area. */
 }
 
-.edit-post-visual-editor table {
+/* Table styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce table {
 	border-collapse: collapse;
 	border-spacing: 0;
+	border: 0;
 	empty-cells: show;
 	font-size: 0.9em;
 	margin: 0 0 1.6em;
 	width: 100%;
 }
 
-.edit-post-visual-editor thead {
+.wp-block-freeform.block-library-rich-text__tinymce thead {
 	vertical-align: bottom;
-	white-space: nowrap;
 }
 
-.edit-post-visual-editor tbody {
+.wp-block-freeform.block-library-rich-text__tinymce tbody {
 	border-bottom: 1px solid #eee;
 	border-top: 1px solid #eee;
 }
 
-.edit-post-visual-editor th {
+.wp-block-freeform.block-library-rich-text__tinymce th {
 	color: #444;
 	font-weight: bold;
 	text-align: left;
 }
 
-.edit-post-visual-editor th,
-.edit-post-visual-editor td {
+.wp-block-freeform.block-library-rich-text__tinymce th,
+.wp-block-freeform.block-library-rich-text__tinymce td {
 	border-bottom: 1px solid #eee;
 	line-height: 120%;
 	margin: 0;
-	overflow: visible;
-	padding: 2%;
+	padding: 0.75em;
 }
 
-.edit-post-visual-editor tr:last-child td {
+.wp-block-freeform.block-library-rich-text__tinymce tr:last-child td {
 	border-bottom: none;
 }
 
-.wp-block-freeform.mce-content-body table tbody > tr:nth-child(2n+1) > th,
-.wp-block-freeform.mce-content-body table tbody > tr:nth-child(odd) > td,
-.edit-post-visual-editor table tbody > tr:nth-child(odd) > th,
-.edit-post-visual-editor table tbody > tr:nth-child(odd) > td {
+.wp-block-freeform.block-library-rich-text__tinymce table tbody > tr:nth-child(odd) > th,
+.wp-block-freeform.block-library-rich-text__tinymce table tbody > tr:nth-child(odd) > td {
 	background: #f9f9f9;
 }
 
-.edit-post-visual-editor blockquote {
+.rtl .wp-block-freeform.block-library-rich-text__tinymce th {
+	text-align: right;
+}
 
+/* Code, KBD, TT and Var styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce code,
+.wp-block-freeform.block-library-rich-text__tinymce kbd,
+.wp-block-freeform.block-library-rich-text__tinymce tt,
+.wp-block-freeform.block-library-rich-text__tinymce var {
+	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
+	font-size: 16px;
 }
 
-.editor-block-list__block[data-align="right"] .wp-block-pullquote,
-.editor-block-list__block[data-align="left"] .wp-block-pullquote {
-	max-width: 300px;
+/* DFN, Cite, Em, i styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce dfn,
+.wp-block-freeform.block-library-rich-text__tinymce cite,
+.wp-block-freeform.block-library-rich-text__tinymce em,
+.wp-block-freeform.block-library-rich-text__tinymce i {
+	font-style: italic;
+}
+
+/* Abbr, Acronym styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce abbr,
+.wp-block-freeform.block-library-rich-text__tinymce acronym {
+	border-bottom: 1px dotted #666;
+	cursor: help;
+}
+
+/* Mark, Ins styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce mark,
+.wp-block-freeform.block-library-rich-text__tinymce ins {
+	background: #fff9c0;
+	text-decoration: none;
+}
+
+/* Big styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce big {
+	font-size: 125%;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+p.has-drop-cap:not(:focus)::first-letter {
+	font-size: 5em;
+	margin-top: 0.15em;
+}
+
+/* Quote */
+
+.wp-block-quote:not(.is-large):not(.is-style-large) {
+	border: 0;
+	padding: 0;
+}
+
+.wp-block-quote {
+	font-style: italic;
+	margin: 0 1.5em;
+	text-align: center;
+}
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote p {
+	color: #666;
+	font-size: 22px;
+}
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p,
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p {
+	font-size: 28px;
+}
+
+.wp-block-quote .wp-block-quote__citation,
+.wp-block-quote:not(.is-large):not(.is-style-large) .wp-block-quote__citation {
+	color: #999;
+	font-size: 22px;
+	font-style: italic;
+}
+
+/* Cover */
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
+	font-size: 2em;
+}
+
+.editor-block-list__block [data-align="wide"] .wp-block-cover-image,
+.editor-block-list__block [data-align="wide"] .wp-block-cover,
+.editor-block-list__block [data-align="full"] .wp-block-cover-image,
+.editor-block-list__block [data-align="full"] .wp-block-cover {
+	height: 75vh;
+	min-height: 400px;
+}
+
+/* File */
+
+.wp-block-file__textlink {
+	color: #ca2017;
+}
+
+.wp-block-file .wp-block-file__button {
+	background: #222;
+	border-radius: 3px;
+	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
+	font-size: 14px;
+	line-height: 1.29;
+	padding: 9px 18px;
 }
 
-.edit-post-visual-editor th,
-.edit-post-visual-editor td {
-	border-right: 0;
+.wp-block-file .wp-block-file__button:hover,
+.wp-block-file .wp-block-file__button:focus {
+	background: #ca2017;
+	opacity: 1.0;
 }
 
-.edit-post-visual-editor table {
-	border-collapse: separate;
+/*--------------------------------------------------------------
+4.0 Blocks - Formatting
+--------------------------------------------------------------*/
+
+/* Verse */
+
+/* Code */
+
+.wp-block-code .editor-plain-text {
+	font-family: "Courier 10 Pitch", Courier, monospace;
+	font-size: 16px;
+	line-height: 1.6;
+	margin-bottom: 1.6em;
+	max-width: 100%;
+	overflow: auto;
+	padding: 1.6em;
+	word-wrap: nowrap;
+}
+
+.wp-block-code .editor-plain-text {
+	margin-bottom: 0;
+}
+
+
+/* Preformatted */
+
+.wp-block-preformatted pre {
+	background: #eee;
+	font-family: "Courier 10 Pitch", Courier, monospace;
+	font-size: 16px;
+	line-height: 1.6;
+	padding: 1.6em;
+}
+
+/* Pullquote */
+
+.wp-block-pullquote {
+	border: 0;
+	font-style: italic;
+	padding: 0;
+}
+
+.edit-post-visual-editor .wp-block-pullquote p {
+	color: #666;
+	margin-bottom: 1.8em;
+}
+
+.edit-post-visual-editor .wp-block-pullquote__citation {
+	color: #666;
+	font-size: 1.1em;
+	font-style: italic;
+	opacity: 0.8;
+	text-transform: capitalize;
+}
+
+/* Table */
+
+.wp-block-table {
+	border-collapse: collapse;
 	border-spacing: 0;
-	border-width: 1px 0 0 1px;
-	margin: 0 0 1.75em;
-	table-layout: fixed;
-	/* Prevents HTML tables from becoming too wide */
+	border: 0;
+	empty-cells: show;
+	font-size: 0.9em;
+	margin: 0 0 1.6em;
 	width: 100%;
 }
 
-.edit-post-visual-editor caption,
-.edit-post-visual-editor th,
-.edit-post-visual-editor td {
-	font-weight: normal;
+.wp-block-table thead {
+	vertical-align: bottom;
+}
+
+.wp-block-table tbody {
+	border-bottom: 1px solid #eee;
+	border-top: 1px solid #eee;
+}
+
+.wp-block-table th {
+	color: #444;
+	font-weight: bold;
 	text-align: left;
 }
 
-.edit-post-visual-editor th {
-	border-width: 0 1px 1px 0;
-	font-weight: 700;
+.wp-block-table th,
+.wp-block-table td {
+	border-bottom: 1px solid #eee;
+	line-height: 120%;
+	margin: 0;
+	padding: 0.75em;
+}
+
+.wp-block-table tr:last-child td {
+	border-bottom: none;
 }
 
-.edit-post-visual-editor td {
-	border-width: 0 1px 1px 0;
+.wp-block-table tbody > tr:nth-child(odd) > th,
+.wp-block-table tbody > tr:nth-child(odd) > td {
+	background: #f9f9f9;
 }
 
-.edit-post-visual-editor th,
-.edit-post-visual-editor td {
-	padding: 0.4375em;
+.rtl .wp-block-table th {
+	text-align: right;
 }
 
-.mce-content-body table tbody > tr:nth-child(odd) > th,
-.mce-content-body table tbody > tr:nth-child(odd) > td {
-	background: rgba(0,0,0,.15);
+/*--------------------------------------------------------------
+5.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+
+/* Separator */
+
+/*--------------------------------------------------------------
+6.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+
+/*--------------------------------------------------------------
+# Elements
+--------------------------------------------------------------*/
+
+
+
+.editor-block-list__block[data-align="right"] .wp-block-pullquote,
+.editor-block-list__block[data-align="left"] .wp-block-pullquote {
+	max-width: 300px;
 }
 
+
 /*--------------------------------------------------------------
 # Forms
 --------------------------------------------------------------*/
@@ -595,32 +816,28 @@ h6.editor-rich-text__tinymce.mce-content-body {
 	width: 100%;
 }
 
-/* Blockquotes*/
+/* Blockquotes */
 
-.edit-post-visual-editor .wp-block-quote:not(.is-large) {
-	border-left: 0;
-	padding-left: 0;
-}
-
-.wp-block-freeform.core-blocks-rich-text__tinymce blockquote {
+.wp-block-freeform.block-library-rich-text__tinymce blockquote {
 	border: 0;
+	margin: 0 1.5em;
 	padding: 0;
 	text-align: center;
 }
 
-.wp-block-freeform.core-blocks-rich-text__tinymce blockquote {
+.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
 	color: #666;
+	font-size: 22px;
+	font-style: italic;
 }
 
-.edit-post-visual-editor .wp-block-quote,
-.editor-post-visual-editor blockquote {
-	font-style: italic;
-	margin: 0 1.5em;
-	text-align: center;
+.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
+	color: #999;
+	font-size: 22px;
 }
 
-.edit-post-visual-editor blockquote::before,
-.edit-post-visual-editor blockquote::after {
+.wp-block-freeform.block-library-rich-text__tinymce blockquote::before,
+.wp-block-freeform.block-library-rich-text__tinymce blockquote::after {
 	background: #ddd;
 	content: "";
 	display: block;
@@ -629,66 +846,16 @@ h6.editor-rich-text__tinymce.mce-content-body {
 	width: 80px;
 }
 
-
 @media (min-width: 600px) {
-	.edit-post-visual-editor blockquote::before,
-	.edit-post-visual-editor blockquote::after {
+	.wp-block-freeform.block-library-rich-text__tinymce blockquote::before,
+	.wp-block-freeform.block-library-rich-text__tinymce blockquote::after {
 		margin: 36px auto;
 		width: 108px;
 	}
 }
 
-.edit-post-visual-editor .wp-block-quote p,
-.editor-post-visual-editor blockquote p {
-	color: #666;
-	font-size: 22px;
-}
-
-.edit-post-visual-editor .wp-block-quote cite,
-.editor-post-visual-editor blockquote cite {
-	color: #999;
-	font-size: 13px;
-}
-
-/* Pullquotes */
-.wp-block-pullquote {
-	border: 0;
-	font-style: italic;
-	padding: 0;
-}
-
-.edit-post-visual-editor .wp-block-pullquote p {
-	color: #666;
-	margin-bottom: 1.8em;
-}
-
-.edit-post-visual-editor .wp-block-pullquote__citation {
-	color: #666;
-	font-size: 1.1em;
-	font-style: italic;
-	opacity: 0.8;
-	text-transform: capitalize;
-}
-
-/* Cover Images */
-.edit-post-visual-editor .editor-block-list__block[data-type="core/cover-image"] {
-	max-width: 100%;
-}
-
-.editor-block-list__block .wp-block-cover-image {
-	height: 75vh;
-	min-height: 400px;
-}
-
-.editor-block-list__block .wp-block-cover-image p,
-.editor-block-list__block .wp-block-cover-image h2 {
-	line-height: 1.2;
-}
 
 /* Tables */
-.wp-block-table {
-	display: table;
-}
 
 /* Verse */
 .wp-block-verse {
@@ -719,7 +886,6 @@ h6.editor-rich-text__tinymce.mce-content-body {
 	border: 0;
 	border-radius: 3px;
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
-	font-size: 1.4rem;
 	font-size: 14px;
 	line-height: 1.25;
 	padding: .6em 1em;
@@ -738,6 +904,11 @@ h6.editor-rich-text__tinymce.mce-content-body {
 	display: block;
 }
 
+.wp-block-button .editor-rich-text__tinymce.mce-content-body {
+	line-height: 1.25;
+}
+
+
 @media ( min-width: 600px ) {
 	.editor-block-list__layout .editor-block-list__block[data-align="full"] {
 		max-width: calc( 100% + 100px );

+ 71 - 49
radcliffe-2/functions.php

@@ -78,100 +78,122 @@ function radcliffe_2_setup() {
 	// Add theme support for selective refresh for widgets.
 	add_theme_support( 'customize-selective-refresh-widgets' );
 
+	// Add support for responsive embeds.
+	add_theme_support( 'responsive-embeds' );
+
 	// Gutenberg: Add Custom Palette
 	$stylepack = get_theme_mod( 'active_style_pack' );
 
-	if ( 'default' === $stylepack ) {
-		add_theme_support( 'editor-color-palette',
-			array(
-				'name' => 'white',
-				'color' => '#ffffff',
-			),
-			array(
-				'name' => 'dark grey',
-				'color' => '#222222',
-			),
-			array(
-				'name' => 'light gray',
-				'color' => '#666666',
-			),
-			array(
-				'name' => 'red',
-				'color' => '#ca2017',
-			)
-		);
-	} else if ( 'vintage' === $stylepack ) {
-		add_theme_support( 'editor-color-palette',
+	if ( 'vintage' === $stylepack ) {
+		add_theme_support( 'editor-color-palette', array(
 			array(
-				'name' => 'vintage off-white',
-				'color' => '#eae8dc',
+				'name'  => esc_html__( 'Vintage Off-White', 'radcliffe-2' ),
+				'slug'  => 'vintage-off-white',
+				'color' => '#3e69dc',
 			),
 			array(
-				'name' => 'vintage light brown',
+				'name'  => esc_html__( 'Vintage Light Brown', 'radcliffe-2' ),
+				'slug'  => 'vintage-light-brown',
 				'color' => '#c7c4b4',
 			),
 			array(
-				'name' => 'vintage light grey',
-				'color' => '#666666',
+				'name'  => esc_html__( 'Vintage Light Gray', 'radcliffe-2' ),
+				'slug'  => 'vintage-light-gray',
+				'color' => '#666',
 			),
 			array(
-				'name' => 'vintage dark grey',
-				'color' => '#222222',
+				'name'  => esc_html__( 'Vintage Dark Gray', 'radcliffe-2' ),
+				'slug'  => 'vintage-dark-gray',
+				'color' => '#222',
 			),
 			array(
-				'name' => 'vintage blue',
+				'name'  => esc_html__( 'Vintage Blue', 'radcliffe-2' ),
+				'slug'  => 'vintage-blue',
 				'color' => '#2b6e9d',
 			)
-		);
+		) );
 	} else if ( 'colorful' === $stylepack ) {
-		add_theme_support( 'editor-color-palette',
+		add_theme_support( 'editor-color-palette', array(
 			array(
-				'name' => 'colorful white',
-				'color' => '#ffffff',
+				'name'  => esc_html__( 'Colorful White', 'radcliffe-2' ),
+				'slug'  => 'colorful-white',
+				'color' => '#fff',
 			),
 			array(
-				'name' => 'colorful light grey',
+				'name'  => esc_html__( 'Colorful Light Gray', 'radcliffe-2' ),
+				'slug'  => 'colorful-light-gray',
 				'color' => '#e5e5e5',
 			),
 			array(
-				'name' => 'colorful dark grey',
+				'name'  => esc_html__( 'Colorful Dark Gray', 'radcliffe-2' ),
+				'slug'  => 'colorful-dark-gray',
 				'color' => '#222222',
 			),
 			array(
-				'name' => 'colorful blue',
+				'name'  => esc_html__( 'Colorful Blue', 'radcliffe-2' ),
+				'slug'  => 'colorful-blue',
 				'color' => '#4ba3c3',
 			),
 			array(
-				'name' => 'colorful green',
+				'name'  => esc_html__( 'Colorful Green', 'radcliffe-2' ),
+				'slug'  => 'colorful-green',
 				'color' => '#71db9d',
 			),
 			array(
-				'name' => 'colorful orange',
+				'name'  => esc_html__( 'Colorful Orange', 'radcliffe-2' ),
+				'slug'  => 'colorful-orange',
 				'color' => '#d97059',
 			)
-		);
+		) );
 	} else if ( 'modern' === $stylepack ) {
-		add_theme_support( 'editor-color-palette',
+		add_theme_support( 'editor-color-palette', array(
 			array(
-				'name' => 'modern white',
-				'color' => '#ffffff',
+				'name'  => esc_html__( 'Modern White', 'radcliffe-2' ),
+				'slug'  => 'modern-white',
+				'color' => '#fff',
 			),
 			array(
-				'name' => 'modern light grey',
+				'name'  => esc_html__( 'Modern Light Gray', 'radcliffe-2' ),
+				'slug'  => 'modern-light-gray',
 				'color' => '#f1f1f1',
 			),
 			array(
-				'name' => 'modern medium grey',
-				'color' => '#aaaaaa',
+				'name'  => esc_html__( 'Modern Medium Gray', 'radcliffe-2' ),
+				'slug' => 'modern-medium-gray',
+				'color' => '#aaa',
 			),
 			array(
-				'name' => 'modern dark grey',
-				'color' => '#222222',
+				'name'  => esc_html__( 'Modern Dark Gray', 'radcliffe-2' ),
+				'slug'  => 'modern-dark-gray',
+				'color' => '#222',
+			)
+		) );
+	} else {
+		add_theme_support( 'editor-color-palette', array(
+			array(
+				'name'  => esc_html__( 'White', 'radcliffe-2' ),
+				'slug'  => 'white',
+				'color' => '#fff',
+			),
+			array(
+				'name'  => esc_html__( 'Dark Gray', 'radcliffe-2' ),
+				'slug'  => 'dark-gray',
+				'color' => '#222',
+			),
+			array(
+				'name'  => esc_html__( 'Light Gray', 'radcliffe-2' ),
+				'slug'  => 'light-gray',
+				'color' => '#666666',
+			),
+			array(
+				'name'  => esc_html__( 'Red', 'radcliffe-2' ),
+				'slug' => 'red',
+				'color' => '#ca2017',
 			)
-		);
+		) );
 	}
 
-	// Gutenberg: Add support for wide alignment
+	// Add support for wide alignment
 	add_theme_support( 'align-wide' );
 }
 endif;