Explorar o código

Pique: Building out Gutenberg styles and support in theme.

Laurel Fulford %!s(int64=6) %!d(string=hai) anos
pai
achega
9977e1e360
Modificáronse 4 ficheiros con 980 adicións e 0 borrados
  1. 549 0
      pique/assets/css/blocks.css
  2. 366 0
      pique/assets/css/editor-blocks.css
  3. 60 0
      pique/functions.php
  4. 5 0
      pique/inc/extras.php

+ 549 - 0
pique/assets/css/blocks.css

@@ -0,0 +1,549 @@
+/*
+Theme Name: Pique
+Description: Used to style Gutenberg Blocks.
+*/
+
+/*--------------------------------------------------------------
+>>> TABLE OF CONTENTS:
+----------------------------------------------------------------
+1.0 Block Alignments
+2.0 General Block Styles
+3.0 Blocks - Common Blocks
+4.0 Blocks - Formatting
+5.0 Blocks - Layout Elements
+6.0 Blocks - Widgets
+7.0 Blocks - Colors
+--------------------------------------------------------------*/
+
+/*--------------------------------------------------------------
+1.0 Block Alignments
+--------------------------------------------------------------*/
+
+.site-content {
+	overflow-x: hidden;
+}
+
+.alignfull,
+.alignwide {
+	clear: both;
+}
+
+body:not(.pique-sidebar).pique-singular .alignfull,
+body.home .alignfull {
+	margin-left: calc(50% - 50vw);
+	margin-right: calc(50% - 50vw);
+	width: auto;
+	max-width: 1400px;
+}
+
+body:not(.pique-sidebar).pique-singular .alignwide,
+body.home .alignwide {
+	margin-left: calc(25% - 25vw);
+	margin-right: calc(25% - 25vw);
+	width: auto;
+	max-width: 1400px;
+}
+
+@media (min-width: 1400px) {
+	body:not(.pique-sidebar).pique-singular .alignwide,
+	body.home .alignwide {
+		margin-left: -15%;
+		margin-right: -15%;
+	}
+}
+
+body:not(.pique-sidebar).pique-singular .wp-block-embed.is-type-video.alignfull iframe,
+body:not(.pique-sidebar).pique-singular .wp-block-embed.is-type-video.alignwide iframe,
+body.home .wp-block-embed.is-type-video.alignfull iframe,
+body.home .wp-block-embed.is-type-video.alignwide iframe {
+	width: 100% !important;
+	height: 100% !important;
+}
+
+/* Make non image-based blocks a bit narrower, so they don't get cut off. */
+
+body:not(.pique-sidebar).pique-singular .wp-block-columns.alignfull,
+body:not(.pique-sidebar).pique-singular .wp-block-audio.alignfull,
+body:not(.pique-sidebar).pique-singular .wp-block-table.alignfull,
+body:not(.pique-sidebar).pique-singular .wp-block-latest-comments.alignfull,
+body:not(.pique-sidebar).pique-singular .wp-block-latest-posts.alignfull,
+body:not(.pique-sidebar).pique-singular .wp-block-categories.alignfull,
+body:not(.pique-sidebar).pique-singular .wp-block-archives.alignfull {
+	margin-left: calc(50% - 48vw);
+	margin-right: calc(50% - 48vw);
+}
+
+/* When sidebar is below the content */
+
+@media (max-width: 999px) {
+	body.pique-sidebar.pique-singular .alignwide {
+		margin-left: -15%;
+		margin-right: -15%;
+		width: auto;
+		max-width: 1400px;
+	}
+
+	body.pique-sidebar.pique-singular .alignfull {
+		margin-left: calc(50% - 50vw);
+		margin-right: calc(50% - 50vw);
+		width: auto;
+		max-width: 1400px;
+	}
+
+	/* Make non image-based blocks a bit narrower, so they don't get cut off. */
+	body.pique-sidebar.pique-singular .wp-block-columns.alignfull,
+	body.pique-sidebar.pique-singular .wp-block-audio.alignfull,
+	body.pique-sidebar.pique-singular .wp-block-table.alignfull,
+	body.pique-sidebar.pique-singular .wp-block-latest-comments.alignfull,
+	body.pique-sidebar.pique-singular .wp-block-latest-posts.alignfull,
+	body.pique-sidebar.pique-singular .wp-block-categories.alignfull,
+	body.pique-sidebar.pique-singular .wp-block-archives.alignfull {
+		margin-left: calc(50% - 48vw);
+		margin-right: calc(50% - 48vw);
+	}
+}
+
+/* Make sure the full and wide blocks still stay in Twenty Thirteen's wide container */
+
+@media (min-width: 1400px) {
+	body:not(.pique-sidebar).pique-singular .alignfull,
+	body.home .alignfull {
+		margin-left: calc(50% - 700px);
+		margin-right: calc(50% - 700px);
+		width: auto;
+		max-width: 1000%;
+	}
+
+	/* Make non image-based blocks a bit narrower, so they don't get cut off. */
+
+	body:not(.pique-sidebar).pique-singular .wp-block-columns.alignfull,
+	body.home .wp-block-columns.alignfull,
+	body:not(.pique-sidebar).pique-singular .wp-block-audio.alignfull,
+	body.home .wp-block-audio.alignfull,
+	body:not(.pique-sidebar).pique-singular .wp-block-table.alignfull,
+	body.home .wp-block-table.alignfull,
+	body:not(.pique-sidebar).pique-singular .wp-block-latest-comments.alignfull,
+	body.home .wp-block-latest-comments.alignfull,
+	body:not(.pique-sidebar).pique-singular .wp-block-latest-posts.alignfull,
+	body.home .wp-block-latest-posts.alignfull,
+	body:not(.pique-sidebar).pique-singular .wp-block-categories.alignfull,
+	body.home .wp-block-categories.alignfull,
+	body:not(.pique-sidebar).pique-singular .wp-block-archives.alignfull,
+	body.home .wp-block-archives.alignfull {
+		margin-left: calc(50% - 680px);
+		margin-right: calc(50% - 680px);
+	}
+}
+
+/*--------------------------------------------------------------
+2.0 General Block Styles
+--------------------------------------------------------------*/
+
+/* Caption */
+
+[class^="wp-block-"] figcaption {
+	color: inherit;
+	font-size: inherit;
+	font-style: italic;
+}
+
+/* Video */
+
+.wp-block-embed.is-type-video iframe {
+	max-height: 100%;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+p.has-drop-cap:not(:focus)::first-letter {
+	font-size: 5em;
+	margin-top: 0.15em;
+}
+
+/* Gallery */
+
+.wp-block-gallery {
+	margin: 0 0 1.5em;
+}
+
+.wp-block-gallery .blocks-gallery-image figcaption,
+.wp-block-gallery .blocks-gallery-item figcaption {
+	font-size: 15px;
+}
+
+/* Quote */
+
+.wp-block-quote.is-large,
+.wp-block-quote.is-style-large {
+
+}
+
+.rtl .wp-block-quote.is-large,
+.rtl .wp-block-quote.is-style-large {
+
+}
+
+/* Audio */
+
+.wp-block-audio {
+	margin: 0 0 1.5em;
+}
+
+.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-color: #83b6cc;
+	border: 2px solid transparent;
+	border-radius: 2em;
+	color: #eff6f9;
+	display: inline-block;
+	font-family: Karla, Arial, sans-serif;
+	font-size: 15.2px;
+	font-size: 0.95rem;
+	font-weight: bold;
+	letter-spacing: 1px;
+	line-height: 1;
+	padding: 1em 3em;
+	text-shadow: none;
+	text-transform: uppercase;
+	transition: background-color 0.125s ease-in;
+	-webkit-appearance: none;
+
+}
+
+.wp-block-file a.wp-block-file__button:hover {
+	background-color: transparent;
+	border-color: currentColor;
+	color: #83b6cc;
+}
+
+.wp-block-file a.wp-block-file__button:focus,
+.wp-block-file a.wp-block-file__button:active {
+	background-color: #4488a5;
+	border-color: currentColor;
+	color: #83b6cc;
+}
+
+.rtl .wp-block-file * + .wp-block-file__button {
+	margin-left: .75em;
+	margin-right: 0;
+}
+
+/* Video */
+
+.wp-block-video video {
+	width: 100%;
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Formatting
+--------------------------------------------------------------*/
+
+/* Verse */
+
+.wp-block-verse {
+	font-family: inherit;
+	font-size: inherit;
+	font-style: italic;
+	padding: 0;
+}
+
+/* Preformatted */
+
+.wp-block-preformatted {
+	padding: 0;
+}
+
+/* Pullquote */
+
+.wp-block-pullquote blockquote p {
+	text-align: center;
+}
+
+.wp-block-pullquote cite {
+	font-family: "Lora", Georgia, serif;
+	font-size: 18px;
+	font-weight: normal;
+	letter-spacing: 0;
+	text-align: center;
+	text-transform: none;
+}
+
+.wp-block-pullquote cite:before {
+	display: none;
+}
+
+/* Table */
+
+.wp-block-table th {
+	text-align: left;
+
+}
+
+@media (min-width: 950px) {
+	body:not(.has-sidebar):not(.lodestar-front-page) .wp-block-table.alignwide,
+	body.lodestar-front-page:not(.has-sidebar) .lodestar-panel:not(.two-column) .wp-block-table.alignwide {
+		width: 1115px;
+	}
+}
+
+body:not(.has-sidebar):not(.lodestar-front-page) .wp-block-table.alignfull,
+body.lodestar-front-page:not(.has-sidebar) .lodestar-panel:not(.two-column) .wp-block-table.alignfull {
+	width: 96vw;
+}
+
+.rtl .wp-block-table th {
+	text-align: right;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+
+.wp-block-button .wp-block-button__link:not(.has-text-color) {
+	color: #eff6f9;
+}
+
+.wp-block-button .wp-block-button__link:not(.has-background) {
+	background-color: #83b6cc;
+}
+
+.wp-block-button .wp-block-button__link {
+	border: 2px solid transparent;
+	border-radius: 2em;
+	display: inline-block;
+	font-family: Karla, Arial, sans-serif;
+	font-size: 15.2px;
+	font-size: 0.95rem;
+	font-weight: bold;
+	letter-spacing: 1px;
+	line-height: 1;
+	padding: 1em 3em;
+	text-shadow: none;
+	text-transform: uppercase;
+	transition: background-color 0.125s ease-in;
+	-webkit-appearance: none;
+}
+
+.wp-block-button__link:hover {
+	background-color: transparent;
+	border-color: currentColor;
+	color: #83b6cc;
+}
+
+.wp-block-button__link:focus,
+.wp-block-button__link:active {
+	background-color: #4488a5;
+	border-color: currentColor;
+	color: #83b6cc;
+}
+
+@media (max-width: 767px) {
+	.wp-block-button .wp-block-button__link {
+		width: 75%;
+	}
+}
+
+/* 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: 1.5em;
+}
+
+.wp-block-media-text *:last-child {
+	margin-bottom: 0;
+}
+
+/*--------------------------------------------------------------
+6.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: inherit;
+}
+
+/* Latest Posts */
+
+.wp-block-latest-posts.is-grid {
+	margin-left: 0;
+	margin-right: 0;
+}
+
+/*--------------------------------------------------------------
+7.0 Blocks - Colors
+--------------------------------------------------------------*/
+
+.has-light-blue-color,
+.has-light-blue-color:hover,
+.has-light-blue-color:focus,
+.has-light-blue-color:active,
+.has-light-blue-color:visited {
+	color: #83b6cc;
+}
+
+.has-light-blue-background-color,
+.has-light-blue-background-color:hover,
+.has-light-blue-background-color:focus,
+.has-light-blue-background-color:active,
+.has-light-blue-background-color:visited {
+	background-color: #83b6cc;
+}
+
+.has-medium-blue-color,
+.has-medium-blue-color:hover,
+.has-medium-blue-color:focus,
+.has-medium-blue-color:active,
+.has-medium-blue-color:visited {
+	color: #3c7993;
+}
+
+.has-medium-blue-background-color,
+.has-medium-blue-background-color:hover,
+.has-medium-blue-background-color:focus,
+.has-medium-blue-background-color:active,
+.has-medium-blue-background-color:visited {
+	background-color: #3c7993;
+}
+
+.has-dark-blue-color,
+.has-dark-blue-color:hover,
+.has-dark-blue-color:focus,
+.has-dark-blue-color:active,
+.has-dark-blue-color:visited {
+	color: #293940;
+}
+
+.has-dark-blue-background-color,
+.has-dark-blue-background-color:hover,
+.has-dark-blue-background-color:focus,
+.has-dark-blue-background-color:active,
+.has-dark-blue-background-color:visited {
+	background-color: #293940;
+}
+
+.has-dark-brown-color,
+.has-dark-brown-color:hover,
+.has-dark-brown-color:focus,
+.has-dark-brown-color:active,
+.has-dark-brown-color:visited {
+	color: #2d2a26;
+}
+
+.has-dark-brown-background-color,
+.has-dark-brown-background-color:hover,
+.has-dark-brown-background-color:focus,
+.has-dark-brown-background-color:active,
+.has-dark-brown-background-color:visited {
+	background-color: #2d2a26;
+}
+
+.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: #5d5d5d;
+}
+
+.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: #5d5d5d;
+}
+
+.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: #a9a9a9;
+}
+
+.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: #a9a9a9;
+}
+
+.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;
+}

+ 366 - 0
pique/assets/css/editor-blocks.css

@@ -0,0 +1,366 @@
+/*
+Theme Name: Pique
+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 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 {
+
+}
+
+/* Color */
+
+.edit-post-visual-editor .editor-block-list__block {
+
+}
+
+/* Post title */
+
+.editor-post-title__block .editor-post-title__input {
+
+}
+
+/* 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 {
+
+}
+
+.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 {
+
+}
+
+/*--------------------------------------------------------------
+2.0 General Block Settings
+--------------------------------------------------------------*/
+
+/* Main content width */
+
+.wp-block {
+	max-width: 730px; /* 700px + 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 {
+
+}
+
+/* Table styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce table {
+
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table,
+.wp-block-freeform.block-library-rich-text__tinymce table th,
+.wp-block-freeform.block-library-rich-text__tinymce table td {
+
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table th,
+.wp-block-freeform.block-library-rich-text__tinymce table td {
+	padding: 0.5em;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce td,
+.rtl .wp-block-freeform.block-library-rich-text__tinymce th {
+	text-align: right;
+}
+
+/* Quote styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote {
+
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
+
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
+
+}
+
+/* List styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce li,
+.editor-styles-wrapper li {
+	margin-bottom: 0;
+}
+
+/* Code styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce code {
+	background: transparent;
+}
+
+/* Caption styles */
+
+[class^="wp-block-"] figcaption {
+
+}
+
+[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
+
+}
+
+/* Definition List styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce dt {
+	font-weight: bold;
+}
+
+/* Pre styles */
+
+.wp-block-freeform.block-library-rich-text__tinymce pre {
+
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+p.has-drop-cap:not(:focus)::first-letter {
+	font-size: 5em;
+	margin-top: 0.15em;
+}
+
+/* Quote */
+
+.editor-styles-wrapper .wp-block-quote,
+.wp-block-quote:not(.is-large):not(.is-style-large) {
+
+}
+
+.wp-block-quote .wp-block-quote__citation {
+
+}
+
+.wp-block-quote.is-large p,
+.wp-block-quote.is-style-large p {
+
+}
+
+.wp-block-quote.is-large .wp-block-quote__citation,
+.wp-block-quote.is-style-large .wp-block-quote__citation {
+
+}
+
+.rtl .editor-styles-wrapper .wp-block-quote,
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large) {
+
+}
+
+/* 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 {
+
+}
+
+.wp-block-file__textlink:hover,
+.wp-block-file__textlink:focus {
+
+}
+
+.editor-styles-wrapper .wp-block-file .mce-content-body.wp-block-file__button {
+
+}
+
+.wp-block-file .wp-block-file__button,
+.wp-block-file .wp-block-file__button:visited {
+
+}
+
+.wp-block-file .wp-block-file__button:hover,
+.wp-block-file .wp-block-file__button:focus,
+.wp-block-file .wp-block-file__button:active {
+
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Formatting
+--------------------------------------------------------------*/
+
+/* Verse */
+
+.wp-block-verse {
+
+}
+
+.wp-block-verse pre {
+
+}
+
+/* Code */
+
+.wp-block-code {
+	border: none;
+	border-radius: 0;
+}
+
+.wp-block-code textarea {
+	background: transparent;
+}
+
+/* Preformatted */
+
+.wp-block-preformatted {
+
+}
+
+/* Pullquote */
+
+.wp-block-pullquote {
+
+}
+
+.wp-block-pullquote__citation {
+
+}
+
+.wp-block-pullquote.alignleft blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
+.wp-block-pullquote.alignright blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
+.wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
+.wp-block-pullquote.alignright blockquote > .editor-rich-text p {
+	font-size: 20px;
+}
+
+/* Table */
+
+.wp-block-table th,
+.wp-block-table td {
+
+}
+
+.wp-block-table th {
+	text-align: left;
+}
+
+.wp-block-table__cell-content {
+	padding: 0.5em;
+}
+
+.rtl .wp-block-table th {
+	text-align: right;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+
+.wp-block-button .wp-block-button__link {
+
+}
+
+.wp-block-button__link:hover,
+.wp-block-button__link:focus,
+.wp-block-button__link:active {
+
+}
+
+/* Separator */
+
+.wp-block-separator {
+}
+
+/*--------------------------------------------------------------
+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 */
+
+.editor-styles-wrapper .wp-block-latest-comments {
+	padding-left: 0;
+	padding-right: 0;
+}
+
+.wp-block-latest-comments__comment-date {
+	color: inherit;
+}

+ 60 - 0
pique/functions.php

@@ -83,6 +83,51 @@ if ( ! function_exists( 'pique_setup' ) ) :
 			'default-color' => 'ffffff',
 			'default-image' => '',
 		) ) );
+
+		// Add support for responsive embeds.
+		add_theme_support( 'responsive-embeds' );
+
+		// Add support for full and wide align images.
+		add_theme_support( 'align-wide' );
+
+		// Add support for custom color scheme.
+		add_theme_support( 'editor-color-palette', array(
+			array(
+				'name'  => esc_html__( 'Dark Blue', 'pique' ),
+				'slug'  => 'dark-blue',
+				'color' => '#293940',
+			),
+			array(
+				'name'  => esc_html__( 'Medium Blue', 'pique' ),
+				'slug'  => 'medium-blue',
+				'color' => '#3c7993',
+			),
+			array(
+				'name'  => esc_html__( 'Light Blue', 'pique' ),
+				'slug'  => 'light-blue',
+				'color' => '#83b6cc',
+			),
+			array(
+				'name'  => esc_html__( 'Dark Brown', 'pique' ),
+				'slug'  => 'dark-brown',
+				'color' => '#2d2a26',
+			),
+			array(
+				'name'  => esc_html__( 'Dark Gray', 'pique' ),
+				'slug'  => 'dark-gray',
+				'color' => '#5d5d5d',
+			),
+			array(
+				'name'  => esc_html__( 'Medium Gray', 'pique' ),
+				'slug'  => 'medium-gray',
+				'color' => '#a9a9a9',
+			),
+			array(
+				'name'  => esc_html__( 'White', 'pique' ),
+				'slug'  => 'white',
+				'color' => '#fff',
+			),
+		) );
 	}
 endif; // pique_setup
 add_action( 'after_setup_theme', 'pique_setup' );
@@ -216,6 +261,9 @@ function pique_scripts() {
 	wp_enqueue_style( 'pique-style', get_stylesheet_uri(), array(), null, 'screen' );
 	wp_enqueue_style( 'pique-fonts', pique_fonts_url(), array(), null );
 
+	// Block stylesheets
+	wp_enqueue_style( 'pique-block-style', get_template_directory_uri() . '/assets/css/blocks.css', array( 'pique-style' ), '20181018' );
+
 	// Background fix for iOS
 	if ( is_front_page() || is_home() ) :
 		wp_enqueue_script( 'pique-background-fix', get_template_directory_uri() . '/assets/js/background-fix.js', array( 'jquery' ), '20170302', true );
@@ -248,6 +296,18 @@ function pique_scripts() {
 }
 add_action( 'wp_enqueue_scripts', 'pique_scripts' );
 
+/**
+ * Enqueue editor styles for Gutenberg
+ */
+function pique_block_editor_styles() {
+	// Block styles.
+	wp_enqueue_style( 'pique-block-editor-style', get_template_directory_uri() . '/assets/css/editor-blocks.css' );
+
+	// Font styles.
+	wp_enqueue_style( 'pique-fonts', pique_fonts_url(), array(), null );
+}
+add_action( 'enqueue_block_editor_assets', 'pique_block_editor_styles' );
+
 /**
  * Filter the front page template so it's bypassed entirely if the user selects
  * to display blog posts on their homepage instead of a static page.

+ 5 - 0
pique/inc/extras.php

@@ -67,6 +67,11 @@ function pique_body_classes( $classes ) {
 		$classes[] = 'pique-sidebar';
 	endif;
 
+	// Adds a class on single CPTs.
+	if ( is_singular() ) {
+		$classes[] = 'pique-singular';
+	}
+
 	return $classes;
 }
 add_filter( 'body_class', 'pique_body_classes' );