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