<!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>[17816] trunk/wp-content/themes/twentyeleven: Twenty Eleven: first pass at visual editor styles with RTL editor styles to come; See #17198</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 { 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, #logmsg > ol { margin-left: 0; 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">
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/17816">17816</a></dd>
<dt>Author</dt> <dd>iandstewart</dd>
<dt>Date</dt> <dd>2011-05-05 22:46:37 +0000 (Thu, 05 May 2011)</dd>
</dl>
<h3>Log Message</h3>
<pre>Twenty Eleven: first pass at visual editor styles with RTL editor styles to come; See <a href="http://trac.wordpress.org/ticket/17198">#17198</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpcontentthemestwentyelevenfunctionsphp">trunk/wp-content/themes/twentyeleven/functions.php</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkwpcontentthemestwentyeleveneditorstylecss">trunk/wp-content/themes/twentyeleven/editor-style.css</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpcontentthemestwentyeleveneditorstylecss"></a>
<div class="addfile"><h4>Added: trunk/wp-content/themes/twentyeleven/editor-style.css (0 => 17816)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/editor-style.css         (rev 0)
+++ trunk/wp-content/themes/twentyeleven/editor-style.css        2011-05-05 22:46:37 UTC (rev 17816)
</span><span class="lines">@@ -0,0 +1,276 @@
</span><ins>+/*
+Theme Name: Twenty Eleven
+Description: Used to style the TinyMCE editor.
+*/
+
+* {
+        color: #333;
+        font: 15px "Helvetica Neue", Helvetica, Arial, sans-serif;
+        font-weight: 300;
+        line-height: 1.625;
+}
+body {
+        color: #333;
+        font: 15px "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
+        font-weight: 300;
+        line-height: 1.625;
+}
+
+/* Headings */
+h1,h2,h3,h4,h5,h6 {
+        clear: both;
+}
+h1,
+h2 {
+        color: #000;
+        font-size: 15px;
+        font-weight: bold;
+        margin: 0 0 .8125em;
+}
+h3 {
+        font-size: 10px;
+        letter-spacing: 0.1em;
+        line-height: 2.6em;
+        text-transform: uppercase;
+}
+h4, h5, h6 {
+        font-size: 14px;
+        margin: 0;
+}
+hr {
+        background-color: #ccc;
+        border: 0;
+        height: 1px;
+        margin-bottom: 1.625em;
+}
+
+/* Text elements */
+p {
+        margin-bottom: 1.625em;
+}
+ul, ol {
+        margin: 0 0 1.625em 2.5em;
+        padding: 0;
+}
+ul {
+        list-style: square;
+}
+ol {
+        list-style-type: decimal;
+}
+ol ol {
+        list-style: upper-alpha;
+}
+ol ol ol {
+        list-style: lower-roman;
+}
+ol ol ol ol {
+        list-style: lower-alpha;
+}
+ul ul, ol ol, ul ol, ol ul {
+        margin-bottom: 0;
+}
+dl {
+        margin: 0 1.625em;
+}
+dt {
+        font-size: 15px;
+        font-weight: bold;
+}
+dd {
+        margin: 0 0 1.625em;
+}
+strong {
+        font-weight: bold;
+}
+cite, em, i {
+        font-style: italic;
+}
+cite {
+        border: none;
+}
+big {
+        font-size: 131.25%;
+}
+blockquote {
+        font-family: Georgia, "Bitstream Charter", serif !important;
+        font-style: italic !important;
+        font-weight: normal;
+        margin: 0 3em;
+}
+blockquote em, blockquote i, blockquote cite {
+        font-style: normal;
+}
+blockquote cite {
+        color: #666;
+        font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
+        font-weight: 300;
+        letter-spacing: 0.05em;
+        text-transform: uppercase;
+}
+pre {
+        background: #f4f4f4;
+        font: 13px "Courier 10 Pitch", Courier, monospace;
+        line-height: 1.5;
+        margin-bottom: 1.625em;
+        padding: 0.75em 1.625em;
+}
+code, kbd, code var {
+        font: 13px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
+}
+abbr, acronym, dfn {
+        border-bottom: 1px dotted #666;
+        cursor: help;
+}
+address {
+        display: block;
+        margin: 0 0 1.625em;
+}
+del {
+        color: #333;
+}
+ins {
+        background: #fff9c0;
+        border: none;
+        color: #333;
+        text-decoration: none;
+}
+sup,
+sub {
+        font-size: 10px;
+        height: 0;
+        line-height: 1;
+        position: relative;
+        vertical-align: baseline;
+}
+sup {
+        bottom: 1ex;
+}
+sub {
+        top: .5ex;
+}
+input[type=text],
+textarea {
+        background: #fafafa;
+        -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
+        -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
+        box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
+        border: 1px solid #ddd;
+        color: #888;
+}
+input[type=text]:focus,
+textarea:focus {
+        color: #333;
+}
+textarea {
+        padding-left: 3px;
+        width: 98%;
+}
+input[type=text] {
+        padding: 3px;
+}
+
+/* Links */
+a {
+        color: #1b8be0;
+        text-decoration: none;
+}
+a:focus,
+a:active,
+a:hover {
+        text-decoration: underline;
+}
+
+/* Alignment */
+.alignleft {
+        display: inline;
+        float: left;
+        margin-right: 1.625em;
+}
+.alignright {
+        display: inline;
+        float: right;
+        margin-left: 1.625em;
+}
+.aligncenter {
+        clear: both;
+        display: block;
+        margin-left: auto;
+        margin-right: auto;
+}
+
+/* Tables */
+table {
+        border: none !important;
+        border-bottom: 1px solid #ddd !important;
+        border-collapse: collapse;
+        border-spacing: 0;
+        text-align: left;
+        margin: 0 0 1.625em;
+        width: 100%;
+}
+tr th {
+        border: none !important;
+        color: #666;
+        font-size: 10px;
+        font-weight: 500;
+        letter-spacing: 0.1em;
+        line-height: 2.6em;
+        text-transform: uppercase;
+}
+td {
+        border: none !important;
+        border-top: 1px solid #ddd !important;
+        padding: 6px 10px 6px 0;
+}
+
+/* Images */
+img.size-auto,
+img.size-large,
+img.size-full,
+img.size-medium,
+img.size-thumbnail {
+        height: auto;
+        max-width: 100%;
+}
+img.wp-smiley {
+        margin-bottom: 0;
+        margin-top: 0;
+}
+p img,
+.wp-caption {
+        margin-top: 0.4em;
+}
+.wp-caption {
+        background: #f4f2ed;
+        border: none;
+        margin-bottom: 1.625em;
+        max-width: 96%;
+        padding: 12px;
+}
+.wp-caption img {
+        display: block;
+        margin: 5px auto 0 !important;
+        max-width: 98%;
+}
+.wp-caption .wp-caption-text,
+.wp-caption-dd {
+        color: #666;
+        font-family: Georgia, serif !important;
+        font-size: 12px;
+        margin: 0 0 0.6em 0 !important;
+        padding: 0 0 5px 40px;
+        position: relative;
+        text-align: left;
+}
+.wp-caption .wp-caption-text:before {
+        color: #9b8a62;
+        content: '\2014';
+        font-size: 14px;
+        font-style: normal;
+        font-weight: bold;
+        margin-right: 5px;
+        position: absolute;
+        left: 10px;
+        top: 7px;
+}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/functions.php (17815 => 17816)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/functions.php        2011-05-05 22:13:03 UTC (rev 17815)
+++ trunk/wp-content/themes/twentyeleven/functions.php        2011-05-05 22:46:37 UTC (rev 17816)
</span><span class="lines">@@ -60,10 +60,11 @@
</span><span class="cx"> * To override twentyeleven_setup() in a child theme, add your own twentyeleven_setup to your child theme's
</span><span class="cx"> * functions.php file.
</span><span class="cx"> *
</span><del>- * @uses add_theme_support() To add support for post thumbnails and automatic feed links.
</del><ins>+ * @uses load_theme_textdomain() For translation/localization support.
+ * @uses add_editor_style() To style the visual editor.
+ * @uses add_theme_support() To add support for post thumbnails, automatic feed links, and Post Formats.
</ins><span class="cx"> * @uses register_nav_menus() To add support for navigation menus.
</span><span class="cx"> * @uses add_custom_background() To add support for a custom background.
</span><del>- * @uses load_theme_textdomain() For translation/localization support.
</del><span class="cx"> * @uses add_custom_image_header() To add support for a custom header.
</span><span class="cx"> * @uses register_default_headers() To register the default custom header images provided with the theme.
</span><span class="cx"> * @uses set_post_thumbnail_size() To set a custom post thumbnail size.
</span><span class="lines">@@ -84,6 +85,9 @@
</span><span class="cx">         if ( is_readable( $locale_file ) )
</span><span class="cx">                 require_once( $locale_file );
</span><span class="cx">
</span><ins>+        // This theme styles the visual editor with editor-style.css to match the theme style.
+        add_editor_style();
+
</ins><span class="cx">         // Load up our theme options page and related code.
</span><span class="cx">         require( dirname( __FILE__ ) . '/inc/theme-options.php' );
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>