Twenty Thirteen: first pass to add RTL for editor styles, see #24298. Props obenland for starter patch. Adds table of contents to this file and fixes spelling in style.css ToC.

git-svn-id: http://core.svn.wordpress.org/trunk@24309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-05-20 22:35:08 +00:00
parent 908a7b5368
commit d1ba0654c9
3 changed files with 57 additions and 16 deletions

View File

@ -1,7 +0,0 @@
/*
Theme Name: Twenty Thirteen
Description: Used to style the TinyMCE editor for RTL languages.
See also rtl.css file.
*/
/* TODO */

View File

@ -3,6 +3,28 @@ Theme Name: Twenty Thirteen
Description: Used to style the TinyMCE editor.
*/
/**
* Table of Contents:
*
* 1.0 - Body
* 2.0 - Headings
* 3.0 - Text Elements
* 4.0 - Links
* 5.0 - Alignment
* 6.0 - Tables
* 7.0 - Images
* 8.0 - Post Formats
* 9.0 - RTL
* ----------------------------------------------------------------------------
*/
/**
* 1.0 Body
* ----------------------------------------------------------------------------
*/
html .mceContentBody {
font-size: 100%;
max-width: 604px;
@ -18,7 +40,7 @@ body {
/**
* Headings
* 2.0 Headings
* ----------------------------------------------------------------------------
*/
@ -73,7 +95,7 @@ hr {
/**
* Text elements
* 3.0 Text Elements
* ----------------------------------------------------------------------------
*/
@ -210,7 +232,7 @@ sub {
/**
* Links
* 4.0 Links
* ----------------------------------------------------------------------------
*/
@ -239,7 +261,7 @@ a:hover {
/**
* Alignment
* 5.0 Alignment
* ----------------------------------------------------------------------------
*/
@ -264,7 +286,7 @@ img.alignnone {
/**
* Tables
* 6.0 Tables
* ----------------------------------------------------------------------------
*/
@ -302,7 +324,7 @@ td {
/**
* Images
* 7.0 Images
* ----------------------------------------------------------------------------
*/
@ -344,7 +366,7 @@ img {
}
/**
* Post Formats
* 8.0 Post Formats
* ----------------------------------------------------------------------------
*/
@ -488,4 +510,30 @@ img {
.post-format-video a {
color: #fbfaf3;
}
/**
* 9.0 RTL
* ----------------------------------------------------------------------------
*/
html .mceContentBody.rtl {
direction: rtl;
unicode-bidi: embed;
}
.rtl ol,
.rtl ul {
padding: 0 40px 0 0;
}
.rtl .wp-caption,
.rtl tr th {
text-align: right;
}
.rtl td {
padding: 6px 0 6px 10px;
text-align: right;
}

View File

@ -20,7 +20,7 @@ Use it to make something cool, have fun, and share what you've learned with othe
*
* 1.0 - Reset
* 2.0 - Repeatable Patterns
* 3.0 - Site Structure
* 3.0 - Basic Structure
* 4.0 - Header
* 4.1 - Site Header
* 4.2 - Navigation
@ -453,7 +453,7 @@ hr {
/**
* 2.0 Repeatable patterns
* 2.0 Repeatable Patterns
* ----------------------------------------------------------------------------
*/