CSS clean-up and fixes

This commit is contained in:
Eike Foken
2011-08-18 03:25:01 +02:00
parent c2787d5260
commit e59cb9386a
4 changed files with 223 additions and 32 deletions

View File

@@ -1,4 +1,5 @@
/* Form Style */ @CHARSET "UTF-8";
/* Form styles */
form ul li { form ul li {
margin: 0 0 15px; margin: 0 0 15px;
@@ -50,10 +51,25 @@ select.drop {
border: 1px solid #d2d2d2; border: 1px solid #d2d2d2;
} }
input.short { width: 20%;} input.short {
input.medium { width: 45%;} width: 20%;
input.long { width:70%;} }
input.max { width: 95%;}
input.medium {
width: 45%;
}
input.long {
width: 70%;
}
input.max {
width: 95%;
}
table input {
margin: 0 !important;
}
p.success { p.success {
color: #008000; color: #008000;

View File

@@ -12,11 +12,23 @@ body {
background: #404040; background: #404040;
} }
a { color: #0088cc; text-decoration: none;} a {
a:hover { text-decoration: underline;} color: #08c;
a img { border: none;} text-decoration: none;
}
p { margin: 0px 0px 20px 0px; line-height: 18px;} a:hover {
text-decoration: underline;
}
a img {
border: none;
}
p {
margin: 0 0 20px 0;
line-height: 18px;
}
#box { #box {
margin: 40px auto; margin: 40px auto;
@@ -36,4 +48,4 @@ p { margin: 0px 0px 20px 0px; line-height: 18px;}
.light { .light {
color: #ccc; color: #ccc;
text-transform: none; text-transform: none;
} }

View File

@@ -1,3 +1,5 @@
@CHARSET "UTF-8";
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
@@ -12,20 +14,40 @@ body {
/* Styles */ /* Styles */
a { color: #0088cc; text-decoration: none;} a {
a:hover { text-decoration: underline;} color: #0088cc;
a img { border: none;} text-decoration: none;
}
p { margin: 0px 0px 20px 0px; line-height: 18px;} a:hover {
text-decoration: underline;
}
ul { margin: 5px 0px 15px 0px; padding: 0px;} a img {
li { margin-left: 20px;} border: none;
}
p {
margin: 0 0 20px 0;
line-height: 18px;
}
ul {
margin: 5px 0 15px 0;
padding: 0;
}
li {
margin-left: 20px;
}
.editable { .editable {
background: #fffbcc; background: #fffbcc;
} }
.clear { clear:both;} .clear {
clear: both;
}
/* Notifications */ /* Notifications */
@@ -292,15 +314,22 @@ div.error {
clear: both; clear: both;
} }
#footer .left { float: left;} #footer .left {
#footer .right { float: right;} float: left;
}
#footer .right {
float: right;
}
/* Buttons */ /* Buttons */
.buttons { .buttons {
float: left; float: left;
padding-bottom: 20px; padding-bottom: 20px;
clear: both; clear: both;
} }
a.button { a.button {
color: #6e6e6e; color: #6e6e6e;
font: bold 12px Helvetica, Arial, sans-serif; font: bold 12px Helvetica, Arial, sans-serif;
@@ -322,22 +351,28 @@ a.button {
-moz-border-radius: 2px; -moz-border-radius: 2px;
margin-right: 10px; margin-right: 10px;
} }
a.button.locked { a.button.locked {
color: #333; color: #333;
border-color: #999; border-color: #999;
-moz-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2) -webkit-box-shadow:0 2px 5px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
} }
a.button:hover { a.button:hover {
color: #333; color: #333;
border-color: #999; border-color: #999;
-moz-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2) -webkit-box-shadow:0 2px 5px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
} }
a.button:active { a.button:active {
color: #000; color: #000;
border-color: #444; border-color: #444;
} }
a.left { a.left {
-webkit-border-top-right-radius: 0; -webkit-border-top-right-radius: 0;
-moz-border-radius-topright: 0; -moz-border-radius-topright: 0;
@@ -347,6 +382,7 @@ a.left {
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
margin: 0; margin: 0;
} }
a.middle { a.middle {
border-radius: 0; border-radius: 0;
-webkit-border-radius: 0; -webkit-border-radius: 0;
@@ -355,8 +391,12 @@ a.middle {
margin: 0; margin: 0;
border-left: solid 1px rgba(255, 255, 255, 0); border-left: solid 1px rgba(255, 255, 255, 0);
} }
a.middle:hover, a.middle:hover,
a.right:hover { border-left: solid 1px #999 } a.right:hover {
border-left: solid 1px #999;
}
a.right { a.right {
-webkit-border-top-left-radius: 0; -webkit-border-top-left-radius: 0;
-moz-border-radius-topleft: 0; -moz-border-radius-topleft: 0;
@@ -367,68 +407,83 @@ a.right {
border-left: solid 1px #f3f3f3; border-left: solid 1px #f3f3f3;
border-left: solid 1px rgba(255, 255, 255, 0); border-left: solid 1px rgba(255, 255, 255, 0);
} }
a.big { a.big {
font-size: 16px; font-size: 16px;
padding: 10px 15px; padding: 10px 15px;
} }
a.supersize { a.supersize {
font-size: 20px; font-size: 20px;
padding: 15px 20px; padding: 15px 20px;
} }
a.save { a.save {
background: url(../images/icons/tick.png) 10px center no-repeat #f3f3f3; background: url(../images/icons/tick.png) 10px center no-repeat #f3f3f3;
padding-left: 30px; padding-left: 30px;
} }
a.add { a.add {
background: url(../images/icons/plus-circle.png) 10px center no-repeat #f3f3f3; background: url(../images/icons/plus-circle.png) 10px center no-repeat #f3f3f3;
padding-left: 30px; padding-left: 30px;
} }
a.delete { a.delete {
background: url(../images/button-sprite.png) 10px -59px no-repeat #f3f3f3; background: url(../images/button-sprite.png) 10px -59px no-repeat #f3f3f3;
padding-left: 30px; padding-left: 30px;
} }
a.flag { a.flag {
background: url(../images/button-sprite.png) 10px -94px no-repeat #f3f3f3; background: url(../images/button-sprite.png) 10px -94px no-repeat #f3f3f3;
padding-left: 30px; padding-left: 30px;
} }
a.cancel { a.cancel {
background: url(../images/icons/slash.png) 10px center no-repeat #f3f3f3; background: url(../images/icons/slash.png) 10px center no-repeat #f3f3f3;
padding-left: 30px; padding-left: 30px;
} }
a.up { a.up {
background: url(../images/button-sprite.png) 13px -131px no-repeat #f3f3f3; background: url(../images/button-sprite.png) 13px -131px no-repeat #f3f3f3;
width: 18px; width: 18px;
} }
a.down { a.down {
background: url(../images/button-sprite.png) 13px -166px no-repeat #f3f3f3; background: url(../images/button-sprite.png) 13px -166px no-repeat #f3f3f3;
width: 18px; width: 18px;
} }
a.save-big { a.save-big {
background: url(../images/button-sprite.png) 15px 13px no-repeat #f3f3f3; background: url(../images/button-sprite.png) 15px 13px no-repeat #f3f3f3;
font-size: 16px; font-size: 16px;
padding: 10px 15px 10px 35px; padding: 10px 15px 10px 35px;
} }
a.add-big { a.add-big {
background: url(../images/button-sprite.png) 15px -21px no-repeat #f3f3f3; background: url(../images/button-sprite.png) 15px -21px no-repeat #f3f3f3;
font-size: 16px; font-size: 16px;
padding: 10px 15px 10px 35px; padding: 10px 15px 10px 35px;
} }
a.delete-big { a.delete-big {
background: url(../images/button-sprite.png) 15px -55px no-repeat #f3f3f3; background: url(../images/button-sprite.png) 15px -55px no-repeat #f3f3f3;
font-size: 16px; font-size: 16px;
padding: 10px 15px 10px 35px; padding: 10px 15px 10px 35px;
} }
a.flag-big { a.flag-big {
background: url(../images/button-sprite.png) 15px -90px no-repeat #f3f3f3; background: url(../images/button-sprite.png) 15px -90px no-repeat #f3f3f3;
font-size: 16px; font-size: 16px;
padding: 10px 15px 10px 35px; padding: 10px 15px 10px 35px;
} }
a.up-big { a.up-big {
background: url(../images/button-sprite.png) 15px -126px no-repeat #f3f3f3; background: url(../images/button-sprite.png) 15px -126px no-repeat #f3f3f3;
width: 18px; width: 18px;
font-size: 16px; font-size: 16px;
padding: 10px 15px; padding: 10px 15px;
} }
a.down-big { a.down-big {
background: url(../images/button-sprite.png) 15px -161px no-repeat #f3f3f3; background: url(../images/button-sprite.png) 15px -161px no-repeat #f3f3f3;
width: 18px; width: 18px;
@@ -443,24 +498,26 @@ ul.tabs {
padding: 0; padding: 0;
float: left; float: left;
list-style: none; list-style: none;
height: 27px; /*--Set height of tabs--*/ height: 27px; /* Set height of tabs */
border-bottom: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;
border-left: 1px solid #e8e8e8; border-left: 1px solid #e8e8e8;
width: 100%; width: 100%;
} }
ul.tabs li { ul.tabs li {
float: left; float: left;
margin: 0; margin: 0;
padding: 0; padding: 0;
height: 26px; /*--Subtract 1px from the height of the unordered list--*/ height: 26px; /* Subtract 1px from the height of the unordered list */
line-height: 26px; /*--Vertically aligns the text within the tab--*/ line-height: 26px; /* Vertically aligns the text within the tab */
border: 1px solid #e8e8e8; border: 1px solid #e8e8e8;
border-left: none; border-left: none;
margin-bottom: -1px; /*--Pull the list item down 1px--*/ margin-bottom: -1px; /* Pull the list item down 1px */
overflow: hidden; overflow: hidden;
position: relative; position: relative;
background: #e0e0e0 url('../images/navigation-off.gif'); background: #e0e0e0 url('../images/navigation-off.gif');
} }
ul.tabs li a { ul.tabs li a {
text-decoration: none; text-decoration: none;
color: #000; color: #000;
@@ -468,12 +525,15 @@ ul.tabs li a {
padding: 1px 21px; padding: 1px 21px;
outline: none; outline: none;
} }
ul.tabs li a:hover { ul.tabs li a:hover {
background: #f0f0f0; background: #f0f0f0;
} }
html ul.tabs li.active, html ul.tabs li.active a:hover { /*--Makes sure that the active tab does not listen to the hover properties--*/
html ul.tabs li.active,
html ul.tabs li.active a:hover {
background: #fff; background: #fff;
border-bottom: 1px solid #fff; /*--Makes the active tab look like it's connected with its content--*/ border-bottom: 1px solid #fff; /* Makes the active tab look like it's connected with its content */
} }
.tab_container { .tab_container {
@@ -484,9 +544,102 @@ html ul.tabs li.active, html ul.tabs li.active a:hover { /*--Makes sure that th
overflow: hidden; overflow: hidden;
background: #fff; background: #fff;
} }
.tab_content { .tab_content {
padding: 0; padding: 0;
} }
.tab_buttons { .tab_buttons {
padding: 0; padding: 0;
} }
/* JTip styles */
.form_info a,
.form_info a:active,
.form_info a:visited {
background-color: #d2d2d2;
font-size: 12px;
font-weight: bold;
margin-left: -3px;
padding: 4px;
color: #fff;
text-decoration: none;
}
.form_info a:hover {
color: #000;
text-decoration: none;
}
#JT_arrow_left {
background: url(../images/arrow-left.gif) left top no-repeat;
position: absolute;
z-index: 101;
left: -11px;
height: 23px;
width: 10px;
top: -3px;
}
#JT_arrow_right {
background: url(../images/arrow-right.gif) left top no-repeat;
position: absolute;
z-index: 101;
height: 23px;
width: 11px;
top: -2px;
}
#JT {
position: absolute;
z-index: 100;
border: 1px solid #ccc;
background-color: #fff;
margin-top: 5px;
font-size: 85%;
}
#JT_copy {
padding: 5px;
color: #666;
}
.JT_loader {
background: url(../images/ajax-loader.gif) center center no-repeat;
width: 100%;
height: 12px;
}
#JT_close_left {
background-color: #ccc;
text-align: left;
padding-left: 4px;
padding-bottom: 2px;
padding-top: 1px;
font-weight: bold;
color: #000;
}
#JT_close_right {
background-color: #ccc;
text-align: left;
padding-left: 4px;
padding-bottom: 2px;
padding-top: 1px;
font-weight: bold;
color: #000;
}
#JT_copy p {
margin: 3px 0;
}
#JT_copy img {
padding: 1px;
border: 1px solid #ccc;
}
.jTip {
cursor: help;
}

View File

@@ -1,4 +1,5 @@
/* Table Style */ @CHARSET "UTF-8";
/* Table styles */
table { table {
width: 99%; width: 99%;
@@ -26,9 +27,17 @@ table td {
border-bottom: 1px solid #d2d2d2; border-bottom: 1px solid #d2d2d2;
} }
table td span.active { color: #55a34a;} table td span.active {
table td span.pending { color: #c5a059;} color: #55a34a;
table td span.closed { color: #a02b2b;} }
table td span.pending {
color: #c5a059;
}
table td span.closed {
color: #a02b2b;
}
table .odd { table .odd {
background: #f6f6f6; background: #f6f6f6;
@@ -45,6 +54,7 @@ table .hover {
table tbody tr:nth-child(even) { table tbody tr:nth-child(even) {
background: #fff; background: #fff;
} }
table tbody tr:nth-child(odd) { table tbody tr:nth-child(odd) {
background: #f6f6f6; background: #f6f6f6;
} }