CSS reorganization

1. Fix regression on s/.footer/footer/
2. Fix whitespace and tabbing
3. Reorganize properties more logically
This commit is contained in:
Benjamin J. Balter 2013-04-16 09:48:18 -04:00
parent 55b890b407
commit 11419868dc
1 changed files with 82 additions and 93 deletions

View File

@ -3,52 +3,50 @@
/* Common /* Common
/* /*
/*****************************************************************************/ /*****************************************************************************/
/* Global Reset */ /* Global Reset */
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
html, body { html,body {
height: 100%; height: 100%;
} }
body { body {
background-color: white; background-color: #FFF;
font: 13.34px helvetica, arial, clean, sans-serif; font: 13.34px helvetica, arial, clean, sans-serif;
*font-size: small; font-size: small;
text-align: center; text-align: center;
} }
h1, h2, h3, h4, h5, h6 { h1,h2,h3,h4,h5,h6 {
font-size: 100%; font-size: 100%;
} }
h1 { h1 {
margin-bottom: 1em; margin-bottom: 1em;
} }
p { p {
margin: 1em 0; margin: 1em 0;
} }
a { a {
color: #00a; color: #00a;
} }
a:hover { a:hover {
color: black; color: #000;
} }
a:visited { a:visited {
color: #a0a; color: #a0a;
} }
table { table {
font-size: inherit; font-size: inherit;
font: 100%; font: 100%;
} }
/*****************************************************************************/ /*****************************************************************************/
@ -56,138 +54,129 @@ table {
/* Home /* Home
/* /*
/*****************************************************************************/ /*****************************************************************************/
ul.posts { ul.posts {
list-style-type: none; list-style-type: none;
margin-bottom: 2em; margin-bottom: 2em;
} }
ul.posts li { ul.posts li {
line-height: 1.75em; line-height: 1.75em;
} }
ul.posts span { ul.posts span {
color: #aaa; color: #aaa;
font-family: Monaco, "Courier New", monospace; font-family: Monaco, "Courier New", monospace;
font-size: 80%; font-size: 80%;
} }
/*****************************************************************************/ /*****************************************************************************/
/* /*
/* Site /* Site
/* /*
/*****************************************************************************/ /*****************************************************************************/
.site { .site {
font-size: 110%; font-size: 115%;
text-align: justify; text-align: justify;
width: 42em; width: 42em;
margin: 3em auto 2em auto; margin: 3em auto 2em;
line-height: 1.5em; line-height: 1.5em;
} }
.title { .site header a {
color: #a00; font-weight: bold;
font-weight: bold; text-decoration: none;
margin-bottom: 2em;
} }
.site .title a { .site header h1.title {
display: inline-block;
margin-bottom: 2em;
}
.site header h1.title a {
color: #a00; color: #a00;
text-decoration: none; }
}
.site .title a:hover { .site header h1.title a:hover {
color: black; color: #000;
} }
.site header h1.title { .site header a.extra {
display: inline;
}
.site header a.extra {
color: #aaa; color: #aaa;
text-decoration: none;
margin-left: 1em; margin-left: 1em;
} }
.site header a.extra:hover { .site header a.extra:hover {
color: black; color: #000;
} }
.site .meta { .site .meta {
color: #aaa; color: #aaa;
} }
.site .footer { .site footer {
font-size: 80%; font-size: 80%;
color: #666; color: #666;
border-top: 4px solid #eee; border-top: 4px solid #eee;
margin-top: 2em; margin-top: 2em;
overflow: hidden; overflow: hidden;
} }
.site .footer .contact { .site footer .contact {
float: left; float: left;
margin-right: 3em; margin-right: 3em;
} }
.site .footer .contact a { .site footer .contact a {
color: #8085C1; color: #8085C1;
} }
.site .footer .rss { .site footer .rss {
margin-top: 1.1em; margin-top: 1.1em;
margin-right: -.2em; margin-right: -.2em;
float: right; float: right;
} }
.site .footer .rss img { .site footer .rss img {
border: 0; border: 0;
} }
/*****************************************************************************/ /*****************************************************************************/
/* /*
/* Posts /* Posts
/* /*
/*****************************************************************************/ /*****************************************************************************/
#post { #post {
} }
/* standard */ /* standard */
#post pre {
#post pre {
border: 1px solid #ddd; border: 1px solid #ddd;
background-color: #eef; background-color: #eef;
padding: 0 .4em; padding: 0 .4em;
} }
#post ul, #post ul,#post ol {
#post ol {
margin-left: 1.35em; margin-left: 1.35em;
} }
#post code { #post code {
border: 1px solid #ddd; border: 1px solid #ddd;
background-color: #eef; background-color: #eef;
font-size: 85%; font-size: 85%;
padding: 0 .2em; padding: 0 .2em;
} }
#post pre code { #post pre code {
border: none; border: none;
} }
/* terminal */ /* terminal */
#post pre.terminal {
#post pre.terminal { border: 1px solid #000;
border: 1px solid black;
background-color: #333; background-color: #333;
color: white; color: #FFF;
} }
#post pre.terminal code { #post pre.terminal code {
background-color: #333; background-color: #333;
} }