]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentyten/style.css
Wordpress 3.1
[autoinstalls/wordpress.git] / wp-content / themes / twentyten / style.css
index 5dbf6317b64abbad9367fe8550c05a49719a7643..ee5d61d47a38e96881ad84f4d8ecf6daf5fe74a9 100644 (file)
@@ -3,8 +3,10 @@ Theme Name: Twenty Ten
 Theme URI: http://wordpress.org/
 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.
 Author: the WordPress team
-Version: 1.1
-Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style
+Version: 1.2
+License: GNU General Public License
+License URI: license.txt
+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
 */
 
 
@@ -139,7 +141,9 @@ h3#reply-title,
 .pingback p,
 .reply,
 .widget-title,
-.wp-caption-text,
+.wp-caption-text {
+       font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
+}
 input[type=submit] {
        font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
 }
@@ -350,7 +354,7 @@ a:hover {
        clear: right;
        float: right;
        font-style: italic;
-       margin: 14px 0 18px 0;
+       margin: 15px 0 18px 0;
        width: 220px;
 }
 
@@ -358,8 +362,8 @@ a:hover {
 #branding img {
        border-top: 4px solid #000;
        border-bottom: 1px solid #000;
-       clear: both;
        display: block;
+       float: left;
 }
 
 
@@ -636,6 +640,7 @@ div.menu li {
        width: 33%;
 }
 .page-link {
+       clear: both;
        color: #000;
        font-weight: bold;
        margin: 0 0 22px 0;
@@ -710,15 +715,18 @@ body.page .edit-link {
 /* =Asides
 -------------------------------------------------------------- */
 
+.home #content .format-aside p,
 .home #content .category-asides p {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 10px;
        margin-top: 0;
 }
+.home .hentry.format-aside,
 .home .hentry.category-asides {
        padding: 0;
 }
+.home #content .format-aside .entry-content,
 .home #content .category-asides .entry-content {
        padding-top: 0;
 }
@@ -727,15 +735,18 @@ body.page .edit-link {
 /* =Gallery listing
 -------------------------------------------------------------- */
 
+.format-gallery .size-thumbnail img,
 .category-gallery .size-thumbnail img {
        border: 10px solid #f1f1f1;
        margin-bottom: 0;
 }
+.format-gallery .gallery-thumb,
 .category-gallery .gallery-thumb {
        float: left;
        margin-right: 20px;
        margin-top: -4px;
 }
+.home #content .format-gallery .entry-utility,
 .home #content .category-gallery .entry-utility {
        padding-top: 4px;
 }
@@ -759,86 +770,105 @@ body.page .edit-link {
 /* =Images
 -------------------------------------------------------------- */
 
-#content img {
-       margin: 0;
-       height: auto;
-       max-width: 640px;
-       width: auto;
-}
-#content .attachment img {
-       max-width: 900px;
-}
-#content .alignleft,
-#content img.alignleft {
+/*
+Resize images to fit the main content area.
+- Applies only to images uploaded via WordPress by targeting size-* classes.
+- Other images will be left alone. Use "size-auto" class to apply to other images.
+*/
+img.size-auto,
+img.size-full,
+img.size-large,
+img.size-medium,
+.attachment img {
+       max-width: 100%; /* When images are too wide for containing element, force them to fit. */
+       height: auto; /* Override height to match resized width for correct aspect ratio. */
+}
+.alignleft,
+img.alignleft {
        display: inline;
        float: left;
        margin-right: 24px;
        margin-top: 4px;
 }
-#content .alignright,
-#content img.alignright {
+.alignright,
+img.alignright {
        display: inline;
        float: right;
        margin-left: 24px;
        margin-top: 4px;
 }
-#content .aligncenter,
-#content img.aligncenter {
+.aligncenter,
+img.aligncenter {
        clear: both;
        display: block;
        margin-left: auto;
        margin-right: auto;
 }
-#content img.alignleft,
-#content img.alignright,
-#content img.aligncenter {
+img.alignleft,
+img.alignright,
+img.aligncenter {
        margin-bottom: 12px;
 }
-#content .wp-caption {
+.wp-caption {
        background: #f1f1f1;
        line-height: 18px;
        margin-bottom: 20px;
+       max-width: 632px !important; /* prevent too-wide images from breaking layout */
        padding: 4px;
        text-align: center;
 }
-#content .wp-caption img {
+.wp-caption img {
        margin: 5px 5px 0;
 }
-#content .wp-caption p.wp-caption-text {
+.wp-caption p.wp-caption-text {
        color: #888;
        font-size: 12px;
        margin: 5px;
 }
-#content .wp-smiley {
+.wp-smiley {
        margin: 0;
 }
-#content .gallery {
+.gallery {
        margin: 0 auto 18px;
 }
-#content .gallery .gallery-item {
+.gallery .gallery-item {
        float: left;
        margin-top: 0;
        text-align: center;
        width: 33%;
 }
-#content .gallery img {
+.gallery-columns-2 .gallery-item {
+       width: 50%;
+}
+.gallery-columns-4 .gallery-item {
+       width: 25%;
+}
+.gallery img {
        border: 2px solid #cfcfcf;
 }
-#content .gallery .gallery-caption {
+.gallery-columns-2 .attachment-medium {
+       max-width: 92%;
+       height: auto;
+}
+.gallery-columns-4 .attachment-thumbnail {
+       max-width: 84%;
+       height: auto;
+}
+.gallery .gallery-caption {
        color: #888;
        font-size: 12px;
        margin: 0 0 12px;
 }
-#content .gallery dl {
+.gallery dl {
        margin: 0;
 }
-#content .gallery img {
+.gallery img {
        border: 10px solid #f1f1f1;
 }
-#content .gallery br+br {
+.gallery br+br {
        display: none;
 }
-#content .attachment img { /* single attachment images should be centered */
+#content .attachment img {/* single attachment images should be centered */
        display: block;
        margin: 0 auto;
 }
@@ -1087,6 +1117,9 @@ h3#reply-title {
        list-style: square;
        margin-left: 1.3em;
 }
+.widget-area select {
+       max-width: 100%;
+}
 .widget_search #s {/* This keeps the search inputs in line */
        width: 60%;
 }