Make WordPress Core

Ticket #21376: 21376.4.diff

File 21376.4.diff, 6.0 KB (added by obenland, 13 years ago)

Iteration 3

  • wp-content/themes/twentytwelve/editor-style-rtl.css

     
     1/**
     2 * Theme Name: Twenty Twelve
     3 *
     4 * Used to style the TinyMCE editor for RTL languages.
     5 */
     6
     7html .mceContentBody {
     8        direction: rtl;
     9        unicode-bidi: embed;
     10        float: right;
     11}
     12
     13li {
     14        margin: 0 24px 0 0;
     15        margin: 0 1.714285714rem 0 0;
     16}
     17
     18td {
     19        text-align: right;
     20}
     21
     22.wp-caption-dd {
     23        padding-right: 10px;
     24        text-align: right;
     25}
     26
     27.alignleft {
     28        float: right;
     29        margin: 12px 0 12px 24px;
     30        margin: 0.857142857rem 0 0.857142857rem 1.714285714rem;
     31}
     32
     33.alignright {
     34        float: left;
     35        margin: 12px 24px 12px 0;
     36        margin: 0.857142857rem 1.714285714rem 0.857142857rem 0;
     37}
     38 No newline at end of file
  • wp-content/themes/twentytwelve/editor-style.css

     
    1 /*
    2 Theme Name: Twenty Twelve
    3 Description: Used to style the TinyMCE editor.
    4 */
     1/**
     2 * Theme Name: Twenty Twelve
     3 * Description: Used to style the TinyMCE editor.
     4 */
    55
    66html {
    77        font-size: 87.5%;
    88}
     9
    910html .mceContentBody {
    1011        max-width: 625px;
    1112}
     13
    1214body {
    1315        color: #444;
    1416        font-family: "Open Sans", Helvetica, Arial, sans-serif;
     
    1921        vertical-align: baseline;
    2022}
    2123
    22 /* Headings */
     24/**
     25 * 1.0 Headings
     26 */
    2327h1,
    2428h2,
    2529h3,
     
    3135        margin: 24px 0;
    3236        margin: 1.714285714rem 0;
    3337}
     38
    3439h1 {
    3540        font-size: 21px;
    3641        font-size: 1.5rem;
    3742        line-height: 1.5;
    3843}
     44
    3945h2 {
    4046        font-size: 18px;
    4147        font-size: 1.285714286rem;
    4248        line-height: 1.6;
    4349}
     50
    4451h3 {
    4552        font-size: 16px;
    4653        font-size: 1.142857143rem;
    4754}
     55
    4856h4 {
    4957        font-size: 14px;
    5058        font-size: 1rem;
    5159}
     60
    5261h5 {
    5362        font-size: 13px;
    5463        font-size: 0.928571429rem;
    5564}
     65
    5666h6 {
    5767        font-size: 12px;
    5868        font-size: 0.857142857rem;
    5969}
     70
    6071hr {
    6172        /* TODO */
    6273}
    6374
    64 /* Text elements */
     75/**
     76 * 2.0 Text elements
     77 */
    6578p {
    6679        line-height: 1.714285714;
    6780        margin: 0 0 24px;
    6881        margin: 0 0 1.714285714rem;
    6982}
    70 ul, ol {
     83
     84ul,
     85ol {
     86        line-height: 1.714285714;
    7187        margin: 0 0 24px;
    7288        margin: 0 0 1.714285714rem;
    73         line-height: 1.714285714;
    7489        padding: 0;
    7590}
     91
    7692ul {
    7793        list-style: disc outside;
    7894}
     95
    7996ol {
    8097        list-style: decimal outside;
    8198}
    82 ul ul, ol ol, ul ol, ol ul {
     99
     100ul ul,
     101ol ol,
     102ul ol,
     103ol ul {
    83104        margin-bottom: 0;
    84105}
     106
    85107li {
    86108        margin: 0 0 0 24px;
    87109        margin: 0 0 0 1.714285714rem;
    88110}
     111
    89112dl {
    90113        margin: 0 24px;
    91114        margin: 0 1.714285714rem;
    92115}
     116
    93117dt {
    94118        font-weight: bold;
    95119        margin-bottom: 24px;
    96120        margin-bottom: 1.714285714rem;
    97121}
     122
    98123dd {
    99124        line-height: 1.714285714;
    100125        margin: 0 0 24px;
    101126        margin: 0 0 1.714285714rem;
    102127}
     128
    103129strong {
    104130        font-weight: bold;
    105131}
    106 cite, em, i {
     132
     133cite,
     134em,
     135i {
    107136        font-style: italic;
    108137}
     138
    109139cite {
    110140        border: none;
    111141}
     
    113143big {
    114144        /* TODO */
    115145}
     146
    116147.mceContentBody blockquote {
    117148        font-style: italic !important;
    118149        font-weight: normal;
     
    120151        padding: 24px;
    121152        padding: 1.714285714rem;
    122153}
     154
    123155pre {
    124156        border: 1px solid #ededed;
    125157        color: #666;
     
    133165        padding: 24px;
    134166        padding: 1.714285714rem;
    135167}
    136 code, kbd, samp, var {
     168
     169code,
     170kbd,
     171samp,
     172var {
    137173        font-family: Consolas, Monaco, Lucida Console, monospace;
    138174        font-size: 12px;
    139175        font-size: 0.857142857rem;
    140176        line-height: 2;
    141177}
    142 abbr, acronym, dfn {
     178
     179abbr,
     180acronym,
     181dfn {
    143182        border-bottom: 1px dotted #666;
    144183        cursor: help;
    145184}
     185
    146186address {
    147187        display: block;
    148188        line-height: 1.714285714;
    149189        margin: 0 0 24px;
    150190        margin: 0 0 1.714285714rem;
    151191}
     192
    152193del {
    153194        /* TODO */
    154195}
     196
    155197ins {
    156198        /* TODO */
    157199}
     200
    158201sup,
    159202sub {
    160203        font-size: 75%;
     
    165208sup {
    166209        top: -0.5em;
    167210}
     211
    168212sub {
    169213        bottom: -0.25em;
    170214}
     215
    171216input[type=text] {
    172217        border: 1px solid #ccc;
    173218        border-radius: 3px;
     
    175220        padding: 6px;
    176221        padding: 0.428571429rem;
    177222}
     223
    178224textarea {
    179225        border: 1px solid #d5d2ca;
    180226        border-radius: 3px;
     
    187233        width: 96%;
    188234}
    189235
    190 /* Links */
     236/**
     237 * 3.0 Links
     238 */
    191239a,
    192240a em,
    193241a strong {
    194242        color: #21759b;
    195243        outline: none;
    196244}
     245
    197246a:focus,
    198247a:active,
    199248a:hover {
    200249        color: #0f3647;
    201250}
    202251
    203 /* Alignment */
     252/**
     253 * 4.0 Alignment
     254 */
    204255.alignleft {
    205256        display: inline;
    206257        float: left;
     258        margin: 12px 24px 12px 0;
     259        margin: 0.857142857rem 1.714285714rem 0.857142857rem 0;
    207260}
     261
    208262.alignright {
    209263        display: inline;
    210264        float: right;
    211265        margin: 12px 0 12px 24px;
    212266        margin: 0.857142857rem 0 0.857142857rem 1.714285714rem;
    213267}
     268
    214269.aligncenter {
    215270        clear: both;
    216271        display: block;
     
    220275        margin-bottom: 0.857142857rem;
    221276}
    222277
    223 /* Tables */
     278/**
     279 * 5.0 Tables
     280 */
    224281table {
    225282        border-bottom: 1px solid #ededed;
    226283        border-collapse: collapse;
     
    233290        margin: 0 0 1.714285714rem;
    234291        width: 100%;
    235292}
     293
    236294tr th {
    237295        color: #636363;
    238296        font-size: 11px;
     
    242300        text-align: left;
    243301        text-transform: uppercase;
    244302}
     303
    245304td {
    246305        border-top: 1px solid #ededed !important;
    247306        color: #777;
     
    251310        text-align: left;
    252311}
    253312
    254 /* Images */
     313/**
     314 * 5.0 Images
     315 */
    255316img {
    256317        border: 0;
    257318        border-radius: 3px;
    258319        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    259320        max-width: 100%;
    260321}
     322
    261323img.size-full {
    262324        width: auto/9; /* Prevent stretching of full-size images in IE8 */
    263325}
     326
    264327img[class*="wp-image-"] {
    265328        height: auto;
    266329        max-width: 100%;
    267330}
    268 img.alignleft {
    269         margin: 12px 24px 12px 0;
    270         margin: 0.857142857rem 1.714285714rem 0.857142857rem 0;
    271 }
     331
     332
    272333img[class*="align"],
    273334img[class*="wp-image-"],
    274335img[class*="attachment-"] {
    275336        height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
    276337}
     338
    277339img.mceWPnextpage {
    278340        border-radius: 0;
    279341        box-shadow: none;
    280342}
     343
    281344img.wp-smiley {
    282345        border: 0;
    283346        border-radius: 0;
     
    286349        margin-top: 0;
    287350        padding: 0;
    288351}
     352
    289353.wp-caption {
    290354        background: transparent;
    291355        border: none;
     
    293357        padding: 4px;
    294358        text-align: left;
    295359}
     360
    296361.wp-caption-dt {
    297362        margin: 0;
    298363}
     364
    299365.wp-caption .wp-caption-text,
    300366.wp-caption-dd {
    301367        color: #777;