Ticket #21376: 21376.4.diff
File 21376.4.diff, 6.0 KB (added by , 13 years ago) |
---|
-
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 7 html .mceContentBody { 8 direction: rtl; 9 unicode-bidi: embed; 10 float: right; 11 } 12 13 li { 14 margin: 0 24px 0 0; 15 margin: 0 1.714285714rem 0 0; 16 } 17 18 td { 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 Twelve3 Description: Used to style the TinyMCE editor.4 */1 /** 2 * Theme Name: Twenty Twelve 3 * Description: Used to style the TinyMCE editor. 4 */ 5 5 6 6 html { 7 7 font-size: 87.5%; 8 8 } 9 9 10 html .mceContentBody { 10 11 max-width: 625px; 11 12 } 13 12 14 body { 13 15 color: #444; 14 16 font-family: "Open Sans", Helvetica, Arial, sans-serif; … … 19 21 vertical-align: baseline; 20 22 } 21 23 22 /* Headings */ 24 /** 25 * 1.0 Headings 26 */ 23 27 h1, 24 28 h2, 25 29 h3, … … 31 35 margin: 24px 0; 32 36 margin: 1.714285714rem 0; 33 37 } 38 34 39 h1 { 35 40 font-size: 21px; 36 41 font-size: 1.5rem; 37 42 line-height: 1.5; 38 43 } 44 39 45 h2 { 40 46 font-size: 18px; 41 47 font-size: 1.285714286rem; 42 48 line-height: 1.6; 43 49 } 50 44 51 h3 { 45 52 font-size: 16px; 46 53 font-size: 1.142857143rem; 47 54 } 55 48 56 h4 { 49 57 font-size: 14px; 50 58 font-size: 1rem; 51 59 } 60 52 61 h5 { 53 62 font-size: 13px; 54 63 font-size: 0.928571429rem; 55 64 } 65 56 66 h6 { 57 67 font-size: 12px; 58 68 font-size: 0.857142857rem; 59 69 } 70 60 71 hr { 61 72 /* TODO */ 62 73 } 63 74 64 /* Text elements */ 75 /** 76 * 2.0 Text elements 77 */ 65 78 p { 66 79 line-height: 1.714285714; 67 80 margin: 0 0 24px; 68 81 margin: 0 0 1.714285714rem; 69 82 } 70 ul, ol { 83 84 ul, 85 ol { 86 line-height: 1.714285714; 71 87 margin: 0 0 24px; 72 88 margin: 0 0 1.714285714rem; 73 line-height: 1.714285714;74 89 padding: 0; 75 90 } 91 76 92 ul { 77 93 list-style: disc outside; 78 94 } 95 79 96 ol { 80 97 list-style: decimal outside; 81 98 } 82 ul ul, ol ol, ul ol, ol ul { 99 100 ul ul, 101 ol ol, 102 ul ol, 103 ol ul { 83 104 margin-bottom: 0; 84 105 } 106 85 107 li { 86 108 margin: 0 0 0 24px; 87 109 margin: 0 0 0 1.714285714rem; 88 110 } 111 89 112 dl { 90 113 margin: 0 24px; 91 114 margin: 0 1.714285714rem; 92 115 } 116 93 117 dt { 94 118 font-weight: bold; 95 119 margin-bottom: 24px; 96 120 margin-bottom: 1.714285714rem; 97 121 } 122 98 123 dd { 99 124 line-height: 1.714285714; 100 125 margin: 0 0 24px; 101 126 margin: 0 0 1.714285714rem; 102 127 } 128 103 129 strong { 104 130 font-weight: bold; 105 131 } 106 cite, em, i { 132 133 cite, 134 em, 135 i { 107 136 font-style: italic; 108 137 } 138 109 139 cite { 110 140 border: none; 111 141 } … … 113 143 big { 114 144 /* TODO */ 115 145 } 146 116 147 .mceContentBody blockquote { 117 148 font-style: italic !important; 118 149 font-weight: normal; … … 120 151 padding: 24px; 121 152 padding: 1.714285714rem; 122 153 } 154 123 155 pre { 124 156 border: 1px solid #ededed; 125 157 color: #666; … … 133 165 padding: 24px; 134 166 padding: 1.714285714rem; 135 167 } 136 code, kbd, samp, var { 168 169 code, 170 kbd, 171 samp, 172 var { 137 173 font-family: Consolas, Monaco, Lucida Console, monospace; 138 174 font-size: 12px; 139 175 font-size: 0.857142857rem; 140 176 line-height: 2; 141 177 } 142 abbr, acronym, dfn { 178 179 abbr, 180 acronym, 181 dfn { 143 182 border-bottom: 1px dotted #666; 144 183 cursor: help; 145 184 } 185 146 186 address { 147 187 display: block; 148 188 line-height: 1.714285714; 149 189 margin: 0 0 24px; 150 190 margin: 0 0 1.714285714rem; 151 191 } 192 152 193 del { 153 194 /* TODO */ 154 195 } 196 155 197 ins { 156 198 /* TODO */ 157 199 } 200 158 201 sup, 159 202 sub { 160 203 font-size: 75%; … … 165 208 sup { 166 209 top: -0.5em; 167 210 } 211 168 212 sub { 169 213 bottom: -0.25em; 170 214 } 215 171 216 input[type=text] { 172 217 border: 1px solid #ccc; 173 218 border-radius: 3px; … … 175 220 padding: 6px; 176 221 padding: 0.428571429rem; 177 222 } 223 178 224 textarea { 179 225 border: 1px solid #d5d2ca; 180 226 border-radius: 3px; … … 187 233 width: 96%; 188 234 } 189 235 190 /* Links */ 236 /** 237 * 3.0 Links 238 */ 191 239 a, 192 240 a em, 193 241 a strong { 194 242 color: #21759b; 195 243 outline: none; 196 244 } 245 197 246 a:focus, 198 247 a:active, 199 248 a:hover { 200 249 color: #0f3647; 201 250 } 202 251 203 /* Alignment */ 252 /** 253 * 4.0 Alignment 254 */ 204 255 .alignleft { 205 256 display: inline; 206 257 float: left; 258 margin: 12px 24px 12px 0; 259 margin: 0.857142857rem 1.714285714rem 0.857142857rem 0; 207 260 } 261 208 262 .alignright { 209 263 display: inline; 210 264 float: right; 211 265 margin: 12px 0 12px 24px; 212 266 margin: 0.857142857rem 0 0.857142857rem 1.714285714rem; 213 267 } 268 214 269 .aligncenter { 215 270 clear: both; 216 271 display: block; … … 220 275 margin-bottom: 0.857142857rem; 221 276 } 222 277 223 /* Tables */ 278 /** 279 * 5.0 Tables 280 */ 224 281 table { 225 282 border-bottom: 1px solid #ededed; 226 283 border-collapse: collapse; … … 233 290 margin: 0 0 1.714285714rem; 234 291 width: 100%; 235 292 } 293 236 294 tr th { 237 295 color: #636363; 238 296 font-size: 11px; … … 242 300 text-align: left; 243 301 text-transform: uppercase; 244 302 } 303 245 304 td { 246 305 border-top: 1px solid #ededed !important; 247 306 color: #777; … … 251 310 text-align: left; 252 311 } 253 312 254 /* Images */ 313 /** 314 * 5.0 Images 315 */ 255 316 img { 256 317 border: 0; 257 318 border-radius: 3px; 258 319 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); 259 320 max-width: 100%; 260 321 } 322 261 323 img.size-full { 262 324 width: auto/9; /* Prevent stretching of full-size images in IE8 */ 263 325 } 326 264 327 img[class*="wp-image-"] { 265 328 height: auto; 266 329 max-width: 100%; 267 330 } 268 img.alignleft { 269 margin: 12px 24px 12px 0; 270 margin: 0.857142857rem 1.714285714rem 0.857142857rem 0; 271 } 331 332 272 333 img[class*="align"], 273 334 img[class*="wp-image-"], 274 335 img[class*="attachment-"] { 275 336 height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ 276 337 } 338 277 339 img.mceWPnextpage { 278 340 border-radius: 0; 279 341 box-shadow: none; 280 342 } 343 281 344 img.wp-smiley { 282 345 border: 0; 283 346 border-radius: 0; … … 286 349 margin-top: 0; 287 350 padding: 0; 288 351 } 352 289 353 .wp-caption { 290 354 background: transparent; 291 355 border: none; … … 293 357 padding: 4px; 294 358 text-align: left; 295 359 } 360 296 361 .wp-caption-dt { 297 362 margin: 0; 298 363 } 364 299 365 .wp-caption .wp-caption-text, 300 366 .wp-caption-dd { 301 367 color: #777;