CSS cleanup

I've cleaned up the CSS a bit and it validates now. No changes
to the current layout/visual presentation itself have been
made, just fixed the whole indention and replaced some
redundant things.

Signed-off-by: Michael Klier <chi@chimeric.de>
Signed-off-by: Simo Leone <simo@archlinux.org>
This commit is contained in:
Michael Klier 2008-06-05 20:04:12 +02:00 committed by Simo Leone
parent 94a8053210
commit ffccbd540f
3 changed files with 506 additions and 575 deletions

View file

@ -2,14 +2,12 @@
* ul { padding: 20px; }
body {
min-width: 600px;
background: url("/images/titlebar.png") repeat-x top left #fbf8f1;
background: #fbf8f1 url("/images/titlebar.png") repeat-x top left;
padding: 0 30px;
color: #555;
font-family: "DejaVu Sans", "Bitstream Vera Sans", "Lucida Grande", Arial, sans-serif;
}
/*
* Divs
*/
/* Divs */
#head_container {
height: 220px;
}
@ -18,21 +16,23 @@ body {
top: 123px;
right: 30px;
width: 600px;
background: #333;
background-color: #333;
}
#sub_nav {
position: absolute;
top: 149px;
right: 30px;
min-width: 700px;
background: #1793d1;
background-color: #1793d1;
}
#main_nav ul, #sub_nav ul {
#main_nav ul,
#sub_nav ul {
list-style: none;
margin: 0;
padding: 0;
}
#main_nav ul li, #sub_nav ul li {
#main_nav ul li,
#sub_nav ul li {
display: block;
float: right;
margin: 0 3px;
@ -42,12 +42,13 @@ body {
line-height: 26px;
}
#main_nav ul li.selected {
background: #1793d1;
background-color: #1793d1;
}
#sub_nav ul li.selected {
background: #333;
background-color: #333;
}
#main_nav ul li a, #sub_nav ul li a {
#main_nav ul li a,
#sub_nav ul li a {
display: block;
padding: 0 8px;
color: #fff;
@ -55,7 +56,7 @@ body {
text-decoration: none;
}
#main_nav ul li a:hover {
background: #1793d1;
background-color: #1793d1;
}
#lang_login_sub {
display: block;
@ -99,9 +100,9 @@ body {
#updates {
font-size: small;
/*position: relative;*/
top: 0px;
background: #E7F0F6;
border: 1px solid #92CBE8;
top: 0;
background-color: #e7f0f6;
border: 1px solid #92cbe8;
padding: 10px;
}
#ads {
@ -133,8 +134,8 @@ body {
padding: 10px;
margin-left: auto;
margin-right: auto;
border-top: 1px dashed black;
border-bottom: 1px dashed black;
border-top: 1px dashed #000;
border-bottom: 1px dashed #000;
text-align: center;
}
.clear {
@ -149,7 +150,7 @@ body {
}
.left {
padding: 10px;
margin: 0 360px 0 0;
margin-right: 360px;
}
.left p {
padding-bottom: 10px;
@ -159,7 +160,7 @@ body {
}
.greybox {
padding: 10px;
background: #f6f3dd;
background-color: #f6f3dd;
border: 1px solid #d9d6c2;
}
div.listing {
@ -181,16 +182,14 @@ div.listing {
font-size: 0.8em;
}
#search input {
background: #f6f3dd;
background-color: #f6f3dd;
border: 1px solid #d9d6c2;
}
.smalltext {
text-align: right;
font-size: x-small;
}
/*
* Headers
*/
/* Headers */
h2 {
margin: 20px 0 10px 0;
}
@ -215,12 +214,10 @@ h4.news {
}
div.listing h4 {
color: #fff;
background: #0771a6;
background-color: #0771a6;
padding: 3px;
}
/*
* Paragraphs, Anchors, Images
*/
/* Paragraphs, Anchors, Images */
p {
padding-bottom: 20px;
}
@ -247,7 +244,7 @@ ul.small {
ul.links {
list-style: none;
font-size: small;
padding: 0px 0px 20px 20px;
padding: 0 0 20px 20px;
}
img {
border: none;
@ -256,22 +253,23 @@ hr {
border: none;
border-top: 1px solid #46494d;
}
.greybox input, button, textarea, select {
background: #e1e3e6;
.greybox input,
button,
textarea,
select {
background-color: #e1e3e6;
border: 1px solid #8faecd;
}
.box input, button {
padding: 2px;
background: #c1c3f6;
background-color: #c1c3f6;
font-size: x-small;
border: 1px solid #8faecd;
}
button#f_trigger {
background: #e1e3e6;
background-color: #e1e3e6;
}
/*
* Table stuff
*/
/* Table stuff */
table.center {
margin-left: auto;
margin-right: auto;
@ -314,17 +312,15 @@ table.deventry {
width: 100%;
}
table.results {
padding: 0px;
padding: 0;
border-collapse: collapse;
}
.results th {
background: #e1e3e6;
background-color: #e1e3e6;
border-bottom: 1px solid #46494d;
border-top: 1px solid #46494d;
text-align: left;
padding-top: 0px;
padding-bottom: 0px;
padding-right: 5px;
padding: 0 5px 0 0;
}
.results th>a {
text-decoration: none;
@ -346,7 +342,7 @@ table.results {
padding: 2px;
}
blockquote.code {
background: #f3f3f3;
background-color: #f3f3f3;
border: 1px solid #ccc;
margin-left: auto;
margin-right: auto;
@ -356,9 +352,7 @@ blockquote.code {
color: #333;
font-size: .95em;
}
/*
* Wiki Styles
*/
/* Wiki Styles */
h1.wiki {
border-bottom: 1px solid #46494d;
}
@ -378,17 +372,17 @@ div.wikifoot_r {
}
.wikibody ol {
padding-left: 28px;
padding-top: 0px;
padding-top: 0;
}
.wikibody ul {
padding-left: 25px;
padding-top: 0px;
padding-top: 0;
}
.wikibody dd {
padding-left: 30px;
}
.wikibody pre code {
background: #c1c3f6;
background-color: #c1c3f6;
border: 1px solid #8faecd;
margin-left: auto;
margin-right: auto;
@ -401,9 +395,8 @@ div.wikifoot_r {
}
.wikibody td {
padding: 5px;
border: 1px solid black;
border: 1px solid #000;
}
/* Used by Django's FormWrappers */
textarea.vLargeTextField {
width: 450px;
@ -426,10 +419,8 @@ textarea.vLargeTextField {
width: 90%;
margin-left: 5%;
margin-right: 5%;
background-color: #ffffff;
border-width: 2px;
border-color: #dddddd;
border-style: solid;
background-color: #fff;
border: 2px solid #ddd;
text-align: left;
padding: 3px;
}
@ -442,31 +433,24 @@ textarea.vLargeTextField {
.boxSoftTitle {
text-align: right;
}
.pgboxtitle {
border-width: 2px;
border-style: solid;
border-color: #dddddd;
border-top-width: 1px;
border-top-color: #ffffff;
border-left-width: 1px;
border-left-color: #ffffff;
border: 2px solid #ddd;
border-top: 1px solid #fff;
border-left: 1px solid #fff;
background-color: #f1f2f4;
text-align: left;
padding-top: 2px;
padding-bottom: 2px;
padding-right: 10px;
padding-left: 10px;
padding: 2px 10px 2px 10px;
}
.pgboxbody, .pgboxbody-comment {
.pgboxbody,
.pgboxbody-comment {
padding: 10px;
}
.pgboxbody input {
margin-right: 10px;
}
.pgboxbody-comment > table {
border-collapse: separate;
border-spacing: 0 15px;
}
/* vim:ts=2:sw=2:et:enc=utf-8:
* */

View file

@ -1,61 +1,51 @@
body,table,td,img
{
border: 0px;
margin: 0px;
padding: 0px;
body,table,td,img {
border: none;
margin: 0;
padding: 0;
}
/* Main Wrapper Data Format */
td.preHeader
{
td.preHeader {
background-color: #000;
border-bottom: 1px solid rgb( 69, 84, 113 );
border-bottom: 1px solid #455471;
height: 16px;
text-align: right;
}
td.headerFill
{
background-color: rgb( 108, 131, 176 );
td.headerFill {
background-color: #6c83b0;
border-bottom: 1px solid #000;
}
td.headerDisplay
{
background-color: rgb( 108, 131, 176 );
td.headerDisplay {
background-color: #6c83b0;
padding-left: 16px;
}
td.mainLinks
{
td.mainLinks {
background-color: #eee;
border-bottom: 1px solid #000;
height: 22px;
padding-left: 12px;
}
td.sideBar
{
td.sideBar {
background-color: #fff;
text-align: center;
vertical-align: top;
width: 150px;
}
td.sideBarGrey
{
td.sideBarGrey {
background-color: #eee;
border-bottom: 1px solid #000;
text-align: left;
vertical-align: top;
width: 150px;
}
td.sideBarSmall
{
background-color: rgb( 108, 131, 176 );
td.sideBarSmall {
background-color: #6c83b0;
border-bottom: 1px solid #000;
height: 16px;
text-align: right;
width: 150px;
}
td.sideBarSmallHeader
{
background-color: rgb(108,131,176);
td.sideBarSmallHeader {
background-color: #6c83b0;
vertical-align: top;
height: 16px;
padding-top: 1px;
@ -63,159 +53,133 @@
text-align: right;
width: 150px;
}
td.subLinks
{
background-color: rgb( 225, 228, 232 );
td.subLinks {
background-color: #ffe4e8;
border-right: 1px solid #000;
color: rgb( 120, 120, 120 );
color: #787878;
padding-left: 12px;
height: 19px;
}
td.contentDisplay
{
background-color: #ffffff;
border-right: 1px solid #000;
border-left: 1px solid #000;
border-bottom: 1px solid #000;
td.contentDisplay {
background-color: #fff;
border: 1px solid #000;
border-top: none;
text-align: center;
vertical-align: top;
padding: 10;
padding: 10px;
}
td.footerDisplay
{
td.footerDisplay {
background-color: #eee;
border-bottom: 1px solid #000;
text-align: center;
}
/* Containers Used Globally */
table.boxSoft
{
table.boxSoft {
width: 90%;
background-color: #ddd;
text-align: left;
}
td.boxSoft
{
td.boxSoft {
background-color: #fff;
padding: 10;
padding: 2px;
text-align: left;
}
td.boxSoftColumn
{
padding-left: 16;
padding-right: 16;
td.boxSoftColumn {
padding-left: 16px;
padding-right: 16px;
text-align: justify;
vertical-align: top;
text-indent: 20px;
}
td.div
{
td.div {
background-color: #eee;
width: 3px;
}
td.boxSoftTitle
{
td.boxSoftTitle {
border-bottom: 1px solid #fff;
border-top: 1px solid #fff;
background-color: rgb( 241, 242, 244 );
padding-left: 10;
padding-top: 1;
padding-bottom: 1;
background-color: #f1f2f4;
padding: 1px 0 0 3px;
text-align: left;
}
table.boxSoftSmall
{
width: 94%;
table.boxSoftSmall {
width: 94px;
background-color: #ddd;
}
td.boxSoftSmall
{
td.boxSoftSmall {
background-color: #fff;
text-align: center;
padding-top: 2;
padding-bottom: 2;
padding-top: 2px;
padding-bottom: 2px;
}
td.boxSoftSmallTitle
{
td.boxSoftSmallTitle {
border-bottom: 1px solid #ccc;
background-color: rgb( 241, 242, 244 );
padding-left: 10;
background-color: #f1f2f4;
padding-left: 10px;
}
td.ss /* ss = small space */
{
/* ss = small space */
td.ss {
padding-left: 6px;
vertical-align: top;
}
td.display
{
td.display {
border-bottom: 1px solid #000;
padding-bottom: 6px;
}
td.features
{
td.features {
padding: 4px;
text-align: justify;
vertical-align:top;
}
td.formLeft
{
td.formLeft {
padding: 6px;
text-align: left;
vertical-align: top;
}
td.data1
{
td.data1 {
background-color: #eee;
vertical-align: top;
padding-left: .3em;
text-align: left;
}
td.data2
{
td.data2 {
background-color: #ddd;
vertical-align: top;
padding-left: .3em;
text-align: left;
}
.outofdate
{
.outofdate {
background-color: #faa;
padding-left: .3em;
text-align: left;
}
td.text
{
td.text {
color: #000;
font-size: 12px;
}
th
{
th {
text-align: left;
}
th.header
{
th.header {
border-bottom: #666 1px solid;
vertical-align: bottom;
}
input,textarea,select
{
background-color: rgb(108,131,176);
input,
textarea,
select {
background-color: #6c83b0;
font-family: monospace;
font-size: 12px;
background-color: #ccc;
border: #000000 1px solid;
color: #111111;
border: #000 1px solid;
color: #111;
}
input.button
{
input.button {
background-color: #fff;
color: rgb(108,131,176);
border: 1px solid rgb(108,131,176);
color: #6c83b0;
border: 1px solid #6c83b0;
font-size: 12px;
padding: 2px;
}
/* vim:ts=2:sw=2:et:enc=utf-8:
* */

View file

@ -12,7 +12,7 @@
span.f2 /* Title */
{
font-size: 14px;
color: rgb(108, 131, 176);
color: #6c83b0;
font-weight: bold;
}
span.f3 /* Sub Title */
@ -20,6 +20,7 @@
color: #888;
font-size: 14px;
font-weight: bold;
padding-right: 2px;
}
span.f4 /* Content Text */
{
@ -56,38 +57,23 @@
}
span.warning /* Content Text */
{
color: #C0C000;
color: #c0c000;
font-size: 12px;
}
/* Font Attribute Change (#6c83b0)*/
span.blue
{
color: rgb( 108, 131, 176 );
}
span.white
{
color: white;
}
span.black
{
color: black;
}
span.green
{
color: #6db06d;
}
span.blue { color: #6c83b0; }
span.white { color: #fff; }
span.black { color: #000; }
span.green { color: #6db06d; }
span.link
{
color: rgb( 108, 131, 176 );
color: #6c83b0;
font-weight: bold;
}
/* Misc (c9d1e2) */
span.preHeader
{
color: rgb( 201, 209, 226 );
color: #c9d1e2;
font-weight: bold;
font-size: 11px;
padding-right: 8px;
@ -100,22 +86,19 @@
font-size: 11px;
padding-right: 8px;
}
a {
color: #0771a6;
text-decoration: none;
font-weight: bold;
}
a:hover {
color: #333;
text-decoration: none;
font-weight: bold;
}
h1, h2, h3, h4 {
font-size: 16pt;
}
span.important {
color: #f00;
}
span.important { color: #f00; }
/* vim:ts=2:sw=2:et:enc=utf-8:
* */