theme-overlay MDL-25834 Added CSS to better display the custom menu in the overlay theme

This commit is contained in:
Sam Hemelryk 2011-03-18 11:23:58 +08:00
parent 56babbcb76
commit 53b1445eeb

View file

@ -1,6 +1,5 @@
/* Global /* Global
--------------------------*/ --------------------------*/
body { body {
background: #fff; background: #fff;
margin: 0; margin: 0;
@ -40,7 +39,6 @@ a:active {
/* Header /* Header
---------------------------*/ ---------------------------*/
#page-header { #page-header {
background: #333; background: #333;
color: #fff; color: #fff;
@ -57,13 +55,13 @@ a:active {
margin-top: 0px; margin-top: 0px;
line-height: 30px; line-height: 30px;
} }
#page-header a:link, #page-header a:link,
#page-header a:visited { #page-header a:visited {
color: #fff; color: #fff;
text-decoration: underline; text-decoration: underline;
} }
#newheader { #newheader {
height: 100px; height: 100px;
position: relative; position: relative;
@ -75,6 +73,7 @@ a:active {
position: absolute; position: absolute;
left: -50px; left: -50px;
} }
h1.headermain { h1.headermain {
margin-left: 0px; margin-left: 0px;
padding-left: 0px; padding-left: 0px;
@ -86,6 +85,19 @@ h1.headermain {
-webkit-text-stroke: 1px white; -webkit-text-stroke: 1px white;
} }
.headermenu .logininfo,
.headermenu .langmenu,
.headermenu .langmenu div,
.headermenu .langmenu form,
.headermenu .langmenu select,
.headermenu .langmenu label {
display: inline !important;
}
.headermenu .logininfo {
padding-right: 5px;
}
#region-main-box { #region-main-box {
background: #eee; background: #eee;
} }
@ -124,16 +136,13 @@ h1.headermain {
/* Navbar /* Navbar
--------------------------*/ --------------------------*/
.navbar { .navbar {
margin-top: 10px; margin-top: 10px;
} }
.navbar .wrapper { .navbar .wrapper {
margin-left: 0px !important; margin-left: 0px !important;
padding-left: 0px !important; padding-left: 0px !important;
} }
.breadcrumb .sep { .breadcrumb .sep {
@ -147,10 +156,8 @@ h1.headermain {
font-size: 12px; font-size: 12px;
} }
/* Blocks /* Blocks
---------------------------*/ ---------------------------*/
.block { .block {
border: none; border: none;
margin-bottom: 25px; margin-bottom: 25px;
@ -178,7 +185,6 @@ h1.headermain {
. .
/* Forums /* Forums
---------------------------*/ ---------------------------*/
.forumpost .subject { .forumpost .subject {
font-size: 1.2em; font-size: 1.2em;
} }
@ -199,7 +205,6 @@ h1.headermain {
/* Course /* Course
-------------------------------*/ -------------------------------*/
.course-content .main { .course-content .main {
border: 1px solid #eee; border: 1px solid #eee;
background: #eee; background: #eee;
@ -214,52 +219,64 @@ h1.headermain {
background: #fff; background: #fff;
} }
/* YUI Menu /* YUI Menu - custom menu
-------------------------------*/ -------------------------------*/
#custommenu { #custommenu {
width: 70%; width: 60%;
float: left; float: left;
} }
div.yui3-menu-content { #custommenu .yui3-menu-label-active,
border: none !important; #custommenu .yui3-menu-label-menuvisible,
#custommenu .yui3-menu .yui3-menu .yui3-menu-label-active,
#custommenu .yui3-menu .yui3-menu .yui3-menu-label-menuvisible,
#custommenu .yui3-menuitem-active .yui3-menuitem-content,
#custommenu .yui3-menu .yui3-menu .yui3-menuitem-active .yui3-menuitem-content,
#custommenu .yui3-menu-horizontal.javascript-disabled li a:hover {
background-color:#666;
} }
.yui3-menu-content li a { #custommenu .yui3-menu-content,
font-size: 11px; #custommenu .yui3-menu .yui3-menu .yui3-menu-content {
font-weight: 200; background-image:none;
line-height: 30px; background-color:#333;
border-width:0;
padding:0;
}
#custommenu .yui3-menu-label,
#custommenu .yui3-menu .yui3-menu .yui3-menu-label {
background-image:url([[pix:theme|vertical-menu-submenu-indicator]]);
background-position:right center;
background-repeat:no-repeat;
}
#custommenu .yui3-menu-label.yui3-menu-label-menuvisible,
#custommenu .yui3-menu .yui3-menu .yui3-menu-label.yui3-menu-label-menuvisible {
background-image:url([[pix:theme|horizontal-menu-submenu-indicator]]);
}
#custommenu .yui3-menu-horizontal .yui3-menu-label,
#custommenu .yui3-menu-horizontal .yui3-menuitem-content {
border-width:0;
text-transform: uppercase; text-transform: uppercase;
text-decoration:none;
font-size:1em;
font-weight: 200;
line-height:30px;
cursor: pointer; cursor: pointer;
border-right: none !important; padding:0 20px;
border-top: none !important;
border-bottom: none !important;
text-decoration: none !important;
margin-left: 0px !important;
padding-left: 0px !important;
margin-right: 10px !important;
} }
.yui3-menu-content li a:hover { #custommenu .yui3-menu-horizontal.javascript-disabled .yui3-menu-content,
text-decoration: underline; #custommenu .yui3-menu-horizontal.javascript-disabled .yui3-menu-content .ul {
border-width:0;
} }
div.custom_menu_submenu li a { #custommenu .yui3-menu-horizontal.javascript-disabled li a {
line-height: 30px; padding: 0 20px;
text-shadow: none !important; display: block;
color: #333 !important;
margin-left: 5px !important;
} }
div.firstdockitem { /** Dock **/
margin-top: 30px; #dock .firstdockitem {margin-top: 30px;}
}
.headermenu .logininfo, .headermenu div, .headermenu form {
display: inline;
}
.headermenu .logininfo {
padding-right: 5px;
}