<!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>[44139] trunk/src/wp-content/themes/twentyeleven: Twenty Eleven: 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/44139">44139</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/44139","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>desrosj</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2018-12-14 01:50:30 +0000 (Fri, 14 Dec 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 Eleven: 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 Eleven.

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 ianbelanger, laurelfulford, davidakennedy.

Merges <a href="https://core.trac.wordpress.org/changeset/43794">[43794]</a> to trunk.

Fixes <a href="https://core.trac.wordpress.org/ticket/45039">#45039</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpcontentthemestwentyelevenfunctionsphp">trunk/src/wp-content/themes/twentyeleven/functions.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunksrcwpcontentthemestwentyelevenblockscss">trunk/src/wp-content/themes/twentyeleven/blocks.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentyeleveneditorblockscss">trunk/src/wp-content/themes/twentyeleven/editor-blocks.css</a></li>
</ul>

<h3>Property Changed</h3>
<ul>
<li><a href="#trunk">trunk/</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<span class="cx" style="display: block; padding: 0 10px">Index: trunk
</span><span class="cx" style="display: block; padding: 0 10px">===================================================================
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">--- trunk        2018-12-14 01:49:46 UTC (rev 44138)
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+++ trunk 2018-12-14 01:50:30 UTC (rev 44139)
</ins><a id="trunk"></a>
<div class="propset"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Property changes: trunk</h4>
<pre class="diff"><span>
</span></pre></div>
<a id="svnmergeinfo"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: svn:mergeinfo</h4></div>
<span class="cx" style="display: block; padding: 0 10px"> /branches/3.3:20543
</span><span class="cx" style="display: block; padding: 0 10px"> /branches/3.4:21757
</span><span class="cx" style="display: block; padding: 0 10px"> /branches/4.9:43557,43622
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/branches/5.0:43681-43682,43684-43688,43719-43720,43723,43726-43727,43729-43731,43734-43744,43751-43754,43758,43761-43765,43767-43770,43772,43774-43781,43783,43790-43791,43793
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/branches/5.0:43681-43682,43684-43688,43719-43720,43723,43726-43727,43729-43731,43734-43744,43751-43754,43758,43761-43765,43767-43770,43772,43774-43781,43783,43790-43791,43793-43794
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="trunksrcwpcontentthemestwentyelevenblockscssfromrev43794branches50srcwpcontentthemestwentyelevenblockscss"></a>
<div class="copfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Copied: trunk/src/wp-content/themes/twentyeleven/blocks.css (from rev 43794, branches/5.0/src/wp-content/themes/twentyeleven/blocks.css)</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyeleven/blocks.css                               (rev 0)
+++ trunk/src/wp-content/themes/twentyeleven/blocks.css 2018-12-14 01:50:30 UTC (rev 44139)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,368 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/*
+Theme Name: Twenty Eleven
+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
+--------------------------------------------------------------*/
+
+figure[class^="wp-block-"] {
+       margin-left: 0;
+       margin-right: 0;
+}
+
+/* Captions */
+
+[class^="wp-block-"] figcaption {
+       font-family: Georgia, serif;
+       font-size: 12px;
+}
+
+[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
+       color: #666;
+       margin-bottom: 1.625em;
+       max-width: 96%;
+       max-width: calc( 100% - 18px );
+       padding: 3px 0 5px 40px;
+       position: relative;
+       text-align: left;
+}
+
+[class^="wp-block-"]:not(.wp-block-gallery) figcaption:before {
+       color: #666;
+       content: '\2014';
+       font-size: 14px;
+       font-style: normal;
+       font-weight: bold;
+       margin-right: 5px;
+       position: absolute;
+       left: 10px;
+       top: 0;
+}
+
+.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
+       padding-left: 0;
+       padding-right: 40px;
+       text-align: right;
+}
+
+.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before {
+       left: 0;
+       margin-left: 5px;
+       margin-right: 0;
+       right: 10px;
+}
+
+/*--------------------------------------------------------------
+2.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+p.has-drop-cap:not(:focus)::first-letter {
+       font-size: 5em;
+       margin-top: 0.1em;
+}
+
+/* Gallery */
+
+.wp-block-gallery {
+       margin: 0 0 1.625em;
+}
+
+.wp-block-gallery .blocks-gallery-item figcaption {
+       margin-bottom: 0;
+       padding-left: 0;
+       padding-right: 0;
+}
+
+.wp-block-gallery .blocks-gallery-item img {
+       border: 0;
+       padding: 0;
+}
+
+/* Quote */
+
+.wp-block-quote {
+       margin: 0 3em;
+}
+
+.wp-block-quote:not(.is-large):not(.is-style-large) {
+       border: 0;
+       padding-left: 0;
+       padding-right: 0;
+}
+
+.wp-block-quote.is-large p,
+.wp-block-quote.is-style-large p {
+       font-size: 20px;
+}
+
+.wp-block-quote cite {
+       color: #666;
+       font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
+       font-weight: 300;
+       letter-spacing: 0.05em;
+       text-transform: uppercase;
+}
+
+.wp-block-quote.is-large cite,
+.wp-block-quote.is-style-large cite {
+       font-size: 16px;
+}
+
+/* Audio */
+
+.wp-block-audio audio {
+       display: block;
+       width: 100%;
+}
+
+/* Cover Image */
+
+.wp-block-cover-image.aligncenter {
+       clear: both;
+       display: flex;
+}
+
+.wp-block-cover-image.alignleft {
+       margin-right: 1.625em;
+}
+
+.wp-block-cover-image.alignright {
+       margin-left: 1.625em;
+}
+
+/* File */
+
+.wp-block-file .wp-block-file__button {
+       background: #222;
+       border: none;
+       -moz-border-radius: 3px;
+       border-radius: 3px;
+       -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
+       -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
+       box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
+       color: #eee;
+       cursor: pointer;
+       font-size: 15px;
+       padding: 5px 22px;
+       text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
+}
+
+.wp-block-file .wp-block-file__button:active {
+       background: #1982d1;
+       color: #bfddf3;
+}
+
+.rtl .wp-block-file * + .wp-block-file__button {
+       margin-left: 0.75em;
+       margin-right: 0;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Formatting
+--------------------------------------------------------------*/
+
+/* Code */
+
+.wp-block-code {
+       background-color: transparent;
+       border: 0;
+       padding: 0;
+}
+
+/* Pullquote */
+
+.wp-block-pullquote__citation,
+.wp-block-pullquote cite,
+.wp-block-pullquote footer {
+       color: #141412;
+}
+
+.wp-block-pullquote.alignleft {
+       margin-right: 1.625em;
+}
+
+.wp-block-pullquote.alignright {
+       margin-left: 1.625em;
+}
+
+/* Table */
+
+.wp-block-table {
+       border-bottom: 1px solid #ddd;
+       border-collapse: collapse;
+       border-spacing: 0;
+       width: 100%;
+}
+
+.wp-block-table th {
+       border: 0;
+       font-weight: bold;
+       padding: 6px 10px 6px 0;
+       text-transform: uppercase;
+}
+
+.wp-block-table td {
+       border: 0;
+       border-top: 1px solid #ddd;
+       padding: 6px 10px 6px 0;
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+
+.wp-block-button .wp-block-button__link {
+       background: #222;
+       border: none;
+       -moz-border-radius: 3px;
+       border-radius: 3px;
+       -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
+       -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
+       box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
+       color: #eee;
+       cursor: pointer;
+       font-size: 15px;
+       margin: 20px 0;
+       padding: 5px 22px;
+       text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
+}
+
+.wp-block-button .wp-block-button__link:active {
+       background: #1982d1;
+       color: #bfddf3;
+}
+
+/* Separator */
+
+.wp-block-separator {
+       border: 0;
+       max-width: 100px;
+}
+
+.wp-block-separator.is-style-wide {
+       max-width: 100%;
+}
+
+/*--------------------------------------------------------------
+5.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+/* Latest Comments */
+
+.wp-block-latest-comments {
+       margin: 0;
+       padding: 0;
+}
+
+.wp-block-latest-comments .avatar,
+.wp-block-latest-comments__comment-avatar {
+       -moz-border-radius: 3px;
+       border-radius: 3px;
+       -webkit-box-shadow: 0 1px 2px #ccc;
+       -moz-box-shadow: 0 1px 2px #ccc;
+       box-shadow: 0 1px 2px #ccc;
+}
+
+.wp-block-latest-comments__comment,
+.wp-block-latest-comments__comment-excerpt,
+.wp-block-latest-comments__comment-excerpt p {
+       font-size: 15px;
+}
+
+.wp-block-latest-comments__comment-excerpt p:last-child {
+       margin-bottom: 0;
+}
+
+.wp-block-latest-comments__comment-meta,
+.wp-block-latest-comments__comment-date {
+       color: #666;
+       font-size: 12px;
+       line-height: 2.2em;
+}
+
+.wp-block-latest-comments__comment-meta a {
+       font-weight: bold;
+}
+
+.wp-block-latest-comments .wp-block-latest-comments__comment {
+       -moz-border-radius: 3px;
+       border-radius: 3px;
+       margin: 0 0 2.625em;
+       position: relative;
+}
+
+/* Latest Posts */
+
+.wp-block-latest-posts.is-grid {
+       margin-left: 0;
+       margin-right: 0;
+}
+
+/*--------------------------------------------------------------
+6.0 Blocks - Colors
+--------------------------------------------------------------*/
+
+.has-blue-color {
+       color: #1982d1;
+}
+
+.has-blue-background-color {
+       background-color: #1982d1;
+}
+
+.has-black-color {
+       color: #000;
+}
+
+.has-black-background-color {
+       background-color: #000;
+}
+
+.has-dark-gray-color {
+       color: #373737;
+}
+
+.has-dark-gray-background-color {
+       background-color: #373737;
+}
+
+.has-medium-gray-color {
+       color: #666;
+}
+
+.has-medium-gray-background-color {
+       background-color: #666;
+}
+
+.has-light-gray-color {
+       color: #e2e2e2;
+}
+
+.has-light-gray-background-color {
+       background-color: #e2e2e2;
+}
+
+.has-white-color {
+       color: #fff;
+}
+
+.has-white-background-color {
+       background-color: #fff;
+}
</ins></span></pre></div>
<a id="trunksrcwpcontentthemestwentyeleveneditorblockscssfromrev43794branches50srcwpcontentthemestwentyeleveneditorblockscss"></a>
<div class="copfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Copied: trunk/src/wp-content/themes/twentyeleven/editor-blocks.css (from rev 43794, branches/5.0/src/wp-content/themes/twentyeleven/editor-blocks.css)</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyeleven/editor-blocks.css                                (rev 0)
+++ trunk/src/wp-content/themes/twentyeleven/editor-blocks.css  2018-12-14 01:50:30 UTC (rev 44139)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,443 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/*
+Theme Name: Twenty Eleven
+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,
+.edit-post-visual-editor .editor-block-list__block p,
+.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
+       font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+       font-size: 15px;
+       font-size: 300;
+       line-height: 1.625;
+}
+
+.edit-post-visual-editor .editor-block-list__block {
+       color: #333;
+}
+
+.editor-post-title__block .editor-post-title__input {
+       color: #000;
+       font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+       font-size: 36px;
+       line-height: 48px;
+}
+
+.edit-post-visual-editor h1,
+.wp-block-freeform.block-library-rich-text__tinymce h1,
+.edit-post-visual-editor h2,
+.wp-block-freeform.block-library-rich-text__tinymce h2 {
+       font-size: 15px;
+       margin: 0 0 0.8125em;
+}
+
+.edit-post-visual-editor h3,
+.wp-block-freeform.block-library-rich-text__tinymce h3 {
+       font-size: 10px;
+       font-weight: 300;
+       letter-spacing: 0.1em;
+       line-height: 2.6em;
+       text-transform: uppercase;
+}
+
+.edit-post-visual-editor h4,
+.wp-block-freeform.block-library-rich-text__tinymce h4,
+.edit-post-visual-editor h5,
+.wp-block-freeform.block-library-rich-text__tinymce h5,
+.edit-post-visual-editor h6,
+.wp-block-freeform.block-library-rich-text__tinymce h6 {
+       font-size: 15px;
+       font-weight: 300;
+       line-height: 1.625;
+}
+
+/*--------------------------------------------------------------
+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: 614px;
+}
+
+/* Link styles */
+
+.edit-post-visual-editor a,
+.editor-block-list__block a,
+.wp-block-freeform.block-library-rich-text__tinymce a {
+       color: #1982d1;
+}
+
+/* List styles */
+
+.edit-post-visual-editor ul:not(.wp-block-gallery),
+.editor-block-list__block ul:not(.wp-block-gallery),
+.block-library-list ul.editor-rich-text__tinymce,
+.edit-post-visual-editor ol,
+.editor-block-list__block ol,
+.block-library-list ol.editor-rich-text__tinymce {
+       margin: 0 0 1.625em 2.5em;
+       padding: 0;
+}
+
+.block-library-list .editor-rich-text__tinymce {
+       padding: 0;
+}
+
+.edit-post-visual-editor ul:not(.wp-block-gallery),
+.edit-post-visual-editor .editor-block-list__block ul:not(.wp-block-gallery),
+.block-library-list ul {
+       list-style-type: square;
+}
+
+.edit-post-visual-editor ol,
+.editor-block-list__block ol,
+.block-library-list ol {
+       list-style: decimal;
+}
+
+.edit-post-visual-editor ol ol,
+.editor-block-list__block ol ol,
+.block-library-list ol ol {
+       list-style: upper-alpha;
+}
+
+.edit-post-visual-editor ol ol ol,
+.editor-block-list__block ol ol ol,
+.block-library-list ol ol ol {
+       list-style: lower-roman;
+}
+
+.edit-post-visual-editor ol ol ol ol,
+.editor-block-list__block ol ol ol ol,
+.block-library-list ol ol ol ol {
+       list-style: lower-alpha;
+}
+
+.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 .editor-rich-text__tinymce li > ul,
+.edit-post-visual-editor li > ol,
+.editor-block-list__block li > ol,
+.block-library-list .editor-rich-text__tinymce li > ol,
+.wp-block-freeform.block-library-rich-text__tinymce li,
+.editor-block-list__block li {
+       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.3333em;
+}
+
+/* Captions */
+
+[class^="wp-block-"] figcaption {
+       font-family: Georgia, serif;
+       font-size: 12px;
+}
+
+[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
+       color: #666;
+       margin-bottom: 1.625em;
+       max-width: 96%;
+       max-width: calc( 100% - 18px );
+       padding: 3px 0 5px 40px;
+       position: relative;
+       text-align: left;
+}
+
+[class^="wp-block-"]:not(.wp-block-gallery) figcaption:before {
+       color: #666;
+       content: '\2014';
+       font-size: 14px;
+       font-style: normal;
+       font-weight: bold;
+       margin-right: 5px;
+       position: absolute;
+       left: 10px;
+       top: 0;
+}
+
+.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
+       padding-left: 0;
+       padding-right: 40px;
+       text-align: right;
+}
+
+.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before {
+       left: 0;
+       margin-left: 5px;
+       margin-right: 0;
+       right: 10px;
+}
+
+/* Quote */
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote {
+       border: 0;
+       font-style: italic;
+       margin: 0 3em;
+       padding: 0;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
+       font-family: Georgia, "Bitstream Charter", serif;
+       font-size: 15px;
+       font-weight: normal;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
+       color: #666;
+       font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
+       font-weight: 300;
+       letter-spacing: 0.05em;
+       text-transform: uppercase;
+}
+
+/* Code */
+
+.wp-block-freeform.block-library-rich-text__tinymce code {
+       background: transparent;
+}
+
+/*--------------------------------------------------------------
+3.0 Blocks - Common Blocks
+--------------------------------------------------------------*/
+
+/* Paragraph */
+
+p.has-drop-cap:not(:focus)::first-letter {
+       font-size: 5em;
+       margin-top: 0.1em;
+}
+
+/* Gallery */
+
+.editor-block-list__block .wp-block-gallery {
+       margin: 0 0 1.625em;
+}
+
+.wp-block-gallery figcaption {
+       margin-bottom: 0;
+       max-width: 100%;
+}
+
+.wp-block-gallery .blocks-gallery-item img {
+       border: 0;
+       padding: 0;
+}
+
+/* Quote */
+
+.wp-block-quote {
+       font-style: italic;
+       font-weight: normal;
+       margin: 0 3em;
+       padding: 0;
+}
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote p {
+       font-family: Georgia, "Bitstream Charter", serif;
+}
+
+.wp-block-quote:not(.is-large):not(.is-style-large) {
+       border: 0;
+       padding-left: 0;
+       padding-right: 0;
+}
+
+.wp-block-quote .wp-block-quote__citation.editor-rich-text__tinymce.mce-content-body {
+       color: #666;
+       font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+       font-weight: 300;
+       letter-spacing: 0.05em;
+       text-transform: uppercase;
+}
+
+.wp-block-quote.is-large p,
+.wp-block-quote.is-style-large p {
+       font-size: 20px;
+}
+
+.wp-block-quote.is-large .wp-block-quote__citation,
+.wp-block-quote.is-style-large .wp-block-quote__citation  {
+       font-size: 16px;
+}
+
+
+/* Cover Image */
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p.wp-block-cover-image-text {
+       font-size: 30px;
+       line-height: 37.5px;
+}
+
+/* File */
+
+.wp-block-file .wp-block-file__textlink {
+       color: #1982d1;
+}
+
+.wp-block-file .wp-block-file__button {
+       background: #222;
+       border: none;
+       -moz-border-radius: 3px;
+       border-radius: 3px;
+       -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
+       -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
+       box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
+       color: #eee;
+       cursor: pointer;
+       font-size: 15px;
+       line-height: 24px;
+       padding: 5px 22px;
+       text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
+}
+
+/*--------------------------------------------------------------
+4.0 Blocks - Formatting
+--------------------------------------------------------------*/
+
+/* Code */
+
+.wp-block-code {
+       background: transparent;
+       border: 0;
+       padding: 0;
+}
+
+/* Pullquote */
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p {
+       font-family: Georgia, "Bitstream Charter", serif;
+       font-style: italic;
+       font-weight: normal;
+}
+
+.wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
+.wp-block-pullquote.alignright blockquote > .editor-rich-text p {
+       font-size: 20px;
+}
+
+/* Table */
+
+.editor-block-list__block .wp-block-table th,
+.editor-block-list__block .wp-block-table td {
+       padding: 0;
+}
+
+.wp-block-table__cell-content {
+       padding: 6px;
+}
+
+.rtl .editor-block-list__block .wp-block-table th,
+.rtl .editor-block-list__block .wp-block-table td,
+.rtl .editor-block-list__block th,
+.rtl .editor-block-list__block td {
+       text-align: right;
+}
+
+
+/*--------------------------------------------------------------
+5.0 Blocks - Layout Elements
+--------------------------------------------------------------*/
+
+/* Buttons */
+
+.wp-block-button .wp-block-button__link {
+       background: #222;
+       border: none;
+       -moz-border-radius: 3px;
+       border-radius: 3px;
+       -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
+       -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
+       box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
+       color: #eee;
+       cursor: pointer;
+       font-size: 15px;
+       line-height: 24px;
+       margin: 20px 0;
+       padding: 5px 22px;
+       text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
+}
+
+/*--------------------------------------------------------------
+6.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+/* Latest Comments */
+
+.wp-block-latest-comments {
+       margin: 0;
+       padding: 0;
+}
+
+.wp-block-latest-comments .avatar,
+.wp-block-latest-comments__comment-avatar {
+       -moz-border-radius: 3px;
+       border-radius: 3px;
+       -webkit-box-shadow: 0 1px 2px #ccc;
+       -moz-box-shadow: 0 1px 2px #ccc;
+       box-shadow: 0 1px 2px #ccc;
+       padding: 0;
+}
+
+.wp-block-latest-comments__comment,
+.wp-block-latest-comments__comment-excerpt,
+.wp-block-latest-comments__comment-excerpt p {
+       font-size: 15px;
+}
+
+.wp-block-latest-comments__comment-excerpt p:last-child {
+       margin-bottom: 0;
+}
+
+.wp-block-latest-comments__comment-meta,
+.wp-block-latest-comments__comment-date {
+       color: #666;
+       font-size: 12px;
+       line-height: 2.2em;
+}
+
+.wp-block-latest-comments__comment-meta a {
+       font-weight: bold;
+}
+
+.wp-block-latest-comments .wp-block-latest-comments__comment {
+       -moz-border-radius: 3px;
+       border-radius: 3px;
+       margin: 0 0 2.625em;
+       position: relative;
+}
+
+/* Latest Posts */
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-latest-posts.is-grid {
+       list-style: none;
+       margin-left: 0;
+       margin-right: 0;
+}
</ins></span></pre></div>
<a id="trunksrcwpcontentthemestwentyelevenfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyeleven/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyeleven/functions.php    2018-12-14 01:49:46 UTC (rev 44138)
+++ trunk/src/wp-content/themes/twentyeleven/functions.php      2018-12-14 01:50:30 UTC (rev 44139)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -83,6 +83,49 @@
</span><span class="cx" style="display: block; padding: 0 10px">                // This theme styles the visual editor with editor-style.css to match the theme style.
</span><span class="cx" style="display: block; padding: 0 10px">                add_editor_style();
</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'  => __( 'Blue', 'twentyeleven' ),
+                                       'slug'  => 'blue',
+                                       'color' => '#1982d1',
+                               ),
+                               array(
+                                       'name'  => __( 'Black', 'twentyeleven' ),
+                                       'slug'  => 'black',
+                                       'color' => '#000',
+                               ),
+                               array(
+                                       'name'  => __( 'Dark Gray', 'twentyeleven' ),
+                                       'slug'  => 'dark-gray',
+                                       'color' => '#373737',
+                               ),
+                               array(
+                                       'name'  => __( 'Medium Gray', 'twentyeleven' ),
+                                       'slug'  => 'medium-gray',
+                                       'color' => '#666',
+                               ),
+                               array(
+                                       'name'  => __( 'Light Gray', 'twentyeleven' ),
+                                       'slug'  => 'light-gray',
+                                       'color' => '#e2e2e2',
+                               ),
+                               array(
+                                       'name'  => __( 'White', 'twentyeleven' ),
+                                       'slug'  => 'white',
+                                       'color' => '#fff',
+                               ),
+                       )
+               );
+
</ins><span class="cx" style="display: block; padding: 0 10px">                 // Load up our theme options page and related code.
</span><span class="cx" style="display: block; padding: 0 10px">                require( get_template_directory() . '/inc/theme-options.php' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -239,6 +282,28 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> endif; // twentyeleven_setup
</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 scripts and styles for front end.
+ *
+ * @since Twenty Eleven 2.9
+ */
+function twentyeleven_scripts_styles() {
+       // Theme block stylesheet.
+       wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181018' );
+}
+add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' );
+
+/**
+ * Enqueue editor styles for Gutenberg
+ *
+ * @since Twenty Eleven 2.9
+ */
+function twentyeleven_block_editor_styles() {
+       // Block styles.
+       wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css' );
+}
+add_action( 'enqueue_block_editor_assets', 'twentyeleven_block_editor_styles' );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( ! function_exists( 'twentyeleven_header_style' ) ) :
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Styles the header image and text displayed on the blog.
</span></span></pre>
</div>
</div>

</body>
</html>