default.css:

- redesign login form - now has an image on the right
- change width from 730px to 990px
- change menu :hover background color from green to dark grey
- change button :hover background color from green to light grey
- change table row :hover color in list mode from green to light grey
- add padding to input fields
- remove background color and border in edit form header
- remove border-left from list-virtual submenu (show all / mailboxes / ...)
- change main.php :hover from green left + bottom border to dark grey and
  only left border
- removed green background in overview row (the line containing the search box)
- removed table borders (list and edit mode)
- add text-align:right for edit form labels
- some whitespace fixes

images/mail_bg.gif:
- [new file] the image in the login form

This commit is based on Dale's patch, but some styles were moved around
in the CSS file (to keep the diff of this commit somehow readable).
Some of Dale's changes are not yet included in this commit.

This commit is part of the huge cleanup patch by Dale Blount (lnxus@SF),
https://sourceforge.net/tracker/?func=detail&atid=937966&aid=3370510&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1122 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 14 years ago
parent ee5c1cc239
commit 32bb589bb6

@ -8,6 +8,10 @@ body {
text-align: left; text-align: left;
} }
#container {
width:970px;
margin:auto;
}
a { a {
text-decoration: none; text-decoration: none;
color: #888888; color: #888888;
@ -29,17 +33,22 @@ table {
text-align: left; text-align: left;
} }
input, .button, textarea {
padding: 6px;
font-size: 13px;
}
.button { .button {
border: 1px solid #aaaaaa; border: 1px solid #aaaaaa;
color: #777777; color: #777777;
background: #dddddd; background: #dddddd;
padding: 3px 3px 3px 3px; padding: 3px 3px 3px 3px;
font-size: 11px;
} }
.button:hover, .button:focus { .button:hover, .button:focus {
background: #BCFF36; background: #eee;
color: #888888; color: #666;
text-decoration:none;
} }
.flat { .flat {
@ -49,7 +58,7 @@ table {
ul.flash-info { ul.flash-info {
border:2px solid #AFE1A6; /* medium green */ border:2px solid #AFE1A6; /* medium green */
padding:1em; padding:1em;
max-width:730px; max-width:970px;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
list-style:none; list-style:none;
@ -58,7 +67,7 @@ ul.flash-info {
ul.flash-error { ul.flash-error {
border:2px solid #FF6347; /* tomato */ border:2px solid #FF6347; /* tomato */
padding:1em; padding:1em;
max-width:730px; max-width:970px;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
list-style:none; list-style:none;
@ -78,7 +87,7 @@ ul.flash-error {
#admin_domains, #admin_virtual, .nav_bar, #alias_domain_table, #admin_domains, #admin_virtual, .nav_bar, #alias_domain_table,
#alias_table, #mailbox_table, #overview_table, #log_table, #alias_table, #mailbox_table, #overview_table, #log_table,
#admin_table, #footer, .subnav { #admin_table, #footer, .subnav {
width: 750px; width: 990px;
margin: 0 auto; margin: 0 auto;
} }
@ -88,16 +97,17 @@ ul.flash-error {
} }
#login { #login {
width: 750px; width: 990px;
margin: 0 auto; margin: 0 auto;
background:#fff url(../images/mail_bg.gif) right 50% no-repeat;
} }
#login_table { #login_table {
border-left: 8px solid gray; border-left: none;
border-right: 8px solid gray; border-right: 1px solid #999;
background: #eeeeee; background: #fff;
width: 350px; width: 400px;
margin: 0 auto; margin: 0 0 0 200px;
border-collapse: separate; border-collapse: separate;
border-spacing: 10px; border-spacing: 10px;
} }
@ -134,11 +144,10 @@ ul.flash-error {
border-top: 4px solid #aaaaaa; border-top: 4px solid #aaaaaa;
position:relative; position:relative;
right:50%; right:50%;
/* border-bottom: 4px solid #aaaaaa; */
} }
#menu li:hover, #menu li.sfhover, #tabbar li:hover, #tabbar li.sfhover { #menu li:hover, #menu li.sfhover, #tabbar li:hover, #tabbar li.sfhover {
background: #BFFF00; background: #ccc;
} }
#menu li ul, #tabbar li ul { #menu li ul, #tabbar li ul {
@ -151,40 +160,34 @@ ul.flash-error {
border:2px solid white; border:2px solid white;
border-top:none; border-top:none;
} }
#menu li:hover ul, #menu li.sfhover ul, #tabbar li:hover ul, #tabbar li.sfhover ul { #menu li:hover ul, #menu li.sfhover ul, #tabbar li:hover ul, #tabbar li.sfhover ul {
left: auto; left: auto;
} }
#menu li ul li, #tabbar li ul li { #menu li ul li, #tabbar li ul li {
float: none; float: none;
margin-right: 0px; margin-right: 0px;
border-top:2px solid white; border-top:2px solid white;
text-align:left; text-align:left;
/* border-bottom: none; */
right:auto; right:auto;
} }
#menu a, #tabbar a { #menu a, #tabbar a {
display: block; display: block;
width: auto; width: auto;
padding: 20px 5px 5px 5px; padding: 20px 5px 5px 5px;
color: #888888;
} }
#menu a:hover, #tabbar a:hover { #menu a, #tabbar a, #menu a:hover, #tabbar a:hover {
color: #888888; color: #888888;
} }
#menu li ul li a, #tabbar li ul li a { #menu li ul li a, #tabbar li ul li a {
padding: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;
} }
.subnav p { .subnav p {
border-left: 4px solid #aaaaaa;
padding-left:10px; padding-left:10px;
margin-top:2em; margin-top:2em;
margin-bottom:0; margin-bottom:0;
@ -195,18 +198,13 @@ ul.flash-error {
margin: 0 auto; margin: 0 auto;
padding-top: 10px; padding-top: 10px;
text-align: left; text-align: left;
width: 500px;
border: 1px solid #efefef;
} }
#edit_form h3 { #edit_form th {
text-align: center; text-align: left;
font-size: 12px; font-size: 12px;
margin: 0; margin: 0;
background: #AFE1A6; /*#b4004a;*/
border: 1px solid #bbb;
line-height: 25px; line-height: 25px;
color: #555555;
} }
.hlp_center { .hlp_center {
@ -214,9 +212,6 @@ ul.flash-error {
} }
.help_text { .help_text {
background: #efefef;
border-left: 1px solid #bbbbbb;
border-right: 1px solid #bbbbbb;
text-align: center; text-align: center;
padding-top: 5px; padding-top: 5px;
padding-bottom: 5px; padding-bottom: 5px;
@ -240,16 +235,17 @@ ul.flash-error {
} }
#main_menu a:hover { #main_menu a:hover {
color: #40B33C; /*#CD6A6A;*/ color: #333;
text-decoration: none; text-decoration: none;
padding-left: 4px; padding-left: 4px;
border-bottom: 1px solid #40B33C; border-bottom: none;
border-left: 4px solid #40B33C; border-left: 4px solid #333;
} }
#overview, #admin_domains, #admin_virtual { #overview {
background: #AFE1A6; /*#9ACD32;*/ /* background: #AFE1A6; /*#9ACD32;*/
border: 1px solid #bbb; /* border: 1px solid #bbb;
*/
} }
#overview h4, #overview P, #overview FORM, #admin_virtual h4, #admin_virtual P, #admin_virtual FORM { #overview h4, #overview P, #overview FORM, #admin_virtual h4, #admin_virtual P, #admin_virtual FORM {
@ -258,44 +254,63 @@ ul.flash-error {
line-height: 30px; line-height: 30px;
} }
#alias_domain_table, #alias_table, #mailbox_table, #overview_table, #log_table, #admin_table {
border: 1px solid #efefef;
}
#alias_domain_table .header, #alias_table .header, #mailbox_table .header, #overview_table .header, #log_table .header, #admin_table .header { #alias_domain_table .header, #alias_table .header, #mailbox_table .header, #overview_table .header, #log_table .header, #admin_table .header {
line-height: 20px; line-height: 20px;
background: #efefef; background: #efefef;
color: black; color: black;
} }
#alias_domain_table h3, #alias_table h3, #mailbox_table h3, #overview_table h3, #log_table h3, #admin_table h3 {
text-align: left;
font-size: 12px;
font-weight: bold;
padding-left: 20px;
line-height: 25px;
margin: 0;
}
#alias_domain_table .hilightoff, #alias_table .hilightoff, #mailbox_table .hilightoff, #overview_table .hilightoff, #log_table .hilightoff, #admin_table .hilighoff { #alias_domain_table .hilightoff, #alias_table .hilightoff, #mailbox_table .hilightoff, #overview_table .hilightoff, #log_table .hilightoff, #admin_table .hilighoff {
background: white; background: white;
} }
#alias_domain_table .hilighton, #alias_table .hilighton, #mailbox_table .hilighton, #overview_table .hilighton, #log_table .hilighton, #admin_table .hilighton { #alias_domain_table .hilighton, #alias_table .hilighton, #mailbox_table .hilighton, #overview_table .hilighton, #log_table .hilighton, #admin_table .hilighton {
background: #D9FF43; /*#D6FF85;*/ /*#ffdddd;*/ background: #eee; /*#D6FF85;*/ /*#ffdddd;*/
} }
#alias_domain_table tr:hover, #alias_table tr:hover, #mailbox_table tr:hover, #overview_table tr:hover, #log_table tr:hover, #admin_table tr:hover { #alias_domain_table tr:hover, #alias_table tr:hover, #mailbox_table tr:hover, #overview_table tr:hover, #log_table tr:hover, #admin_table tr:hover {
background: #D9FF43; /*#D6FF85;*/ /*#ffdddd;*/ background: #eee; /*#D6FF85;*/ /*#ffdddd;*/
} }
th {
text-align: center;
padding:7px 0;
margin: 0 0 14px 0;
background: #fff;
border-bottom: 1px solid #bbb;
color: #555555;
}
#alias_domain_table h3, #alias_table h3, #mailbox_table h3, #overview_table h3, #log_table h3, #admin_table h3 { td {
background: silver; padding:7px 7px;
text-align: left; }
font-size: 12px;
font-weight: bold; td.label {
padding-left: 20px; text-align:right;
line-height: 25px; margin-right:0px;
margin: 0; }
label {
padding-right:0;
font-weight:bold;
vertical-align:middle;
} }
#alias_domain_table td, #alias_table td, #mailbox_table td, #overview_table td, #log_table td, #admin_table td { #alias_domain_table td, #alias_table td, #mailbox_table td, #overview_table td, #log_table td, #admin_table td {
text-align : left; text-align: left;
} }
#footer { #footer {
width:975px;
margin: 20px auto; margin: 20px auto;
border-top: 1px solid #bbbbbb; border-top: 1px solid #bbbbbb;
background: #efefef; background: #efefef;

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Loading…
Cancel
Save