Twenty Eleven: Style fixes and showcase improvements; Props matveb

* Remove bottom border from last post
* Improve featured posts on the showcase: move slider navigation to the top right; make sure the bottom border shows; make the reading more link thicker
* Positioning fix for image post format meta
* Dark stylesheet improvements
* Ensure search input text is centred vertically


git-svn-id: http://svn.automattic.com/wordpress/trunk@18050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
iandstewart 2011-05-25 21:19:52 +00:00
parent 5b84f25408
commit 128c61411a
3 changed files with 39 additions and 14 deletions

View File

@ -61,7 +61,7 @@ a {
color: #858585; color: #858585;
} }
#branding #s { #branding #s {
background-color: #fff; background-color: #ddd;
} }
@ -69,6 +69,10 @@ a {
----------------------------------------------- */ ----------------------------------------------- */
#access { #access {
background: #333; /* Show a solid color for older browsers */
background: -moz-linear-gradient(#383838, #272727);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#383838), to(#272727)); /* older webkit syntax */
background: -webkit-linear-gradient(#383838, #272727);
border-bottom: 1px solid #222; border-bottom: 1px solid #222;
} }

View File

@ -321,7 +321,10 @@ function twentyeleven_print_link_color_style() {
} }
section.recent-posts .other-recent-posts .comments-link a:hover { section.recent-posts .other-recent-posts .comments-link a:hover {
border-color: <?php echo $link_color; ?>; border-color: <?php echo $link_color; ?>;
} }
article.feature-image.small .entry-summary p a:hover {
background: <?php echo $link_color; ?>;
}
</style> </style>
<?php <?php
} }

View File

@ -593,6 +593,7 @@ a:hover {
float: right; float: right;
font-size: 14px; font-size: 14px;
height: 22px; height: 22px;
line-height: 1.2em;
padding: 4px 10px 4px 28px; padding: 4px 10px 4px 28px;
-webkit-transition-duration: 400ms; -webkit-transition-duration: 400ms;
-webkit-transition-property: width, background; -webkit-transition-property: width, background;
@ -662,6 +663,9 @@ a:hover {
padding: 0 0 1.625em; padding: 0 0 1.625em;
position: relative; position: relative;
} }
.hentry:last-child {
border-bottom: none;
}
.blog .sticky .entry-header .entry-meta { .blog .sticky .entry-header .entry-meta {
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px); clip: rect(1px, 1px, 1px, 1px);
@ -1078,6 +1082,9 @@ article.format-status .entry-content {
background: transparent; background: transparent;
padding: 30px 0; padding: 30px 0;
} }
.one-column .format-image footer.entry-meta {
margin-right: 2px;
}
/* =error404 /* =error404
@ -1182,11 +1189,14 @@ section.featured-post .attachment-small-feature {
border-right: 20px solid #bbb; border-right: 20px solid #bbb;
float: right; float: right;
height: auto; height: auto;
margin: -10px -8.9% 1.625em 0; margin: 0 -8.9% 1.625em 0;
max-width: 59%; max-width: 59%;
position: relative; position: relative;
right: -35px; right: -35px;
} }
section.featured-post.small {
padding-top: 0;
}
section.featured-post .attachment-small-feature:hover { section.featured-post .attachment-small-feature:hover {
border-color: #888; border-color: #888;
} }
@ -1195,6 +1205,9 @@ article.feature-image.small {
margin: 0 0 1.625em; margin: 0 0 1.625em;
width: 45%; width: 45%;
} }
article.feature-image.small .entry-title {
line-height: 1.2em;
}
article.feature-image.small .entry-summary { article.feature-image.small .entry-summary {
color: #555; color: #555;
font-size: 13px; font-size: 13px;
@ -1204,22 +1217,23 @@ article.feature-image.small .entry-summary p a {
color: #eee; color: #eee;
display: block; display: block;
left: -23.8%; left: -23.8%;
padding: 4px 26px 4px 85px; padding: 9px 26px 9px 85px;
position: relative; position: relative;
top: 20px;
text-decoration: none; text-decoration: none;
top: 20px;
width: 180px; width: 180px;
} }
article.feature-image.small .entry-summary p a:hover { article.feature-image.small .entry-summary p a:hover {
background: #1b8be0; background: #1b8be0;
color: #bfddf3; color: #eee;
color: rgba(255,255,255,0.8);
} }
/* Large featured post */ /* Large featured post */
section.feature-image.large { section.feature-image.large {
border: none; border: none;
max-height: 500px; max-height: 300px;
padding: 0 0 0.8125em; padding: 0;
width: 100%; width: 100%;
} }
section.feature-image.large .showcase-heading { section.feature-image.large .showcase-heading {
@ -1273,6 +1287,7 @@ section.feature-image.large img {
} }
.featured-posts section.featured-post { .featured-posts section.featured-post {
background: #fff; background: #fff;
height: 300px;
left: 0; left: 0;
margin: 0; margin: 0;
position: absolute; position: absolute;
@ -1284,10 +1299,10 @@ section.feature-image.large img {
} }
.featured-posts section.featured-post { .featured-posts section.featured-post {
-webkit-transition-duration: 200ms; -webkit-transition-duration: 200ms;
-webkit-transition-property: opacity, visibility; -webkit-transition-property: opacity visibility;
-webkit-transition-timing-function: ease; -webkit-transition-timing-function: ease;
-moz-transition-duration: 200ms; -moz-transition-duration: 200ms;
-moz-transition-property: opacity, visibility; -moz-transition-property: opacity visibility;
-moz-transition-timing-function: ease; -moz-transition-timing-function: ease;
} }
.featured-posts section.featured-post { .featured-posts section.featured-post {
@ -1299,8 +1314,8 @@ section.feature-image.large img {
visibility: visible; visibility: visible;
} }
#content .feature-slider { #content .feature-slider {
bottom: 0; top: 5px;
left: 8.9%; right: 8.9%;
overflow: visible; overflow: visible;
position: absolute; position: absolute;
} }
@ -2081,8 +2096,11 @@ p.comment-form-comment {
.one-column article.feature-image.small .entry-summary { .one-column article.feature-image.small .entry-summary {
height: auto; height: auto;
} }
article.feature-image.small .entry-summary a { article.feature-image.small .entry-summary p a {
left: -9%; left: 0;
padding-left: 20px;
padding-right: 20px;
width: auto;
} }
/* Remove the margin on singular articles */ /* Remove the margin on singular articles */
.singular .entry-header, .singular .entry-header,