changed the menu design

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44108 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Will Rossiter 2007-11-01 21:48:16 +00:00
parent 482646ec56
commit ed6904ffbd
14 changed files with 45 additions and 61 deletions

View File

@ -834,7 +834,7 @@ JS;
self::$application_logo_text = ""; self::$application_logo_text = "";
} }
function LogoStyle() { function LogoStyle() {
return "background-image: url(" . self::$application_logo . "); " . self::$application_logo_style; return "background-image: url(" . self::$application_logo . ") no-repeat; " . self::$application_logo_style;
} }
/** /**

View File

@ -13,7 +13,7 @@ body {
height: 100%; height: 100%;
margin: 0; margin: 0;
font-size: 62.5%; font-size: 62.5%;
background-color: #d4d0c8; background-color: #ccdef3;
} }
#top, #top,
@ -35,24 +35,21 @@ body.stillLoading select {
display: none; display: none;
} }
/** 3-PANEL LAYOUT **/ /** 3-PANEL LAYOUT **/
#top { #top {
font-size: 1.4em; font-size: 14px;
height: 51px; height: 33px;
padding: 3px; padding: 0;
background: url(../images/mainmenu/top-bg.gif) top left repeat-x; background: #474855 url(../images/mainmenu/top-bg.gif) top left repeat-x;
color: #FFF; color: #FFF;
border-bottom: 3px solid #d4d0c8;
overflow: hidden; overflow: hidden;
} }
#left { #left {
position: absolute; position: absolute;
top: 51px; top: 35px;
left: 3px; left: 3px;
width: 205px; width: 205px;
height: 92%; height: 91%;
z-index: 50; z-index: 50;
border : 1px #808080 solid; border : 1px #808080 solid;
background-color:#FFFFFF; background-color:#FFFFFF;
@ -60,8 +57,8 @@ body.stillLoading select {
#right, #rightbottom { #right, #rightbottom {
position: absolute; position: absolute;
left: 208px; left: 208px;
top: 51px; top: 35px;
height: 92%; height: 91%;
width: 600px; width: 600px;
overflow: auto; overflow: auto;
z-index: 50; z-index: 50;
@ -146,76 +143,67 @@ body.stillLoading select {
/** TOP PANEL **/ /** TOP PANEL **/
#top #MainMenu { #top #MainMenu {
margin: 0; margin: 0 0 0 6px;
padding: 0; padding: 0;
} }
#top #MainMenu li { #top #MainMenu li {
margin: 8px 8px 0 8px; margin: 0px 4px;
padding: 6px 8px 0 28px; /* Do not want to do padding: 0 0; you'll see why */
padding-top: 0px;
padding-bottom: 0px;
list-style-type: none; list-style-type: none;
float: left; float: left;
height: 32px; height: 33px;
background-repeat: no-repeat;
cursor: pointer; cursor: pointer;
} }
html>body #top #MainMenu li {
height: 28px; /* 32 - 6 from the padding */
}
#top #MainMenu a { #top #MainMenu a {
color: white; color: white;
display: block;
float: left;
padding: 0 6px;
font-size: 14px;
letter-spacing: -0.4px;
font-family: Verdana, Arial, Sans-serif;
height: 33px;
line-height: 32px;
text-decoration: none; text-decoration: none;
} }
#top #MainMenu a:hover { #top #MainMenu a:hover {
text-decoration: underline; text-decoration: none;
background: #6a7580 url(../images/mainmenu/hover.gif) repeat-x left top;
} }
#top #MainMenu .current { #top #MainMenu .current {
background-color: #d4d0c8; background: #ccdef3 url(../images/mainmenu/current.gif) repeat-x left top;
background-position: 5px 5px;
position: relative;
top : -7px;
height : 31px;
padding-top : 12px;
padding-left : 30px;
-moz-border-radius-topright : 8px;
-moz-border-radius-topleft : 8px;
border : 1px solid #65686e;
border-bottom : none; border-bottom : none;
} }
#top #MainMenu .current a:hover {
background: #cddef3 url(../images/mainmenu/currentHover.gif) repeat-x left top;
}
#top #MainMenu .current A:link,#top #MainMenu .current A:visited { #top #MainMenu .current A:link,#top #MainMenu .current A:visited {
padding-left: 4px; color : #2f383f;
color : black;
} }
#top #MainMenu #Menu-content { background-image: url(../images/mainmenu/content.gif); }
#top #MainMenu #Menu-statistics { background-image: url(../images/mainmenu/statistics.gif); }
#top #MainMenu #Menu-security { background-image: url(../images/mainmenu/members.gif); }
#top #MainMenu #Menu-report { background-image: url(../images/mainmenu/reports.gif); }
#top #MainMenu #Menu-newsletter { background-image: url(../images/mainmenu/emails.gif); }
#top #MainMenu #Menu-files { background-image: url(../images/mainmenu/files.gif); }
#top #MainMenu #Menu-comments { background-image: url(../images/mainmenu/comments.gif); }
#top #MainMenu #Menu-help { background-image: url(../images/mainmenu/help.gif);
float: right;
/*padding: 6px 28px 0 8px;
background-position: 100% 0;*/
margin-right: 60px;
}
#top #Logo { #top #Logo {
float: right; float: right;
}
#top #Logo a {
margin: 0; margin: 0;
padding: 16px 60px 16px 0; display: block;
height: 32px; font-size: 14px;
font-size: 16px; text-decoration: none;
letter-spacing: -0.4px;
height: 26px;
font-family: Verdana, Arial, Helvetica, sans-serif;
line-height: 22px;
position: absolute;
top: 5px;
right: 8px;
padding-right: 34px;
background: url(../images/mainmenu/logo.gif) right top no-repeat; background: url(../images/mainmenu/logo.gif) right top no-repeat;
} }
html>body #top #Logo { html>body #top #Logo {
@ -226,10 +214,6 @@ html>body #top #Logo {
color: white; color: white;
} }
#bottom { #bottom {
width: 100%; width: 100%;
position: absolute; position: absolute;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 743 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 790 B

BIN
images/mainmenu/current.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 899 B

BIN
images/mainmenu/hover.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 901 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 894 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 154 B