Browse Source

Begin adding support for Gutenberg to Rebalance

Caroline Moore 6 năm trước cách đây
mục cha
commit
badecdf2a1
3 tập tin đã thay đổi với 1363 bổ sung0 xóa
  1. 532 0
      rebalance/blocks.css
  2. 775 0
      rebalance/editor-blocks.css
  3. 56 0
      rebalance/functions.php

+ 532 - 0
rebalance/blocks.css

@@ -0,0 +1,532 @@
+/*
+Theme Name: Rebalance
+Description: Used to style Gutenberg Blocks.
+*/
+
+/*--------------------------------------------------------------
+>>> TABLE OF CONTENTS:
+----------------------------------------------------------------
+1.0 General Block Styles
+2.0 Blocks - Common Blocks
+3.0 Blocks - Formatting
+4.0 Blocks - Layout Elements
+5.0 Blocks - Widgets
+6.0 Blocks - Colors
+--------------------------------------------------------------*/
+
+/*--------------------------------------------------------------
+1.0 General Block Styles
+--------------------------------------------------------------*/
+
+/* Alignments */
+
+.no-sidebar #page {
+	overflow-x: hidden;
+}
+
+/* Full Width */
+
+.no-sidebar .alignfull {
+	width: 100vw;
+	max-width: 100vw;
+	margin-left: 0;
+	margin-right: 0;
+	position: relative;
+	left: 50%;
+	transform: translateX( -50% );
+}
+
+.no-sidebar .wp-block-columns.alignfull,
+.no-sidebar .wp-block-latest-comments.alignfull,
+.no-sidebar .wp-block-categories.alignfull,
+.no-sidebar .wp-block-archives.alignfull,
+.no-sidebar .wp-block-latest-posts.alignfull,
+.no-sidebar .wp-block-file.alignfull {
+	padding-left: 2em;
+	padding-right: 2em;
+}
+
+.no-sidebar .wp-block-embed.is-type-video.alignfull iframe {
+	width: 100% !important;
+	height: 100% !important;
+}
+
+.rtl.no-sidebar .alignfull {
+	left: auto;
+	right: 50%;
+	transform: translateX(50%);
+}
+
+/* Wide Width */
+
+@media (min-width: 1100px) {
+	.no-sidebar .alignwide {
+		width: 1100px;
+		max-width: 1100px;
+		margin-left: -268px;
+		margin-right: -268px;
+		position: relative;
+	}
+
+	.no-sidebar .wp-block-embed.is-type-video.alignwide iframe {
+		width: 100% !important;
+		height: 100% !important;
+	}
+}
+
+/* Captions */
+
+[class^="wp-block-"] figcaption {
+	font-size: 13px;
+	line-height: 1.3847;
+}
+
+/*--------------------------------------------------------------
+2.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+p.has-drop-cap:not(:focus)::first-letter {
+	font-family: Neuton, serif;
+	font-size: 80px;
+}
+
+/* Images */
+
+.wp-block-cover,
+.wp-block-cover.alignleft,
+.wp-block-cover.alignright,
+.wp-block-cover.aligncenter {
+	display: flex;
+}
+
+/* Gallery */
+
+.wp-block-gallery {
+	margin-bottom: 24px;
+	margin-left: auto;
+	margin-right: auto;
+	max-width: 100%;
+}
+
+.rtl .wp-block-gallery:not(.alignfull):not(.alignwide) {
+	margin-right: auto;
+	margin-left: auto;
+}
+
+/* Quote */
+
+.wp-block-quote {
+	border-bottom: 3px solid currentcolor;
+	border-top: 3px solid currentColor;
+	color: #555;
+	font-family: Neuton, serif;
+	font-size: 20px;
+	font-style: italic;
+	line-height: 1.2;
+	margin: 0 0 24px;
+	padding: 24px 0;
+}
+
+.wp-block-quote cite {
+	color: #222;
+	font-weight: bold;
+	font-style: italic;
+	display: block;
+	margin-top: 6px;
+	text-align: left;
+}
+
+.wp-block-quote.is-large cite,
+.wp-block-quote.is-large footer,
+.wp-block-quote.is-style-large cite,
+.wp-block-quote.is-style-large footer {
+	text-align: left;
+	font-size: 24px;
+}
+
+.wp-block-quote.is-large,
+.wp-block-quote.is-style-large {
+	padding: 24px 0;
+}
+
+.wp-block-quote.is-large,
+.wp-block-quote.is-style-large,
+.wp-block-quote.is-large p,
+.wp-block-quote.is-style-large p {
+	font-size: 28px;
+}
+
+.wp-block-quote.is-large p,
+.wp-block-quote.is-style-large p {
+	margin-bottom: 24px;
+}
+
+.rtl .wp-block-quote {
+	border: 0;
+}
+
+/* Audio */
+
+.wp-block-audio audio {
+	display: block;
+	width: 100%;
+}
+
+/* File */
+
+.wp-block-file {
+	margin: 24px 0;
+}
+
+.wp-block-file a.wp-block-file__button,
+.wp-block-file a.wp-block-file__button:visited {
+	background: #ef7d0b;
+	border: 0;
+	border-radius: 0;
+	color: #fff;
+	font-weight: bold;
+	padding: 6px 12px;
+	text-transform: uppercase;
+}
+
+.wp-block-file a.wp-block-file__button:hover,
+.wp-block-file a.wp-block-file__button:focus,
+.wp-block-file a.wp-block-file__button:active {
+	background: #222;
+	color: #fff;
+	outline: 0;
+}
+
+.rtl .wp-block-file a.wp-block-file__button {
+	margin-left: 12px;
+	margin-right: 0;
+}
+
+
+/*--------------------------------------------------------------
+3.0 Blocks - Formatting Blocks
+--------------------------------------------------------------*/
+
+/* Verse */
+
+.wp-block-verse {
+	background: transparent;
+	color: inherit;
+	font-family: inherit;
+	font-size: inherit;
+	line-height: inherit;
+	margin-bottom: 24px;
+	max-width: 100%;
+	overflow: auto;
+	padding: 0;
+}
+
+/* Code */
+
+.wp-block-code {
+	background: #eee;
+	font-family: Inconsolata, monospace;
+	max-width: 100%;
+	overflow: auto;
+	padding: 12px;
+}
+
+/* Pullquote */
+
+.wp-block-pullquote {
+	margin: 0;
+	padding: 0;
+	border: 0;
+}
+
+.wp-block-pullquote blockquote {
+	border-bottom: 3px solid currentcolor;
+	border-top: 3px solid currentColor;
+	color: #555;
+	font-family: Neuton, serif;
+	font-size: 28px;
+	line-height: 33px;
+	font-style: italic;
+	margin: 0 0 24px;
+	padding: 24px 0;
+}
+
+.wp-block-pullquote cite {
+	color: #222;
+	display: block;
+	font-weight: bold;
+	font-size: 16px;
+	font-style: normal;
+	letter-spacing: 1px;
+	text-transform: uppercase;
+}
+
+.wp-block-pullquote.alignleft,
+.wp-block-pullquote.alignright {
+}
+
+.wp-block-pullquote.alignleft blockquote,
+.wp-block-pullquote.alignright blockquote {
+	padding: 12px 0;
+	margin: 0 0 12px;
+}
+
+.wp-block-pullquote.alignleft p,
+.wp-block-pullquote.alignright p {
+	font-size: 24px;
+}
+
+.wp-block-pullquote.alignleft {
+	margin-right: 24px;
+}
+
+.wp-block-pullquote.alignright {
+	margin-left: 24px;
+}
+
+.wp-block-pullquote.alignfull blockquote {
+	padding-left: 24px;
+	padding-right: 24px;
+}
+
+.wp-block-pullquote p {
+	margin: 0 0 12px;
+	line-height: 34px;
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+
+.wp-block-button .wp-block-button__link {
+	border-radius: 0;
+	border: 0;
+	font-weight: bold;
+	padding: 6px 12px;
+	text-transform: uppercase;
+}
+
+.wp-block-button .wp-block-button__link:active,
+.wp-block-button .wp-block-button__link:hover,
+.wp-block-button .wp-block-button__link:focus {
+	box-shadow: none;
+}
+
+.wp-block-button__link:not(.has-background) {
+	background: #ef7d0b;
+}
+
+.wp-block-button__link:not(.has-text-color) {
+	color: #fff;
+}
+
+.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: #fff;
+}
+
+.wp-block-button__link:not(.has-background):active,
+.wp-block-button__link:not(.has-background):focus,
+.wp-block-button__link:not(.has-background):hover {
+	background: #222;
+}
+
+.wp-block-button.alignleft {
+	margin-left: 0;
+}
+
+.wp-block-button.alignright {
+	margin-right: 0;
+}
+
+.wp-block-button.aligncenter {
+	margin: 24px auto;
+}
+
+/* Seperator */
+
+hr.wp-block-separator {
+	border: 0;
+}
+
+.wp-block-separator {
+	background-color: #ddd;
+	border: 0;
+	height: 1px;
+	margin-bottom: 24px;
+	max-width: 100px;
+}
+
+.wp-block-separator.is-style-wide {
+	max-width: 100%;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Widget Blocks
+--------------------------------------------------------------*/
+
+/* Categories */
+
+.wp-block-categories.aligncenter {
+	margin-left: 24px;
+	margin-right: 24px;
+	text-align: center;
+}
+
+.wp-block-categories-list.alignleft {
+	margin-left: 24px;
+}
+
+/* Latest Comments */
+
+.wp-block-latest-comments {
+	margin-left: 0;
+	margin-right: 0;
+}
+
+.editor-block-list__block .wp-block-latest-comments__comment-meta a {
+	box-shadow: none;
+	font-weight: 700;
+	text-decoration: none;
+}
+
+.wp-block-latest-comments .wp-block-latest-comments__comment {
+	border-top: 1px solid #dddddd;
+	margin-bottom: 0;
+	padding: 12px 0;
+}
+
+.wp-block-latest-comments .avatar,
+.wp-block-latest-comments__comment-avatar {
+	margin: 0;
+}
+
+.wp-block-latest-comments__comment-excerpt p:last-child {
+	margin-bottom: 0;
+}
+
+.rtl .wp-block-latest-posts {
+	margin-left: 0;
+	margin-right: 0;
+}
+
+/*--------------------------------------------------------------
+6.0 Blocks - Colors
+--------------------------------------------------------------*/
+
+.has-medium-gray-color,
+.has-medium-gray-color:hover,
+.has-medium-gray-color:focus,
+.has-medium-gray-color:active {
+	color: #a09a92;
+}
+
+.has-medium-gray-background-color,
+.has-medium-gray-background-color:hover,
+.has-medium-gray-background-color:focus,
+.has-medium-gray-background-color:active {
+	background-color: #a09a92;
+}
+
+.has-light-gray-color,
+.has-light-gray-color:hover,
+.has-light-gray-color:focus,
+.has-light-gray-color:active {
+	color: #dddddd;
+}
+
+.has-light-gray-background-color,
+.has-light-gray-background-color:hover,
+.has-light-gray-background-color:focus,
+.has-light-gray-background-color:active {
+	background-color: #dddddd;
+}
+
+.has-white-color,
+.has-white-color:hover,
+.has-white-color:focus,
+.has-white-color:active {
+	color: #fff;
+}
+
+.has-white-background-color,
+.has-white-background-color:hover,
+.has-white-background-color:focus,
+.has-white-background-color:active {
+	background-color: #fff;
+}
+
+.has-orange-color,
+.has-orange-color:hover,
+.has-orange-color:focus,
+.has-orange-color:active {
+	color: #ef7d0b;
+}
+
+.has-orange-background-color,
+.has-orange-background-color:hover,
+.has-orange-background-color:focus,
+.has-orange-background-color:active {
+	background-color: #ef7d0b;
+}
+
+.has-dark-orange-color,
+.has-dark-orange-color:hover,
+.has-dark-orange-color:focus,
+.has-dark-orange-color:active {
+	color: #712012;
+}
+
+.has-dark-orange-background-color,
+.has-dark-orange-background-color:hover,
+.has-dark-orange-background-color:focus,
+.has-dark-orange-background-color:active {
+	background-color: #712012;
+}
+
+.has-gray-color,
+.has-gray-color:hover,
+.has-gray-color:focus,
+.has-gray-color:active {
+	color: #85cc36;
+}
+
+.has-gray-background-color,
+.has-gray-background-color:hover,
+.has-gray-background-color:focus,
+.has-gray-background-color:active {
+	background-color: #85cc36;
+}
+
+.has-dark-gray-color,
+.has-dark-gray-color:hover,
+.has-dark-gray-color:focus,
+.has-dark-gray-color:active {
+	color: #787065;
+}
+
+.has-dark-gray-background-color,
+.has-dark-gray-background-color:hover,
+.has-dark-gray-background-color:focus,
+.has-dark-gray-background-color:active {
+	background-color: #787065;
+}
+
+.has-black-color,
+.has-black-color:hover,
+.has-black-color:focus,
+.has-black-color:active {
+	color: #222;
+}
+
+.has-black-background-color,
+.has-black-background-color:hover,
+.has-black-background-color:focus,
+.has-black-background-color:active {
+	background-color: #222;
+}

+ 775 - 0
rebalance/editor-blocks.css

@@ -0,0 +1,775 @@
+/*
+ * Theme Name: Rebalance
+ * 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,
+.edit-post-visual-editor .editor-block-list__block p:not(.wp-block-cover-text),
+.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
+	color: #222;
+	font-family: Lato, sans-serif;
+	font-size: 16px;
+	line-height: 1.5;
+}
+
+.alignleft,
+.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit {
+	display: inline;
+	float: left;
+	margin: 0 24px 12px 0;
+}
+
+.alignright,
+.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit {
+	display: inline;
+	float: right;
+	margin: 0 0 12px 24px;
+}
+
+.aligncenter,
+.editor-block-list__layout .editor-block-list__block[data-align=center] .editor-block-list__block-edit {
+	margin-left: auto;
+	margin-right: auto;
+}
+
+.wp-block-columns.alignfull,
+.wp-block-latest-comments.alignfull,
+.editor-block-list__layout .editor-block-list__block[data-align=full] {
+	padding-left: 60px;
+	padding-right: 60px;
+}
+
+/* Title */
+
+.editor-post-title__block .editor-post-title__input {
+	clear: both;
+	font-family: Neuton, serif;
+	font-weight: normal;
+	margin-bottom: 24px;
+	margin-top: 0;
+	font-size: 32px;
+	line-height: 1.125;
+}
+
+/* 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 {
+	clear: both;
+	font-family: Neuton, serif;
+	font-weight: normal;
+	margin-bottom: 24px;
+	margin-top: 0;
+}
+
+.edit-post-visual-editor h1 {
+	font-size: 40px;
+	line-height: 1.2;
+}
+
+.edit-post-visual-editor h2 {
+	font-size: 32px;
+	line-height: 1.125;
+}
+
+.edit-post-visual-editor h3 {
+	font-size: 25px;
+	line-height: 1.2;
+}
+
+.edit-post-visual-editor h4 {
+	font-size: 20px;
+	line-height: 1.2;
+}
+
+.edit-post-visual-editor h5 {
+	font-size: 16px;
+	line-height: 1.5;
+}
+
+.edit-post-visual-editor h6 {
+	font-size: 13px;
+	line-height: 1.3847;
+}
+
+/* Images */
+
+.wp-block-image figcaption {
+	color: #a09a92;
+	font-size: 16px;
+	font-style: italic;
+	line-height: 1.2;
+	text-align: center;
+}
+
+/*--------------------------------------------------------------
+2.0 General Block Styles
+--------------------------------------------------------------*/
+
+/* Main column width */
+
+.wp-block {
+	max-width: 594px; /* 564px + 30px to account for padding */
+}
+
+/* Link styles */
+
+.edit-post-visual-editor a,
+.editor-block-list__block a,
+.wp-block-freeform.block-library-rich-text__tinymce a {
+	color: #ef7d0b;
+	font-weight: bold;
+	text-decoration: none;
+}
+
+.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: inherit;
+}
+
+/* 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.editor-rich-text__tinymce {
+	margin: 0 0 24px;
+	padding: 0;
+}
+
+.block-library-list .editor-rich-text__tinymce {
+	margin: 0;
+	padding: 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: square inside;
+}
+
+.edit-post-visual-editor ol,
+.editor-block-list__block ol,
+.block-library-list ol.editor-rich-text__tinymce {
+	list-style: decimal inside;
+}
+
+.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;
+	margin-left: 24px;
+}
+
+.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.editor-rich-text__tinymce {
+	margin-left: 0;
+	margin-right: 24px;
+	padding: 0;
+}
+
+/* Captions */
+
+[class^="wp-block-"] figcaption {
+	font-size: 13px;
+	line-height: 1.3847;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
+	font-family: Neuton, serif;
+	font-size: 80px;
+}
+
+.edit-post-visual-editor p {
+	margin: 0 0 24px;
+}
+
+.edit-post-visual-editor blockquote p {
+	margin: 0 0 24px;
+}
+
+/* Quote */
+
+.editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {
+	margin: 0 0 24px;
+	border: 0;
+	padding: 24px 0;
+	border-bottom: 3px solid currentcolor;
+	border-top: 3px solid currentColor;
+}
+
+.editor-block-list__block .wp-block-quote {
+	border: 0;
+	border-bottom: 3px solid currentcolor;
+	border-top: 3px solid currentColor;
+	color: #555;
+	font-family: Neuton, serif;
+	font-size: 20px;
+	font-style: italic;
+	line-height: 1.2;
+	margin: 0 0 24px;
+	padding: 24px 0;
+}
+
+.edit-post-visual-editor .editor-block-list__block blockquote p:not(.wp-block-cover-text) {
+	color: #555;
+	font-family: Neuton, serif;
+	font-size: 20px;
+	font-style: italic;
+	line-height: 1.2;
+}
+
+.editor-block-list__block .wp-block-quote__citation {
+	display: block;
+	margin-top: 6px;
+	color: #222;
+	font-size: inherit;
+	font-weight: bold;
+	font-style: italic;
+}
+
+.editor-block-list__block .wp-block-quote em,
+.editor-block-list__block .wp-block-quote i {
+	font-style: normal;
+}
+
+.editor-block-list__block .wp-block-quote > :last-child {
+	margin-bottom: 0;
+}
+
+.editor-block-list__block .wp-block-quote.alignleft {
+	margin: 12px 24px 12px 0;
+}
+
+.editor-block-list__block .wp-block-quote.alignright {≈
+	margin: 12px 0 12px 24px;
+}
+
+.editor-block-list__block .wp-block-quote.aligncenter {
+	margin-bottom: 12px;
+}
+
+.wp-block-quote.is-large,
+.wp-block-quote.is-style-large {
+	font-size: 28px;
+	margin: 0 0 24px;
+	padding: 24px 0;
+}
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large,
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large,
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
+	font-size: 28px;
+}
+
+.editor-block-list__block .wp-block-quote.is-large p,
+.editor-block-list__block .wp-block-quote.is-style-large p {
+	margin-bottom: 24px;
+	font-style: normal;
+}
+
+/* File */
+
+.wp-block-file {
+	margin: 0 0 24px;
+}
+
+.wp-block-file .wp-block-file__button {
+	background: #ef7d0b;
+	border: 0;
+	border-radius: 0;
+	color: #fff;
+	font-weight: bold;
+	line-height: 1;
+	padding: 6px 12px;
+	text-transform: uppercase;
+}
+
+.wp-block-file .wp-block-file__button:hover,
+.wp-block-file .wp-block-file__button:focus,
+.wp-block-file .wp-block-file__button:active {
+	background: #222;
+	color: #fff;
+	outline: 0;
+}
+
+.rtl .wp-block-file .wp-block-file__button {
+	margin-left: 12px;
+	margin-right: 0;
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Formatting
+--------------------------------------------------------------*/
+
+/* Verse */
+
+.wp-block-verse pre {
+	background: transparent;
+	color: inherit;
+	font-family: inherit;
+	font-size: inherit;
+	line-height: inherit;
+	margin-bottom: 24px;
+	max-width: 100%;
+	overflow: auto;
+	padding: 0;
+}
+
+/* Code */
+
+.wp-block-code {
+	background: #eee;
+	font-family: Inconsolata, monospace;
+	font-size: 16px;
+	max-width: 100%;
+	overflow: auto;
+	padding: 12px;
+}
+
+.wp-block-code textarea {
+	background: #eee;
+}
+
+/* Classic */
+
+.wp-block-freeform.block-library-rich-text__tinymce {
+	overflow: visible;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce address {
+	margin-bottom: 24px;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce ol {
+	list-style: decimal;
+	margin-left: 24px;
+	padding: 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce li > ol {
+	margin-left: 24px;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote {
+	border: 0;
+	border-bottom: 3px solid currentcolor;
+	border-top: 3px solid currentColor;
+	color: #555;
+	font-family: Neuton, serif;
+	font-size: 20px;
+	font-style: italic;
+	line-height: 1.2;
+	margin: 0 0 24px;
+	padding: 24px 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote > :last-child {
+	margin-bottom: 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
+	display: block;
+	margin-top: 6px;
+	color: #222;
+	font-weight: bold;
+	font-style: italic;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
+	border-right: 0;
+	margin-right: 0;
+	padding-left: 0;
+	padding-right: 0;
+}
+
+.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: 12px 24px 12px 0;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
+	margin: 12px 0 12px 24px;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h1,
+.wp-block-freeform.block-library-rich-text__tinymce h2,
+.wp-block-freeform.block-library-rich-text__tinymce h3,
+.wp-block-freeform.block-library-rich-text__tinymce h4,
+.wp-block-freeform.block-library-rich-text__tinymce h5,
+.wp-block-freeform.block-library-rich-text__tinymce h6 {
+	clear: both;
+	font-family: Neuton, serif;
+	font-weight: normal;
+	margin-bottom: 24px;
+	margin-top: 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h1 {
+	font-size: 40px;
+	line-height: 1.2;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h2 {
+	font-size: 32px;
+	line-height: 1.125;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h3 {
+	font-size: 25px;
+	line-height: 1.2;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h4 {
+	font-size: 20px;
+	line-height: 1.2;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h5 {
+	font-size: 16px;
+	line-height: 1.5;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h6 {
+	font-size: 13px;
+	line-height: 1.3847;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce pre {
+	background: #eee;
+	font-family: Inconsolata, monospace;
+	max-width: 100%;
+	overflow: auto;
+	padding: 12px;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table {
+	border-top: 1px solid #ddd;
+	margin: 0 0 24px;
+	text-align: left;
+	width: 100%;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce table {
+	text-align: right;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce .alternate {
+	background: transparent;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table td {
+	border-bottom: 1px solid #ddd;
+	padding: 6px;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table th {
+	border: 0;
+	background: #eee;
+	border-bottom: 1px solid #ddd;
+	padding: 6px;
+	font-weight: bold;
+	text-transform: uppercase;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table tr:nth-of-type(even) {
+	background: rgba(0, 0, 0, 0.05);
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table tfoot,
+.wp-block-freeform.block-library-rich-text__tinymce table thead {
+	background: #eee;
+}
+
+/* Preformatted */
+
+.editor-block-list__block .wp-block-preformatted pre {
+	background: #eee;
+	font-family: Inconsolata, monospace;
+	font-size: 16px;
+	max-width: 100%;
+	overflow: auto;
+	padding: 12px;
+}
+
+/* Pullquote */
+
+.editor-block-list__block .wp-block-pullquote blockquote {
+	margin: 0;
+	padding: 0;
+	border: 0;
+}
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote blockquote p:not(.wp-block-cover-text) {
+	font-size: 28px;
+	line-height: 34px;
+}
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote.alignleft blockquote p:not(.wp-block-cover-text),
+.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote.alignright blockquote p:not(.wp-block-cover-text) {
+	font-size: 24px;
+}
+
+.wp-block-pullquote blockquote:before {
+	display: none;
+}
+
+.wp-block-pullquote {
+	border-bottom: 3px solid currentcolor;
+	border-top: 3px solid currentColor;
+	color: #555;
+	font-family: Neuton, serif;
+	font-size: 28px;
+	font-style: italic;
+	line-height: 1.2;
+	margin: 0 0 24px;
+	padding: 24px 0;
+}
+
+.wp-block-pullquote blockquote {
+	font-size: 28px;
+}
+
+.wp-block-pullquote.alignfull blockquote {
+	padding-left: 24px;
+	padding-right: 24px;
+}
+
+.wp-block-pullquote.alignleft,
+.wp-block-pullquote.alignright {
+}
+
+.wp-block-pullquote.alignleft cite,
+.wp-block-pullquote.alignright cite {
+}
+
+.wp-block-pullquote.alignleft blockquote,
+.wp-block-pullquote.alignright blockquote {
+	border: 0;
+	padding: 0;
+	margin: 0;
+}
+
+.wp-block-pullquote.alignleft {
+	margin-right: 24px;
+}
+
+.wp-block-pullquote.alignright {
+	margin-left: 24px;
+}
+
+.wp-block-pullquote blockquote > .editor-rich-text p {
+	margin-bottom: 12px;
+}
+
+.wp-block-pullquote__citation,
+.wp-block-pullquote cite,
+.wp-block-pullquote footer {
+	color: #222;
+	display: block;
+	font-weight: bold;
+	font-size: 16px;
+	font-style: normal;
+	letter-spacing: 1px;
+	text-transform: uppercase;
+}
+
+/* Table */
+
+.editor-block-list__block .wp-block-table__cell-content {
+	padding: 0;
+}
+
+.editor-block-list__block table.wp-block-table {
+	border-top: 1px solid #ddd;
+	margin: 0 0 24px;
+	text-align: left;
+	width: 100%;
+}
+
+.rtl .editor-block-list__block table.wp-block-table {
+	text-align: right;
+}
+
+.editor-block-list__block table.wp-block-table td {
+	border: 0;
+	border-bottom: 1px solid #ddd;
+	padding: 6px;
+}
+
+.editor-block-list__block table.wp-block-table th {
+	border: 0;
+	background: #eee;
+	border-bottom: 1px solid #ddd;
+	padding: 6px;
+	font-weight: bold;
+	text-transform: uppercase;
+}
+
+.editor-block-list__block table.wp-block-table tr:nth-of-type(even) {
+	background: rgba(0, 0, 0, 0.05);
+}
+
+.editor-block-list__block table.wp-block-table table tfoot,
+.editor-block-list__block table.wp-block-table table thead {
+	background: #eee;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+.wp-block-button .wp-block-button__link {
+	border-radius: 0;
+	border: 0;
+	font-weight: bold;
+	padding: 6px 12px;
+	text-transform: uppercase;
+}
+
+.wp-block-button .wp-block-button__link:active,
+.wp-block-button .wp-block-button__link:hover,
+.wp-block-button .wp-block-button__link:focus {
+	box-shadow: none;
+}
+
+.wp-block-button__link:not(.has-background) {
+	background: #ef7d0b;
+}
+
+.wp-block-button__link:not(.has-text-color) {
+	color: #fff;
+}
+
+.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: #fff;
+}
+
+.wp-block-button__link:not(.has-background):active,
+.wp-block-button__link:not(.has-background):focus,
+.wp-block-button__link:not(.has-background):hover {
+	background: #222;
+}
+
+.wp-block-button.alignleft {
+	margin-left: 0;
+}
+
+.wp-block-button.alignright {
+	margin-right: 0;
+}
+
+.wp-block-button.aligncenter {
+	margin: 24px auto;
+}
+
+/* Separator */
+
+.wp-block-separator {
+	background-color: #ddd;
+	border: 0;
+	height: 1px;
+	margin-bottom: 24px;
+}
+
+
+.wp-block-separator.is-style-wide {
+	max-width: 100%;
+}
+
+/*--------------------------------------------------------------
+6.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+/* Categories */
+
+.editor-block-list__block[data-align=right] .wp-block-categories__list,
+.editor-block-list__block[data-align=left] .wp-block-categories__list {
+	padding: 0;
+}
+
+/* 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 .wp-block-latest-comments__comment {
+	border-top: 1px solid #ddd;
+	margin-bottom: 0;
+	padding: 12px 0;
+}
+
+.rtl ol.wp-block-latest-comments {
+	margin-right: 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: 12px;
+}

+ 56 - 0
rebalance/functions.php

@@ -35,6 +35,50 @@ function rebalance_setup() {
 	 */
 	add_theme_support( 'title-tag' );
 
+	// Add support for responsive embeds.
+	add_theme_support( 'responsive-embeds' );
+
+	// Add custom colors to Gutenberg
+	add_theme_support(
+		'editor-color-palette', array(
+			array(
+				'name'  => esc_html__( 'Black', 'rebalance' ),
+				'slug' => 'black',
+				'color' => '#192930',
+			),
+			array(
+				'name'  => esc_html__( 'Dark Gray', 'rebalance' ),
+				'slug' => 'dark-gray',
+				'color' => '#474f53',
+			),
+			array(
+				'name'  => esc_html__( 'Medium Gray', 'rebalance' ),
+				'slug' => 'medium-gray',
+				'color' => '#a5a29d',
+			),
+			array(
+				'name'  => esc_html__( 'Light Gray', 'rebalance' ),
+				'slug' => 'light-gray',
+				'color' => '#eeece8',
+			),
+			array(
+				'name'  => esc_html__( 'White', 'rebalance' ),
+				'slug' => 'white',
+				'color' => '#ffffff',
+			),
+			array(
+				'name'  => esc_html__( 'Yellow', 'rebalance' ),
+				'slug' => 'yellow',
+				'color' => '#d7b221',
+			),
+			array(
+				'name'  => esc_html__( 'Dark Yellow', 'rebalance' ),
+				'slug' => 'dark-yellow',
+				'color' => '#9c8012',
+			),
+		)
+	);
+
 	/**
 	 * Add support for core custom logo (replaces JetPack functionality)
 	 * - also see fallback in inc/jetpack.php
@@ -186,6 +230,9 @@ function rebalance_scripts() {
 
 	wp_enqueue_style( 'rebalance-style', get_stylesheet_uri() );
 
+	// Gutenberg styles
+	wp_enqueue_style( 'rebalance-blocks', get_template_directory_uri() . '/blocks.css' );
+
 	/**
 	 * Scripts
 	 */
@@ -211,6 +258,15 @@ function rebalance_scripts() {
 }
 add_action( 'wp_enqueue_scripts', 'rebalance_scripts' );
 
+/**
+ * Gutenberg Editor Styles
+ */
+function rebalance_editor_styles() {
+	wp_enqueue_style( 'rebalance-editor-block-style', get_template_directory_uri() . '/editor-blocks.css');
+	wp_enqueue_style( 'rebalance-fonts', rebalance_fonts_url(), array(), null );
+}
+add_action( 'enqueue_block_editor_assets', 'rebalance_editor_styles' );
+
 /**
  * Check whether the browser supports JavaScript
  */