فهرست منبع

Merge pull request #311 from Automattic/illustratr-add-gutenberg-support

Illustratr: Add Gutenberg styles & support
Laurel 6 سال پیش
والد
کامیت
9cfa9df23a
4فایلهای تغییر یافته به همراه1462 افزوده شده و 1 حذف شده
  1. 502 0
      illustratr/blocks.css
  2. 890 0
      illustratr/editor-blocks.css
  3. 69 0
      illustratr/functions.php
  4. 1 1
      illustratr/style.css

+ 502 - 0
illustratr/blocks.css

@@ -0,0 +1,502 @@
+/*
+Theme Name: Illustratr
+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
+--------------------------------------------------------------*/
+
+/* Captions */
+
+[class^="wp-block-"] figcaption {
+	margin: 10px 0 0;
+	text-align: center;
+	color: #7f8d8c;
+	font-family: "PT Serif", serif;
+	font-size: 0.73em;
+	line-height: 1.3;
+	font-style: italic;
+	text-align: center;
+}
+
+/* Alignments */
+
+/* Full Width */
+
+.alignfull {
+	width: calc(100vw - 52px); /* subtract 52px for body padding */
+	max-width: calc(100vw - 52px);
+	margin-left: 0;
+	margin-right: 0;
+	position: relative;
+	left: 50%;
+	transform: translateX( -50% );
+}
+
+@media (min-width: 768px) {
+	.alignfull.wp-block-table,
+	.alignfull.wp-block-categories,
+	.alignfull.wp-block-archives,
+	.alignfull.wp-block-latest-posts,
+	.alignfull.wp-block-latest-comments {
+		width: calc(100vw - 100px); /* subtract 100px on text-based blocks for more spacing */
+		max-width: calc(100vw - 100px);
+	}
+}
+
+.wp-block-embed.is-type-video.alignfull iframe {
+	width: 100% !important;
+	height: 100% !important;
+}
+
+.rtl .alignfull {
+	left: auto;
+	right: 50%;
+	transform: translateX(50%);
+	position: relative;
+}
+
+/* Wide Width */
+
+@media (min-width: 1024px) {
+	.alignwide {
+		width: 120%;
+		max-width: 120%;
+		margin-left: -10%;
+		margin-right: -10%;
+		position: relative;
+	}
+
+	.wp-block-embed.is-type-video.alignwide iframe {
+		width: 100% !important;
+		height: 100% !important;
+	}
+}
+
+/*--------------------------------------------------------------
+2.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+p.has-drop-cap:not(:focus)::first-letter {
+	font-size: 124px;
+}
+
+/* Gallery */
+
+.wp-block-gallery {
+	margin-bottom: 40px;
+	margin-left: auto;
+}
+
+/* Quote */
+
+.wp-block-quote {
+	margin-bottom: 20px;
+}
+
+.wp-block-quote,
+.wp-block-quote.is-large p,
+.wp-block-quote.is-style-large p {
+	font-style: normal;
+}
+
+.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 {
+	font-size: 80%;
+}
+
+.wp-block-quote.is-large,
+.wp-block-quote.is-style-large {
+	padding-left: 40px;
+}
+
+.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: 32px;
+}
+
+.wp-block-quote.is-large p,
+.wp-block-quote.is-style-large p {
+	margin-bottom: .8em;
+}
+
+.rtl .wp-block-quote {
+	border: 0;
+	border-right: 2px solid #e06d5e;
+}
+
+/* Audio */
+
+.wp-block-audio audio {
+	display: block;
+	width: 100%;
+}
+
+/* File */
+
+.wp-block-file .wp-block-file__button {
+	padding: 10px 20px;
+	background: #464d4d;
+	border: 1px solid #464d4d;
+	border-radius: 0;
+	box-shadow: none;
+	color: white;
+	text-transform: uppercase;
+	font-weight: 900;
+	cursor: pointer;
+	/* Improves usability and consistency of cursor style between image-type 'input' and others */
+}
+
+.wp-block-file .wp-block-file__button:hover,
+.wp-block-file .wp-block-file__button:focus {
+	background: #e06d5e;
+	border-color: #e06d5e;
+	color: #fff;
+}
+
+.wp-block-file .wp-block-file__button:focus {
+	background: #e06d5e;
+	border-color: #e06d5e;
+	color: #fff;
+}
+
+/* Cover */
+
+.wp-block-cover,
+.wp-block-cover.alignleft,
+.wp-block-cover.alignright,
+.wp-block-cover.aligncenter {
+	display: flex;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Formatting Blocks
+--------------------------------------------------------------*/
+
+/* Verse */
+
+.wp-block-verse {
+	background: transparent;
+	color: inherit;
+	font-family: inherit;
+	font-size: inherit;
+	letter-spacing: 0px;
+	line-height: inherit;
+	margin-bottom: 40px;
+	max-width: 100%;
+	overflow: auto;
+	padding: 0;
+}
+
+/* Code */
+
+.wp-block-code {
+	padding: 20px;
+	background: #f1f2f3;
+	font-family: "Source Code Pro", monospace;
+	letter-spacing: -0.05em;
+	position: relative;
+	overflow: auto;
+	margin-bottom: 20px;
+	max-width: 100%;
+}
+
+/* Pullquote */
+
+.wp-block-pullquote {
+	margin: 0;
+	padding: 0;
+	border: 0;
+}
+
+.wp-block-pullquote blockquote {
+	padding-left: 0;
+	padding-top: 40px;
+	padding-bottom: 40px;
+	margin: 0 0 20px;
+	font-family: "PT Serif", serif;
+	font-size: 1.2em;
+	border-left: 0;
+	border-top: 2px solid #e06d5e;
+	border-bottom: 2px solid #e06d5e;
+}
+
+@media screen and (max-width: 767px) {
+	.wp-block-pullquote blockquote {
+		padding-left: 20px;
+		font-size: 21px;
+	}
+}
+
+.wp-block-pullquote.alignfull blockquote {
+	padding-left: 40px;
+	padding-right: 40px;
+}
+
+.rtl .wp-block-pullquote {
+	border-top: 2px solid #e06d5e;
+	border-bottom: 2px solid #e06d5e;
+}
+
+.wp-block-pullquote p {
+	margin: 0;
+}
+
+.wp-block-pullquote cite {
+	font-size: 80%;
+}
+
+.wp-block-pullquote cite:before {
+}
+
+/* Table */
+
+.wp-block-table,
+.wp-block-table th,
+.wp-block-table td {
+}
+
+.wp-block-table {
+}
+
+.wp-block-table th,
+.wp-block-table td {
+}
+
+.wp-block-table th {
+}
+
+.wp-block-table td {
+}
+
+.rtl .wp-block-table th,
+.rtl .wp-block-table td {
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+
+.wp-block-button .wp-block-button__link {
+	padding: 10px 20px;
+	border: 1px solid;
+	box-shadow: none;
+	border-radius: 0;
+	display: inline-block;
+	text-transform: uppercase;
+	font-weight: 900;
+	cursor: pointer;
+	/* Improves usability and consistency of cursor style between image-type 'input' and others */
+}
+
+@media screen and (max-width: 767px) {
+	.wp-block-button .wp-block-button__link {
+		padding: 5px 10px;
+	}
+}
+
+.wp-block-button .wp-block-button__link:active,
+.wp-block-button .wp-block-button__link:hover,
+.wp-block-button .wp-block-button__link:focus {
+}
+
+.wp-block-button__link:not(.has-background) {
+	background: #464d4d;
+	border: 1px solid #464d4d;
+}
+
+.wp-block-button__link:not(.has-background):focus {
+	background: #e06d5e;
+}
+
+.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):active,
+.wp-block-button__link:not(.has-background):focus,
+.wp-block-button__link:not(.has-background):hover {
+	background: #e06d5e;
+	border-color: #e06d5e;
+}
+
+/* Seperator */
+
+hr.wp-block-separator {
+	border: 0;
+}
+
+.wp-block-separator {
+	margin-bottom: 20px;
+	height: 1px;
+	background: #f1f2f3;
+	border: 0;
+	max-width: 66%;
+}
+
+.wp-block-separator.is-style-wide {
+	max-width: 100%;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Widget Blocks
+--------------------------------------------------------------*/
+
+/* Categories */
+
+.wp-block-categories.aligncenter {
+	margin-left: 40px;
+	margin-right: 40px;
+	text-align: center;
+}
+
+.wp-block-categories-list.alignleft {
+	margin-left: 40px;
+}
+
+/* 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 #f1f2f3;
+	margin-bottom: 0;
+	padding: 20px 0;
+}
+
+.wp-block-latest-comments__comment-excerpt p:last-child {
+	margin-bottom: 0;
+}
+
+/*--------------------------------------------------------------
+6.0 Blocks - Colors
+--------------------------------------------------------------*/
+
+.has-dark-gray-color,
+.has-dark-gray-color:hover,
+.has-dark-gray-color:focus,
+.has-dark-gray-color:active {
+	color: #464d4d;
+}
+
+.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: #464d4d;
+}
+
+.has-medium-gray-color,
+.has-medium-gray-color:hover,
+.has-medium-gray-color:focus,
+.has-medium-gray-color:active {
+	color: #7f8d8c;
+}
+
+.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: #7f8d8c;
+}
+
+.has-light-gray-color,
+.has-light-gray-color:hover,
+.has-light-gray-color:focus,
+.has-light-gray-color:active {
+	color: #f1f2f3;
+}
+
+.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: #f1f2f3;
+}
+
+.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-red-color,
+.has-red-color:hover,
+.has-red-color:focus,
+.has-red-color:active {
+	color: #e06d5e;
+}
+
+.has-red-background-color,
+.has-red-background-color:hover,
+.has-red-background-color:focus,
+.has-red-background-color:active {
+	background-color: #e06d5e;
+}
+
+.has-dark-red-color,
+.has-dark-red-color:hover,
+.has-dark-red-color:focus,
+.has-dark-red-color:active {
+	color: #b44738;
+}
+
+.has-dark-red-background-color,
+.has-dark-red-background-color:hover,
+.has-dark-red-background-color:focus,
+.has-dark-red-background-color:active {
+	background-color: #b44738;
+}
+
+.has-black-color,
+.has-black-color:hover,
+.has-black-color:focus,
+.has-black-color:active {
+	color: #24282d;
+}
+
+.has-black-background-color,
+.has-black-background-color:hover,
+.has-black-background-color:focus,
+.has-black-background-color:active {
+	background-color: #24282d;
+}
+

+ 890 - 0
illustratr/editor-blocks.css

@@ -0,0 +1,890 @@
+
+/*
+ * Theme Name: Illustratr
+ * 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: #7f8d8c;
+	font-family: "Source Sans Pro", sans-serif;
+	line-height: 1.5;
+	font-size: 22px;
+}
+
+@media screen and (max-width: 767px) {
+	.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 {
+		font-size: 18px;
+	}
+}
+
+.alignleft {
+	display: inline;
+	float: left;
+	margin: 20px 40px 20px 0;
+}
+
+.alignright {
+	display: inline;
+	float: right;
+	margin: 20px 0 40px 20px;
+}
+
+.aligncenter {
+	margin-left: auto;
+	margin-right: auto;
+}
+
+/* Title */
+
+.editor-post-title__block .editor-post-title__input {
+	clear: both;
+	margin-bottom: 20px;
+	color: #24282d;
+	font-family: "Source Sans Pro", sans-serif;
+	font-weight: 900;
+	text-transform: uppercase;
+	font-size: 1.2em;
+}
+
+@media screen and ( min-width: 850px ) {
+	.editor-post-title__block .editor-post-title__input {
+		font-size: 32px;
+	}
+}
+
+/* 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;
+	margin-bottom: 20px;
+	color: #24282d;
+	font-family: "Source Sans Pro", sans-serif;
+	font-weight: bold;
+}
+
+.edit-post-visual-editor h1 {
+	font-size: 1.8em;
+	line-height: 1.2;
+}
+
+.edit-post-visual-editor h2 {
+	font-size: 1.6em;
+	line-height: 1.3;
+}
+
+.edit-post-visual-editor h3 {
+	font-size: 1.4em;
+	line-height: 1.4;
+}
+
+.edit-post-visual-editor h4 {
+	font-size: 1.2em;
+}
+
+.edit-post-visual-editor h5 {
+	font-size: 1em;
+}
+
+.edit-post-visual-editor h6 {
+	font-size: 0.8em;
+}
+
+@media screen and (max-width: 767px) {
+	.edit-post-visual-editor h1 {
+		font-size: 1.7em;
+	}
+
+	.edit-post-visual-editor h2 {
+		font-size: 1.5em;
+	}
+
+	.edit-post-visual-editor h3 {
+		font-size: 1.3em;
+	}
+
+	.edit-post-visual-editor h4 {
+		font-size: 1.1em;
+	}
+
+	.edit-post-visual-editor h5 {
+		font-size: .9em;
+	}
+
+	.edit-post-visual-editor h6 {
+		font-size: .7em;
+	}
+}
+
+/* Paragraphs */
+
+.edit-post-visual-editor p {
+	margin: 0 0 40px;
+}
+
+.edit-post-visual-editor blockquote p {
+	margin-bottom: 40px;
+}
+
+/* Images */
+
+.wp-block-image figcaption {
+	margin: 10px 0 0;
+	text-align: center;
+	color: #7f8d8c;
+	font-family: "PT Serif", serif;
+	font-size: 0.73em;
+	line-height: 1.3;
+	font-style: italic;
+	text-align: center;
+}
+
+/*--------------------------------------------------------------
+2.0 General Block Styles
+--------------------------------------------------------------*/
+
+/* Main column width */
+
+.wp-block {
+	max-width: 870px; /* 840px + 30px to account for padding */
+}
+
+@media screen and (max-width: 959px) and (min-width: 768px) {
+	.wp-block {
+		max-width: 678px; /* 648px + 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: #e06d5e;
+}
+
+.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: #7f8d8c;
+}
+
+/* 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 20px;
+	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: disc inside;
+}
+
+.edit-post-visual-editor ol,
+.editor-block-list__block ol,
+.block-library-list ol {
+	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: 40px;
+}
+
+@media screen and (max-width: 767px) {
+	.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-left: 20px;
+	}
+}
+
+.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: 40px;
+	padding: 0;
+}
+
+@media screen and (max-width: 767px) {
+	.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: 20px;
+		padding: 0;
+	}
+}
+
+/* Captions */
+
+[class^="wp-block-"] figcaption {
+	margin: 10px 0 0;
+	text-align: center;
+	color: #7f8d8c;
+	font-family: "PT Serif", serif;
+	font-size: 0.73em;
+	line-height: 1.3;
+	font-style: italic;
+	text-align: center;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
+	font-size: 124px;
+}
+
+.rtl .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
+}
+
+/* Quote */
+
+.editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {
+	margin: 0;
+	padding-left: 40px;
+	border-left: 2px solid #e06d5e;
+}
+
+.editor-block-list__block .wp-block-quote {
+	padding-left: 40px;
+	margin: 0;
+	font-family: "PT Serif", serif;
+	font-size: 26px;
+	border-left: 2px solid #e06d5e;
+}
+
+@media screen and (max-width: 767px) {
+	.editor-block-list__block .wp-block-quote {
+		padding-left: 20px;
+		font-size: 21px;
+	}
+}
+
+.edit-post-visual-editor .editor-block-list__block blockquote p:not(.wp-block-cover-text) {
+	font-family: "PT Serif", serif;
+	font-size: 26px;
+	font-style: normal;
+}
+
+@media screen and (max-width: 767px) {
+	.edit-post-visual-editor .editor-block-list__block blockquote p:not(.wp-block-cover-text) {
+		font-size: 21px;
+	}
+}
+
+.editor-block-list__block .wp-block-quote__citation {
+	font-style: italic;
+	font-size: 80%;
+}
+
+.rtl .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {
+}
+
+.rtl .editor-block-list__block .wp-block-quote {
+}
+
+.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: 20px 40px 20px 0;
+}
+
+@media screen and (min-width: 1260px) {
+	.editor-block-list__block .wp-block-quote.alignleft {
+		margin-left: -130px;
+	}
+}
+
+.editor-block-list__block .wp-block-quote.alignright {
+	margin: 20px 0 20px 40px;
+}
+
+@media screen and (min-width: 1260px) {
+	.editor-block-list__block .wp-block-quote.alignright {
+		margin-left: -130px;
+	}
+}
+
+.editor-block-list__block .wp-block-quote.aligncenter {
+	margin-bottom: 20px;
+}
+
+.rtl .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
+.rtl .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large).alignright  {
+}
+
+.wp-block-quote.is-large,
+.wp-block-quote.is-style-large {
+	padding-left: 40px;
+}
+
+.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-style: normal;
+	font-size: 32px;
+}
+
+.editor-block-list__block .wp-block-quote.is-large p,
+.editor-block-list__block .wp-block-quote.is-style-large p {
+	margin-bottom: 20px;
+}
+
+/* Audio */
+
+/* Cover Images */
+
+/* File */
+
+.wp-block-file__textlink {
+	color: #e06d5e;
+	text-decoration: underline;
+}
+
+.wp-block-file .wp-block-file__button {
+	padding: 10px 20px;
+	background: #464d4d;
+	border: 1px solid #464d4d;
+	border-radius: 0;
+	color: white;
+	text-transform: uppercase;
+	font-weight: 900;
+	cursor: pointer;
+	/* Improves usability and consistency of cursor style between image-type 'input' and others */
+	-webkit-appearance: button;
+	/* Corrects inability to style clickable 'input' types in iOS */
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Formatting
+--------------------------------------------------------------*/
+
+/* Verse */
+
+.wp-block-verse pre {
+	background: transparent;
+	color: inherit;
+	font-family: inherit;
+	line-height: inherit;
+	margin-bottom: 40px;
+	max-width: 100%;
+	overflow: auto;
+	padding: 0;
+}
+
+/* Code */
+
+.wp-block-code {
+	background: #f1f2f3;
+	letter-spacing: -0.05em;
+	padding: 20px;
+	position: relative;
+	overflow: auto;
+	margin-bottom: 20px;
+	max-width: 100%;
+}
+
+.wp-block-code textarea {
+	background: transparent;
+}
+
+.wp-block-code .editor-plain-text {
+	color: #7f8d8c;
+	font-family: "Source Code Pro", monospace;
+	font-size: 22px;
+}
+
+/* Classic */
+
+.wp-block-freeform.block-library-rich-text__tinymce address {
+	margin-bottom: 20px;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce ol {
+	list-style: decimal;
+	margin-left: 0;
+	padding-left: 40px;
+}
+
+@media screen and (max-width: 767px) {
+	.wp-block-freeform.block-library-rich-text__tinymce ol {
+		padding-left: 20px;
+	}
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote {
+	padding-left: 40px;
+	margin: 0;
+	font-family: "PT Serif", serif;
+	font-size: 26px;
+	border-left: 2px solid #e06d5e;
+}
+
+@media screen and (max-width: 767px) {
+	.wp-block-freeform.block-library-rich-text__tinymce blockquote {
+		padding-left: 20px;
+		font-size: 21px;
+	}
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote > :last-child {
+	margin-bottom: 0;
+}
+
+.editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote:not(.alignleft):not(.alignright) {
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
+	font-style: italic;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
+	margin-right: 0;
+	padding-left: 0;
+	padding-right: 40px;
+}
+
+@media screen and (max-width: 767px) {
+	.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
+		padding-right: 20px;
+	}
+}
+
+.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: 20px 40px 20px 0;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
+	margin: 20px 0 20px 40px;
+}
+
+.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;
+	margin-bottom: 20px;
+	color: #24282d;
+	font-family: "Source Sans Pro", sans-serif;
+	font-weight: bold;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h1 {
+	font-size: 1.8em;
+	line-height: 1.2;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h2 {
+	font-size: 1.6em;
+	line-height: 1.3;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h3 {
+	font-size: 1.4em;
+	line-height: 1.4;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h4 {
+	font-size: 1.2em;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h5 {
+	font-size: 1em;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h6 {
+	font-size: 0.8em;
+}
+
+@media screen and (max-width: 767px) {
+	.wp-block-freeform.block-library-rich-text__tinymce h1 {
+		font-size: 1.7em;
+	}
+
+	.wp-block-freeform.block-library-rich-text__tinymce h2 {
+		font-size: 1.5em;
+	}
+
+	.wp-block-freeform.block-library-rich-text__tinymce h3 {
+		font-size: 1.3em;
+	}
+
+	.wp-block-freeform.block-library-rich-text__tinymce h4 {
+		font-size: 1.1em;
+	}
+
+	.wp-block-freeform.block-library-rich-text__tinymce h5 {
+		font-size: .9em;
+	}
+
+	.wp-block-freeform.block-library-rich-text__tinymce h6 {
+		font-size: .7em;
+	}
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce pre {
+	background: #f1f2f3;
+	color: #7f8d8c;
+	font-family: "Source Code Pro", monospace;
+	font-size: 22px;
+	letter-spacing: -0.05em;
+	position: relative;
+	overflow: auto;
+	padding: 20px;
+	margin-bottom: 20px;
+	max-width: 100%;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table {
+	border-collapse: collapse;
+	border-bottom: 1px solid #eee;
+	margin: 0 0 40px 0;
+	width: 100%;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce .alternate {
+	background: transparent;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table td {
+	border: 0;
+	border-top: 1px solid #eee;
+	padding: 0.4em;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table th {
+	background-color: #f1f2f3;
+	border: 0;
+	border-bottom: 1px solid #f1f2f3;
+	font-weight: bold;
+	padding: 0.4em;
+	text-transform: uppercase;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce th,
+.rtl .wp-block-freeform.block-library-rich-text__tinymce td {
+}
+
+/* Preformatted */
+
+.editor-block-list__block .wp-block-preformatted pre {
+	background: #f1f2f3;
+	color: #7f8d8c;
+	font-family: "Source Code Pro", monospace;
+	font-size: inherit;
+	letter-spacing: -0.05em;
+	position: relative;
+	overflow: auto;
+	padding: 20px;
+	margin-bottom: 20px;
+	max-width: 100%;
+}
+
+/* Pullquote */
+
+.editor-block-list__block .wp-block-pullquote blockquote {
+	margin: 0;
+	padding: 0;
+	border: 0;
+}
+
+.edit-post-visual-editor .wp-block-pullquote p:not(.wp-block-cover-text) {
+
+}
+
+.wp-block-pullquote {
+	padding-left: 0;
+	padding-top: 40px;
+	padding-bottom: 40px;
+	margin: 0 0 20px;
+	font-family: "PT Serif", serif;
+	font-size: 26px;
+	border-left: 0;
+	border-top: 2px solid #e06d5e;
+	border-bottom: 2px solid #e06d5e;
+}
+
+.wp-block-pullquote blockquote {
+	font-size: 26px;
+}
+
+.wp-block-pullquote .wp-block-pullquote__citation {
+	color: #7f8d8c;
+	font-size: 80%;
+	font-style: inherit;
+	text-transform: none;
+}
+
+@media screen and (max-width: 767px) {
+	.wp-block-pullquote {
+		padding-left: 20px;
+		font-size: 21px;
+	}
+
+	.wp-block-pullquote blockquote {
+		font-size: 21px;
+	}
+}
+
+.wp-block-pullquote.alignleft {
+	margin-right: 40px;
+}
+
+@media screen and (min-width: 1260px) {
+	.wp-block-pullquote.alignleft {
+		margin-left: -130px;
+	}
+}
+
+.wp-block-pullquote.alignright {
+	margin-left: 40px;
+}
+
+@media screen and (min-width: 1260px) {
+	.wp-block-pullquote.alignright {
+		margin-right: -130px;
+	}
+}
+
+.wp-block-pullquote blockquote > .editor-rich-text p {
+	color: inherit;
+	margin: 0;
+}
+
+.wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
+.wp-block-pullquote.alignright blockquote > .editor-rich-text p {
+	font-size: 26px;
+}
+
+.wp-block-pullquote .wp-block-pullquote__citation {
+	font-style: italic;
+}
+
+
+/* Table */
+
+.editor-block-list__block .wp-block-table__cell-content {
+	padding: 0;
+}
+
+.editor-block-list__block table.wp-block-table {
+	display: table;
+	margin: 0 0 20px;
+	width: 100%;
+	border-top: 1px solid #f1f2f3;
+}
+
+.editor-block-list__block table.wp-block-table td {
+	border: 0;
+	padding: 10px 20px;
+	border-bottom: 1px solid #f1f2f3;
+}
+
+.editor-block-list__block table.wp-block-table th {
+	background: #f1f2f3;
+	font-weight: bold;
+	padding: 10px 20px;
+	border: 0;
+	border-bottom: 1px solid #f1f2f3;
+	text-align: left;
+}
+
+.rtl .editor-block-list__block table.wp-block-table th {
+	text-align: right;
+}
+
+@media screen and (max-width: 767px) {
+	.editor-block-list__block table.wp-block-table th,
+	.editor-block-list__block table.wp-block-table td {
+		padding: 5px 10px;
+	}
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+.wp-block-button .wp-block-button__link {
+	padding: 10px 20px;
+	border: 1px solid;
+	box-shadow: none;
+	border-radius: 0;
+	display: inline-block;
+	text-transform: uppercase;
+	font-weight: 900;
+	cursor: pointer;
+	/* Improves usability and consistency of cursor style between image-type 'input' and others */
+}
+
+.wp-block-button .wp-block-button__link:active,
+.wp-block-button .wp-block-button__link:hover,
+.wp-block-button .wp-block-button__link:focus {
+}
+
+.wp-block-button__link:not(.has-background) {
+	background: #464d4d;
+	border: 1px solid #464d4d;
+}
+
+.wp-block-button__link:not(.has-background):focus {
+	background: #e06d5e;
+}
+
+.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):active,
+.wp-block-button__link:not(.has-background):focus,
+.wp-block-button__link:not(.has-background):hover {
+	background: #e06d5e;
+	border-color: #e06d5e;
+}
+
+/* Separator */
+
+.wp-block-separator {
+	margin-bottom: 20px;
+	height: 1px;
+	background: #f1f2f3;
+	border: 0;
+	max-width: 66%;
+}
+
+.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
+	max-width: 66%;
+}
+
+.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__comment-date {
+}
+
+.wp-block-latest-comments .wp-block-latest-comments__comment {
+	border-top: 1px solid #e6e6e6;
+	margin-bottom: 0;
+	padding: 20px 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;
+}

+ 69 - 0
illustratr/functions.php

@@ -60,6 +60,57 @@ function illustratr_setup() {
 	 */
 	add_editor_style( 'editor-style.css' );
 
+	/**
+	 * Responsive embeds
+	 */
+	add_theme_support( 'responsive-embeds' );
+
+	/**
+	 * Gutenberg wide and full images support
+	 */
+	add_theme_support( 'align-wide' );
+
+	// Add custom colors to Gutenberg
+	add_theme_support(
+		'editor-color-palette', array(
+			array(
+				'name'  => esc_html__( 'Black', 'illustratr' ),
+				'slug' => 'black',
+				'color' => '#24282d',
+			),
+			array(
+				'name'  => esc_html__( 'Dark Gray', 'illustratr' ),
+				'slug' => 'dark-gray',
+				'color' => '#464d4d',
+			),
+			array(
+				'name'  => esc_html__( 'Medium Gray', 'illustratr' ),
+				'slug' => 'medium-gray',
+				'color' => '#7f8d8c',
+			),
+			array(
+				'name'  => esc_html__( 'Light Gray', 'illustratr' ),
+				'slug' => 'light-gray',
+				'color' => '#f1f2f3',
+			),
+			array(
+				'name'  => esc_html__( 'White', 'illustratr' ),
+				'slug' => 'white',
+				'color' => '#ffffff',
+			),
+			array(
+				'name'  => esc_html__( 'Red', 'illustratr' ),
+				'slug' => 'red',
+				'color' => '#e06d5e',
+			),
+			array(
+				'name'  => esc_html__( 'Dark Red', 'illustratr' ),
+				'slug' => 'dark-red',
+				'color' => '#b44738',
+			)
+		)
+	);
+
 	/*
 	 * Enable support for Post Thumbnails on posts and pages.
 	 *
@@ -92,6 +143,9 @@ function illustratr_setup() {
 		'comment-form',
 		'gallery',
 	) );
+
+	// Add support for responsive embeds.
+	add_theme_support( 'responsive-embeds' );
 }
 endif; // illustratr_setup
 add_action( 'after_setup_theme', 'illustratr_setup' );
@@ -203,6 +257,10 @@ function illustratr_source_code_pro_font_url() {
  * Enqueue scripts and styles.
  */
 function illustratr_scripts() {
+
+	// Gutenberg styles
+	wp_enqueue_style( 'illustratr-blocks', get_template_directory_uri() . '/blocks.css' );
+
 	wp_enqueue_style( 'illustratr-source-sans-pro', illustratr_source_sans_pro_font_url(), array(), null );
 
 	wp_enqueue_style( 'illustratr-pt-serif', illustratr_pt_serif_font_url(), array(), null );
@@ -233,6 +291,17 @@ function illustratr_scripts() {
 }
 add_action( 'wp_enqueue_scripts', 'illustratr_scripts' );
 
+/**
+ * Gutenberg Editor Styles
+ */
+function apostrophe_2_editor_styles() {
+	wp_enqueue_style( 'illustratr-editor-block-style', get_template_directory_uri() . '/editor-blocks.css');
+	wp_enqueue_style( 'illustratr-source-sans-pro', illustratr_source_sans_pro_font_url(), array(), null );
+	wp_enqueue_style( 'illustratr-pt-serif', illustratr_pt_serif_font_url(), array(), null );
+	wp_enqueue_style( 'illustratr-source-code-pro', illustratr_source_code_pro_font_url(), array(), null );
+}
+add_action( 'enqueue_block_editor_assets', 'apostrophe_2_editor_styles' );
+
 /**
  * Enqueue Google fonts style to admin screen for custom header display.
  *

+ 1 - 1
illustratr/style.css

@@ -797,7 +797,7 @@ Alignments
 .alignright {
 	display: inline;
 	float: right;
-	margin: 20px 0 40px 20px;
+	margin: 20px 0 20px 40px;
 }
 @media screen and (min-width: 1220px) {
 	.alignright {