Changeset 15786
- Timestamp:
- 10/13/2010 05:00:10 AM (14 years ago)
- Location:
- branches/3.0/wp-content/themes/twentyten
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-content/themes/twentyten/editor-style.css
r15391 r15786 1 1 /* 2 2 Theme Name: Twenty Ten 3 */ 4 /* 5 Used to style the TinyMCE editor. 3 Description: Used to style the TinyMCE editor. 6 4 */ 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 } … … 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 */ … … 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, … … 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 { … … 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 { … … 96 94 } 97 95 ins { 98 background: #ff ffcc;96 background: #ffc; 99 97 border: none; 100 98 color: #333; … … 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 { … … 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, … … 158 156 pre, 159 157 hr { 160 margin-bottom: 24px;158 margin-bottom: 24px; 161 159 } 162 160 ul ul, … … 164 162 ul ol, 165 163 ol ul { 166 margin-bottom: 0;164 margin-bottom: 0; 167 165 } 168 166 pre, … … 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 { … … 213 211 table { 214 212 border: 1px solid #e7e7e7 !important; 215 text-align: left;216 margin: 0 -1px 24px 0;217 width: 100%;218 213 border-collapse: collapse; 219 214 border-spacing: 0; 215 margin: 0 -1px 24px 0; 216 text-align: left; 217 width: 100%; 220 218 } 221 219 tr th, … … 233 231 padding: 6px 24px; 234 232 } 235 236 237 233 img { 238 234 margin: 0; 239 max-width: 640px; 235 } 236 img.size-auto, 237 img.size-large, 238 img.size-full, 239 img.size-medium { 240 max-width: 100%; 241 height: auto; 240 242 } 241 243 .alignleft, … … 266 268 } 267 269 .wp-caption { 270 background: #f1f1f1; 268 271 border: none; 269 background: #f1f1f1; 272 -khtml-border-radius: 0; 273 -moz-border-radius: 0; 274 -webkit-border-radius: 0; 275 border-radius: 0; 270 276 color: #888; 271 277 font-size: 12px; 272 278 line-height: 18px; 279 margin-bottom: 20px; 280 max-width: 632px !important; /* prevent too-wide images from breaking layout */ 281 padding: 4px; 273 282 text-align: center; 274 margin-bottom: 20px;275 padding: 4px;276 -moz-border-radius: 0;277 -khtml-border-radius: 0;278 -webkit-border-radius: 0;279 border-radius: 0;280 283 } 281 284 .wp-caption img { … … 286 289 } 287 290 .wp-smiley { 288 margin: 0;289 } 291 margin: 0; 292 } -
branches/3.0/wp-content/themes/twentyten/style.css
r15785 r15786 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 … … 763 763 -------------------------------------------------------------- */ 764 764 765 #content img { 766 margin: 0; 767 height: auto; 768 max-width: 640px; 769 width: auto; 770 } 771 #content .attachment img { 772 max-width: 900px; 773 } 774 #content .alignleft, 775 #content img.alignleft { 765 /* 766 Resize images to fit the main content area. 767 - Applies only to images uploaded via WordPress by targeting size-* classes. 768 - Other images will be left alone. Use "size-auto" class to apply to other images. 769 */ 770 img.size-auto, 771 img.size-full, 772 img.size-large, 773 img.size-medium, 774 .attachment img { 775 max-width: 100%; /* When images are too wide for containing element, force them to fit. */ 776 height: auto; /* Override height to match resized width for correct aspect ratio. */ 777 } 778 .alignleft, 779 img.alignleft { 776 780 display: inline; 777 781 float: left; … … 779 783 margin-top: 4px; 780 784 } 781 #content.alignright,782 #contentimg.alignright {785 .alignright, 786 img.alignright { 783 787 display: inline; 784 788 float: right; … … 786 790 margin-top: 4px; 787 791 } 788 #content.aligncenter,789 #contentimg.aligncenter {792 .aligncenter, 793 img.aligncenter { 790 794 clear: both; 791 795 display: block; … … 793 797 margin-right: auto; 794 798 } 795 #contentimg.alignleft,796 #contentimg.alignright,797 #contentimg.aligncenter {799 img.alignleft, 800 img.alignright, 801 img.aligncenter { 798 802 margin-bottom: 12px; 799 803 } 800 #content.wp-caption {804 .wp-caption { 801 805 background: #f1f1f1; 802 806 line-height: 18px; 803 807 margin-bottom: 20px; 808 max-width: 632px !important; /* prevent too-wide images from breaking layout */ 804 809 padding: 4px; 805 810 text-align: center; 806 811 } 807 #content.wp-caption img {812 .wp-caption img { 808 813 margin: 5px 5px 0; 809 814 } 810 #content.wp-caption p.wp-caption-text {815 .wp-caption p.wp-caption-text { 811 816 color: #888; 812 817 font-size: 12px; 813 818 margin: 5px; 814 819 } 815 #content.wp-smiley {820 .wp-smiley { 816 821 margin: 0; 817 822 } 818 #content.gallery {823 .gallery { 819 824 margin: 0 auto 18px; 820 825 } 821 #content.gallery .gallery-item {826 .gallery .gallery-item { 822 827 float: left; 823 828 margin-top: 0; … … 825 830 width: 33%; 826 831 } 827 #content.gallery img {832 .gallery img { 828 833 border: 2px solid #cfcfcf; 829 834 } 830 #content.gallery .gallery-caption {835 .gallery .gallery-caption { 831 836 color: #888; 832 837 font-size: 12px; 833 838 margin: 0 0 12px; 834 839 } 835 #content.gallery dl {840 .gallery dl { 836 841 margin: 0; 837 842 } 838 #content.gallery img {843 .gallery img { 839 844 border: 10px solid #f1f1f1; 840 845 } 841 #content.gallery br+br {846 .gallery br+br { 842 847 display: none; 843 848 } 844 #content .attachment img { 849 #content .attachment img {/* single attachment images should be centered */ 845 850 display: block; 846 851 margin: 0 auto;
Note: See TracChangeset
for help on using the changeset viewer.