Twenty Twelve: update editor stylesheet, props obenland. See #21376.

git-svn-id: http://core.svn.wordpress.org/trunk@21409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
lancewillett 2012-08-02 21:06:03 +00:00
parent 56d2518a3a
commit cc8c8f1f0f
2 changed files with 50 additions and 21 deletions

View File

@ -1,6 +1,6 @@
/* /**
Theme Name: Twenty Twelve * Theme Name: Twenty Twelve
Description: Used to style the TinyMCE editor. * Description: Used to style the TinyMCE editor.
*/ */
html { html {
@ -19,7 +19,10 @@ body {
vertical-align: baseline; vertical-align: baseline;
} }
/* Headings */
/* =Headings
-------------------------------------------------------------- */
h1, h1,
h2, h2,
h3, h3,
@ -65,13 +68,17 @@ hr {
margin-bottom: 1.714285714rem; margin-bottom: 1.714285714rem;
} }
/* Text elements */
/* =Text elements
-------------------------------------------------------------- */
p { p {
line-height: 1.714285714; line-height: 1.714285714;
margin: 0 0 24px; margin: 0 0 24px;
margin: 0 0 1.714285714rem; margin: 0 0 1.714285714rem;
} }
ul, ol { ul,
ol {
margin: 0 0 24px; margin: 0 0 24px;
margin: 0 0 1.714285714rem; margin: 0 0 1.714285714rem;
line-height: 1.714285714; line-height: 1.714285714;
@ -83,7 +90,10 @@ ul {
ol { ol {
list-style: decimal outside; list-style: decimal outside;
} }
ul ul, ol ol, ul ol, ol ul { ul ul,
ol ol,
ul ol,
ol ul {
margin-bottom: 0; margin-bottom: 0;
} }
li { li {
@ -107,7 +117,9 @@ dd {
strong { strong {
font-weight: bold; font-weight: bold;
} }
cite, em, i { cite,
em,
i {
font-style: italic; font-style: italic;
} }
cite { cite {
@ -136,13 +148,18 @@ pre {
padding: 24px; padding: 24px;
padding: 1.714285714rem; padding: 1.714285714rem;
} }
code, kbd, samp, var { code,
kbd,
samp,
var {
font-family: Consolas, Monaco, Lucida Console, monospace; font-family: Consolas, Monaco, Lucida Console, monospace;
font-size: 12px; font-size: 12px;
font-size: 0.857142857rem; font-size: 0.857142857rem;
line-height: 2; line-height: 2;
} }
abbr, acronym, dfn { abbr,
acronym,
dfn {
border-bottom: 1px dotted #666; border-bottom: 1px dotted #666;
cursor: help; cursor: help;
} }
@ -174,7 +191,7 @@ sup {
sub { sub {
bottom: -0.25em; bottom: -0.25em;
} }
input[type=text] { input[type="text"] {
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 3px; border-radius: 3px;
font-family: inherit; font-family: inherit;
@ -193,7 +210,10 @@ textarea {
width: 96%; width: 96%;
} }
/* Links */
/* =Links
-------------------------------------------------------------- */
a, a,
a em, a em,
a strong { a strong {
@ -206,10 +226,15 @@ a:hover {
color: #0f3647; color: #0f3647;
} }
/* Alignment */
/* =Alignment
-------------------------------------------------------------- */
.alignleft { .alignleft {
display: inline; display: inline;
float: left; float: left;
margin: 12px 24px 12px 0;
margin: 0.857142857rem 1.714285714rem 0.857142857rem 0;
} }
.alignright { .alignright {
display: inline; display: inline;
@ -226,7 +251,10 @@ a:hover {
margin-bottom: 0.857142857rem; margin-bottom: 0.857142857rem;
} }
/* Tables */
/* =Tables
-------------------------------------------------------------- */
table { table {
border-bottom: 1px solid #ededed; border-bottom: 1px solid #ededed;
border-collapse: collapse; border-collapse: collapse;
@ -257,7 +285,10 @@ td {
text-align: left; text-align: left;
} }
/* Images */
/* =Images
-------------------------------------------------------------- */
img { img {
border: 0; border: 0;
border-radius: 3px; border-radius: 3px;
@ -271,10 +302,6 @@ img[class*="wp-image-"] {
height: auto; height: auto;
max-width: 100%; max-width: 100%;
} }
img.alignleft {
margin: 12px 24px 12px 0;
margin: 0.857142857rem 1.714285714rem 0.857142857rem 0;
}
img[class*="align"], img[class*="align"],
img[class*="wp-image-"], img[class*="wp-image-"],
img[class*="attachment-"] { img[class*="attachment-"] {

View File

@ -62,10 +62,12 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
body { body {
line-height: 1; line-height: 1;
} }
ol, ul { ol,
ul {
list-style: none; list-style: none;
} }
blockquote, q { blockquote,
q {
quotes: none; quotes: none;
} }
blockquote:before, blockquote:before,