mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
theme-overlay MDL-25834 Added CSS to better display the custom menu in the overlay theme
This commit is contained in:
parent
56babbcb76
commit
53b1445eeb
1 changed files with 145 additions and 128 deletions
|
@ -1,6 +1,5 @@
|
|||
/* Global
|
||||
--------------------------*/
|
||||
|
||||
body {
|
||||
background: #fff;
|
||||
margin: 0;
|
||||
|
@ -40,7 +39,6 @@ a:active {
|
|||
|
||||
/* Header
|
||||
---------------------------*/
|
||||
|
||||
#page-header {
|
||||
background: #333;
|
||||
color: #fff;
|
||||
|
@ -57,13 +55,13 @@ a:active {
|
|||
margin-top: 0px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
#page-header a:link,
|
||||
#page-header a:visited {
|
||||
color: #fff;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
#newheader {
|
||||
height: 100px;
|
||||
position: relative;
|
||||
|
@ -75,6 +73,7 @@ a:active {
|
|||
position: absolute;
|
||||
left: -50px;
|
||||
}
|
||||
|
||||
h1.headermain {
|
||||
margin-left: 0px;
|
||||
padding-left: 0px;
|
||||
|
@ -86,6 +85,19 @@ h1.headermain {
|
|||
-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 {
|
||||
background: #eee;
|
||||
}
|
||||
|
@ -124,16 +136,13 @@ h1.headermain {
|
|||
|
||||
/* Navbar
|
||||
--------------------------*/
|
||||
|
||||
.navbar {
|
||||
margin-top: 10px;
|
||||
|
||||
}
|
||||
|
||||
.navbar .wrapper {
|
||||
margin-left: 0px !important;
|
||||
padding-left: 0px !important;
|
||||
|
||||
}
|
||||
|
||||
.breadcrumb .sep {
|
||||
|
@ -147,10 +156,8 @@ h1.headermain {
|
|||
font-size: 12px;
|
||||
}
|
||||
|
||||
|
||||
/* Blocks
|
||||
---------------------------*/
|
||||
|
||||
.block {
|
||||
border: none;
|
||||
margin-bottom: 25px;
|
||||
|
@ -178,7 +185,6 @@ h1.headermain {
|
|||
.
|
||||
/* Forums
|
||||
---------------------------*/
|
||||
|
||||
.forumpost .subject {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
@ -199,7 +205,6 @@ h1.headermain {
|
|||
|
||||
/* Course
|
||||
-------------------------------*/
|
||||
|
||||
.course-content .main {
|
||||
border: 1px solid #eee;
|
||||
background: #eee;
|
||||
|
@ -214,52 +219,64 @@ h1.headermain {
|
|||
background: #fff;
|
||||
}
|
||||
|
||||
/* YUI Menu
|
||||
/* YUI Menu - custom menu
|
||||
-------------------------------*/
|
||||
|
||||
#custommenu {
|
||||
width: 70%;
|
||||
width: 60%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
div.yui3-menu-content {
|
||||
border: none !important;
|
||||
#custommenu .yui3-menu-label-active,
|
||||
#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 {
|
||||
font-size: 11px;
|
||||
font-weight: 200;
|
||||
line-height: 30px;
|
||||
#custommenu .yui3-menu-content,
|
||||
#custommenu .yui3-menu .yui3-menu .yui3-menu-content {
|
||||
background-image:none;
|
||||
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-decoration:none;
|
||||
font-size:1em;
|
||||
font-weight: 200;
|
||||
line-height:30px;
|
||||
cursor: pointer;
|
||||
border-right: none !important;
|
||||
border-top: none !important;
|
||||
border-bottom: none !important;
|
||||
text-decoration: none !important;
|
||||
margin-left: 0px !important;
|
||||
padding-left: 0px !important;
|
||||
margin-right: 10px !important;
|
||||
padding:0 20px;
|
||||
}
|
||||
|
||||
.yui3-menu-content li a:hover {
|
||||
text-decoration: underline;
|
||||
#custommenu .yui3-menu-horizontal.javascript-disabled .yui3-menu-content,
|
||||
#custommenu .yui3-menu-horizontal.javascript-disabled .yui3-menu-content .ul {
|
||||
border-width:0;
|
||||
}
|
||||
|
||||
div.custom_menu_submenu li a {
|
||||
line-height: 30px;
|
||||
text-shadow: none !important;
|
||||
color: #333 !important;
|
||||
margin-left: 5px !important;
|
||||
#custommenu .yui3-menu-horizontal.javascript-disabled li a {
|
||||
padding: 0 20px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
div.firstdockitem {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.headermenu .logininfo, .headermenu div, .headermenu form {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.headermenu .logininfo {
|
||||
padding-right: 5px;
|
||||
}
|
||||
/** Dock **/
|
||||
#dock .firstdockitem {margin-top: 30px;}
|
Loading…
Add table
Add a link
Reference in a new issue