فهرست منبع

Add Gutenberg support to Apostrophe 2

Caroline Moore 6 سال پیش
والد
کامیت
a136581a23
3فایلهای تغییر یافته به همراه1253 افزوده شده و 0 حذف شده
  1. 498 0
      apostrophe-2/css/blocks.css
  2. 743 0
      apostrophe-2/css/editor-blocks.css
  3. 12 0
      apostrophe-2/functions.php

+ 498 - 0
apostrophe-2/css/blocks.css

@@ -0,0 +1,498 @@
+/*
+Theme Name: Affinity
+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 {
+	font-style: italic;
+	line-height: 1.2;
+	margin-bottom: 0.5em;
+	margin-top: 0.5em;
+	text-align: center;
+}
+
+/*--------------------------------------------------------------
+2.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+p.has-drop-cap:not(:focus)::first-letter {
+	font-size: 64px;
+}
+
+/* Images */
+
+.wp-block-cover,
+.wp-block-cover.alignleft,
+.wp-block-cover.alignright,
+.wp-block-cover.aligncenter {
+	display: flex;
+}
+
+/* Full Width */
+.apostrophe-2-no-sidebar figure.alignfull,
+.apostrophe-2-no-sidebar .wp-block-cover.alignfull,
+.apostrophe-2-no-sidebar .wp-block-gallery.alignfull,
+.apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignfull {
+	width: 100vw;
+	max-width: 100vw;
+	margin-left: 0;
+	margin-right: 0;
+	position: relative;
+	left: 50%;
+	transform: translateX( -50% );
+}
+
+.rtl.apostrophe-2-no-sidebar figure.alignfull,
+.rtl.apostrophe-2-no-sidebar .wp-block-cover.alignfull,
+.rtl.apostrophe-2-no-sidebar .wp-block-gallery.alignfull,
+.rtl.apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignfull {
+	left: auto;
+	right: 50%;
+	transform: translateX(50%);
+}
+
+.apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignfull:before {
+	content: "";
+	display: block;
+}
+
+.apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignfull iframe {
+	position:  absolute;
+	top: 0;
+	left: 0;
+	bottom: 0;
+	right: 0;
+	width: 100%;
+	height: 100%;
+}
+
+.wp-embed-aspect-1-1:before {
+	padding-top: 100%;
+}
+
+.wp-embed-aspect-2-1:before {
+	padding-top: 50%;
+}
+
+.wp-embed-aspect-1-2:before {
+	padding-top: 200%;
+}
+
+.wp-embed-aspect-4-3:before {
+	padding-top: 75%;
+}
+
+.wp-embed-aspect-16-9:before {
+	padding-top: 56.25%;
+}
+
+/* Wide Width */
+
+@media (min-width: 1024px) {
+	.apostrophe-2-no-sidebar figure.alignwide,
+	.apostrophe-2-no-sidebar .wp-block-cover.alignwide,
+	.apostrophe-2-no-sidebar .wp-block-gallery.alignwide,
+	.apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignwide {
+		width: 120%;
+		max-width: 120%;
+		margin-left: -10%;
+		margin-right: -10%;
+		position: relative;
+	}
+
+	.apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignwide:before {
+		content: "";
+		display: block;
+	}
+
+	.apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignwide iframe {
+		position:  absolute;
+		top: 0;
+		left: 0;
+		bottom: 0;
+		right: 0;
+		width: 100%;
+		height: 100%;
+	}
+}
+
+/* Gallery */
+
+.wp-block-gallery {
+	margin-bottom: 1.5em;
+	margin-left: auto;
+}
+
+/* Quote */
+
+.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
+.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
+}
+
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
+}
+
+.wp-block-quote cite {
+	color: gray;
+	display: block;
+	font-style: normal;
+	margin-top: 0.25em;
+}
+
+.wp-block-quote cite:before {
+	content: "-";
+}
+
+.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: 120%;
+}
+
+/* Audio */
+
+.wp-block-audio audio {
+	display: block;
+	width: 100%;
+}
+
+/* File */
+
+.wp-block-file .wp-block-file__button {
+	background: rgba(255, 255, 255, 0.25);
+	border: 2px solid #117bb8;
+	color: #159ae7;
+	cursor: pointer;
+	display: inline-block;
+	font-family: "Open Sans", Arial, sans-serif;
+	font-size: 18px;
+	font-weight: 300;
+	line-height: 1;
+	margin: 5px 0;
+	padding: 12px 24px;
+	text-align: center;
+	text-decoration: none;
+}
+
+.wp-block-file .wp-block-file__button:hover,
+.wp-block-file .wp-block-file__button:focus {
+	border: 2px solid #117bb8;
+	background: rgba(255, 255, 255, 0.25);
+	color: #159ae7;
+}
+
+.wp-block-file .wp-block-file__button:focus {
+	background-color: #ceeafa;
+	border-color: #0d5c89;
+	margin-top: 6px;
+	outline: none;
+}
+
+.rtl .wp-block-file * + .wp-block-file__button {
+	margin-left: 0.75em;
+	margin-right: 0;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Formatting Blocks
+--------------------------------------------------------------*/
+
+/* Verse */
+
+.wp-block-verse {
+	background: transparent;
+	color: inherit;
+	font-family: inherit;
+	line-height: inherit;
+	margin-bottom: 1.5em;
+	max-width: 100%;
+	overflow: auto;
+	padding: 0;
+}
+
+/* Code */
+
+.wp-block-code {
+	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
+	font-size: 0.85em;
+}
+
+/* Pullquote */
+
+.wp-block-pullquote {
+	margin: 0;
+	padding: 0;
+	border: 0;
+}
+
+.wp-block-pullquote blockquote {
+	border-bottom: 2px solid #a6a6a6;
+	border-left: 0;
+	border-top: 4px solid #d9d9d9;
+	color: #a6a6a6;
+	font-size: 1.2em;
+	font-style: normal;
+	margin: 0 0 1.5em;
+	padding: 0;
+}
+
+.wp-block-pullquote.alignleft p,
+.wp-block-pullquote.alignright p {
+}
+
+.rtl .wp-block-pullquote blockquote {
+	border-right: 0;
+}
+
+.wp-block-pullquote p {
+	margin: 0;
+}
+
+.wp-block-pullquote cite {
+	font-size: 0.8em;
+}
+
+.wp-block-pullquote cite:before {
+	content: "-";
+}
+
+/* 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 {
+	border-radius: 0;
+	border: 2px solid currentColor;
+	cursor: pointer;
+	display: inline-block;
+	font-family: "Open Sans", Arial, sans-serif;
+	font-size: 18px;
+	font-weight: 300;
+	line-height: 1;
+	margin: 5px 0;
+	padding: 12px 24px;
+	text-align: center;
+	text-decoration: none;
+}
+
+.wp-block-button__link:not(.has-background) {
+	border: 2px solid #117bb8;
+	background: rgba(255, 255, 255, 0.25);
+}
+
+.wp-block-button__link:not(.has-background):focus {
+	background-color: #ceeafa;
+	border-color: #0d5c89;
+	margin-top: 6px;
+	outline: none;
+}
+
+.wp-block-button__link:not(.has-text-color),
+.wp-block-button__link:not(.has-text-color):active,
+.wp-block-button__link:not(.has-text-color):focus,
+.wp-block-button__link:not(.has-text-color):hover {
+	color: #159ae7;
+}
+
+.wp-block-button .wp-block-button__link:hover,
+.wp-block-button .wp-block-button__link:focus {
+}
+
+.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-color: #e5f4fd;
+	border-color: #159ae7;
+}
+
+/* Seperator */
+
+hr.wp-block-separator {
+	border: 0;
+}
+
+.wp-block-separator {
+	background-color: #ccc;
+	border: 0;
+	height: 1px;
+	margin-bottom: 1.5em;
+	max-width: 100%;
+}
+
+.wp-block-separator.is-style-wide {
+	max-width: 120%;
+	margin-left: -10%;
+	margin-right: -10%;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Widget Blocks
+--------------------------------------------------------------*/
+
+/* Latest Comments */
+
+.editor-block-list__block .wp-block-latest-comments__comment-meta a {
+	box-shadow: none;
+	font-weight: 700;
+	text-decoration: none;
+}
+
+.wp-block-latest-comments__comment-date {
+}
+
+.wp-block-latest-comments .wp-block-latest-comments__comment {
+	border-top: 1px solid #d1d1d1;
+	margin-bottom: 0;
+	padding: 1.5em 0;
+}
+
+.wp-block-latest-comments__comment-excerpt p:last-child {
+	margin-bottom: 0;
+}
+
+/*--------------------------------------------------------------
+6.0 Blocks - Colors
+--------------------------------------------------------------*/
+
+.has-dark-gray-color {
+	color: #1a1a1a;
+}
+
+.has-dark-gray-background-color {
+	background-color: #1a1a1a;
+}
+
+.has-medium-gray-color {
+	color: #686868;
+}
+
+.has-medium-gray-background-color {
+	background-color: #686868;
+}
+
+.has-light-gray-color {
+	color: #e5e5e5;
+}
+
+.has-light-gray-background-color {
+	background-color: #e5e5e5;
+}
+
+.has-white-color {
+	color: #fff;
+}
+
+.has-white-background-color {
+	background-color: #fff;
+}
+
+.has-blue-gray-color {
+	color: #4d545c;
+}
+
+.has-blue-gray-background-color {
+	background-color: #4d545c;
+}
+
+.has-bright-blue-color {
+	color: #007acc;
+}
+
+.has-bright-blue-background-color {
+	background-color: #007acc;
+}
+
+.has-light-blue-color {
+	color: #9adffd;
+}
+
+.has-light-blue-background-color {
+	background-color: #9adffd;
+}
+
+.has-dark-brown-color {
+	color: #402b30;
+}
+
+.has-dark-brown-background-color {
+	background-color: #402b30;
+}
+
+.has-medium-brown-color {
+	color: #774e24;
+}
+
+.has-medium-brown-background-color {
+	background-color: #774e24;
+}
+
+.has-dark-red-color {
+	color: #640c1f;
+}
+
+.has-dark-red-background-color {
+	background-color: #640c1f;
+}
+
+.has-bright-red-color {
+	color: #ff675f;
+}
+
+.has-bright-red-background-color {
+	background-color: #ff675f;
+}
+
+.has-yellow-color {
+	color: #ffef8e;
+}
+
+.has-yellow-background-color {
+	background-color: #ffef8e;
+}

+ 743 - 0
apostrophe-2/css/editor-blocks.css

@@ -0,0 +1,743 @@
+
+/*
+ * Theme Name: Affinity
+ * Description: Gutenberg Block Editor Styles
+ */
+
+/*--------------------------------------------------------------
+>>> TABLE OF CONTENTS:
+----------------------------------------------------------------
+1.0 General Typography
+2.0 General Block Styles
+3.0 Blocks - Common Blocks
+4.0 Blocks - Formatting
+5.0 Blocks - Layout Elements
+6.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+/*--------------------------------------------------------------
+1.0 General Typography
+--------------------------------------------------------------*/
+
+.edit-post-visual-editor .editor-block-list__block,
+.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
+	color: #404040;
+	font-family: "PT Serif", Georgia, "Times New Roman", serif;
+	font-size: 19px;
+	line-height: 1.75;
+}
+
+.edit-post-visual-editor .editor-block-list__block {
+	color: #404040;
+	font-size: 19px;
+}
+
+.alignleft {
+	margin-right: 1.5em;
+}
+
+.alignright {
+	margin-left: 1.5em;
+}
+
+/* Title */
+
+.editor-post-title__block .editor-post-title__input {
+	-ms-word-wrap: break-word;
+	clear: both;
+	font-family: "Open Sans", Arial, sans-serif;
+	line-height: 1.5;
+	margin: 1.13636% 0 0.50505%;
+	word-wrap: break-word;
+	color: silver;
+	font-size: 42px;
+	font-weight: 300;
+	line-height: 1.25;
+}
+
+/* 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 {
+	-ms-word-wrap: break-word;
+	clear: both;
+	font-family: "Open Sans", Arial, sans-serif;
+	line-height: 1.5;
+	margin: 1.13636% 0 0.50505%;
+	word-wrap: break-word;
+}
+
+.edit-post-visual-editor h1 {
+	color: silver;
+	font-size: 42px;
+	font-weight: 300;
+	line-height: 1.25;
+}
+
+.edit-post-visual-editor h2 {
+	color: #999;
+	font-size: 32px;
+	font-weight: 700;
+	line-height: 1.25;
+}
+
+.edit-post-visual-editor h3 {
+	color: gray;
+	font-size: 28px;
+	font-weight: 300;
+}
+
+.edit-post-visual-editor h4 {
+	color: gray;
+	font-size: 21px;
+	font-weight: 600;
+	text-transform: uppercase;
+}
+
+.edit-post-visual-editor h5 {
+	color: #5a5a5a;
+	font-size: 19px;
+	font-weight: 400;
+}
+
+.edit-post-visual-editor h6 {
+	color: #5a5a5a;
+	font-size: 17px;
+	font-weight: 600;
+	letter-spacing: 1px;
+	text-transform: uppercase;
+}
+
+/* Paragraphs */
+
+.edit-post-visual-editor p {
+	margin: 0 0 1.5em;
+}
+
+.edit-post-visual-editor blockquote p {
+	margin-bottom: 1.5em;
+}
+
+/* Images */
+
+.wp-block-image figcaption {
+	font-style: italic;
+	line-height: 1.2;
+	margin-bottom: 0.5em;
+	margin-top: 0.5em;
+	text-align: center;
+}
+
+@media screen and ( min-width: 48em ) {
+	.edit-post-visual-editor .editor-block-list__block[data-align=wide] {
+		max-width: 860px;
+	}
+}
+
+/*--------------------------------------------------------------
+2.0 General Block Styles
+--------------------------------------------------------------*/
+
+/* Main column width */
+
+body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
+body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
+body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block:not([data-align=wide]):not([data-align=full]) {
+	max-width: 730px;
+}
+
+/* Link styles */
+
+.edit-post-visual-editor a,
+.editor-block-list__block a,
+.wp-block-freeform.block-library-rich-text__tinymce a {
+	color: #117bb8;
+	transition: 100ms all ease-in;
+}
+
+.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: #362e77;
+}
+
+/* List styles */
+
+.edit-post-visual-editor ul:not(.wp-block-gallery),
+.editor-block-list__block ul:not(.wp-block-gallery),
+.block-library-list ul,
+.edit-post-visual-editor ol,
+.editor-block-list__block ol,
+.block-library-list ol {
+	margin: 0 0 1.5em;
+}
+
+.edit-post-visual-editor ul:not(.wp-block-gallery),
+.editor-block-list__block ul:not(.wp-block-gallery),
+.block-library-list ul {
+	list-style: disc;
+}
+
+.edit-post-visual-editor ul:not(.wp-block-gallery) ul,
+.editor-block-list__block ul:not(.wp-block-gallery) ul,
+.block-library-list ul ul,
+.edit-post-visual-editor ul:not(.wp-block-gallery) ul ul ul,
+.editor-block-list__block ul:not(.wp-block-gallery) ul ul ul,
+.block-library-list ul ul ul ul {
+	list-style: circle;
+}
+
+.edit-post-visual-editor ul:not(.wp-block-gallery) ul ul,
+.editor-block-list__block ul:not(.wp-block-gallery) ul ul,
+.block-library-list ul ul ul {
+	list-style: disc;
+}
+
+.edit-post-visual-editor ol,
+.editor-block-list__block ol,
+.block-library-list ol {
+	list-style: decimal;
+}
+
+.edit-post-visual-editor ol ol,
+.editor-block-list__block ol ol,
+.block-library-list ol ol,
+.edit-post-visual-editor ol ol ol ol,
+.editor-block-list__block ol ol ol ol,
+.block-library-list ol ol ol ol {
+	list-style-type: lower-alpha;
+}
+
+.edit-post-visual-editor ol ol ol,
+.editor-block-list__block ol ol ol,
+.block-library-list ol ol ol {
+	list-style-type: decimal;
+}
+
+.edit-post-visual-editor ul:not(.wp-block-gallery) li,
+.editor-block-list__block ul:not(.wp-block-gallery) li,
+.edit-post-visual-editor ol li,
+.editor-block-list__block ol li,
+.block-library-list li {
+	margin-bottom: 0;
+}
+
+.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
+.editor-block-list__block ul:not(.wp-block-gallery) li > ul,
+.block-library-list li > ul,
+.edit-post-visual-editor li > ol,
+.editor-block-list__block li > ol,
+.block-library-list li > ol {
+	margin-bottom: 0;
+	margin-left: 1.5em;
+}
+
+.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
+.rtl .editor-block-list__block ul:not(.wp-block-gallery),
+.rtl .block-library-list ul,
+.rtl .edit-post-visual-editor ol,
+.rtl .editor-block-list__block ol,
+.rtl .block-library-list ol {
+	margin-left: 0;
+	margin-right: 1.5em;
+	padding: 0;
+}
+
+.rtl .edit-post-visual-editor ol,
+.rtl .editor-block-list__block ol,
+.rtl .block-library-list ol {
+	margin-left: 1.5em;
+	margin-right: 1.5em;
+}
+
+/* Quotes */
+
+.rtl .editor-block-list__block blockquote {
+	border-left: 0;
+	padding-left: 0;
+	text-align: right;
+}
+
+/* Captions */
+
+[class^="wp-block-"] figcaption {
+	color: #686868;
+	font-style: italic;
+	line-height: 1.6153846154;
+	padding-top: 0.5384615385em;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
+	font-size: 64px;
+}
+
+.rtl .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
+}
+
+/* Quote */
+
+.wp-block-quote {
+	border-left: 4px solid #d9d9d9;
+	font-style: italic;
+	margin: 0 1.5em 1.5em 0;
+	padding-left: 1.5em;
+}
+
+.rtl .wp-block-quote {
+	border-left: 0;
+	border-right: 4px solid #d9d9d9;
+	margin: 0 0 1.5em 1.5em;
+	padding-left: 0;
+	padding-right: 1.5em;
+}
+
+.wp-block-quote:not(.is-large):not(.is-style-large),
+.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
+.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
+	border-left: 4px solid #d9d9d9;
+	padding-left: 1.5em;
+}
+
+.editor-block-list__block .wp-block-quote p {
+	color: inherit;
+}
+
+.wp-block-quote__citation {
+	color: gray;
+	display: block;
+	font-style: normal;
+	margin-top: 0.25em;
+}
+
+.wp-block-quote__citation:before {
+	content: "—";
+}
+
+.wp-block-quote em,
+.wp-block-quote i,
+.wp-block-quote__citation:before {
+	font-style: normal;
+}
+
+.wp-block-quote > :last-child {
+	margin-bottom: 0;
+}
+
+.wp-block-quote.alignleft {
+	margin: .75em 1.5em .75em 0;
+}
+
+.wp-block-quote.alignright {
+	margin: .75em 0 .75em 1.5em;
+}
+
+.wp-block-quote.aligncenter {
+	margin-bottom: 1.5em;
+}
+
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright  {
+}
+
+.wp-block-quote.is-large,
+.wp-block-quote.is-style-large,
+.wp-block-quote.is-large p,
+.wp-block-quote.is-style-large p {
+	font-size: 120%;
+}
+
+/* Audio */
+
+/* Cover Images */
+
+/* File */
+
+.wp-block-file__textlink {
+	box-shadow: 0 1px 0 0 currentColor;
+	color: #007acc;
+}
+
+.wp-block-file .wp-block-file__button {
+	background: rgba(255, 255, 255, 0.25);
+	border: 2px solid #117bb8;
+	color: #159ae7;
+	cursor: pointer;
+	display: inline-block;
+	font-family: "Open Sans", Arial, sans-serif;
+	font-size: 18px;
+	font-weight: 300;
+	line-height: 1;
+	margin: 5px 0;
+	padding: 12px 24px;
+	text-align: center;
+	text-decoration: none;
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Formatting
+--------------------------------------------------------------*/
+
+/* Verse */
+
+.wp-block-verse pre {
+	background: transparent;
+	color: inherit;
+	font-family: inherit;
+	line-height: inherit;
+	margin-bottom: 1.5em;
+	max-width: 100%;
+	overflow: auto;
+	padding: 0;
+}
+
+/* Code */
+
+.wp-block-code {
+	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
+	font-size: 0.85em;
+}
+
+/* Classic */
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote {
+	border-left: 4px solid #d9d9d9;
+	font-style: italic;
+	margin: 0 1.5em 1.5em 0;
+	padding-left: 1.5em;
+}
+
+.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 {
+	color: gray;
+	display: block;
+	font-style: normal;
+	margin-top: 0.25em;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote cite:before {
+	content: "-";
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
+	border-left: 0;
+	border-right: 4px solid #d9d9d9;
+	margin: 0 0 1.5em 1.5em;
+	padding-left: 0;
+	padding-right: 1.5em;
+}
+
+.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: .75em 1.5em .75em 0;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
+	margin: .75em 0 .75em 1.5em;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h1 {
+	color: silver;
+	font-size: 42px;
+	font-weight: 300;
+	line-height: 1.25;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h2 {
+	color: #999;
+	font-size: 32px;
+	font-weight: 700;
+	line-height: 1.25;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h3 {
+	color: gray;
+	font-size: 28px;
+	font-weight: 300;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h4 {
+	color: gray;
+	font-size: 21px;
+	font-weight: 600;
+	text-transform: uppercase;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h5 {
+	color: #5a5a5a;
+	font-size: 19px;
+	font-weight: 400;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h6 {
+	color: #5a5a5a;
+	font-size: 17px;
+	font-weight: 600;
+	letter-spacing: 1px;
+	text-transform: uppercase;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce pre {
+	background: #eee;
+	font-family: "Courier 10 Pitch", Courier, monospace;
+	font-size: 0.85em;
+	line-height: 1.6;
+	margin-bottom: 1.5em;
+	max-width: 100%;
+	overflow: auto;
+	padding: 1.5em;
+	white-space: pre-wrap;
+	word-wrap: break-word;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table {
+	display: table;
+	margin: 0 0 1.5em;
+	width: 100%;
+	border-collapse: collapse;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce .alternate {
+	background: transparent;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table td,
+.wp-block-freeform.block-library-rich-text__tinymce table th {
+	padding: 8px 8px;
+	border: 0;
+	border-bottom: solid 1px;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table th {
+	border-bottom: solid 3px;
+}
+
+.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: #eee;
+	font-family: "Courier 10 Pitch", Courier, monospace;
+	font-size: 0.85em;
+	line-height: 1.6;
+	margin-bottom: 1.5em;
+	max-width: 100%;
+	overflow: auto;
+	padding: 1.5em;
+	white-space: pre-wrap;
+	word-wrap: break-word;
+}
+
+/* Pullquote */
+
+.editor-block-list__block .wp-block-pullquote blockquote {
+	margin: 0;
+	padding: 0;
+	border: 0;
+}
+
+.wp-block-pullquote {
+	border-bottom: 2px solid #a6a6a6;
+	border-left: 0;
+	border-top: 4px solid #d9d9d9;
+	color: #a6a6a6;
+	font-size: 1.2em;
+	margin: 0 0 1.5em;
+	padding: 0;
+}
+
+.wp-block-pullquote blockquote {
+	font-size: 1.2em;
+}
+
+.wp-block-pullquote.alignleft {
+	margin-right: 1.5em;
+}
+
+.wp-block-pullquote.alignright {
+	margin-left: 1.5em;
+}
+
+.wp-block-pullquote blockquote > .editor-rich-text p {
+	color: inherit;
+	margin: 0;
+}
+
+.wp-block-pullquote.alignleft,
+.wp-block-pullquote.alignright {
+	font-size: .8em;
+}
+
+.wp-block-pullquote .wp-block-pullquote__citation {
+	font-size: .8em;
+	text-transform: none;
+}
+
+.wp-block-pullquote .wp-block-pullquote__citation:before {
+	content: "-";
+}
+
+/* Table */
+
+.editor-block-list__block table.wp-block-table {
+	display: table;
+	font-size: 0.85em;
+	margin: 0 0 1.5em;
+	width: 100%;
+}
+
+.editor-block-list__block table.wp-block-table td,
+.editor-block-list__block table.wp-block-table th {
+	padding: 8px 8px;
+	border: 0;
+	border-bottom: solid 1px;
+}
+
+.editor-block-list__block table.wp-block-table th {
+	border-bottom: solid 3px;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+.wp-block-button .wp-block-button__link {
+	border-radius: 0;
+	border: 2px solid currentColor;
+	cursor: pointer;
+	display: inline-block;
+	font-family: "Open Sans", Arial, sans-serif;
+	font-size: 18px;
+	font-weight: 300;
+	line-height: 1;
+	margin: 5px 0;
+	padding: 12px 24px;
+	text-align: center;
+	text-decoration: none;
+}
+
+.wp-block-button .wp-block-button__link:hover,
+.wp-block-button .wp-block-button__link:focus,
+.wp-block-button .wp-block-button__link:active {
+}
+
+.wp-block-button__link:not(.has-text-color),
+.wp-block-button__link:not(.has-text-color):active,
+.wp-block-button__link:not(.has-text-color):focus,
+.wp-block-button__link:not(.has-text-color):hover {
+	color: #159ae7;
+}
+
+.wp-block-button__link:not(.has-background) {
+	border: 2px solid #117bb8;
+	background: rgba(255, 255, 255, 0.25);
+}
+
+.wp-block-button__link:not(.has-background):active,
+.wp-block-button__link:not(.has-background):hover {
+	background-color: #e5f4fd;
+	border-color: #159ae7;
+}
+
+.wp-block-button__link:not(.has-background):focus {
+	background-color: #ceeafa;
+	border-color: #0d5c89;
+	margin-top: 6px;
+	outline: none;
+}
+
+/* Separator */
+.wp-block-separator {
+	background-color: #ccc;
+	border: 0;
+	height: 1px;
+	margin-bottom: 1.5em;
+	max-width: 100%;
+}
+
+.wp-block-separator.is-wide {
+	max-width: 120%;
+	margin-left: -10%;
+	margin-right: -10%;
+}
+
+/*--------------------------------------------------------------
+6.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+/* Latest Comments */
+
+.editor-block-list__block .wp-block-latest-comments__comment-meta a {
+	box-shadow: none;
+	font-weight: 700;
+	text-decoration: none;
+}
+
+.wp-block-latest-comments__comment-date {
+}
+
+.wp-block-latest-comments .wp-block-latest-comments__comment {
+	border-top: 1px solid #d1d1d1;
+	margin-bottom: 0;
+	padding: 1.5em 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;
+}

+ 12 - 0
apostrophe-2/functions.php

@@ -192,6 +192,9 @@ function apostrophe_2_fonts_url() {
  */
 function apostrophe_2_scripts() {
 
+	// Gutenberg styles
+	wp_enqueue_style( 'apostrophe-2-blocks', get_template_directory_uri() . '/css/blocks.css' );
+
 	wp_enqueue_style( 'apostrophe-2-style', get_stylesheet_uri(), array(), '20140520' );
 	wp_enqueue_style( 'genericons', get_template_directory_uri() . '/css/genericons.css', array(), '20131222' );
 	wp_enqueue_style( 'apostrophe-2-fonts', apostrophe_2_fonts_url(), array(), null );
@@ -211,6 +214,15 @@ function apostrophe_2_scripts() {
 }
 add_action( 'wp_enqueue_scripts', 'apostrophe_2_scripts' );
 
+/** 
+ * Gutenberg Editor Styles 
+ */
+function apostrophe_2_editor_styles() {
+	wp_enqueue_style( 'apostrophe-2-editor-block-style', get_template_directory_uri() . '/css/editor-blocks.css');
+	wp_enqueue_style( 'apostrophe-2-fonts', apostrophe_2_fonts_url(), array(), null );
+}
+add_action( 'enqueue_block_editor_assets', 'apostrophe_2_editor_styles' );
+
 /**
  * Use a specific size for the gallery shortcode.
  *