Browse Source

First pass at Gutenberg support.

Caroline Moore 6 years ago
parent
commit
cfd978ed5f
3 changed files with 1337 additions and 0 deletions
  1. 479 0
      ixion/blocks.css
  2. 795 0
      ixion/editor-blocks.css
  3. 63 0
      ixion/functions.php

+ 479 - 0
ixion/blocks.css

@@ -0,0 +1,479 @@
+/*
+Theme Name: Ixion
+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: 0.8em 0;
+	text-align: center;
+}
+
+/*--------------------------------------------------------------
+2.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+p.has-drop-cap:not(:focus)::first-letter {
+	font-size: 124px;
+}
+
+/* Images */
+
+.wp-block-cover,
+.wp-block-cover.alignleft,
+.wp-block-cover.alignright,
+.wp-block-cover.aligncenter {
+	display: flex;
+}
+
+/* Full Width */
+figure.alignfull,
+.wp-block-cover.alignfull,
+.wp-block-gallery.alignfull,
+.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% );
+}
+
+.wp-block-embed.is-type-video.alignfull iframe {
+	width: 100% !important;
+	height: 100% !important;
+}
+
+.rtl figure.alignfull,
+.rtl .wp-block-cover.alignfull,
+.rtl .wp-block-gallery.alignfull,
+.rtl .wp-block-embed.is-type-video.alignfull {
+	left: auto;
+	right: 50%;
+	transform: translateX(50%);
+}
+
+/* Wide Width */
+
+@media (min-width: 1024px) {
+	figure.alignwide,
+	.wp-block-cover.alignwide,
+	.wp-block-gallery.alignwide,
+	.wp-block-embed.is-type-video.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;
+	}
+}
+
+/* Gallery */
+
+.wp-block-gallery {
+	margin-bottom: 1.5em;
+	margin-left: auto;
+}
+
+.rtl .wp-block-gallery:not(.alignfull):not(.alignwide) {
+	margin-right: auto;
+}
+
+/* Quote */
+
+.wp-block-quote {
+	margin-bottom: 1.5em;
+}
+
+.wp-block-quote,
+.wp-block-quote.is-large p,
+.wp-block-quote.is-style-large p {
+}
+
+.wp-block-quote.alignleft {
+	margin-right: 1.5em;
+}
+
+.wp-block-quote.alignright {
+	margin-left: 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 cite {
+}
+
+.wp-block-quote cite:before {
+}
+
+.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 {
+}
+
+.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;
+}
+
+/* Audio */
+
+.wp-block-audio audio {
+	display: block;
+	width: 100%;
+}
+
+/* File */
+
+.wp-block-file a.wp-block-file__button,
+.wp-block-file a.wp-block-file__button:visited {
+	border: 0;
+	border-radius: 0;
+	background: #d7b221;
+	box-shadow: none;
+	color: white;
+	font-size: 16px;
+	font-weight: bold;
+	text-transform: uppercase;
+	letter-spacing: 1px;
+	line-height: 1;
+	padding: 1.4em 1.6em 1.2em;
+	transition: 0.3s;
+}
+
+.wp-block-file a.wp-block-file__button:hover,
+.wp-block-file a.wp-block-file__button:focus {
+	background: #c1a01e;
+	box-shadow: none;
+	color: #fff;
+	transition: 0.3s;
+	text-decoration: none;
+}
+
+.rtl .wp-block-file * + .wp-block-file__button {
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Formatting Blocks
+--------------------------------------------------------------*/
+
+/* Verse */
+
+.wp-block-verse {
+	background: transparent;
+	color: inherit;
+	font-family: inherit;
+	font-size: inherit;
+	line-height: inherit;
+	margin-bottom: 1.5em;
+	max-width: 100%;
+	overflow: auto;
+	padding: 0;
+}
+
+/* Code */
+
+.wp-block-code {
+	background: #eee;
+	font-family: "Courier 10 Pitch", Courier, monospace;
+	font-size: 15px;
+	line-height: 1.6;
+	margin-bottom: 1.875em;
+	max-width: 100%;
+	overflow: auto;
+	padding: 1.875em;
+}
+
+/* Pullquote */
+
+.wp-block-pullquote {
+	margin: 0;
+	padding: 0;
+	border: 0;
+}
+
+.wp-block-pullquote blockquote {
+	border-top: 2px solid currentColor;
+	border-bottom: 2px solid currentColor;
+	font-style: italic;
+	font-size: 24px;
+	margin: 0 0 1.5em;
+	padding: .8em 0;
+}
+
+.wp-block-pullquote.alignleft p,
+.wp-block-pullquote.alignright p {
+	font-size: 24px;
+}
+
+.wp-block-pullquote.alignleft {
+	margin-right: 1.5em;
+}
+
+.wp-block-pullquote.alignright {
+	margin-left: 1.5em;
+}
+
+.wp-block-pullquote.alignfull blockquote {
+	padding-left: 1.5em;
+	padding-right: 1.5em;
+}
+
+.rtl .wp-block-pullquote {
+}
+
+.wp-block-pullquote p {
+	margin: 0;
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+
+.wp-block-button .wp-block-button__link {
+	border: 0;
+	border-radius: 0;
+	box-shadow: none;
+	font-size: 16px;
+	font-weight: bold;
+	text-transform: uppercase;
+	letter-spacing: 1px;
+	line-height: 1;
+	padding: 1.4em 1.6em 1.2em;
+	transition: 0.3s;
+}
+
+.wp-block-button .wp-block-button__link:active,
+.wp-block-button .wp-block-button__link:hover,
+.wp-block-button .wp-block-button__link:focus {
+	box-shadow: none;
+	transition: 0.3s;
+	text-decoration: none;
+}
+
+.wp-block-button__link:not(.has-background) {
+	background: #d7b221;
+}
+
+.wp-block-button__link:not(.has-text-color) {
+	color: #fff;
+}
+
+.wp-block-button__link:not(.has-text-color):active,
+.wp-block-button__link:not(.has-text-color):focus,
+.wp-block-button__link:not(.has-text-color):hover {
+	color: #fff;
+}
+
+.wp-block-button__link:not(.has-background):active,
+.wp-block-button__link:not(.has-background):focus,
+.wp-block-button__link:not(.has-background):hover {
+	background: #c1a01e;
+}
+
+/* Seperator */
+
+hr.wp-block-separator {
+	border: 0;
+}
+
+.wp-block-separator {
+	background-color: #eeece8;
+	border: 0;
+	height: 1px;
+	margin-bottom: 1.5em;
+	max-width: 66%;
+}
+
+.wp-block-separator.is-style-wide {
+	max-width: 100%;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Widget Blocks
+--------------------------------------------------------------*/
+
+/* Categories */
+
+.wp-block-categories.aligncenter {
+	margin-left: 1.5em;
+	margin-right: 1.5em;
+	text-align: center;
+}
+
+.wp-block-categories-list.alignleft {
+	margin-left: 1.5em;
+}
+
+/* Latest Comments */
+
+.wp-block-latest-comments {
+	margin-left: 0;
+	margin-right: 0;
+}
+
+.editor-block-list__block .wp-block-latest-comments__comment-meta a {
+	box-shadow: none;
+	font-weight: 700;
+	text-decoration: none;
+}
+
+.wp-block-latest-comments__comment-date {
+}
+
+.wp-block-latest-comments .wp-block-latest-comments__comment {
+	border-top: 1px solid #eeece8;
+	margin-bottom: 0;
+	padding: .8em 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: #333333;
+}
+
+.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: #333333;
+}
+
+.has-dark-green-color,
+.has-dark-green-color:hover,
+.has-dark-green-color:focus,
+.has-dark-green-color:active {
+	color: #557d73;
+}
+
+.has-dark-green-background-color,
+.has-dark-green-background-color:hover,
+.has-dark-green-background-color:focus,
+.has-dark-green-background-color:active {
+	background-color: #557d73;
+}
+
+.has-light-gray-color,
+.has-light-gray-color:hover,
+.has-light-gray-color:focus,
+.has-light-gray-color:active {
+	color: #eeece8;
+}
+
+.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: #eeece8;
+}
+
+.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-yellow-color,
+.has-yellow-color:hover,
+.has-yellow-color:focus,
+.has-yellow-color:active {
+	color: #81699b;
+}
+
+.has-yellow-background-color,
+.has-yellow-background-color:hover,
+.has-yellow-background-color:focus,
+.has-yellow-background-color:active {
+	background-color: #81699b;
+}
+
+.has-dark-yellow-color,
+.has-dark-yellow-color:hover,
+.has-dark-yellow-color:focus,
+.has-dark-yellow-color:active {
+	color: #553a72;
+}
+
+.has-dark-yellow-background-color,
+.has-dark-yellow-background-color:hover,
+.has-dark-yellow-background-color:focus,
+.has-dark-yellow-background-color:active {
+	background-color: #553a72;
+}
+
+.has-black-color,
+.has-black-color:hover,
+.has-black-color:focus,
+.has-black-color:active {
+	color: #222222;
+}
+
+.has-black-background-color,
+.has-black-background-color:hover,
+.has-black-background-color:focus,
+.has-black-background-color:active {
+	background-color: #222222;
+}

+ 795 - 0
ixion/editor-blocks.css

@@ -0,0 +1,795 @@
+
+/*
+ * Theme Name: Ixion
+ * 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 {
+	font-family: Lato, Helvetica, sans-serif;
+	font-size: 18px;
+	font-weight: 300;
+	line-height: 1.5;
+	color: #000;
+}
+
+.alignleft {
+	display: inline;
+	float: left;
+	margin: .75em 1.5em .75em 0;
+}
+
+.alignright {
+	display: inline;
+	float: right;
+	margin: .75em 0 .75em 1.5em;
+}
+
+.aligncenter {
+	margin-left: auto;
+	margin-right: auto;
+}
+
+/* Title */
+
+.editor-post-title__block .editor-post-title__input {
+	font-family: Lato, Helvetica, sans-serif;
+	font-weight: bold;
+	clear: both;
+	font-size: 42px;
+	margin: .375em 0;
+	text-transform: uppercase;
+}
+
+@media screen and (min-width: 784px) {
+	.editor-post-title__block .editor-post-title__input {
+		font-size: 80px;
+		margin: .1875em 0;
+	}
+}
+
+/* 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 {
+	font-weight: bold;
+	clear: both;
+	margin: .75em 0;
+	text-transform: uppercase;
+}
+
+.edit-post-visual-editor h1 {
+	font-size: 42px;
+	margin: .375em 0;
+}
+
+.edit-post-visual-editor h2 {
+	font-size: 30px;
+	line-height: 1.4;
+
+	margin: .375em 0;
+}
+
+.edit-post-visual-editor h3 {
+	font-size: 24px;
+	line-height: 1.3;
+
+	text-transform: none;
+}
+
+.edit-post-visual-editor h4 {
+	font-size: 20px;
+}
+
+.edit-post-visual-editor h5 {
+	font-size: 18px;
+}
+
+.edit-post-visual-editor h6 {
+	font-size: 14px;
+}
+
+@media screen and (min-width: 784px) {
+	.edit-post-visual-editor h1 {
+		font-size: 80px;
+		margin: .1875em 0;
+	}
+
+	.edit-post-visual-editor h2 {
+		font-size: 42px;
+		margin: .1875em 0;
+	}
+
+	.edit-post-visual-editor h3 {
+		font-size: 30px;
+	}
+
+	.edit-post-visual-editor h4 {
+		font-size: 20px;
+	}
+
+	.edit-post-visual-editor h5 {
+		font-size: 18px;
+	}
+
+	.edit-post-visual-editor h6 {
+		font-size: 14px;
+	}
+}
+
+/* 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-size: 14px;
+}
+
+/*--------------------------------------------------------------
+2.0 General Block Styles
+--------------------------------------------------------------*/
+
+/* Main column width */
+
+.wp-block {
+	max-width: 690px; /* 660px + 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: #81699b;
+	-webkit-transition: .3s all ease-in-out;
+	   -moz-transition: .3s all ease-in-out;
+			transition: .3s all ease-in-out;
+}
+
+.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: #557d73;
+}
+
+/* List styles */
+
+.edit-post-visual-editor ul:not(.wp-block-gallery),
+.editor-block-list__block ul:not(.wp-block-gallery),
+.block-library-list ul,
+.edit-post-visual-editor ol,
+.editor-block-list__block ol,
+.block-library-list ol.editor-rich-text__tinymce {
+	margin: 0 0 1.5em 3em;
+	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;
+}
+
+.edit-post-visual-editor ol,
+.editor-block-list__block ol,
+.block-library-list ol.editor-rich-text__tinymce {
+	list-style: decimal;
+}
+
+.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.editor-rich-text__tinymce {
+	margin-left: 0;
+	margin-right: 1.5em;
+	padding: 0;
+}
+
+/* Captions */
+
+[class^="wp-block-"] figcaption {
+	font-size: 14px;
+}
+
+/*--------------------------------------------------------------
+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 1.5em;
+	border: 0;
+	padding: 0;
+}
+
+.editor-block-list__block .wp-block-quote {
+	font-style: italic;
+	margin: 0 1.5em;
+	color: #767676;
+}
+
+.edit-post-visual-editor .editor-block-list__block blockquote p:not(.wp-block-cover-text) {
+	font-size: 24px;
+	color: #767676;
+}
+
+.editor-block-list__block .wp-block-quote__citation {
+	color: #767676;
+	font-style: italic;
+	font-size: inherit;
+}
+
+.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: .75em 1.5em .75em 0;
+}
+
+.editor-block-list__block .wp-block-quote.alignright {
+	margin: .75em 0 .75em 1.5em;
+}
+
+.editor-block-list__block .wp-block-quote.aligncenter {
+	margin-bottom: .75em;
+}
+
+.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 {
+	margin: 0 .75em;
+	padding: 0;
+}
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large,
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large,
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
+	font-size: 32px;
+}
+
+.editor-block-list__block .wp-block-quote.is-large p,
+.editor-block-list__block .wp-block-quote.is-style-large p {
+	margin-bottom: .75em;
+}
+
+/* Audio */
+
+/* Cover Images */
+
+/* File */
+
+.wp-block-file .wp-block-file__button {
+	border-radius: 0;
+	font-size: 18px;
+	font-weight: bold;
+	line-height: 1;
+	padding: .75em;
+
+	cursor: pointer;
+	-webkit-transition: .3s all ease-in-out;
+	   -moz-transition: .3s all ease-in-out;
+			transition: .3s all ease-in-out;
+	text-transform: uppercase;
+
+	color: #222;
+	border: 2px solid #222;
+	background: transparent;
+	box-shadow: none;
+	text-shadow: none;
+}
+
+.wp-block-file .wp-block-file__button:hover,
+.wp-block-file .wp-block-file__button:focus {
+	-webkit-transition: .3s all ease-in-out;
+	   -moz-transition: .3s all ease-in-out;
+			transition: .3s all ease-in-out;
+	color: #fff;
+	border-color: #222;
+	background: #222;
+	box-shadow: 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: 'Courier 10 Pitch', Courier, monospace;
+	font-size: 15px;
+	line-height: 1.6;
+
+	overflow: auto;
+
+	max-width: 100%;
+	margin-bottom: 1.6em;
+	padding: 1.6em;
+
+	background: #eee;
+}
+
+/* Classic */
+
+.wp-block-freeform.block-library-rich-text__tinymce address {
+	margin-bottom: 1.5em;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce ol {
+	list-style: decimal;
+	margin-left: 3em;
+	padding: 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce li > ol {
+	margin-left: 1.5em;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote {
+	border: 0;
+	font-style: italic;
+	margin: 0 1.5em;
+	color: #767676;
+}
+
+.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;
+	text-transform: none;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
+	margin-right: 0;
+	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,
+.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 {
+	font-weight: bold;
+	clear: both;
+	margin: .75em 0;
+	text-transform: uppercase;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h1 {
+	font-size: 42px;
+	margin: .375em 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h2 {
+	font-size: 30px;
+	line-height: 1.4;
+
+	margin: .375em 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h3 {
+	font-size: 24px;
+	line-height: 1.3;
+
+	text-transform: none;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h4 {
+	font-size: 20px;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h5 {
+	font-size: 18px;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce h6 {
+	font-size: 14px;
+}
+
+@media screen and (min-width: 784px) {
+	.wp-block-freeform.block-library-rich-text__tinymce h1 {
+		font-size: 80px;
+		margin: .1875em 0;
+	}
+
+	.wp-block-freeform.block-library-rich-text__tinymce h2 {
+		font-size: 42px;
+		margin: .1875em 0;
+	}
+
+	.wp-block-freeform.block-library-rich-text__tinymce h3 {
+		font-size: 30px;
+	}
+
+	.wp-block-freeform.block-library-rich-text__tinymce h4 {
+		font-size: 20px;
+	}
+
+	.wp-block-freeform.block-library-rich-text__tinymce h5 {
+		font-size: 1em;
+	}
+
+	.wp-block-freeform.block-library-rich-text__tinymce h6 {
+		font-size: .778em;
+	}
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce pre {
+	font-family: 'Courier 10 Pitch', Courier, monospace;
+	font-size: 15px;
+	font-size: 1.5rem;
+	line-height: 1.6;
+
+	overflow: auto;
+
+	max-width: 100%;
+	margin-bottom: 1.6em;
+	padding: 1.6em;
+
+	background: #eee;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table {
+	width: 100%;
+	margin: 0 0 1.5em;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce .alternate {
+	background: transparent;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table td {
+	padding: 3px 5px;
+
+	border-bottom: 1px solid #aaa;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce table th {
+	font-weight: bold;
+
+	padding: 10px 5px 5px;
+
+	border-bottom: 4px solid #222;
+}
+
+.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 {
+	font-family: 'Courier 10 Pitch', Courier, monospace;
+	font-size: 15px;
+	line-height: 1.6;
+
+	overflow: auto;
+
+	max-width: 100%;
+	margin-bottom: 1.6em;
+	padding: 1.6em;
+
+	background: #eee;
+}
+
+/* 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 {
+	border-top: 2px solid currentColor;
+	border-bottom: 2px solid currentColor;
+	font-style: italic;
+	font-size: 24px;
+	margin: 0 0 1.5em;
+	padding: .75em 0;
+	color: #767676;
+}
+
+.wp-block-pullquote blockquote {
+	font-size: 24px;
+}
+
+.wp-block-pullquote.alignfull blockquote {
+	padding-left: 1.5em;
+	padding-right: 1.5em;
+}
+
+.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;
+	font-size: 24px;
+	margin: 0;
+}
+
+.wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
+.wp-block-pullquote.alignright blockquote > .editor-rich-text p {
+	font-size: 24px;
+}
+
+.wp-block-pullquote__citation,
+.wp-block-pullquote cite,
+.wp-block-pullquote footer {
+	font-style: italic;
+	font-size: inherit;
+	text-transform: none;
+}
+
+.wp-block-pullquote .wp-block-pullquote__citation:before {
+}
+
+.rtl .editor-block-list__block .wp-block-pullquote blockquote {
+}
+
+/* Table */
+
+.editor-block-list__block .wp-block-table__cell-content {
+	padding: 0;
+}
+
+.editor-block-list__block table.wp-block-table {
+	width: 100%;
+	margin: 0 0 1.5em;
+}
+
+.editor-block-list__block table.wp-block-table td {
+	border: 0;
+	padding: 3px 5px;
+	border-bottom: 1px solid #aaa;
+}
+
+.editor-block-list__block table.wp-block-table th {
+	font-weight: bold;
+
+	padding: 10px 5px 5px;
+
+	border-bottom: 4px solid #222;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+.wp-block-button .wp-block-button__link {
+	border-radius: 0;
+	font-size: 18px;
+	font-weight: bold;
+	line-height: 1;
+	padding: .75em;
+	cursor: pointer;
+	-webkit-transition: .3s all ease-in-out;
+	   -moz-transition: .3s all ease-in-out;
+			transition: .3s all ease-in-out;
+	text-transform: uppercase;
+	border: 2px solid currentColor;
+	box-shadow: none;
+	text-shadow: none;
+}
+
+.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: transparent;
+	border: 2px solid #222;
+}
+
+.wp-block-button__link:not(.has-background):focus {
+	border-color: #222;
+	background: #222;
+}
+
+.wp-block-button__link:not(.has-text-color) {
+	color: #222;
+}
+
+.wp-block-button__link:not(.has-text-color):active,
+.wp-block-button__link:not(.has-text-color):focus,
+.wp-block-button__link:not(.has-text-color):hover {
+	color: #fff;
+}
+
+.wp-block-button__link:not(.has-background):active,
+.wp-block-button__link:not(.has-background):focus,
+.wp-block-button__link:not(.has-background):hover {
+	background: #222;
+	border: 2px solid #222;
+}
+
+/* Separator */
+
+.wp-block-separator {
+	height: 1px;
+	margin-bottom: 1.5em;
+	border: 0;
+	background-color: #ccc;
+	max-width: 100%;
+}
+
+.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
+	max-width: 100%;
+}
+
+.wp-block-separator.is-style-wide {
+	max-width: 120%;
+	margin-left: -10%;
+	margin-right: -10%;
+}
+
+/*--------------------------------------------------------------
+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 #ccc;
+	margin-bottom: 0;
+	padding: .75em 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;
+}

+ 63 - 0
ixion/functions.php

@@ -27,6 +27,55 @@ if ( ! function_exists( 'ixion_setup' ) ) :
 		// Add default posts and comments RSS feed links to head.
 		// Add default posts and comments RSS feed links to head.
 		add_theme_support( 'automatic-feed-links' );
 		add_theme_support( 'automatic-feed-links' );
 
 
+		// Add support for 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', 'ixion' ),
+					'slug' => 'black',
+					'color' => '#222222',
+				),
+				array(
+					'name'  => esc_html__( 'Dark Gray', 'ixion' ),
+					'slug' => 'dark-gray',
+					'color' => '#333333',
+				),
+				array(
+					'name'  => esc_html__( 'Light Gray', 'ixion' ),
+					'slug' => 'light-gray',
+					'color' => '#cccccc',
+				),
+				array(
+					'name'  => esc_html__( 'White', 'ixion' ),
+					'slug' => 'white',
+					'color' => '#ffffff',
+				),
+				array(
+					'name'  => esc_html__( 'Yellow', 'ixion' ),
+					'slug' => 'yellow',
+					'color' => '#81699b',
+				),
+				array(
+					'name'  => esc_html__( 'Dark Yellow', 'ixion' ),
+					'slug' => 'dark-yellow',
+					'color' => '#553a72',
+				),
+				array(
+					'name'  => esc_html__( 'Dark Green', 'ixion' ),
+					'slug' => 'dark-green',
+					'color' => '#557d73',
+				),
+			)
+		);
+
 		/*
 		/*
 		 * Let WordPress manage the document title.
 		 * Let WordPress manage the document title.
 		 * By adding theme support, we declare that this theme does not use a
 		 * By adding theme support, we declare that this theme does not use a
@@ -233,6 +282,9 @@ function ixion_fonts_url_cooper() {
 function ixion_scripts() {
 function ixion_scripts() {
 	wp_enqueue_style( 'ixion-style', get_stylesheet_uri() );
 	wp_enqueue_style( 'ixion-style', get_stylesheet_uri() );
 
 
+	// Gutenberg styles
+	wp_enqueue_style( 'ixion-blocks', get_template_directory_uri() . '/blocks.css' );
+
 	wp_enqueue_style( 'ixion-fonts-archivo', ixion_fonts_url_archivo(), array(), null );
 	wp_enqueue_style( 'ixion-fonts-archivo', ixion_fonts_url_archivo(), array(), null );
 	wp_enqueue_style( 'ixion-fonts-cooper', ixion_fonts_url_cooper(), array(), null );
 	wp_enqueue_style( 'ixion-fonts-cooper', ixion_fonts_url_cooper(), array(), null );
 	wp_enqueue_style( 'genericons', get_template_directory_uri() . '/assets/fonts/genericons/genericons/genericons.css' );
 	wp_enqueue_style( 'genericons', get_template_directory_uri() . '/assets/fonts/genericons/genericons/genericons.css' );
@@ -252,6 +304,17 @@ function ixion_scripts() {
 }
 }
 add_action( 'wp_enqueue_scripts', 'ixion_scripts' );
 add_action( 'wp_enqueue_scripts', 'ixion_scripts' );
 
 
+/**
+ * Gutenberg Editor Styles
+ */
+function ixion_editor_styles() {
+	wp_enqueue_style( 'ixion-editor-block-style', get_template_directory_uri() . '/editor-blocks.css');
+	wp_enqueue_style( 'ixion-fonts-archivo', ixion_fonts_url_archivo(), array(), null );
+	wp_enqueue_style( 'ixion-fonts-cooper', ixion_fonts_url_cooper(), array(), null );
+	wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.3' );
+}
+add_action( 'enqueue_block_editor_assets', 'ixion_editor_styles' );
+
 /**
 /**
  * Replaces "[...]" (appended to automatically generated excerpts) with ... and a 'Continue reading' link.
  * Replaces "[...]" (appended to automatically generated excerpts) with ... and a 'Continue reading' link.
  * @return string 'Continue reading' link prepended with an ellipsis.
  * @return string 'Continue reading' link prepended with an ellipsis.