Ticket #14303: 14303-revised.diff
| File 14303-revised.diff, 7.0 KB (added by , 16 years ago) |
|---|
-
style.css
4 4 Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar. 5 5 Author: the WordPress team 6 6 Version: 1.1 7 Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style 7 Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu 8 8 */ 9 9 10 10 … … 759 759 /* =Images 760 760 -------------------------------------------------------------- */ 761 761 762 #content img { 763 margin: 0; 764 height: auto; 765 max-width: 640px; 766 width: auto; 767 } 762 /* 763 Resize images to fit the main content area. 764 - Applies only to images uploaded via WordPress by targeting size-* classes. 765 - Other images will be left alone. Use "size-auto" class to apply to other images. 766 */ 767 #content img.size-auto, 768 #content img.size-full, 769 #content img.size-large, 770 #content img.size-medium, 768 771 #content .attachment img { 769 max-width: 900px; 772 max-width: 100%; /* When images are too wide for containing element, force them to fit. */ 773 width: auto; /* Necessary for IE8 to resize images correctly. */ 774 height: auto; /* Override height to match resized width for correct aspect ratio. */ 770 775 } 771 #content.alignleft,772 #contentimg.alignleft {776 .alignleft, 777 img.alignleft { 773 778 display: inline; 774 779 float: left; 775 780 margin-right: 24px; 776 781 margin-top: 4px; 777 782 } 778 #content.alignright,779 #contentimg.alignright {783 .alignright, 784 img.alignright { 780 785 display: inline; 781 786 float: right; 782 787 margin-left: 24px; 783 788 margin-top: 4px; 784 789 } 785 #content.aligncenter,786 #contentimg.aligncenter {790 .aligncenter, 791 img.aligncenter { 787 792 clear: both; 788 793 display: block; 789 794 margin-left: auto; 790 795 margin-right: auto; 791 796 } 792 #contentimg.alignleft,793 #contentimg.alignright,794 #contentimg.aligncenter {797 img.alignleft, 798 img.alignright, 799 img.aligncenter { 795 800 margin-bottom: 12px; 796 801 } 797 #content.wp-caption {802 .wp-caption { 798 803 background: #f1f1f1; 799 804 line-height: 18px; 800 805 margin-bottom: 20px; 806 max-width: 632px !important; /* prevent too-wide images from breaking layout */ 801 807 padding: 4px; 802 808 text-align: center; 803 809 } 804 #content.wp-caption img {810 .wp-caption img { 805 811 margin: 5px 5px 0; 806 812 } 807 #content.wp-caption p.wp-caption-text {813 .wp-caption p.wp-caption-text { 808 814 color: #888; 809 815 font-size: 12px; 810 816 margin: 5px; 811 817 } 812 #content.wp-smiley {818 .wp-smiley { 813 819 margin: 0; 814 820 } 815 #content.gallery {821 .gallery { 816 822 margin: 0 auto 18px; 817 823 } 818 #content.gallery .gallery-item {824 .gallery .gallery-item { 819 825 float: left; 820 826 margin-top: 0; 821 827 text-align: center; 822 828 width: 33%; 823 829 } 824 #content.gallery img {830 .gallery img { 825 831 border: 2px solid #cfcfcf; 826 832 } 827 #content.gallery .gallery-caption {833 .gallery .gallery-caption { 828 834 color: #888; 829 835 font-size: 12px; 830 836 margin: 0 0 12px; 831 837 } 832 #content.gallery dl {838 .gallery dl { 833 839 margin: 0; 834 840 } 835 #content.gallery img {841 .gallery img { 836 842 border: 10px solid #f1f1f1; 837 843 } 838 #content.gallery br+br {844 .gallery br+br { 839 845 display: none; 840 846 } 841 #content .attachment img { /* single attachment images should be centered */847 #content .attachment img {/* single attachment images should be centered */ 842 848 display: block; 843 849 margin: 0 auto; 844 850 } -
editor-style.css
1 1 /* 2 2 Theme Name: Twenty Ten 3 Description: Used to style the TinyMCE editor. 3 4 */ 4 /*5 Used to style the TinyMCE editor.6 */7 5 html .mceContentBody { 8 max-width: 640px;6 max-width: 640px; 9 7 } 10 8 * { 9 color: #444; 11 10 font-family: Georgia, "Bitstream Charter", serif; 12 color: #444;13 11 line-height: 1.5; 14 12 } 15 13 p, … … 40 38 } 41 39 hr { 42 40 background-color: #e7e7e7; 43 border:0; 41 border: 0; 42 clear: both; 44 43 height: 1px; 45 44 margin-bottom: 18px; 46 clear:both;47 45 } 48 46 /* Text elements */ 49 47 p { … … 58 56 margin: 0 0 18px 1.5em; 59 57 } 60 58 ol ol { 61 list-style: upper-alpha;59 list-style: upper-alpha; 62 60 } 63 61 ol ol ol { 64 list-style: lower-roman;62 list-style: lower-roman; 65 63 } 66 64 ol ol ol ol { 67 list-style: lower-alpha;65 list-style: lower-alpha; 68 66 } 69 67 ul ul, 70 68 ol ol, 71 69 ul ol, 72 70 ol ul { 73 margin-bottom: 0;71 margin-bottom: 0; 74 72 } 75 73 dl { 76 margin: 0 0 24px 0;74 margin: 0 0 24px 0; 77 75 } 78 76 dt { 79 77 font-weight: bold; … … 82 80 margin-bottom: 18px; 83 81 } 84 82 strong { 83 color: #000; 85 84 font-weight: bold; 86 color: #000;87 85 } 88 86 cite, 89 87 em, 90 88 i { 89 border: none; 91 90 font-style: italic; 92 border: none;93 91 } 94 92 big { 95 93 font-size: 131.25%; 96 94 } 97 95 ins { 98 background: #ff ffcc;96 background: #ffc; 99 97 border: none; 100 98 color: #333; 101 99 } … … 129 127 } 130 128 sup, 131 129 sub { 130 font-size: 10px; 132 131 height: 0; 133 132 line-height: 1; 133 position: relative; 134 134 vertical-align: baseline; 135 position: relative;136 font-size: 10px;137 135 } 138 136 sup { 139 137 bottom: 1ex; … … 142 140 top: .5ex; 143 141 } 144 142 a:link { 145 color: #0066cc;143 color: #06c; 146 144 } 147 145 a:visited { 148 color: #743399;146 color: #743399; 149 147 } 150 148 a:active, 151 149 a:hover { … … 157 155 dd, 158 156 pre, 159 157 hr { 160 margin-bottom: 24px;158 margin-bottom: 24px; 161 159 } 162 160 ul ul, 163 161 ol ol, 164 162 ul ol, 165 163 ol ul { 166 margin-bottom: 0;164 margin-bottom: 0; 167 165 } 168 166 pre, 169 167 kbd, … … 188 186 h5, 189 187 h6 { 190 188 color: #000; 189 font-weight: normal; 190 line-height: 1.5em; 191 191 margin: 0 0 20px 0; 192 line-height: 1.5em;193 font-weight: normal;194 192 } 195 193 h1 { 196 194 font-size: 2.4em; … … 212 210 } 213 211 table { 214 212 border: 1px solid #e7e7e7 !important; 213 border-collapse: collapse; 214 border-spacing: 0; 215 margin: 0 -1px 24px 0; 215 216 text-align: left; 216 margin: 0 -1px 24px 0;217 217 width: 100%; 218 border-collapse: collapse;219 border-spacing: 0;220 218 } 221 219 tr th, 222 220 thead th { … … 232 230 border-top: 1px solid #e7e7e7 !important; 233 231 padding: 6px 24px; 234 232 } 235 236 237 233 img { 238 234 margin: 0; 239 max-width: 640px;240 235 } 236 img.size-auto, 237 img.size-large, 238 img.size-full, 239 img.size-medium { 240 max-width: 100%; 241 width: auto; 242 height: auto; 243 } 241 244 .alignleft, 242 245 img.alignleft { 243 246 display: inline; … … 265 268 margin-bottom: 12px; 266 269 } 267 270 .wp-caption { 271 background: #f1f1f1; 268 272 border: none; 269 background: #f1f1f1; 273 -khtml-border-radius: 0; 274 -moz-border-radius: 0; 275 -webkit-border-radius: 0; 276 border-radius: 0; 270 277 color: #888; 271 278 font-size: 12px; 272 279 line-height: 18px; 273 text-align: center;274 280 margin-bottom: 20px; 281 max-width: 632px !important; /* prevent too-wide images from breaking layout */ 275 282 padding: 4px; 276 -moz-border-radius: 0; 277 -khtml-border-radius: 0; 278 -webkit-border-radius: 0; 279 border-radius: 0; 283 text-align: center; 280 284 } 281 285 .wp-caption img { 282 286 margin: 5px; … … 285 289 margin: 0 0 4px; 286 290 } 287 291 .wp-smiley { 288 margin: 0;292 margin: 0; 289 293 } 294 No newline at end of file