style.css cleanup. props lancewillett, see #14298 for trunk.

git-svn-id: http://svn.automattic.com/wordpress/trunk@15416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-07-13 22:20:26 +00:00
parent 810fae16d3
commit cbe5a9a103
1 changed files with 131 additions and 148 deletions

View File

@ -8,7 +8,7 @@ Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-backgr
*/ */
/* Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html /* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */ -------------------------------------------------------------- */
html, body, div, span, applet, object, iframe, html, body, div, span, applet, object, iframe,
@ -20,18 +20,18 @@ b, u, i, center,
dl, dt, dd, ol, ul, li, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td { table, caption, tbody, tfoot, thead, tr, th, td {
background: transparent;
border: 0;
margin: 0; margin: 0;
padding: 0; padding: 0;
border: 0;
vertical-align: baseline; vertical-align: baseline;
background: transparent;
} }
body { body {
line-height: 1; line-height: 1;
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-weight: normal;
clear: both; clear: both;
font-weight: normal;
} }
ol, ul { ol, ul {
list-style: none; list-style: none;
@ -51,9 +51,12 @@ table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
} }
a img { border: none; } a img {
border: none;
}
/* =Layout
-------------------------------------------------------------- */
/* /*
LAYOUT: Two columns LAYOUT: Two columns
@ -112,7 +115,6 @@ textarea,
.pingback a.url { .pingback a.url {
font-family: Georgia, "Bitstream Charter", serif; font-family: Georgia, "Bitstream Charter", serif;
} }
h3#comments-title, h3#comments-title,
h3#reply-title, h3#reply-title,
#access .menu, #access .menu,
@ -138,8 +140,7 @@ h3#reply-title,
.reply, .reply,
.widget-title, .widget-title,
.wp-caption-text, .wp-caption-text,
input[type=submit] input[type=submit] {
{
font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
} }
pre { pre {
@ -150,7 +151,6 @@ code {
} }
/* =Structure /* =Structure
-------------------------------------------------------------- */ -------------------------------------------------------------- */
@ -165,8 +165,8 @@ div.menu,
width: 940px; width: 940px;
} }
#wrapper { #wrapper {
margin-top: 20px;
background: #fff; background: #fff;
margin-top: 20px;
padding: 0 20px; padding: 0 20px;
} }
@ -184,9 +184,9 @@ div.menu,
} }
#site-info { #site-info {
float: left; float: left;
width: 700px;
font-weight: bold;
font-size: 14px; font-size: 14px;
font-weight: bold;
width: 700px;
} }
#site-generator { #site-generator {
float: right; float: right;
@ -194,7 +194,6 @@ div.menu,
} }
/* =Global Elements /* =Global Elements
-------------------------------------------------------------- */ -------------------------------------------------------------- */
@ -202,7 +201,6 @@ div.menu,
body { body {
background: #f1f1f1; background: #f1f1f1;
} }
body, body,
input, input,
textarea { textarea {
@ -213,9 +211,9 @@ textarea {
hr { hr {
background-color: #e7e7e7; background-color: #e7e7e7;
border: 0; border: 0;
clear: both;
height: 1px; height: 1px;
margin-bottom: 18px; margin-bottom: 18px;
clear:both;
} }
/* Text elements */ /* Text elements */
@ -290,13 +288,12 @@ acronym {
border-bottom: 1px dotted #666; border-bottom: 1px dotted #666;
cursor: help; cursor: help;
} }
sup, sup,
sub { sub {
height: 0; height: 0;
line-height: 1; line-height: 1;
vertical-align: baseline;
position: relative; position: relative;
vertical-align: baseline;
} }
sup { sup {
bottom: 1ex; bottom: 1ex;
@ -306,12 +303,12 @@ sub {
} }
input[type="text"], input[type="text"],
textarea { textarea {
padding: 2px;
background: #f9f9f9; background: #f9f9f9;
border: 1px solid #ccc; border: 1px solid #ccc;
box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1); box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
-moz-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1); -moz-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
-webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1); -webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
padding: 2px;
} }
a:link { a:link {
color: #0066cc; color: #0066cc;
@ -331,7 +328,6 @@ a:hover {
} }
/* =Header /* =Header
-------------------------------------------------------------- */ -------------------------------------------------------------- */
@ -340,10 +336,10 @@ a:hover {
} }
#site-title { #site-title {
float: left; float: left;
margin: 0 0 18px 0;
width: 700px;
font-size: 30px; font-size: 30px;
line-height: 36px; line-height: 36px;
margin: 0 0 18px 0;
width: 700px;
} }
#site-title a { #site-title a {
color: #000; color: #000;
@ -360,23 +356,22 @@ a:hover {
/* This is the custom header image */ /* This is the custom header image */
#branding img { #branding img {
clear: both;
border-top: 4px solid #000; border-top: 4px solid #000;
display: block;
border-bottom: 1px solid #000; border-bottom: 1px solid #000;
clear: both;
display: block;
} }
/* =Menu /* =Menu
-------------------------------------------------------------- */ -------------------------------------------------------------- */
#access { #access {
background: #000; background: #000;
margin: 0 auto;
width: 940px;
display: block; display: block;
float: left; float: left;
margin: 0 auto;
width: 940px;
} }
#access .menu-header, #access .menu-header,
div.menu { div.menu {
@ -395,21 +390,21 @@ div.menu li {
position: relative; position: relative;
} }
#access a { #access a {
display:block;
text-decoration:none;
color: #aaa; color: #aaa;
padding:0 10px; display: block;
line-height: 38px; line-height: 38px;
padding: 0 10px;
text-decoration: none;
} }
#access ul ul { #access ul ul {
box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
display: none; display: none;
position: absolute; position: absolute;
top: 38px; top: 38px;
left: 0; left: 0;
float: left; float: left;
box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
width: 180px; width: 180px;
z-index: 99999; z-index: 99999;
} }
@ -422,15 +417,15 @@ div.menu li {
} }
#access ul ul a { #access ul ul a {
background: #333; background: #333;
height:auto;
line-height: 1em; line-height: 1em;
padding: 10px; padding: 10px;
width: 160px; width: 160px;
height: auto;
} }
#access li:hover > a, #access li:hover > a,
#access ul ul :hover > a { #access ul ul :hover > a {
color:#fff;
background: #333; background: #333;
color: #fff;
} }
#access ul li:hover > ul { #access ul li:hover > ul {
display: block; display: block;
@ -441,7 +436,6 @@ div.menu li {
#access ul li.current-menu-parent > a { #access ul li.current-menu-parent > a {
color: #fff; color: #fff;
} }
* html #access ul li.current_page_item a, * html #access ul li.current_page_item a,
* html #access ul li.current-menu-ancestor a, * html #access ul li.current-menu-ancestor a,
* html #access ul li.current-menu-item a, * html #access ul li.current-menu-item a,
@ -451,7 +445,6 @@ div.menu li {
} }
/* =Content /* =Content
-------------------------------------------------------------- */ -------------------------------------------------------------- */
@ -504,13 +497,13 @@ div.menu li {
#content h5, #content h5,
#content h6 { #content h6 {
color: #000; color: #000;
margin: 0 0 20px 0;
line-height: 1.5em; line-height: 1.5em;
margin: 0 0 20px 0;
} }
#content table { #content table {
border: 1px solid #e7e7e7; border: 1px solid #e7e7e7;
text-align: left;
margin: 0 -1px 24px 0; margin: 0 -1px 24px 0;
text-align: left;
width: 100%; width: 100%;
} }
#content tr th, #content tr th,
@ -534,9 +527,9 @@ div.menu li {
.home .sticky { .home .sticky {
background: #f2f7fc; background: #f2f7fc;
border-top: 4px solid #000; border-top: 4px solid #000;
padding: 18px 20px;
margin-left: -20px; margin-left: -20px;
margin-right: -20px; margin-right: -20px;
padding: 18px 20px;
} }
.single .hentry { .single .hentry {
margin: 0 0 36px 0; margin: 0 0 36px 0;
@ -565,8 +558,8 @@ div.menu li {
#content .entry-title { #content .entry-title {
color: #000; color: #000;
font-size: 21px; font-size: 21px;
line-height: 1.3em;
font-weight: bold; font-weight: bold;
line-height: 1.3em;
margin-bottom: 0; margin-bottom: 0;
} }
.entry-title a:link, .entry-title a:link,
@ -669,20 +662,20 @@ body.page .edit-link {
#entry-author-info { #entry-author-info {
background: #f2f7fc; background: #f2f7fc;
border-top: 4px solid #000; border-top: 4px solid #000;
padding: 18px 20px;
margin: 24px 0;
overflow: hidden;
clear: both; clear: both;
font-size: 14px; font-size: 14px;
line-height: 20px; line-height: 20px;
margin: 24px 0;
overflow: hidden;
padding: 18px 20px;
} }
#entry-author-info #author-avatar { #entry-author-info #author-avatar {
background: #fff; background: #fff;
border: 1px solid #e7e7e7; border: 1px solid #e7e7e7;
float: left; float: left;
height: 60px;
margin: 0 -104px 0 0; margin: 0 -104px 0 0;
padding: 11px; padding: 11px;
height: 60px;
} }
#entry-author-info #author-description { #entry-author-info #author-description {
float: left; float: left;
@ -690,15 +683,15 @@ body.page .edit-link {
} }
#entry-author-info h2 { #entry-author-info h2 {
color: #000; color: #000;
font-weight: bold;
font-size: 100%; font-size: 100%;
font-weight: bold;
margin-bottom: 0; margin-bottom: 0;
} }
.entry-utility { .entry-utility {
clear: both;
color: #888; color: #888;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
clear: both;
} }
.entry-meta a, .entry-meta a,
.entry-utility a { .entry-utility a {
@ -713,8 +706,7 @@ body.page .edit-link {
} }
/* =Asides
/* Asides
-------------------------------------------------------------- */ -------------------------------------------------------------- */
.home #content .category-asides p { .home #content .category-asides p {
@ -731,9 +723,7 @@ body.page .edit-link {
} }
/* =Gallery listing
/* Gallery listing
-------------------------------------------------------------- */ -------------------------------------------------------------- */
.category-gallery .size-thumbnail img { .category-gallery .size-thumbnail img {
@ -750,7 +740,7 @@ body.page .edit-link {
} }
/* Attachment pages /* =Attachment pages
-------------------------------------------------------------- */ -------------------------------------------------------------- */
.attachment .entry-content .entry-caption { .attachment .entry-content .entry-caption {
@ -765,8 +755,7 @@ body.page .edit-link {
} }
/* =Images
/* Images
-------------------------------------------------------------- */ -------------------------------------------------------------- */
#content img { #content img {
@ -806,17 +795,17 @@ body.page .edit-link {
#content .wp-caption { #content .wp-caption {
background: #f1f1f1; background: #f1f1f1;
line-height: 18px; line-height: 18px;
text-align: center;
margin-bottom: 20px; margin-bottom: 20px;
padding: 4px; padding: 4px;
text-align: center;
} }
#content .wp-caption img { #content .wp-caption img {
margin: 5px 5px 0; margin: 5px 5px 0;
} }
#content .wp-caption p.wp-caption-text { #content .wp-caption p.wp-caption-text {
margin: 5px;
color: #888; color: #888;
font-size: 12px; font-size: 12px;
margin: 5px;
} }
#content .wp-smiley { #content .wp-smiley {
margin: 0; margin: 0;
@ -857,10 +846,10 @@ body.page .edit-link {
-------------------------------------------------------------- */ -------------------------------------------------------------- */
.navigation { .navigation {
color: #888;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
overflow: hidden; overflow: hidden;
color: #888;
} }
.navigation a:link, .navigation a:link,
.navigation a:visited { .navigation a:visited {
@ -877,8 +866,8 @@ body.page .edit-link {
} }
.nav-next { .nav-next {
float: right; float: right;
width: 50%;
text-align: right; text-align: right;
width: 50%;
} }
#nav-above { #nav-above {
margin: 0 0 18px 0; margin: 0 0 18px 0;
@ -895,7 +884,6 @@ body.page .edit-link {
} }
/* =Comments /* =Comments
-------------------------------------------------------------- */ -------------------------------------------------------------- */
#comments { #comments {
@ -907,8 +895,8 @@ body.page .edit-link {
h3#comments-title, h3#comments-title,
h3#reply-title { h3#reply-title {
color: #000; color: #000;
font-weight: bold;
font-size: 20px; font-size: 20px;
font-weight: bold;
margin-bottom: 0; margin-bottom: 0;
} }
h3#comments-title { h3#comments-title {
@ -999,34 +987,32 @@ a.comment-edit-link:hover {
display: none; display: none;
} }
#comments .pingback { #comments .pingback {
border-bottom: 1px solid #e7e7e7;
margin-bottom: 18px; margin-bottom: 18px;
padding-bottom: 18px; padding-bottom: 18px;
border-bottom: 1px solid #e7e7e7;
} }
.commentlist li.comment+li.pingback { .commentlist li.comment+li.pingback {
margin-top: -6px; margin-top: -6px;
} }
#comments .pingback p { #comments .pingback p {
color: #888; color: #888;
display: block;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
display:block;
margin: 0; margin: 0;
} }
#comments .pingback .url { #comments .pingback .url {
font-style: italic;
font-size: 13px; font-size: 13px;
font-style: italic;
} }
/* Comments form */ /* Comments form */
input[type=submit] { input[type=submit] {
color: #333; color: #333;
} }
#respond { #respond {
margin: 24px 0;
border-top: 1px solid #e7e7e7; border-top: 1px solid #e7e7e7;
margin: 24px 0;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
} }
@ -1053,8 +1039,8 @@ h3#reply-title {
} }
#cancel-comment-reply-link { #cancel-comment-reply-link {
font-size: 12px; font-size: 12px;
line-height: 18px;
font-weight: normal; font-weight: normal;
line-height: 18px;
} }
#respond .required { #respond .required {
color: #ff4b33; color: #ff4b33;
@ -1083,8 +1069,8 @@ h3#reply-title {
margin: 12px 0; margin: 12px 0;
} }
#respond .form-submit input { #respond .form-submit input {
width: auto;
font-size: 14px; font-size: 14px;
width: auto;
} }
@ -1130,11 +1116,11 @@ h3#reply-title {
width: 100%; width: 100%;
} }
#wp-calendar caption { #wp-calendar caption {
font-weight: bold;
color: #222; color: #222;
text-align: left;
font-size: 14px; font-size: 14px;
font-weight: bold;
padding-bottom: 4px; padding-bottom: 4px;
text-align: left;
} }
#wp-calendar thead { #wp-calendar thead {
font-size: 11px; font-size: 11px;
@ -1145,9 +1131,9 @@ h3#reply-title {
color: #aaa; color: #aaa;
} }
#wp-calendar tbody td { #wp-calendar tbody td {
padding: 3px 0 2px;
background: #f5f5f5; background: #f5f5f5;
border: 1px solid #fff; border: 1px solid #fff;
padding: 3px 0 2px;
text-align: center; text-align: center;
} }
#wp-calendar tbody .pad { #wp-calendar tbody .pad {
@ -1163,8 +1149,8 @@ h3#reply-title {
color: #ff4b33; color: #ff4b33;
} }
.widget_rss .widget-title img { .widget_rss .widget-title img {
height: 11px;
width: 11px; width: 11px;
height: 11px;
} }
/* Main sidebars */ /* Main sidebars */
@ -1187,7 +1173,6 @@ h3#reply-title {
} }
/* =Footer /* =Footer
-------------------------------------------------------------- */ -------------------------------------------------------------- */
@ -1197,8 +1182,8 @@ h3#reply-title {
#colophon { #colophon {
border-top: 4px solid #000; border-top: 4px solid #000;
margin-top: -4px; margin-top: -4px;
padding: 18px 0;
overflow: hidden; overflow: hidden;
padding: 18px 0;
} }
#site-info { #site-info {
font-weight: bold; font-weight: bold;
@ -1208,16 +1193,16 @@ h3#reply-title {
text-decoration: none; text-decoration: none;
} }
#site-generator { #site-generator {
position: relative;
font-style: italic; font-style: italic;
position: relative;
} }
#site-generator a { #site-generator a {
background: url(images/wordpress.png) center left no-repeat;
color: #666; color: #666;
display: inline-block; display: inline-block;
text-decoration: none;
background: url(images/wordpress.png) center left no-repeat;
padding-left: 20px;
line-height: 16px; line-height: 16px;
padding-left: 20px;
text-decoration: none;
} }
#site-generator a:hover { #site-generator a:hover {
text-decoration: underline; text-decoration: underline;
@ -1228,8 +1213,7 @@ img#wpstats {
} }
/* =Mobile Safari ( iPad, iPhone and iPod Touch )
/* Mobile Safari ( iPad, iPhone and iPod Touch )
-------------------------------------------------------------- */ -------------------------------------------------------------- */
pre { pre {
@ -1250,7 +1234,6 @@ code {
} }
/* =Print Style /* =Print Style
-------------------------------------------------------------- */ -------------------------------------------------------------- */
@ -1259,9 +1242,9 @@ code {
background: none !important; background: none !important;
} }
#wrapper { #wrapper {
float: none !important;
clear: both !important; clear: both !important;
display: block !important; display: block !important;
float: none !important;
position: relative !important; position: relative !important;
} }
#header { #header {
@ -1274,9 +1257,9 @@ code {
#site-title, #site-title,
#site-description { #site-description {
float: none; float: none;
line-height: 1.4em;
margin: 0; margin: 0;
padding: 0; padding: 0;
line-height: 1.4em;
} }
#site-title { #site-title {
font-size: 13pt; font-size: 13pt;
@ -1301,13 +1284,13 @@ code {
#container, #container,
#header, #header,
#footer { #footer {
width: 100%;
margin: 0; margin: 0;
width: 100%;
} }
#content, #content,
.one-column #content { .one-column #content {
width: 100%;
margin: 24pt 0 0; margin: 24pt 0 0;
width: 100%;
} }
.wp-caption p { .wp-caption p {
font-size: 11pt; font-size: 11pt;
@ -1321,11 +1304,11 @@ code {
width: auto; width: auto;
} }
img#wpstats { img#wpstats {
display:none display: none;
} }
#site-generator a { #site-generator a {
padding: 0;
margin: 0; margin: 0;
padding: 0;
} }
#entry-author-info { #entry-author-info {
border: 1px solid #e7e7e7; border: 1px solid #e7e7e7;