浏览代码

Merge pull request #346 from Automattic/sketch-add-gutenberg-support

Sketch: Add Gutenberg support and styles
Laurel 6 年之前
父节点
当前提交
b3b852516b
共有 3 个文件被更改,包括 1022 次插入0 次删除
  1. 411 0
      sketch/css/blocks.css
  2. 563 0
      sketch/css/editor-blocks.css
  3. 48 0
      sketch/functions.php

+ 411 - 0
sketch/css/blocks.css

@@ -0,0 +1,411 @@
+/*
+Theme Name: Sketch
+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
+--------------------------------------------------------------*/
+
+/* Caption */
+
+[class^="wp-block-"] figcaption {
+	font-size: 16.25px;
+}
+
+[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
+	color: #333333;
+	margin-top: 0;
+	text-align: left;
+}
+
+.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
+	text-align: right;
+}
+
+/* Video */
+
+.wp-block-embed.is-type-video iframe {
+	max-height: 100%;
+}
+
+/*--------------------------------------------------------------
+2.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+p.has-drop-cap:not(:focus)::first-letter {
+	font-size: 5em;
+	margin-top: 0.15em;
+}
+
+/* Gallery */
+
+.wp-block-gallery {
+	margin: 0 0 27px;
+}
+
+/* Quote */
+
+.wp-block-quote.is-large,
+.wp-block-quote.is-style-large {
+	padding-right: 0;
+}
+
+.wp-block-quote.is-large p,
+.wp-block-quote.is-style-large p {
+	font-size: 26px;
+}
+
+.wp-block-quote.is-large cite,
+.wp-block-quote.is-style-large cite {
+	font-size: 22px;
+}
+
+@media (min-width: 50em) {
+	.wp-block-quote.is-large p,
+	.wp-block-quote.is-style-large p {
+		font-size: 32px;
+	}
+
+	.wp-block-quote.is-large cite,
+	.wp-block-quote.is-style-large cite {
+		font-size: 26px;
+	}
+}
+
+.rtl .wp-block-quote.is-large,
+.rtl .wp-block-quote.is-style-large {
+	padding-left: 0;
+	padding-right: 24px;
+}
+
+/* Audio */
+
+.wp-block-audio {
+	margin-bottom: 27px;
+}
+
+.wp-block-audio audio {
+	display: block;
+	width: 100%;
+}
+
+/* Cover */
+
+.wp-block-cover.aligncenter,
+.wp-block-cover-image.aligncenter,
+.wp-block-cover.alignleft,
+.wp-block-cover-image.alignleft,
+.wp-block-cover.alignright,
+.wp-block-cover-image.alignright {
+	display: flex;
+}
+
+.wp-block-cover-image .wp-block-cover-image-text,
+.wp-block-cover-image .wp-block-cover-text,
+.wp-block-cover-image h2,
+.wp-block-cover .wp-block-cover-image-text,
+.wp-block-cover .wp-block-cover-text,
+.wp-block-cover h2 {
+	font-size: 1.5em;
+}
+
+/* File */
+
+.wp-block-file a.wp-block-file__button,
+.wp-block-file a.wp-block-file__button:visited {
+	background: transparent;
+	border: 3px solid #eeeeee;
+	border-radius: 3px;
+	color: #999999;
+	font-family: Lato, Helvetica, Arial, sans-serif;
+	font-size: 16px;
+	font-weight: 400;
+	letter-spacing: 2px;
+	padding: 10px 14px;
+	text-transform: uppercase;
+	-webkit-transition: all 0.3s ease-in-out;
+	-moz-transition: all 0.3s ease-in-out;
+	-o-transition: all 0.3s ease-in-out
+	transition: all 0.3s ease-in-out;
+}
+
+.wp-block-file a.wp-block-file__button:hover,
+.wp-block-file a.wp-block-file__button:focus {
+	background: transparent;
+	border-color: #f68060;
+	color: #f68060;
+}
+
+.rtl .wp-block-file * + .wp-block-file__button {
+	margin-left: 0.75em;
+	margin-right: 0;
+}
+
+/* Video */
+
+.wp-block-video video {
+	width: 100%;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Formatting
+--------------------------------------------------------------*/
+
+/* Verse */
+
+.wp-block-verse {
+	background: transparent;
+	font-family: inherit;
+	font-size: inherit;
+	font-style: italic;
+	padding: 0;
+}
+
+/* Code */
+
+.wp-block-code code {
+
+}
+
+/* Pullquote */
+
+.wp-block-pullquote {
+	border-top: 3px solid #eee;
+	border-bottom: 2px solid #eee;
+}
+
+.wp-block-pullquote blockquote {
+	border: 0;
+	padding-left: 0;
+	padding-right: 0;
+}
+
+.wp-block-pullquote cite {
+	font-size: 80%;
+	text-align: center;
+}
+
+/* Table */
+
+.wp-block-table {
+}
+
+.rtl .wp-block-table th {
+	text-align: right;
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+
+.wp-block-button__link:not(.has-text-color) {
+	color: #999999;
+}
+
+.wp-block-button__link:not(.has-background) {
+	background: white;
+}
+
+.wp-block-button .wp-block-button__link {
+	border: 3px solid #eeeeee;
+	border-radius: 3px;
+	font-family: Lato, Helvetica, Arial, sans-serif;
+	font-size: 16px;
+	font-weight: 400;
+	letter-spacing: 2px;
+	padding: 10px 14px;
+	text-transform: uppercase;
+	-webkit-transition: all 0.3s ease-in-out;
+	-moz-transition: all 0.3s ease-in-out;
+	-o-transition: all 0.3s ease-in-out
+	transition: all 0.3s ease-in-out;
+}
+
+.wp-block-button__link.has-text-color {
+	border-color: currentColor;
+}
+
+.wp-block-button__link:hover,
+.wp-block-button__link:not(.has-text-color):hover,
+.wp-block-button__link:focus,
+.wp-block-button__link:not(.has-text-color):focus {
+	border-color: #f68060;
+	color: #f68060;
+}
+
+.wp-block-button__link:not(.has-background):hover,
+.wp-block-button__link:not(.has-background):focus {
+	background: transparent;
+}
+
+/* Separator */
+
+.wp-block-separator {
+	border: 0;
+}
+
+.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
+	margin-left: auto;
+	margin-right: auto;
+	max-width: 100px;
+}
+
+/* Media & Text */
+
+.wp-block-media-text {
+	margin-bottom: 27px;
+}
+
+.wp-block-media-text *:last-child {
+	margin-bottom: 0;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+/* Categories, Latest Posts & Archives */
+
+.wp-block-categories.aligncenter,
+.wp-block-categories.aligncenter ul,
+.wp-block-latest-posts.aligncenter,
+.wp-block-archives.aligncenter {
+	list-style-position: inside;
+	margin-left: 0;
+	margin-right: 0;
+	text-align: center;
+}
+
+/* Latest Comments */
+
+.wp-block-latest-comments {
+	margin-left: 0;
+	margin-right: 0;
+}
+
+.wp-block-latest-comments__comment-date {
+	color: #999;
+	font-size: 13px;
+	text-transform: uppercase;
+}
+
+.wp-block-latest-comments__comment {
+	font-size: 80%;
+}
+
+.wp-block-latest-comments__comment-excerpt p {
+	font-size: inherit;
+}
+
+.wp-block-latest-comments__comment-meta {
+	font-weight: 700;
+	letter-spacing: 2px;
+	text-transform: uppercase;
+}
+
+/* Latest Posts */
+
+.wp-block-latest-posts.is-grid {
+	margin-left: 0;
+	margin-right: 0;
+}
+
+/*--------------------------------------------------------------
+6.0 Blocks - Colors
+--------------------------------------------------------------*/
+
+.has-orange-color,
+.has-orange-color:hover,
+.has-orange-color:focus,
+.has-orange-color:active,
+.has-orange-color:visited {
+	color: #f68060;
+}
+
+.has-orange-background-color,
+.has-orange-background-color:hover,
+.has-orange-background-color:focus,
+.has-orange-background-color:active,
+.has-orange-background-color:visited {
+	background-color: #f68060;
+}
+
+.has-dark-gray-color,
+.has-dark-gray-color:hover,
+.has-dark-gray-color:focus,
+.has-dark-gray-color:active,
+.has-dark-gray-color:visited {
+	color: #333;
+}
+
+.has-dark-gray-background-color,
+.has-dark-gray-background-color:hover,
+.has-dark-gray-background-color:focus,
+.has-dark-gray-background-color:active,
+.has-dark-gray-background-color:visited {
+	background-color: #333;
+}
+
+.has-medium-gray-color,
+.has-medium-gray-color:hover,
+.has-medium-gray-color:focus,
+.has-medium-gray-color:active,
+.has-medium-gray-color:visited {
+	color: #999;
+}
+
+.has-medium-gray-background-color,
+.has-medium-gray-background-color:hover,
+.has-medium-gray-background-color:focus,
+.has-medium-gray-background-color:active,
+.has-medium-gray-background-color:visited {
+	background-color: #999;
+}
+
+.has-light-gray-color,
+.has-light-gray-color:hover,
+.has-light-gray-color:focus,
+.has-light-gray-color:active,
+.has-light-gray-color:visited {
+	color: #eee;
+}
+
+.has-light-gray-background-color,
+.has-light-gray-background-color:hover,
+.has-light-gray-background-color:focus,
+.has-light-gray-background-color:active,
+.has-light-gray-background-color:visited {
+	background-color: #eee;
+}
+
+.has-white-color,
+.has-white-color:hover,
+.has-white-color:focus,
+.has-white-color:active,
+.has-white-color:visited {
+	color: #fff;
+}
+
+.has-white-background-color,
+.has-white-background-color:hover,
+.has-white-background-color:focus,
+.has-white-background-color:active,
+.has-white-background-color:visited {
+	background-color: #fff;
+}

+ 563 - 0
sketch/css/editor-blocks.css

@@ -0,0 +1,563 @@
+/*
+Theme Name: Sketch
+Description: Used to style Gutenberg Blocks in the editor.
+*/
+
+/*--------------------------------------------------------------
+>>> TABLE OF CONTENTS:
+----------------------------------------------------------------
+1.0 General Typography
+2.0 General Block Settings
+3.0 Blocks - Common Blocks
+4.0 Blocks - Formatting
+5.0 Blocks - Layout Elements
+6.0 Blocks - Widgets
+
+--------------------------------------------------------------*/
+
+/*--------------------------------------------------------------
+1.0 General Typography
+--------------------------------------------------------------*/
+
+.edit-post-visual-editor .editor-block-list__block,
+.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
+	font-family: Lato, Helvetica, Arial, sans-serif;
+}
+
+/* Font size */
+
+.edit-post-visual-editor .editor-block-list__block,
+.edit-post-visual-editor .editor-block-list__block p,
+.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
+	font-size: 16px;
+	font-weight: 300;
+}
+
+@media (min-width: 50em) {
+	.edit-post-visual-editor .editor-block-list__block,
+	.edit-post-visual-editor .editor-block-list__block p,
+	.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
+		font-size: 20px;
+	}
+}
+
+/* Color */
+
+.edit-post-visual-editor .editor-block-list__block {
+	color: #333333;
+}
+
+/* Post title */
+
+.editor-post-title__block .editor-post-title__input {
+	color: #333333;
+	font-family: Lato, Helvetica, Arial, sans-serif;
+	font-size: 28px;
+	font-weight: normal;
+	letter-spacing: 1px;
+	text-transform: uppercase;
+}
+
+/* Headings */
+
+.edit-post-visual-editor h1,
+.wp-block-freeform.block-library-rich-text__tinymce h1,
+.edit-post-visual-editor h2,
+.wp-block-freeform.block-library-rich-text__tinymce h2,
+.edit-post-visual-editor h3,
+.wp-block-freeform.block-library-rich-text__tinymce h3,
+.edit-post-visual-editor h4,
+.wp-block-freeform.block-library-rich-text__tinymce h4,
+.edit-post-visual-editor h5,
+.wp-block-freeform.block-library-rich-text__tinymce h5,
+.edit-post-visual-editor h6,
+.wp-block-freeform.block-library-rich-text__tinymce h6 {
+	font-weight: 400;
+	letter-spacing: 1px;
+	text-transform: uppercase;
+}
+
+.edit-post-visual-editor h1,
+.wp-block-freeform.block-library-rich-text__tinymce h1 {
+	font-size: 28px;
+}
+
+.edit-post-visual-editor h2,
+.wp-block-freeform.block-library-rich-text__tinymce h2 {
+	font-size: 20px;
+}
+
+.edit-post-visual-editor h3,
+.wp-block-freeform.block-library-rich-text__tinymce h3 {
+	font-size: 20px;
+}
+
+.edit-post-visual-editor h4,
+.wp-block-freeform.block-library-rich-text__tinymce h4 {
+	font-size: 16px;
+}
+
+.edit-post-visual-editor h5,
+.wp-block-freeform.block-library-rich-text__tinymce h5 {
+	font-size: 16px;
+}
+
+.edit-post-visual-editor h6,
+.wp-block-freeform.block-library-rich-text__tinymce h6 {
+	font-size: 13px;
+}
+
+@media (min-width: 50em) {
+	.edit-post-visual-editor h1,
+	.wp-block-freeform.block-library-rich-text__tinymce h1 {
+		font-size: 36px;
+	}
+
+	.edit-post-visual-editor h2,
+	.wp-block-freeform.block-library-rich-text__tinymce h2 {
+		font-size: 28px;
+	}
+
+	.edit-post-visual-editor h3,
+	.wp-block-freeform.block-library-rich-text__tinymce h3 {
+		font-size: 20px;
+	}
+
+	.edit-post-visual-editor h4,
+	.wp-block-freeform.block-library-rich-text__tinymce h4,
+	.edit-post-visual-editor h5,
+	.wp-block-freeform.block-library-rich-text__tinymce h5 {
+		font-size: 16px;
+	}
+
+	.edit-post-visual-editor h6,
+	.wp-block-freeform.block-library-rich-text__tinymce h6 {
+		font-size: 13px;
+	}
+}
+
+/*--------------------------------------------------------------
+2.0 General Block Settings
+--------------------------------------------------------------*/
+
+/* Main content width */
+
+.wp-block {
+	max-width: 795px; /* 765px + 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: #f68060;
+	text-decoration: none;
+}
+
+/* Table styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce table {
+	border-collapse: collapse;
+	border: 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table th,
+.wp-block-freeform.block-library-rich-text__tinymce table td {
+	border: 0;
+	border-bottom: 1px solid #eee;
+	font-weight: 400;
+	padding: 7px 3px 6px;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table th {
+	border-bottom-width: 3px;
+	font-weight: bold;
+	letter-spacing: 2px;
+	padding-bottom: 4px;
+	text-align: left;
+	text-transform: uppercase;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce table th {
+	text-align: right;
+}
+
+/* Quote styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote {
+	border-left: 3px solid #eee;
+	color: #999;
+	font-style: italic;
+	line-height: 1.5;
+	padding-left: 24px;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce cite {
+	color: #999;
+	font-style: italic;
+	text-align: right;
+}
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
+	font-size: 20px;
+}
+
+@media (min-width: 50em) {
+	.edit-post-visual-editor .editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
+		font-size: 25px;
+	}
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce cite {
+	text-align: left;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
+	border-left: 0;
+	border-right: 3px solid #eee;
+	padding-left: 0;
+	padding-right: 24px;
+}
+
+/* List styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce li,
+.editor-styles-wrapper li {
+	margin-bottom: 0;
+}
+
+/* Caption styles */
+
+[class^="wp-block-"] figcaption {
+	font-size: 16.25px;
+}
+
+[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
+	color: #333333;
+	margin-top: 0;
+	text-align: left;
+}
+
+.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
+	text-align: right;
+}
+
+/* Definition List styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce dt {
+	font-weight: 400;
+}
+
+/* Pre styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce pre {
+	background: rgba(0, 0, 0, 0.03);
+	font-family: "Courier 10 Pitch", Courier, monospace;
+	font-size: 0.8em;
+	line-height: 2.09231em;
+	padding: 27px;
+}
+
+/* Code, etc styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce code,
+.wp-block-freeform.block-library-rich-text__tinymce kbd,
+.wp-block-freeform.block-library-rich-text__tinymce tt,
+.wp-block-freeform.block-library-rich-text__tinymce var {
+	background: transparent;
+}
+
+/* Mark & Ins styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce mark,
+.wp-block-freeform.block-library-rich-text__tinymce ins {
+	background: #fff9c0;
+	padding: 0 0.25em;
+	text-decoration: none;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+p.has-drop-cap:not(:focus)::first-letter {
+	font-size: 5em;
+	margin-top: 0.15em;
+}
+
+/* Gallery */
+
+.wp-block-gallery {
+	margin: 0 0 27px;
+}
+
+/* Quote */
+
+.wp-block-quote:not(.is-large):not(.is-style-large),
+.wp-block-quote.is-large,
+.wp-block-quote.is-style-large {
+	border-left: 3px solid #eee;
+	line-height: 1.5;
+	padding-left: 24px;
+}
+
+.wp-block-quote p,
+.wp-block-quote .wp-block-quote__citation {
+	color: #999;
+	font-style: italic;
+}
+
+.wp-block-quote .wp-block-quote__citation {
+	text-align: right;
+}
+
+.wp-block-quote:not(.is-large):not(.is-style-large) p,
+.wp-block-quote:not(.is-large):not(.is-style-large) .wp-block-quote__citation {
+	font-size: 20px;
+}
+
+.editor-styles-wrapper .wp-block-quote.is-large p,
+.editor-styles-wrapper .wp-block-quote.is-style-large p {
+	font-size: 26px;
+}
+
+.wp-block-quote.is-large .wp-block-quote__citation,
+.wp-block-quote.is-style-large .wp-block-quote__citation {
+	font-size: 22px;
+}
+
+@media (min-width: 50em) {
+	.wp-block-quote:not(.is-large):not(.is-style-large) p,
+	.wp-block-quote:not(.is-large):not(.is-style-large) .wp-block-quote__citation {
+		font-size: 25px;
+	}
+
+	.editor-styles-wrapper .wp-block-quote.is-large p,
+	.editor-styles-wrapper .wp-block-quote.is-style-large p {
+		font-size: 32px;
+	}
+
+	.wp-block-quote.is-large .wp-block-quote__citation,
+	.wp-block-quote.is-style-large .wp-block-quote__citation {
+		font-size: 26px;
+	}
+}
+
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large),
+.rtl .wp-block-quote.is-large,
+.rtl .wp-block-quote.is-style-large {
+	border-left: 0;
+	border-right: 3px solid #eee;
+	padding-left: 0;
+	padding-right: 24px;
+}
+
+.rtl .wp-block-quote .wp-block-quote__citation {
+	text-align: left;
+}
+
+/* Cover */
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
+	font-size: 1.5em;
+}
+
+/* File */
+
+.wp-block-file__textlink {
+	color: #f68060;
+}
+
+.wp-block-file .wp-block-file__button {
+	background: transparent;
+	border: 3px solid #eeeeee;
+	border-radius: 3px;
+	color: #999999;
+	font-family: Lato, Helvetica, Arial, sans-serif;
+	font-size: 16px;
+	font-weight: 400;
+	letter-spacing: 2px;
+	padding: 10px 14px;
+	text-transform: uppercase;
+	-webkit-transition: all 0.3s ease-in-out;
+	-moz-transition: all 0.3s ease-in-out;
+	-o-transition: all 0.3s ease-in-out
+	transition: all 0.3s ease-in-out;
+}
+
+.wp-block-file .wp-block-file__button:hover,
+.wp-block-file .wp-block-file__button:focus {
+	background: transparent;
+	border-color: #f68060;
+	color: #f68060;
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Formatting
+--------------------------------------------------------------*/
+
+/* Verse */
+
+.wp-block-verse pre {
+	font-style: italic;
+}
+
+/* Code */
+
+.wp-block-code {
+	background: rgba(0, 0, 0, 0.03);
+	border: 0;
+	border-radius: 0;
+	padding: 27px;
+}
+
+.wp-block-code .editor-plain-text {
+	background: transparent;
+}
+
+/* Preformatted */
+
+.wp-block-preformatted {
+	background: rgba(0, 0, 0, 0.03);
+	border: 0;
+	font-family: "Courier 10 Pitch", Courier, monospace;
+	border-radius: 0;
+	padding: 27px;
+}
+
+/* Pullquote */
+
+.wp-block-pullquote {
+	border-top: 3px solid #eee;
+	border-bottom: 2px solid #eee;
+}
+
+.wp-block-pullquote blockquote,
+.wp-block-pullquote__citation {
+	border: 0;
+	color: #999;
+	font-style: italic;
+	padding-left: 0;
+	padding-right: 0;
+	text-align: center;
+	text-transform: none;
+}
+
+.wp-block-pullquote__citation {
+	font-size: inherit;
+}
+
+/* Table */
+
+.wp-block-table {
+	border: 0;
+}
+
+.wp-block-table th,
+.wp-block-table td {
+	border: 0;
+	border-bottom: 1px solid #eee;
+	font-weight: 400;
+	padding: 7px 3px 6px;
+}
+
+.wp-block-table th {
+	border-bottom-width: 3px;
+	font-weight: bold;
+	letter-spacing: 2px;
+	padding-bottom: 4px;
+	text-align: left;
+	text-transform: uppercase;
+}
+
+.wp-block-table__cell-content {
+	padding: 0;
+}
+
+.rtl .wp-block-table th {
+	text-align: right;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+
+.wp-block-button .wp-block-button__link {
+	background: transparent;
+	border: 3px solid #eeeeee;
+	border-radius: 3px;
+	color: #999999;
+	font-family: Lato, Helvetica, Arial, sans-serif;
+	font-size: 16px;
+	font-weight: 400;
+	letter-spacing: 2px;
+	padding: 10px 14px;
+	text-transform: uppercase;
+	-webkit-transition: all 0.3s ease-in-out;
+	-moz-transition: all 0.3s ease-in-out;
+	-o-transition: all 0.3s ease-in-out
+	transition: all 0.3s ease-in-out;
+}
+
+.wp-block-button__link:hover,
+.wp-block-button__link:focus {
+	background: transparent;
+	border-color: #f68060;
+	color: #f68060;
+}
+
+/* Separator */
+
+.wp-block-separator {
+	border-color: #eee;
+	border-width: 1px;
+}
+
+/*--------------------------------------------------------------
+6.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+/* Categories, Latest Posts & Archives */
+
+[data-align="center"] .wp-block-categories ul,
+[data-align="center"] .wp-block-latest-posts ul,
+[data-align="center"] .wp-block-archives ul {
+	list-style-position: inside;
+}
+
+/* Latest Comments */
+
+.wp-block-latest-comments {
+	margin-left: 0;
+	margin-right: 0;
+}
+
+.wp-block-latest-comments__comment-date {
+	color: #999;
+	font-size: 13px;
+	text-transform: uppercase;
+}
+
+.wp-block-latest-comments__comment {
+	font-size: 80%;
+}
+
+.wp-block-latest-comments__comment-excerpt p {
+	font-size: inherit;
+}
+
+.wp-block-latest-comments__comment-meta {
+	font-weight: 700;
+	letter-spacing: 2px;
+	text-transform: uppercase;
+}

+ 48 - 0
sketch/functions.php

@@ -102,6 +102,38 @@ function sketch_setup() {
 	 * See: https://wordpress.org/plugins/eventbrite-api/
 	 */
 	add_theme_support( 'eventbrite' );
+
+		// Add support for responsive embeds.
+	add_theme_support( 'responsive-embeds' );
+
+	// Add support for custom color scheme.
+	add_theme_support( 'editor-color-palette', array(
+		array(
+			'name'  => esc_html__( 'Orange', 'sketch' ),
+			'slug'  => 'orange',
+			'color' => '#f68060',
+		),
+		array(
+			'name'  => esc_html__( 'Dark Gray', 'sketch' ),
+			'slug'  => 'dark-gray',
+			'color' => '#333',
+		),
+		array(
+			'name'  => esc_html__( 'Medium Gray', 'sketch' ),
+			'slug'  => 'medium-gray',
+			'color' => '#999',
+		),
+		array(
+			'name'  => esc_html__( 'Light Gray', 'sketch' ),
+			'slug'  => 'light-gray',
+			'color' => '#eee',
+		),
+		array(
+			'name'  => esc_html__( 'White', 'sketch' ),
+			'slug'  => 'white',
+			'color' => '#fff',
+		),
+	) );
 }
 endif; // sketch_setup
 add_action( 'after_setup_theme', 'sketch_setup' );
@@ -131,6 +163,10 @@ function sketch_scripts() {
 	wp_enqueue_style( 'sketch-style', get_stylesheet_uri() );
 	wp_enqueue_style( 'sketch-lato', sketch_fonts_url(), array(), null );
 
+	// Block stylesheets
+	wp_enqueue_style( 'sketch-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'sketch-style' ), '20181018' );
+
+
 	wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1' );
 
 	if ( sketch_has_featured_posts( 2 ) && is_page_template( 'portfolio-page.php' ) ) {
@@ -152,6 +188,18 @@ function sketch_scripts() {
 }
 add_action( 'wp_enqueue_scripts', 'sketch_scripts' );
 
+/**
+ * Enqueue editor styles for Gutenberg
+ */
+function sketch_block_editor_styles() {
+	// Block styles.
+	wp_enqueue_style( 'sketch-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
+
+	// Font styles.
+	wp_enqueue_style( 'sketch-fonts', sketch_fonts_url(), array(), null );
+}
+add_action( 'enqueue_block_editor_assets', 'sketch_block_editor_styles' );
+
 /**
  * Register Google Fonts
  */