瀏覽代碼

Merge pull request #360 from Automattic/photos-gutenberg-v2

Photos: Adding Gutenberg support v2
Chris Runnells 6 年之前
父節點
當前提交
4204860d3a
共有 5 個文件被更改,包括 1098 次插入168 次删除
  1. 224 86
      photos/blocks.css
  2. 767 0
      photos/editor-blocks.css
  3. 12 6
      photos/functions.php
  4. 23 61
      photos/rtl.css
  5. 72 15
      photos/style.css

+ 224 - 86
photos/blocks.css

@@ -1,32 +1,84 @@
-/*--------------------------------------------------------------
-## Gutenberg Styles
---------------------------------------------------------------*/
+/*
+Theme Name: Photos
+Description: Gutenberg Block Styles
+*/
 
 /* Alignments */
 .alignfull {
-	text-align: center;
 	max-width: 100%;
+	text-align: center;
 }
 
 .alignwide {
-	/* max-width: 75%; */
-	max-width: 1020px;
 	margin-left: auto;
 	margin-right: auto;
+	max-width: 80%;
+}
+
+@media screen and ( min-width: 660px ) {
+	[class^="wp-block"] .alignleft  {
+		margin-left: calc( ( ( 100vw - 640px ) / -2 ) + 10px );
+	}
+
+	[class^="wp-block"] .alignright {
+		margin-right: calc( ( ( 100vw - 640px ) / -2 ) + 10px );
+	}
+}
+
+@media screen and ( min-width: 1080px ) {
+	.alignwide {
+		max-width: 1020px;
+	}
+
+	[class^="wp-block"] .alignleft {
+		margin-left: -190px;
+	}
+
+	[class^="wp-block"] .alignright {
+		margin-right: -190px;
+	}
+}
+
+/* Colors */
+.has-red-color {
+	color: #d63031;
 }
 
-.alignleft figcaption {}
+.has-red-background-color {
+	background-color: #d63031;
+}
+
+.has-charcoal-color {
+	color: #111;
+}
+
+.has-charcoal-background-color {
+	background-color: #111;
+}
+
+.has-very-light-gray-color {
+	color: #f0f0f0;
+}
 
-.alignright figcaption {}
+.has-very-light-gray-background-color {
+	background-color: #f0f0f0;
+}
 
-.wp-block-image.alignleft {}
+.has-very-dark-gray-color {
+	color: #404040;
+}
 
-.wp-block-image.alignright {}
+.has-very-dark-gray-background-color {
+	background-color: #404040;
+}
 
-.wp-block-image.aligncenter {}
+.has-medium-gray-color {
+	color: #606060;
+}
 
-.wp-block-gallery.alignleft,
-.wp-block-gallery.alignright {}
+.has-medium-gray-background-color {
+	background-color: #606060;
+}
 
 /* Text sizing */
 .is-small-text {}
@@ -35,27 +87,40 @@
 .is-larger-text {}
 
 
-/* Dropcaps */
-p.has-drop-cap:first-letter {
+/* Dropcap */
+p.has-drop-cap:not(:focus):first-letter {
 	font-family: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
-	font-size: 64px;
-	font-size: 6.4rem;
+	font-size: 106px;
+	font-size: 10.6rem;
+	font-weight: 300;
+	margin: 0.08em 0.1em 0 0;
+}
+
+.rtl p.has-drop-cap:not(:focus):first-letter {
+	margin: 0.08em 0 0 0.1em;
 }
 
 /* Images */
-.wp-block-image {}
+.wp-block-image {
+	margin-bottom: 1.5em;
+}
+
+.wp-block-image img {
+	display: block;
+}
 
-.wp-block-image figcaption {}
+.wp-block-image figcaption {
+	color: #606060;
+	font-size: 0.8em;
+	margin-top: 0;
+	padding-top: 0.625em;
+	text-align: center;
+}
 
 /* Galleries */
 .wp-block-gallery {
 	margin-bottom: 3rem;
 }
-.columns-1 {}
-.columns-2 {}
-.columns-3 {}
-.columns-4 {}
-.columns-5 {}
 
 /* Captions */
 .wp-block-image figcaption,
@@ -66,16 +131,21 @@ p.has-drop-cap:first-letter {
 
 /* Blockquotes*/
 .wp-block-quote {
-	border-left: 3px solid #d63031;
+	border-left: 4px solid #d63031;
 	padding-left: 2.7rem;
 }
 
-.wp-block-quote.is-large {
-	border-left-width: 6px;
+.rtl .wp-block-quote {
+	border-left: none;
+	border-right: 4px solid #d63031;
+}
+
+.wp-block-quote.is-large,
+.wp-block-quote.is-style-large {
 	margin-left: auto;
 	margin-right: auto;
 	margin-bottom: 3rem;
-	padding-left: 3.4rem;
+	padding: 2rem 3rem;
 }
 
 .wp-block-quote p:last-of-type {
@@ -88,73 +158,108 @@ p.has-drop-cap:first-letter {
 	font-weight: 300;
 }
 
-.blocks-quote-style-1 {}
-.blocks-quote-style-2 {}
-
-/* Cover Images */
-.wp-block-cover-image {}
-.wp-block-cover-image.alignfull {}
-
-.wp-block-cover-image.has-background-dim:before {}
-.has-parallax {}
-
-/* Video */
-.wp-block-video {}
-
-/* Audio */
-.wp-block-audio {}
+/* Pullquotes */
+.wp-block-pullquote {
+	padding: 0;
+}
 
-.wp-block-audio.alignleft,
-.wp-block-audio.alignright {
-	width: 32rem;
+.wp-block-pullquote blockquote {
+	background-color: #f0f0f0;
+	border-bottom: 4px solid #d63031;
+	border-left: none;
+	border-right: none;
+	border-top: 4px solid #d63031;
+	margin-bottom: 0;
+	padding: 1em 1.5em;
 }
 
-.wp-block-video video,
-.wp-block-audio audio {
-	height: auto;
-	width: 100%;
+.wp-block-pullquote:not(.is-style-solid-color) blockquote {
+	background-color: #f0f0f0;
 }
 
-/* Pullquotes */
-.wp-block-pullquote {
-	border-bottom: 3px solid #d63031;
-	border-left: none;
-	border-top: 3px solid #d63031;
-	padding: 1.5em;
+.wp-block-pullquote .is-style-solid-color blockquote {
+	border-top: none;
+	border-bottom: none;
 }
 
-.wp-block-pullquote > p {}
+.wp-block-pullquote p {
+	font-size: 24px;
+	margin-bottom: 1em;
+}
 
-.wp-block-pullquote > cite {}
+.wp-block-pullquote cite {
+	color: #606060;
+}
 
-.wp-block-pullquote.alignleft > p,
-.wp-block-pullquote.alignright > p {}
+.wp-block-pullquote.alignleft,
+.wp-block-pullquote.alignright {
+	max-width: 320px;
+	padding: 0;
+}
 
-.entry-content .wp-block-pullquote.alignleft {
+.wp-block-pullquote.alignleft,
+.wp-block-pullquote.alignright {
 	text-align: left;
 }
 
-.entry-content .wp-block-pullquote.alignright {
+.rtl .wp-block-pullquote.alignleft,
+.rtl .wp-block-pullquote.alignright {
 	text-align: right;
 }
 
-.wp-block-pullquote.alignleft,
-.wp-block-pullquote.alignright {
-	max-width: 320px;
-	padding-bottom: 2rem;
-	padding-top: 1rem;
+.wp-block-pullquote.alignwide blockquote,
+.wp-block-pullquote.alignfull blockquote {
+	padding: 2em;
 }
 
 .wp-block-pullquote.alignwide {
-	padding: 1.5em calc( 37.5% - 510px );
+	max-width: 830px;
+	width: 100%;
 }
 
 .wp-block-pullquote.alignfull {
-	padding: 1.5em calc( 50% - 510px );
+	padding: 0 calc( 50% - 510px );
+}
+
+@media screen and ( min-width: 1080px ) {
+
+	.wp-block-pullquote p {
+		font-size: 32px;
+	}
+
+	.wp-block-pullquote.alignleft p,
+	.wp-block-pullquote.alignright p {
+		font-size: 27px;
+	}
+
+	.wp-block-pullquote.alignwide blockquote,
+	.wp-block-pullquote.alignfull blockquote {
+		padding: 3em;
+	}
+
+
+	.wp-block-pullquote.alignwide {
+		max-width: 830px;
+		width: 75%;
+	}
+
+	.wp-block-pullquote.alignfull {
+		padding: 0 calc( 50% - 510px );
+	}
+
+}
+
+/* Audio */
+.wp-block-audio.alignleft,
+.wp-block-audio.alignright {
+	width: 32rem;
 }
 
-/* Categories */
-.wp-block-categories-list {}
+.wp-block-video video,
+.wp-block-audio audio {
+	height: auto;
+	width: 100%;
+}
 
 /* Tables */
 .wp-block-table {
@@ -191,42 +296,66 @@ p.has-drop-cap:first-letter {
 	background-color: transparent;
 	border-bottom: 1px solid #dcdcdc;
 	margin-bottom: 1.5em;
+	width: 180px;
 }
 
-.wp-block-separator.alignwide {
-	width: 75vw;
+.wp-block-separator.alignwide,
+.wp-block-separator.is-style-wide {
+	max-width: 75vw;
+	width: 100%;
 }
 
-.wp-block-separator.alignfull {
-	width: 100vw;
+.wp-block-separator.is-style-dots:before {
+	color: #d63031;
 }
 
 /* Buttons */
+.wp-block-file .wp-block-file__button,
 .wp-block-button .wp-block-button__link {
 	border-radius: 4px;
-	padding: 0.5em 0.75em;
+	font-weight: bold;
+	font-size: inherit;
 	line-height: 1.5;
-	margin-bottom: 1.5em;
+	margin-left: 0.75em;
+	padding: 0.5em 0.75em;
 	text-align: center;
 	transition: background 150ms ease-in-out,
 		color 150ms ease-in-out;
 }
 
-.wp-block-button__link {
-	background: #f0f0f0;
+.rtl .wp-block-file .wp-block-file__button,
+.rtl .wp-block-button .wp-block-button__link {
+	margin-left: 0;
+	margin-right: 0.75em;
+}
+
+.wp-block-file .wp-block-file__button,
+.wp-block-button__link:not(.has-text-color) {
 	color: #d63031;
 }
 
-.wp-block-button__link:hover {
+.wp-block-file .wp-block-file__button:active,
+.wp-block-file .wp-block-file__button:focus,
+.wp-block-file .wp-block-file__button:hover,
+.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;
-	background-color: #d63031;
 }
 
-.wp-block-button .wp-block-button__link {}
-.wp-block-button a {}
-.wp-block-button a:hover,
-.wp-block-button a:focus,
-.wp-block-button a:active {}
+.wp-block-file .wp-block-file__button,
+.wp-block-button__link:not(.has-background) {
+	background: #f0f0f0;
+}
+
+.wp-block-file .wp-block-file__button:active,
+.wp-block-file .wp-block-file__button:focus,
+.wp-block-file .wp-block-file__button:hover,
+.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: #d63031;
+}
 
 /* Text Columns */
 .wp-block-text-columns {}
@@ -235,3 +364,12 @@ p.has-drop-cap:first-letter {
 /* Latest Posts */
 .wp-block-latest-posts {}
 .wp-block-latest-posts__post-date {}
+
+
+/*--------------------------------------------------------------
+Widgets
+--------------------------------------------------------------*/
+.wp-block-latest-comments {
+	padding-left: 0;
+	padding-right: 0;
+}

+ 767 - 0
photos/editor-blocks.css

@@ -0,0 +1,767 @@
+/*
+Theme Name: Photos
+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 - Widgets
+--------------------------------------------------------------*/
+
+/*--------------------------------------------------------------
+1.0 General Typography
+--------------------------------------------------------------*/
+.block-editor .editor-styles-wrapper,
+.block-editor .editor-styles-wrapper p {
+	color: #111;
+	font-family: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
+	font-size: 16px;
+	line-height: 1.5 !important;
+}
+
+.block-editor .editor-styles-wrapper .mce-content-body {
+	line-height: 1.5;
+}
+
+@media screen and ( min-width: 1200px ) {
+	.block-editor .editor-styles-wrapper,
+	.block-editor .editor-styles-wrapper .editor-rich-text,
+	.block-editor .editor-styles-wrapper .editor-rich-text p {
+		font-size: 20px;
+	}
+}
+
+.editor-block-list__layout > .editor-block-list__block > .editor-block-list__block-edit,
+.editor-block-list__layout > .editor-block-list__layout > .editor-block-list__block > .editor-block-list__block-edit,
+.editor-block-list__layout > .editor-default-block-appender__content {
+	margin-bottom: 30px;
+	margin-top: 30px;
+}
+
+.alignleft,
+.editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-list__block-edit {
+	margin-right: 30px;
+}
+
+.rtl .alignleft,
+.rtl .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-list__block-edit {
+	margin-left: 30px;
+	margin-right: 0;
+}
+
+.alignright,
+.editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-list__block-edit {
+	margin-left: 30px;
+}
+
+.rtl .alignright,
+.rtl .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-list__block-edit {
+	margin-left: 0;
+	margin-right: 30px;
+}
+
+.aligncenter,
+.editor-block-list__layout .editor-block-list__block[data-align="center"] .editor-block-list__block-edit {
+	clear: both;
+	display: block;
+	margin-left: auto;
+	margin-right: auto;
+}
+
+a,
+a:link,
+a:visited,
+a:hover,
+a:focus,
+a:active {
+	color: #d63031;
+}
+
+/* Title */
+.editor-post-title__block .editor-post-title__input {
+	clear: both;
+	color: #111111;
+	font-family: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
+	font-weight: bold;
+	margin-bottom: 1.875em;
+	margin-top: 0;
+	text-align: center;
+    line-height: 1.2;
+}
+
+/* Headings */
+
+.edit-post-visual-editor h1,
+.edit-post-visual-editor h2,
+.edit-post-visual-editor h3,
+.edit-post-visual-editor h4,
+.edit-post-visual-editor h5,
+.edit-post-visual-editor h6 {
+	clear: both;
+	font-family: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
+	line-height: 1.2;
+	font-weight: 700;
+}
+
+.edit-post-visual-editor h1 {
+	font-size: 34px;
+	line-height: 1.4118;
+}
+
+.edit-post-visual-editor h2 {
+	font-size: 28px;
+	line-height: 1.2858;
+}
+
+.edit-post-visual-editor h3 {
+	font-size: 24px;
+	line-height: 1.25;
+}
+
+.edit-post-visual-editor h4 {
+	font-size: 20px;
+	line-height: 1.5;
+}
+
+.edit-post-visual-editor h5 {
+	font-size: 16px;
+	line-height: 1.5;
+}
+
+.edit-post-visual-editor h6 {
+	font-size: 14px;
+	line-height: 1.2858;
+}
+
+@media screen and ( min-width: 1200px ) {
+	.edit-post-visual-editor h1 {
+		font-size: 42px;
+		line-height: 1.4286;
+	}
+
+	.edit-post-visual-editor h2 {
+		font-size: 35px;
+		line-height: 1.2858;
+	}
+
+	.edit-post-visual-editor h3 {
+		font-size: 29px;
+		line-height: 1.2932;
+	}
+
+	.edit-post-visual-editor h4 {
+		font-size: 24px;
+		line-height: 1.25;
+	}
+
+	.edit-post-visual-editor h5 {
+		font-size: 20px;
+		line-height: 1.3236;
+	}
+
+	.edit-post-visual-editor h6 {
+		font-size: 17px;
+		line-height: 1.3236;
+	}
+}
+
+/* Paragraphs */
+
+.edit-post-visual-editor p,
+.edit-post-visual-editor blockquote p {
+	margin: 0 0 1.5em;
+}
+
+/*--------------------------------------------------------------
+2.0 General Block Styles
+--------------------------------------------------------------*/
+
+/* Alignments */
+.alignfull {
+	max-width: 100%;
+	text-align: center;
+}
+
+.alignwide {
+	margin-left: auto;
+	margin-right: auto;
+	max-width: 1020px;
+	width: 80%;
+}
+
+.wp-block[data-align="left"],
+.wp-block[data-align="right"] {
+	max-width: 100%;
+}
+
+/* Colors */
+.has-red-color {
+	color: #d63031;
+}
+
+.has-red-background-color {
+	background-color: #d63031;
+}
+
+.has-charcoal-color {
+	color: #111;
+}
+
+.has-charcoal-background-color {
+	background-color: #111;
+}
+
+.has-very-light-gray-color {
+	color: #f0f0f0;
+}
+
+.has-very-light-gray-background-color {
+	background-color: #f0f0f0;
+}
+
+.has-very-dark-gray-color {
+	color: #404040;
+}
+
+.has-very-dark-gray-background-color {
+	background-color: #404040;
+}
+
+.has-medium-gray-color {
+	color: #606060;
+}
+
+.has-medium-gray-background-color {
+	background-color: #606060;
+}
+
+/* Text sizing */
+.is-small-text {}
+.is-regular-text {}
+.is-large-text {}
+.is-larger-text {}
+
+/* List styles */
+.block-editor .editor-styles-wrapper ol ul,
+.block-editor .editor-styles-wrapper ul ul {
+	list-style: disc;
+}
+
+.editor-styles-wrapper dd,
+.editor-styles-wrapper li {
+	line-height: 1.5;
+	margin-bottom: 0;
+}
+
+/*--------------------------------------------------------------
+3.0 Common Blocks
+--------------------------------------------------------------*/
+
+/* Images */
+.wp-block-image img {
+	display: block;
+}
+
+.wp-block-image .alignleft {
+	margin-bottom: 1.5em;
+	margin-left: -190px;
+	margin-right: 1.5em;
+	margin-top: 0;
+}
+
+.rtl .wp-block-image .alignleft {
+	margin-left: 1.5em;
+	margin-right: -190px;
+}
+
+.wp-block-image .alignright {
+	margin-bottom: 1.5em;
+	margin-left: 1.5em;
+	margin-right: -190px;
+	margin-top: 0;
+}
+
+.rtl .wp-block-image .alignright {
+	margin-left: -190px;
+	margin-right: 1.5em;
+}
+
+.wp-block-image figcaption {
+	color: #606060;
+	font-size: 0.8em;
+	margin-top: 0;
+	padding-top: 0.625em;
+	text-align: center;
+}
+
+/* Dropcaps */
+p.has-drop-cap:not(:focus):first-letter {
+	font-family: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
+	font-size: 106px;
+	font-weight: 300;
+	margin: 0.08em 0.1em 0 0;
+}
+
+/* Images */
+.wp-block-image img {
+	display: block;
+}
+
+.wp-block-image figcaption {
+	color: #606060;
+	font-size: 0.8em;
+	margin-top: 0;
+	padding-top: 0.625em;
+	text-align: center;
+}
+
+/* Galleries */
+.wp-block-gallery {
+	margin-bottom: 30px;
+}
+
+/* Captions */
+.wp-block-image figcaption,
+.wp-block-audio figcaption,
+.wp-block-video figcaption {
+	color: #606060;
+}
+
+/* Blockquotes*/
+blockquote {
+	background-color: #f0f0f0;
+	border-left: 4px solid #d63031;
+	font-style: italic;
+	margin: 0 0 1.5em;
+	padding: 1em 1.5em;
+}
+
+.rtl blockquote {
+	border-left: none;
+	border-right: 4px solid #d63031;
+}
+
+blockquote :last-child,
+blockquote p:last-child {
+	margin-bottom: 0;
+}
+
+.wp-block-quote,
+.wp-block-quote:not(.is-large):not(.is-style-large) {
+	border-left: 4px solid #d63031;
+	padding-left: 26px;
+}
+
+.rtl .wp-block-quote,
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large) {
+	border-left: none;
+	border-right: 4px solid #d63031;
+}
+
+.wp-block-quote.is-large,
+.wp-block-quote.is-style-large {
+	margin-left: auto;
+	margin-right: auto;
+	margin-bottom: 30px;
+	padding: 20px 30px;
+}
+
+.wp-block-quote p:last-of-type {
+	margin-bottom: 0;
+}
+
+.wp-block-quote__citation {
+	color: #606060;
+	font-size: 16px;
+	font-weight: 300;
+	margin-top: 0;
+}
+
+/* Pullquotes */
+.wp-block-pullquote {
+	border-bottom: none;
+	border-top: none;
+	color: #111;
+	padding: 0;
+}
+
+.wp-block-pullquote blockquote {
+	border-bottom: 4px solid #d63031;
+	border-left: none;
+	border-right: none;
+	border-top: 4px solid #d63031;
+	font-style: italic;
+	margin: 0;
+	padding: 1em 1.5em;
+}
+
+.wp-block-pullquote:not(.is-style-solid-color) blockquote {
+	background-color: #f0f0f0;
+}
+
+.wp-block-pullquote p,
+.wp-block-pullquote p:last-of-type {
+	margin-bottom: 1em;
+}
+
+.wp-block-pullquote .wp-block-pullquote__citation {
+	color: #606060;
+	font-size: inherit;
+	font-weight: 300;
+	text-transform: capitalize;
+}
+
+.wp-block[data-align="left"] .wp-block-pullquote,
+.wp-block[data-align="right"] .wp-block-pullquote {
+	text-align: left;
+}
+
+.rtl .wp-block[data-align="left"] .wp-block-pullquote,
+.rtl .wp-block[data-align="right"] .wp-block-pullquote {
+	text-align: right;
+}
+
+.wp-block[data-align="left"] .wp-block-pullquote,
+.wp-block[data-align="right"] .wp-block-pullquote {
+	max-width: 320px;
+	padding: 0;
+}
+
+.wp-block[data-align="wide"] .wp-block-pullquote blockquote,
+.wp-block[data-align="full"] .wp-block-pullqupote blockquote {
+	padding: 2em;
+}
+
+@media screen and ( min-width: 1200px ) {
+
+	.wp-block-pullquote p,
+	.editor-styles-wrapper .editor-block-list__block .wp-block-pullquote .editor-rich-text p {
+		font-size: 32px;
+	}
+
+	.wp-block[data-align="left"] .wp-block-pullquote p,
+	.wp-block[data-align="right"] .wp-block-pullquote p,
+	.editor-styles-wrapper .editor-block-list__block[data-align="left"] .editor-rich-text p,
+	.editor-styles-wrapper .editor-block-list__block[data-align="right"] .editor-rich-text p {
+		font-size: 27px;
+	}
+
+	.wp-block[data-align="wide"] .wp-block-pullquote blockquote,
+	.wp-block[data-align="full"] .wp-block-pullqupote blockquote {
+		padding: 3em;
+	}
+
+	.wp-block[data-align="wide"] .wp-block-pullquote {
+		max-width: 830px;
+		width: 100%;
+	}
+
+	.wp-block[data-align="full"] .wp-block-pullquote {
+		margin: 0 calc( 50% - 510px );
+		max-width: 1020px;
+	}
+
+}
+
+/* Cover Images */
+.block-editor .editor-styles-wrapper .wp-block-cover .editor-rich-text p,
+.block-editor .wp-block-cover-image .wp-block-cover-image-text,
+.block-editor .wp-block-cover-image .wp-block-cover-text,
+.block-editor .wp-block-cover-image h2,
+.block-editor .wp-block-cover .wp-block-cover-image-text,
+.block-editor .wp-block-cover .wp-block-cover-text,
+.block-editor .wp-block-cover h2 {
+	color: #fff;
+	font-size: 2em;
+	line-height: 1.25;
+}
+
+/* Audio & Video */
+.wp-block[data-align="left"] .wp-block-audio,
+.wp-block[data-align="right"] .wp-block-audio {
+	width: 320px;
+}
+
+.wp-block-audio audio,
+.wp-block-video video {
+	height: auto;
+	width: 100%;
+}
+
+/* Tables */
+.wp-block-table {
+	display: table;
+}
+
+.wp-block-table td,
+.wp-block-table th {
+	border-color: #dcdcdc;
+	padding: 5px 3px;
+}
+
+.wp-block-table thead {
+	background-color: #f0f0f0;
+}
+
+.wp-block-table.alignleft,
+.wp-block-table.alignright {
+	max-width: 50%;
+}
+
+/* Preformatted, Code, Verse */
+.wp-block-code,
+.wp-block-preformatted,
+.wp-block-verse pre {
+	background: #f0f0f0;
+	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
+	font-size: 16px;
+	line-height: 1.5;
+	max-width: 100%;
+	padding: 1.5em;
+	overflow: auto;
+}
+
+.wp-block-code {
+	border: none;
+}
+
+.wp-block-code .editor-plain-text {
+	background-color: transparent;
+	color: #111;
+	font-size: 16px;
+}
+
+.wp-block-preformatted {
+	padding: 1.5em;
+}
+
+.wp-block-preformatted pre,
+.editor-styles-wrapper .wp-block-preformatted .mce-content-body {
+	font-size: 16px;
+	line-height: 1.5;
+}
+
+/* Verse */
+.wp.block-verse.editor-rich-text {
+	font-size: 16px;
+}
+
+.wp-block-verse.aligncenter {
+	text-align: center;
+}
+
+.wp-block-verse.alignleft {
+	text-align: left;
+}
+
+.rtl .wp-block-verse.alignleft {
+	text-align: right;
+}
+
+.wp-block-verse.alignright {
+	text-align: right;
+}
+
+.rtl .wp-block-verse.alignright {
+	text-align: left;
+}
+
+/* Separator */
+.wp-block-separator,
+.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
+	background-color: transparent;
+	border-bottom: 1px solid #dcdcdc;
+	margin-bottom: 1.5em;
+	max-width: 180px;
+	width: 100%;
+}
+
+.editor-styles-wrapper .wp-block[data-type="core/separator"] {
+	max-width: 100%;
+}
+
+.wp-block-separator.alignwide,
+.wp-block-separator.is-style-wide {
+	max-width: 75vw;
+	width: 100%;
+}
+
+.wp-block-separator.is-style-dots:before {
+	color: #d63031;
+}
+
+/* Buttons and File block */
+.wp-block-file .wp-block-file__button,
+.wp-block-button .wp-block-button__link {
+	border-radius: 4px;
+	font-weight: bold;
+	line-height: 1.5;
+	padding: 0.5em 0.75em;
+	text-align: center;
+	transition: background 150ms ease-in-out,
+		color 150ms ease-in-out;
+}
+
+.wp-block-file__textlink {
+	text-decoration: underline;
+}
+
+.wp-block-file .wp-block-file__button {
+	display: inline;
+	font-size: inherit;
+}
+
+.wp-block-file,
+.wp-block-file .wp-block-file__button,
+.wp-block-button__link:not(.has-text-color) {
+	color: #d63031;
+}
+
+.wp-block-file .wp-block-file__button:active,
+.wp-block-file .wp-block-file__button:focus,
+.wp-block-file .wp-block-file__button:hover,
+.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-file .wp-block-file__button,
+.wp-block-button__link:not(.has-background) {
+	background: #f0f0f0;
+}
+
+.wp-block-file .wp-block-file__button:active,
+.wp-block-file .wp-block-file__button:focus,
+.wp-block-file .wp-block-file__button:hover,
+.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: #d63031;
+}
+
+/* Classic Editor */
+.wp-block-freeform.block-library-rich-text__tinymce li,
+.wp-block-freeform.block-library-rich-text__tinymce p {
+	line-height: 1.5;
+}
+
+.wp-block-freeform > *,
+.wp-block-freeform.block-library-rich-text__tinymce .alignleft,
+.wp-block-freeform.block-library-rich-text__tinymce .alignright {
+	margin-bottom: 1.875rem;
+}
+
+.block-editor .wp-block-freeform p {
+	font-size: inherit;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote {
+	border-color: #d63031;
+	margin-bottom: 1.875rem;
+	padding: 1em 1.5em;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
+	margin: 0 0 1.5em;
+}
+
+.wp-block-freeform blockquote p:last-of-type {
+	margin-bottom: 0;
+}
+
+.wp-block-freeform hr {
+	clear: both;
+}
+
+.wp-block-freeform table {
+	border: 1px solid #dcdcdc;
+	border-collapse: collapse;
+	margin: 0 0 1.5em;
+	width: 100%;
+}
+
+.wp-block-freeform .mce-item-table,
+.wp-block-freeform .mce-item-table td,
+.wp-block-freeform .mce-item-table th,
+.wp-block-freeform .mce-item-table caption {
+	border: 1px solid #dcdcdc;
+}
+
+.wp-block-freeform th,
+.wp-block-freeform td {
+	line-height: 1.5;
+	padding: 0.75em;
+}
+
+.wp-block-freeform thead {
+	background-color: #f0f0f0;
+}
+
+.wp-block-freeform dt {
+	font-weight: bold;
+}
+
+.wp-block-freeform li {
+	margin-bottom: 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce pre,
+.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: #f0f0f0;
+	border-radius: 0;
+	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
+	font-size: 16px;
+	line-height: 1.5;
+	padding: 0 0.25;
+	overflow: auto;
+
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce pre {
+	padding: 1.5em;
+}
+
+.wp-block-freeform ins {
+	background: #d63031;
+	color: #fff;
+	padding: 0 0.25em;
+	text-decoration: none;
+}
+
+.wp-block-freeform q {
+	quotes: initial;
+}
+
+.wp-block-freeform q:before {
+	content: open-quote;
+}
+
+.wp-block-freeform q:after {
+	content: close-quote;
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+.block-editor ul.wp-block-archives,
+.block-editor ul.wp-block-categories,
+.block-editor ul.wp-block-latest-posts {
+	padding-left: 1em;
+}
+
+.rtl .block-editor ul.wp-block-archives,
+.rtl .block-editor ul.wp-block-categories,
+.rtl .block-editor ul.wp-block-latest-posts {
+	padding-left: 0em;
+	padding-right: 1em;
+}
+

+ 12 - 6
photos/functions.php

@@ -195,18 +195,24 @@ function photos_scripts() {
 
 	$photos_l10n = array();
 
-	if ( has_nav_menu( 'menu-1' ) ) {
-		wp_enqueue_script( 'photos-navigation', get_theme_file_uri( '/js/navigation.js' ), array( 'jquery' ), '1.0', true );
-		$photos_l10n['expand']   = esc_attr__( 'Expand child menu', 'photos' );
-		$photos_l10n['collapse'] = esc_attr__( 'Collapse child menu', 'photos' );
-		$photos_l10n['icon']     = photos_get_svg( array( 'icon' => 'expand', 'fallback' => true ) );
-	}
+	wp_enqueue_script( 'photos-navigation', get_theme_file_uri( '/js/navigation.js' ), array( 'jquery' ), '1.0', true );
+	$photos_l10n['expand']   = esc_attr__( 'Expand child menu', 'photos' );
+	$photos_l10n['collapse'] = esc_attr__( 'Collapse child menu', 'photos' );
+	$photos_l10n['icon']     = photos_get_svg( array( 'icon' => 'expand', 'fallback' => true ) );
 
 	wp_localize_script( 'photos-navigation', 'photosScreenReaderText', $photos_l10n );
 
 }
 add_action( 'wp_enqueue_scripts', 'photos_scripts' );
 
+/**
+ * Gutenberg Editor Styles
+ */
+function photos_editor_styles() {
+	wp_enqueue_style( 'photos-editor-block-style', get_template_directory_uri() . '/editor-blocks.css' );
+}
+add_action( 'enqueue_block_editor_assets', 'photos_editor_styles' );
+
 /**
  * Custom template tags for this theme.
  */

+ 23 - 61
photos/rtl.css

@@ -1,5 +1,5 @@
 /*
-Theme Name: photos
+Theme Name: Photos
 */
 
 body {
@@ -44,11 +44,6 @@ li > ol {
 	float: left;
 }
 
-.main-navigation .menu-toggle {
-	left: 12px;
-	right: auto;
-}
-
 .main-navigation .sub-menu.toggled-on {
 	margin-left: 0;
 	margin-right: 1em;
@@ -81,32 +76,6 @@ li > ol {
 /*--------------------------------------------------------------
 # Alignments
 --------------------------------------------------------------*/
-.alignleft {
-	float: right;
-	margin-right: 0;
-	margin-left: 1.5em;
-}
-
-.page-content > .alignleft,
-.entry-content > .alignleft,
-.entry-summary > .alignleft {
-	margin-left: 1.5em;
-	margin-right: 0;
-}
-
-.alignright {
-	float: left;
-	margin-left: 0;
-	margin-right: 1.5em;
-}
-
-.page-content > .alignright,
-.entry-content > .alignright,
-.entry-summary > .alignright {
-	margin-left: 0;
-	margin-right: 1.5em;
-}
-
 .widget ul {
 	padding-right: 0;
 }
@@ -166,7 +135,7 @@ li > ol {
 # Media Queries
 --------------------------------------------------------------*/
 
-/* Wide mobile screens ( > 640px ) */
+/* Wide mobile screens ( > 658px ) */
 @media screen and ( min-width: 658px ) {
 
 	.site-logo,
@@ -174,11 +143,32 @@ li > ol {
 		text-align: right;
 	}
 
+	.main-navigation .menu-toggle {
+		left: 12px;
+		right: auto;
+	}
+
 	.main-navigation .menu-toggle span {
 		padding-left: 0;
 		padding-right: 0.25em;
 	}
 
+	.nav-links .icon {
+		transform: rotate( 180deg );
+	}
+
+	.nav-links .nav-previous .arrow {
+		float: right;
+		margin-left: 1em;
+		margin-right: 0;
+	}
+
+	.nav-links .nav-next .arrow {
+		float: left;
+		margin-left: 0;
+		margin-right: 1em;
+	}
+
 }
 
 /* Tablet styles ( > 768px ) */
@@ -253,30 +243,6 @@ li > ol {
 		text-align: right;
 	}
 
-	.page-content > .alignleft,
-	.entry-content > .alignleft,
-	.entry-summary > .alignleft {
-		margin-left: auto;
-		margin-right: calc( 50vw - 517px );
-	}
-
-	.page-content > .alignright,
-	.entry-content > .alignright,
-	.entry-summary > .alignright {
-		margin-left: calc( 50vw - 517px );
-		margin-right: auto;
-	}
-
-	.alignleft {
-		margin-left: auto;
-		margin-right: -190px;
-	}
-
-	.alignright {
-		margin-left: -190px;
-		margin-right: auto;
-	}
-
 	.site-footer .container {
 		text-align: right;
 	}
@@ -298,8 +264,4 @@ li > ol {
 		right: auto;
 	}
 
-	.post-navigation .nav-links .arrow {
-		transform: rotate(180deg);
-	}
-
 }

+ 72 - 15
photos/style.css

@@ -408,17 +408,25 @@ textarea {
 	line-height: 1.5;
 }
 
-h1, h2, h3, h4, h5, h6 {
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
 	clear: both;
 	color: #111111;
 	font-family: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
 }
 
 p {
-	margin-bottom: 1.5em;
+	margin: 0 0 1.5em;
 }
 
-dfn, cite, em, i {
+dfn,
+cite,
+em,
+i {
 	font-style: italic;
 }
 
@@ -440,15 +448,20 @@ blockquote *:last-child {
 }
 
 blockquote cite {
+	color: #606060;
 	font-style: normal;
-	font-weight: bold;
+	font-weight: 300;
 }
 
 address {
 	margin: 0 0 1.5em;
 }
 
-pre, code, kbd, tt, var {
+pre,
+code,
+kbd,
+tt,
+var {
 	background: #f0f0f0;
 	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
 	font-size: 16px;
@@ -461,16 +474,18 @@ pre, code, kbd, tt, var {
 
 pre {
 	margin-bottom: 1.5rem;
-	padding: 1.5rem;
+	padding: 1.5em;
 }
 
-abbr, acronym {
+abbr,
+acronym {
 	border-bottom: 1px dotted #666;
 	cursor: help;
 	text-decoration: none;
 }
 
-mark, ins {
+mark,
+ins {
 	background: #d63031;
 	color: #fff;
 	padding: 0 0.25em;
@@ -505,6 +520,7 @@ body {
 hr {
 	background-color: #ccc;
 	border: 0;
+	clear: both;
 	height: 1px;
 	margin-bottom: 1.5em;
 }
@@ -544,7 +560,7 @@ img {
 }
 
 figure {
-	margin: 3rem 0;
+	margin: 0 0 1.5em 0;
 	/* Extra wide images within figure tags don't overflow the content area. */
 }
 
@@ -923,7 +939,10 @@ a:hover, a:active {
 }
 
 .nav-links .arrow a,
-.nav-links .page-numbers {
+.nav-links .page-numbers,
+.blog .nav-links a,
+.archive .nav-links a,
+.search .nav-links a {
 	background-color: #f0f0f0;
 	border-radius: 2px;
 	display: inline-block;
@@ -935,12 +954,18 @@ a:hover, a:active {
 	width: 48px;
 }
 
-.nav-links .arrow a:hover {
+.nav-links .arrow a:hover,
+.blog .nav-links a:hover,
+.archive .nav-links a:hover,
+.search .nav-links a:hover {
 	background-color: #d63031;
 	color: #fff;
 }
 
-.nav-links a:hover .icon {
+.nav-links a:hover .icon,
+.blog .nav-links a:hover .icon,
+.archive .nav-links a:hover .icon,
+.search .nav-links a:hover .icon {
 	fill: #fff;
 }
 
@@ -1930,7 +1955,7 @@ object {
 # Media Queries
 --------------------------------------------------------------*/
 
-/* Wide mobile screens ( > 640px ) */
+/* Wide mobile screens ( > 658px ) */
 @media screen and ( min-width: 658px ) {
 
 	.site-logo,
@@ -2475,6 +2500,27 @@ object {
 		max-width: 11.11%;
 	}
 
+	/* Jetpack embeds */
+	.entry-content .jetpack-recipe,
+	.page-content .jetpack-recipe {
+		margin: 1.5em auto;
+	}
+
+	.instagram-media {
+		margin: 1.5em auto !important;
+	}
+
+	.getty.embed {
+		display: block !important;
+	}
+
+	.entry-content > img.avatar,
+	.page-content > img.avatar,
+	a.twitter-timeline {
+		display: block;
+	}
+
+
 	#jp-post-flair {
 		max-width: 1020px;
 	}
@@ -2497,13 +2543,24 @@ object {
 		line-height: 1.7647;
 	}
 
+	.archive .nav-links,
+	.blog .nav-links,
+	.search .nav-links {
+		border-top: none;
+		max-width: 100%;
+		padding-top: 0;
+	}
+
 	.nav-links a {
 		font-size: 24px;
 		font-size: 2.4rem;
 	}
 
 	.nav-links .arrow a,
-	.nav-links .page-numbers {
+	.nav-links .page-numbers,
+	.blog .nav-links a,
+	.archive .nav-links a,
+	.search .nav-links a {
 		box-shadow: 0 0 0 1px #fff;
 		font-size: 20px;
 		font-size: 2rem;
@@ -2512,7 +2569,7 @@ object {
 		width: 60px;
 	}
 
-	.nav-links .arrow .icon {
+	.nav-links .icon {
 		height: 36px;
 		width: 36px;
 		margin: 12px;