<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[43799] branches/5.0/src/wp-content/themes/twentysixteen: Twenty Sixteen: Add styles and support for the new block-based editor.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/43799">43799</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/43799","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>davidakennedy</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2018-10-23 01:03:09 +0000 (Tue, 23 Oct 2018)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Twenty Sixteen: Add styles and support for the new block-based editor.
This update adds styles and theme support related to the new block-based editor to enhance the experience of using it with Twenty Sixteen.
These are the specific changes made to this theme:
* Add blocks.css, to style blocks on the front end, to make sure they match the theme's existing HTML element styles.
* Add editor-blocks.css to style blocks in the editor, to make sure they match the theme's existing HTML element styles.
* Add theme support for `editor-styles`, to pull the existing editor stylesheet into the new editor.
* Add theme support for `wp-block-styles`, to load the default block styles on the front end.
* Add theme support for `editor-color-palette`, to load a color palette based on the theme's color scheme into the block-based editor.
Props laurelfulford.
Fixes <a href="https://core.trac.wordpress.org/ticket/45044">#45044</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#branches50srcwpcontentthemestwentysixteenfunctionsphp">branches/5.0/src/wp-content/themes/twentysixteen/functions.php</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#branches50srcwpcontentthemestwentysixteencssblockscss">branches/5.0/src/wp-content/themes/twentysixteen/css/blocks.css</a></li>
<li><a href="#branches50srcwpcontentthemestwentysixteencsseditorblockscss">branches/5.0/src/wp-content/themes/twentysixteen/css/editor-blocks.css</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="branches50srcwpcontentthemestwentysixteencssblockscss"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/src/wp-content/themes/twentysixteen/css/blocks.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/src/wp-content/themes/twentysixteen/css/blocks.css (rev 0)
+++ branches/5.0/src/wp-content/themes/twentysixteen/css/blocks.css 2018-10-23 01:03:09 UTC (rev 43799)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,370 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/*
+Theme Name: Twenty Sixteen
+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 {
+ color: #686868;
+ font-style: italic;
+ line-height: 1.6153846154;
+ padding-top: 0.5384615385em;
+}
+
+/*--------------------------------------------------------------
+2.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+p.has-drop-cap:not(:focus)::first-letter {
+ font-size: 5em;
+}
+
+/* Gallery */
+
+.wp-block-gallery {
+ margin-bottom: 1.75em;
+}
+
+/* Quote */
+
+.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
+.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
+ border-left: none;
+ padding-left: 0;
+}
+
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
+ border-right: none;
+ padding-right: 0;
+}
+
+.wp-block-quote cite {
+ color: #1a1a1a;
+ display: block;
+ font-size: 16px;
+ font-size: 1rem;
+ line-height: 1.75;
+}
+
+.wp-block-quote cite:before {
+ content: "\2014\00a0";
+}
+
+/* Audio */
+
+.wp-block-audio audio {
+ display: block;
+ width: 100%;
+}
+
+/* File */
+
+.wp-block-file .wp-block-file__button {
+ background: #1a1a1a;
+ border: 0;
+ border-radius: 2px;
+ color: #fff;
+ font-family: Montserrat, "Helvetica Neue", sans-serif;
+ font-weight: 700;
+ letter-spacing: 0.046875em;
+ line-height: 1;
+ padding: 0.84375em 0.875em 0.78125em;
+ text-transform: uppercase;
+}
+
+.wp-block-file .wp-block-file__button:hover,
+.wp-block-file .wp-block-file__button:focus {
+ background: #007acc;
+}
+
+.wp-block-file .wp-block-file__button:focus {
+ outline: thin dotted;
+ outline-offset: -4px;
+}
+
+.rtl .wp-block-file * + .wp-block-file__button {
+ margin-left: 0.75em;
+ margin-right: 0;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Formatting Blocks
+--------------------------------------------------------------*/
+
+/* Code */
+
+.wp-block-code {
+ border: 0;
+ font-family: Inconsolata, monospace;
+ font-size: 16px;
+ font-size: 1rem;
+ line-height: 1.75;
+ padding: 0;
+}
+
+/* Pullquote */
+
+.wp-block-pullquote {
+ border-width: 4px;
+}
+
+.wp-block-pullquote blockquote {
+ border-left: 0;
+ margin: 0;
+ padding: 0;
+}
+
+.rtl .wp-block-pullquote blockquote {
+ border-right: 0;
+}
+
+.wp-block-pullquote p {
+ color: #686868;
+ font-size: 19px;
+ font-size: 1.1875rem;
+}
+
+.wp-block-pullquote cite {
+ color: #1a1a1a;
+ display: block;
+ font-size: 16px;
+ font-size: 1rem;
+ font-style: none;
+ line-height: 1.75;
+ text-transform: none;
+}
+
+.wp-block-pullquote cite:before {
+ content: "\2014\00a0";
+}
+
+/* Table */
+
+.wp-block-table,
+.wp-block-table th,
+.wp-block-table td {
+ border: 1px solid #d1d1d1;
+}
+
+.wp-block-table {
+ border-collapse: separate;
+ border-spacing: 0;
+ border-width: 1px 0 0 1px;
+ margin: 0 0 1.75em;
+ table-layout: fixed;
+ width: 100%;
+}
+
+.wp-block-table th,
+.wp-block-table td {
+ font-weight: normal;
+ padding: 0.4375em;
+ text-align: left;
+}
+
+.wp-block-table th {
+ border-width: 0 1px 1px 0;
+ font-weight: 700;
+}
+
+.wp-block-table td {
+ border-width: 0 1px 1px 0;
+}
+
+.rtl .wp-block-table th,
+.rtl .wp-block-table td {
+ text-align: right;
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+
+.wp-block-button .wp-block-button__link {
+ background: #1a1a1a;
+ border: 0;
+ border-radius: 2px;
+ color: #fff;
+ font-family: Montserrat, "Helvetica Neue", sans-serif;
+ font-weight: 700;
+ letter-spacing: 0.046875em;
+ line-height: 1;
+ padding: 0.84375em 0.875em 0.78125em;
+ text-transform: uppercase;
+}
+
+.wp-block-button .wp-block-button__link:hover,
+.wp-block-button .wp-block-button__link:focus {
+ background: #007acc;
+}
+
+.wp-block-button .wp-block-button__link:focus {
+ outline: thin dotted;
+ outline-offset: -4px;
+}
+
+/* Seperator */
+
+hr.wp-block-separator {
+ border: 0;
+}
+
+.wp-block-separator {
+ margin-left: auto;
+ margin-right: auto;
+ max-width: 100px;
+}
+
+.wp-block-separator.is-style-wide {
+ max-width: 100%;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Widget Blocks
+--------------------------------------------------------------*/
+
+/* Latest Comments */
+
+.wp-block-latest-comments__comment-meta a {
+ box-shadow: none;
+ font-weight: 700;
+}
+
+.wp-block-latest-comments__comment-date {
+ color: #686868;
+ font-family: Montserrat, "Helvetica Neue", sans-serif;
+ font-size: 13px;
+ font-size: 0.8125rem;
+ line-height: 1.6153846154;
+}
+
+.wp-block-latest-comments .wp-block-latest-comments__comment {
+ border-top: 1px solid #d1d1d1;
+ margin-bottom: 0;
+ padding: 1.75em 0;
+}
+
+.wp-block-latest-comments__comment-excerpt p:last-child {
+ margin-bottom: 0;
+}
+
+/*--------------------------------------------------------------
+6.0 Blocks - Colors
+--------------------------------------------------------------*/
+
+.has-dark-gray-color {
+ color: #1a1a1a;
+}
+
+.has-dark-gray-background-color {
+ background-color: #1a1a1a;
+}
+
+.has-medium-gray-color {
+ color: #686868;
+}
+
+.has-medium-gray-background-color {
+ background-color: #686868;
+}
+
+.has-light-gray-color {
+ color: #e5e5e5;
+}
+
+.has-light-gray-background-color {
+ background-color: #e5e5e5;
+}
+
+.has-white-color {
+ color: #fff;
+}
+
+.has-white-background-color {
+ background-color: #fff;
+}
+
+.has-blue-gray-color {
+ color: #4d545c;
+}
+
+.has-blue-gray-background-color {
+ background-color: #4d545c;
+}
+
+.has-bright-blue-color {
+ color: #007acc;
+}
+
+.has-bright-blue-background-color {
+ background-color: #007acc;
+}
+
+.has-light-blue-color {
+ color: #9adffd;
+}
+
+.has-light-blue-background-color {
+ background-color: #9adffd;
+}
+
+.has-dark-brown-color {
+ color: #402b30;
+}
+
+.has-dark-brown-background-color {
+ background-color: #402b30;
+}
+
+.has-medium-brown-color {
+ color: #774e24;
+}
+
+.has-medium-brown-background-color {
+ background-color: #774e24;
+}
+
+.has-dark-red-color {
+ color: #640c1f;
+}
+
+.has-dark-red-background-color {
+ background-color: #640c1f;
+}
+
+.has-bright-red-color {
+ color: #ff675f;
+}
+
+.has-bright-red-background-color {
+ background-color: #ff675f;
+}
+
+.has-yellow-color {
+ color: #ffef8e;
+}
+
+.has-yellow-background-color {
+ background-color: #ffef8e;
+}
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: branches/5.0/src/wp-content/themes/twentysixteen/css/blocks.css
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="branches50srcwpcontentthemestwentysixteencsseditorblockscss"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/src/wp-content/themes/twentysixteen/css/editor-blocks.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/src/wp-content/themes/twentysixteen/css/editor-blocks.css (rev 0)
+++ branches/5.0/src/wp-content/themes/twentysixteen/css/editor-blocks.css 2018-10-23 01:03:09 UTC (rev 43799)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,591 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/*
+Theme Name: Twenty Sixteen
+Description: Used to style Gutenberg Blocks in the editor.
+*/
+
+/*--------------------------------------------------------------
+>>> TABLE OF CONTENTS:
+----------------------------------------------------------------
+1.0 General Typography
+2.0 General Block Styles
+3.0 Blocks - Common Blocks
+4.0 Blocks - Formatting
+5.0 Blocks - Layout Elements
+6.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+/*--------------------------------------------------------------
+1.0 General Typography
+--------------------------------------------------------------*/
+
+.edit-post-visual-editor .editor-block-list__block,
+.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
+ color: #1a1a1a;
+ font-family: Merriweather, Georgia, serif;
+ font-size: 16px;
+ font-size: 1rem;
+ line-height: 1.75;
+}
+
+.edit-post-visual-editor .editor-block-list__block {
+ color: #1a1a1a;
+}
+
+.editor-post-title__block .editor-post-title__input {
+ font-family: Montserrat, "Helvetica Neue", sans-serif;
+ font-size: 28px;
+ font-size: 1.75rem;
+ font-weight: 700;
+ line-height: 1.25;
+ margin-bottom: 1em;
+}
+
+.edit-post-visual-editor h1 {
+ font-size: 28px;
+ font-size: 1.75rem;
+ line-height: 1.25;
+ margin-top: 2em;
+ margin-bottom: 1em;
+}
+
+.edit-post-visual-editor h2 {
+ font-size: 23px;
+ font-size: 1.4375rem;
+ line-height: 1.2173913043;
+ margin-top: 2.4347826087em;
+ margin-bottom: 1.2173913043em;
+}
+
+.edit-post-visual-editor h3 {
+ font-size: 19px;
+ font-size: 1.1875rem;
+ line-height: 1.1052631579;
+ margin-top: 2.9473684211em;
+ margin-bottom: 1.4736842105em;
+}
+
+.edit-post-visual-editor h4,
+.edit-post-visual-editor h5,
+.edit-post-visual-editor h6 {
+ font-size: 16px;
+ font-size: 1rem;
+ line-height: 1.3125;
+ margin-top: 3.5em;
+ margin-bottom: 1.75em;
+}
+
+.edit-post-visual-editor h4 {
+ letter-spacing: 0.140625em;
+ text-transform: uppercase;
+}
+
+.edit-post-visual-editor h6 {
+ font-style: italic;
+}
+
+.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: 900;
+}
+
+@media screen and (min-width: 61.5625em) {
+ .edit-post-visual-editor h1 {
+ font-size: 33px;
+ font-size: 2.0625rem;
+ line-height: 1.2727272727;
+ margin-top: 1.696969697em;
+ margin-bottom: 0.8484848485em;
+ }
+
+ .edit-post-visual-editor h2 {
+ font-size: 28px;
+ font-size: 1.75rem;
+ line-height: 1.25;
+ margin-top: 2em;
+ margin-bottom: 1em;
+ }
+
+ .edit-post-visual-editor h3 {
+ font-size: 23px;
+ font-size: 1.4375rem;
+ line-height: 1.2173913043;
+ margin-top: 2.4347826087em;
+ margin-bottom: 1.2173913043em;
+ }
+
+ .edit-post-visual-editor h4 {
+ letter-spacing: 0.131578947em;
+ }
+
+ .edit-post-visual-editor h4,
+ .edit-post-visual-editor h5,
+ .edit-post-visual-editor h6 {
+ font-size: 19px;
+ font-size: 1.1875rem;
+ line-height: 1.1052631579;
+ margin-top: 2.9473684211em;
+ margin-bottom: 1.473684211em;
+ }
+}
+
+.edit-post-visual-editor h1:first-child,
+.edit-post-visual-editor h2:first-child,
+.edit-post-visual-editor h3:first-child,
+.edit-post-visual-editor h4:first-child,
+.edit-post-visual-editor h5:first-child,
+.edit-post-visual-editor h6:first-child {
+ margin-top: 0;
+}
+
+.edit-post-visual-editor p {
+ margin: 0 0 1.75em;
+}
+
+.edit-post-visual-editor blockquote p {
+ margin-bottom: 1.4736842105em;
+}
+
+@media screen and (min-width: 44.375em) {
+ .editor-post-title__block .editor-post-title__input {
+ font-size: 33px;
+ font-size: 2.0625rem;
+ line-height: 1.2727272727;
+ margin-bottom: 0.8484848485em;
+ }
+}
+
+@media screen and (min-width: 61.5625em) {
+ .editor-post-title__block .editor-post-title__input {
+ font-size: 40px;
+ font-size: 2.5rem;
+ line-height: 1.225;
+ margin-bottom: 1.05em;
+ }
+}
+
+/*--------------------------------------------------------------
+2.0 General Block Styles
+--------------------------------------------------------------*/
+
+/* Main column width */
+
+body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
+body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
+body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
+ max-width: 630px; /* 600px + 30px for padding; should be 840px for pages */
+}
+
+/* Link styles */
+
+.edit-post-visual-editor a,
+.editor-block-list__block a,
+.wp-block-freeform.block-library-rich-text__tinymce a {
+ color: #007acc;
+}
+
+/* List styles */
+
+.edit-post-visual-editor ul:not(.wp-block-gallery),
+.editor-block-list__block ul:not(.wp-block-gallery),
+.block-library-list ul,
+.edit-post-visual-editor ol,
+.editor-block-list__block ol,
+.block-library-list ol {
+ margin: 0 0 1.75em 1.25em;
+ 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 {
+ list-style: decimal;
+ margin-left: 1.5em;
+}
+
+.edit-post-visual-editor ul:not(.wp-block-gallery) li,
+.editor-block-list__block ul:not(.wp-block-gallery) li,
+.edit-post-visual-editor ol li,
+.editor-block-list__block ol li,
+.block-library-list li {
+ margin-bottom: 0;
+}
+
+.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
+.editor-block-list__block ul:not(.wp-block-gallery) li > ul,
+.block-library-list li > ul,
+.edit-post-visual-editor li > ol,
+.editor-block-list__block li > ol,
+.block-library-list li > ol {
+ margin-bottom: 0;
+}
+
+.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
+.rtl .editor-block-list__block ul:not(.wp-block-gallery),
+.rtl .block-library-list ul,
+.rtl .edit-post-visual-editor ol,
+.rtl .editor-block-list__block ol,
+.rtl .block-library-list ol {
+ margin-left: 0;
+ margin-right: 1.25em;
+ padding: 0;
+}
+
+.rtl .edit-post-visual-editor ol,
+.rtl .editor-block-list__block ol,
+.rtl .block-library-list ol {
+ margin-left: 1.5em;
+ margin-right: 1.5em;
+}
+
+/* Quotes */
+
+.rtl .editor-block-list__block blockquote {
+ border-left: 0;
+ padding-left: 0;
+}
+
+/* Captions */
+
+[class^="wp-block-"] figcaption {
+ color: #686868;
+ font-style: italic;
+ line-height: 1.6153846154;
+ padding-top: 0.5384615385em;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
+ font-size: 5em;
+ line-height: 0.68;
+ margin: 0.05em 0.1em 0 0;
+ text-transform: uppercase;
+ font-style: normal;
+}
+
+.rtl .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
+ margin: 0.05em 0 0 0.1em;
+}
+
+/* Quote */
+
+.wp-block-quote {
+ border: 0 solid #1a1a1a;
+ border-left-width: 4px;
+ color: #686868;
+ font-style: italic;
+ line-height: 1.4736842105;
+ margin: 0 0 1.4736842105em;
+ overflow: hidden;
+ padding: 0 0 0 1.263157895em;
+}
+
+.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
+.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
+ border-left: 0;
+ padding-left: 0;
+}
+
+.editor-block-list__block .wp-block-quote p {
+ font-size: 19px;
+ font-size: 1.1875rem;
+ margin-bottom: 1.4736842105em;
+}
+
+.wp-block-quote__citation {
+ color: #1a1a1a;
+ display: block;
+ font-size: 16px;
+ font-size: 1rem;
+ line-height: 1.75;
+}
+
+.wp-block-quote__citation:before {
+ content: "\2014\00a0";
+}
+
+.wp-block-quote em,
+.wp-block-quote i,
+.wp-block-quote__citation:before {
+ font-style: normal;
+}
+
+.wp-block-quote strong,
+.wp-block-quote b {
+ font-weight: 400;
+}
+
+.wp-block-quote > :last-child {
+ margin-bottom: 0;
+}
+
+.wp-block-quote.alignleft {
+ margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
+}
+
+.wp-block-quote.alignright {
+ margin: 0.3157894737em 0 1.473684211em 1.4736842105em;
+}
+
+.wp-block-quote.aligncenter {
+ margin-bottom: 1.473684211em;
+}
+
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
+ border-right: 0;
+ padding-right: 0;
+}
+
+@media screen and (min-width: 44.375em) {
+ .wp-block-quote.alignleft,
+ .wp-block-quote.alignright {
+ border-width: 4px 0 0 0;
+ padding: 0.9473684211em 0 0;
+ width: -webkit-calc(50% - 0.736842105em);
+ width: calc(50% - 0.736842105em);
+ }
+
+ .wp-block-quote:not(.alignleft):not(.alignright) {
+ margin-left: -1.473684211em;
+ }
+
+ .rtl .wp-block-quote:not(.alignleft):not(.alignright) {
+ margin-left: 0;
+ margin-right: -1.473684211em;
+ }
+}
+
+@media screen and (min-width: 80em) {
+ .editor-block-list__block .wp-block-quote.alignleft {
+ margin-left: -40%;
+ width: -webkit-calc(60% - 1.4736842105em);
+ width: calc(60% - 1.4736842105em);
+ }
+}
+
+/* File */
+
+.wp-block-file__textlink {
+ box-shadow: 0 1px 0 0 currentColor;
+ color: #007acc;
+}
+
+.wp-block-file .wp-block-file__button {
+ background: #1a1a1a;
+ border: 0;
+ border-radius: 2px;
+ color: #fff;
+ font-family: Montserrat, "Helvetica Neue", sans-serif;
+ font-weight: 700;
+ letter-spacing: 0.046875em;
+ line-height: 1;
+ padding: 0.84375em 0.875em 0.78125em;
+ text-transform: uppercase;
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Formatting
+--------------------------------------------------------------*/
+
+/* Code */
+
+.wp-block-code {
+ border: 0;
+ padding: 0.125em 0.25em;
+}
+
+/* Classic */
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote {
+ border: 0 solid #1a1a1a;
+ border-left-width: 4px;
+ color: #686868;
+ font-style: italic;
+ line-height: 1.4736842105;
+ margin: 0 0 1.4736842105em;
+ overflow: hidden;
+ padding: 0 0 0 1.263157895em;
+}
+
+.editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote:not(.alignleft):not(.alignright) {
+ margin-left: 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
+ font-size: 19px;
+ font-size: 1.1875rem;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
+ color: #1a1a1a;
+ display: block;
+ font-size: 16px;
+ font-size: 1rem;
+ font-style: normal;
+ line-height: 1.75;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote cite:before {
+ content: "\2014\00a0";
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
+ margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
+ margin: 0.3157894737em 0 1.473684211em 1.4736842105em;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
+ margin-bottom: 1.473684211em;
+}
+
+@media screen and (min-width: 44.375em) {
+ .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft,
+ .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
+ border-width: 4px 0 0 0;
+ padding: 0.9473684211em 0 0;
+ width: -webkit-calc(50% - 0.736842105em);
+ width: calc(50% - 0.736842105em);
+ }
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
+ border-left-width: 0;
+ border-right-width: 4px;
+ overflow: hidden;
+ padding-left: 0;
+ padding-right: 1.263157895em;
+}
+
+.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: 0.3157894737em 0 1.473684211em 1.4736842105em;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
+ margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
+}
+
+/* Pullquote */
+
+.editor-block-list__block .wp-block-pullquote blockquote {
+ border: 0;
+ margin: 0;
+ padding: 0;
+}
+
+.wp-block-pullquote blockquote > .editor-rich-text p {
+ color: #686868;
+ font-size: 19px;
+ font-size: 1.1875rem;
+}
+
+.wp-block-pullquote .wp-block-pullquote__citation {
+ color: #1a1a1a;
+ display: block;
+ font-size: 16px;
+ font-size: 1rem;
+ font-style: italic;
+ line-height: 1.75;
+ text-transform: none;
+}
+
+.wp-block-pullquote .wp-block-pullquote__citation:before {
+ content: "\2014\00a0";
+}
+
+/* Table */
+
+.editor-block-list__block table.wp-block-table th,
+.editor-block-list__block table.wp-block-table td {
+ padding: 0;
+}
+
+.rtl .wp-block-table th,
+.rtl .wp-block-table td {
+ text-align: right;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+.wp-block-button .wp-block-button__link {
+ background: #1a1a1a;
+ border: 0;
+ border-radius: 2px;
+ color: #fff;
+ font-family: Montserrat, "Helvetica Neue", sans-serif;
+ font-weight: 700;
+ letter-spacing: 0.046875em;
+ line-height: 1;
+ padding: 0.84375em 0.875em 0.78125em;
+ text-transform: uppercase;
+}
+
+/*--------------------------------------------------------------
+6.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+/* Latest Comments */
+
+.editor-block-list__block .wp-block-latest-comments__comment-meta a {
+ box-shadow: none;
+ font-weight: 700;
+ text-decoration: none;
+}
+
+.wp-block-latest-comments__comment-date {
+ color: #686868;
+ font-family: Montserrat, "Helvetica Neue", sans-serif;
+ font-size: 13px;
+ font-size: 0.8125rem;
+ line-height: 1.6153846154;
+}
+
+.wp-block-latest-comments .wp-block-latest-comments__comment {
+ border-top: 1px solid #d1d1d1;
+ margin-bottom: 0;
+ padding: 1.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: 16px;
+}
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: branches/5.0/src/wp-content/themes/twentysixteen/css/editor-blocks.css
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="branches50srcwpcontentthemestwentysixteenfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: branches/5.0/src/wp-content/themes/twentysixteen/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/src/wp-content/themes/twentysixteen/functions.php 2018-10-23 00:35:37 UTC (rev 43798)
+++ branches/5.0/src/wp-content/themes/twentysixteen/functions.php 2018-10-23 01:03:09 UTC (rev 43799)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -124,6 +124,76 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> add_editor_style( array( 'css/editor-style.css', twentysixteen_fonts_url() ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Load regular editor styles into the new block-based editor.
+ add_theme_support( 'editor-styles' );
+
+ // Load default block styles.
+ add_theme_support( 'wp-block-styles' );
+
+ // Add support for custom color scheme.
+ add_theme_support( 'editor-color-palette', array(
+ array(
+ 'name' => __( 'Dark Gray', 'twentysixteen' ),
+ 'slug' => 'dark-gray',
+ 'color' => '#1a1a1a',
+ ),
+ array(
+ 'name' => __( 'Medium Gray', 'twentysixteen' ),
+ 'slug' => 'medium-gray',
+ 'color' => '#686868',
+ ),
+ array(
+ 'name' => __( 'Light Gray', 'twentysixteen' ),
+ 'slug' => 'light-gray',
+ 'color' => '#e5e5e5',
+ ),
+ array(
+ 'name' => __( 'White', 'twentysixteen' ),
+ 'slug' => 'white',
+ 'color' => '#fff',
+ ),
+ array(
+ 'name' => __( 'Blue Gray', 'twentysixteen' ),
+ 'slug' => 'blue-gray',
+ 'color' => '#4d545c',
+ ),
+ array(
+ 'name' => __( 'Bright Blue', 'twentysixteen' ),
+ 'slug' => 'bright-blue',
+ 'color' => '#007acc',
+ ),
+ array(
+ 'name' => __( 'Light Blue', 'twentysixteen' ),
+ 'slug' => 'light-blue',
+ 'color' => '#9adffd',
+ ),
+ array(
+ 'name' => __( 'Dark Brown', 'twentysixteen' ),
+ 'slug' => 'dark-brown',
+ 'color' => '#402b30',
+ ),
+ array(
+ 'name' => __( 'Medium Brown', 'twentysixteen' ),
+ 'slug' => 'medium-brown',
+ 'color' => '#774e24',
+ ),
+ array(
+ 'name' => __( 'Dark Red', 'twentysixteen' ),
+ 'slug' => 'dark-red',
+ 'color' => '#640c1f',
+ ),
+ array(
+ 'name' => __( 'Bright Red', 'twentysixteen' ),
+ 'slug' => 'bright-red',
+ 'color' => '#ff675f',
+ ),
+ array(
+ 'name' => __( 'Yellow', 'twentysixteen' ),
+ 'slug' => 'yellow',
+ 'color' => '#ffef8e',
+ ),
+ ) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> // Indicate widget sidebars can use selective refresh in the Customizer.
</span><span class="cx" style="display: block; padding: 0 10px"> add_theme_support( 'customize-selective-refresh-widgets' );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -252,6 +322,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Theme stylesheet.
</span><span class="cx" style="display: block; padding: 0 10px"> wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Theme block stylesheet.
+ wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20181018' );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> // Load the Internet Explorer specific stylesheet.
</span><span class="cx" style="display: block; padding: 0 10px"> wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20160816' );
</span><span class="cx" style="display: block; padding: 0 10px"> wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -288,6 +361,19 @@
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'wp_enqueue_scripts', 'twentysixteen_scripts' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Enqueue editor styles for Gutenberg
+ *
+ * @since Twenty Sixteen 1.6
+ */
+function twentysixteen_block_editor_styles() {
+ // Block styles.
+ wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
+ // Add custom fonts.
+ wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
+}
+add_action( 'enqueue_block_editor_assets', 'twentysixteen_block_editor_styles' );
+
+/**
</ins><span class="cx" style="display: block; padding: 0 10px"> * Adds custom classes to the array of body classes.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since Twenty Sixteen 1.0
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -427,7 +513,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $args['largest'] = 1;
</span><span class="cx" style="display: block; padding: 0 10px"> $args['smallest'] = 1;
</span><span class="cx" style="display: block; padding: 0 10px"> $args['unit'] = 'em';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $args['format'] = 'list';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $args['format'] = 'list';
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return $args;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre>
</div>
</div>
</body>
</html>