2011-11-08 16:40:44 +00:00
|
|
|
/* Menu
|
2010-11-15 07:39:52 +00:00
|
|
|
|
2011-11-08 16:40:44 +00:00
|
|
|
There are three areas of styling for the Menu:
|
|
|
|
|
|
|
|
1. The menu
|
|
|
|
There are three types of menus:
|
|
|
|
i)Context Menu
|
|
|
|
ii)Drop down Menu
|
|
|
|
iii) Navigation Menu
|
|
|
|
All three types of menus are affected by the .dijitMenu class in which you can set the background-color, padding and border
|
|
|
|
.dijitMenu affects the drop down menu in TimeTextBox, Calendar, ComboBox and FilteringSelect
|
|
|
|
.dijitMenuTable - for padding - also affects Select widget
|
|
|
|
|
|
|
|
2. The menu bar
|
|
|
|
.dijitMenuBar - for border, margins, padding, background-color of the menu bar
|
|
|
|
.dijitMenuBar .dijitMenuItem - for padding, text color of menu items in the menu bar (overrides .dijitMenuItem)
|
|
|
|
|
|
|
|
3. Menu items - items in the menu.
|
|
|
|
.dijitMenuItem - for color
|
|
|
|
.dijitMenuItemHover, .dijitMenuItemSelected - for background-color, border, text color, padding of a menu item or menubar item that has been hovered over or selected
|
|
|
|
.dijitMenuItemActive - for bacgkround-color of an active (mousedown) menu item
|
|
|
|
td.dijitMenuItemIconCell - for padding around a menu item's icon
|
|
|
|
td.dijitMenuItemLabel - for padding around a menu item's label
|
|
|
|
.dijitMenuSeparatorTop - for border, top border, of the separator
|
|
|
|
.dijitMenuSeparatorBottom - for bottom margin of the separator
|
|
|
|
|
|
|
|
Styles specific to ComboBox and FilteringSelect widgets:
|
|
|
|
.dijitComboBoxMenu .dijitMenuItem - for padding and border of a menu item in a ComboBox or FilteringSelect widget's menu
|
|
|
|
.dijitComboBoxMenu .dijitMenuItemSelected- for text color, background-color and border of a menu item in a ComboBox or FilteringSelect widget's menu
|
|
|
|
|
|
|
|
*/
|
2010-11-15 07:39:52 +00:00
|
|
|
.claro .dijitMenuBar {
|
2011-11-08 16:40:44 +00:00
|
|
|
border: 1px solid #b5bcc7;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background-color: #efefef;
|
|
|
|
background-image: url("images/commonHighlight.png");
|
|
|
|
background-position: 0 0;
|
|
|
|
background-repeat: repeat-x;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.dj_ie6 .claro .dijitMenuBar {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-image: none;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitMenu {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-repeat: repeat-y;
|
|
|
|
background-color: #ffffff;
|
|
|
|
border: 1px solid #769dc0;
|
|
|
|
/* so adjoining borders of MenuBar/ComboBox and Menu overlap, avoiding double border */
|
|
|
|
|
|
|
|
margin: -1px 0;
|
|
|
|
}
|
|
|
|
.dj_ie6 .claro .dijitMenu {
|
|
|
|
margin: 0;
|
|
|
|
/* above -1px makes top/bottom borders disappear on IE6 */
|
|
|
|
|
|
|
|
}
|
|
|
|
.claro .dijitMenuBar .dijitMenuItem {
|
|
|
|
padding: 6px 10px 7px;
|
|
|
|
background-position: 0 100px;
|
|
|
|
color: #4a4a4a;
|
|
|
|
margin: -1px;
|
|
|
|
}
|
2010-11-15 07:39:52 +00:00
|
|
|
.claro .dijitMenuItem {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-image: url("images/menuHighlight.png");
|
|
|
|
background-position: 0 -40px;
|
|
|
|
background-repeat: repeat-x;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
2011-11-08 16:40:44 +00:00
|
|
|
/* this prevents jiggling upon hover of a menu item */
|
2010-11-15 07:39:52 +00:00
|
|
|
.claro .dijitMenuTable {
|
2011-11-08 16:40:44 +00:00
|
|
|
border-collapse: separate;
|
|
|
|
border-spacing: 0 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.claro .dijitMenuItem td {
|
|
|
|
padding: 1px;
|
|
|
|
}
|
|
|
|
/* hover over a MenuBarItem */
|
|
|
|
.claro .dijitMenuPassive .dijitMenuItemHover, .claro .dijitMenuPassive .dijitMenuItemSelected {
|
|
|
|
background-color: #abd6ff;
|
|
|
|
border: solid 1px #769dc0;
|
|
|
|
background-position: 0 0;
|
|
|
|
color: #000000;
|
|
|
|
padding: 5px 9px 6px;
|
|
|
|
}
|
|
|
|
.claro .dijitMenuPassive .dijitMenuItemActive {
|
|
|
|
background-position: 0 -177px;
|
|
|
|
}
|
|
|
|
.dj_ie6 .claro .dijitMenuItem, .dj_ie6 .claro .dijitMenuPassive .dijitMenuItem {
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
/* MenuBarItem that has been selected and menu drops down from it */
|
|
|
|
.claro .dijitMenuActive .dijitMenuItemHover, .claro .dijitMenuActive .dijitMenuItemSelected {
|
|
|
|
border: solid 1px #769dc0;
|
|
|
|
padding: 5px 9px 6px;
|
|
|
|
background-color: #abd6ff;
|
|
|
|
background-position: 0 0;
|
|
|
|
color: #000000;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.dj_ie .claro .dijitMenuActive .dijitMenuItemHover,
|
|
|
|
.dj_ie .claro .dijitMenuActive .dijitMenuItemSelected,
|
|
|
|
.dj_ie .claro .dijitMenuPassive .dijitMenuItemHover,
|
|
|
|
.dj_ie .claro .dijitMenuPassive .dijitMenuItemSelected {
|
2011-11-08 16:40:44 +00:00
|
|
|
padding-top: 6px;
|
|
|
|
padding-bottom: 5px;
|
|
|
|
margin-top: -3px;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
2011-11-08 16:40:44 +00:00
|
|
|
.claro .dijitMenuActive .dijitMenuItemActive {
|
|
|
|
background-color: #7dbefa;
|
|
|
|
background-position: 0 -177px;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitMenuItemActive {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-position: 0 -177px;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro td.dijitMenuItemIconCell {
|
2011-11-08 16:40:44 +00:00
|
|
|
padding: 2px;
|
|
|
|
margin: 0 0 0 4px;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro td.dijitMenuItemLabel {
|
2011-11-08 16:40:44 +00:00
|
|
|
padding-top: 5px;
|
|
|
|
padding-bottom: 5px;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitMenuExpand {
|
2011-11-08 16:40:44 +00:00
|
|
|
width: 7px;
|
|
|
|
height: 7px;
|
|
|
|
background-image: url('images/spriteArrows.png');
|
|
|
|
background-position: -14px 0;
|
|
|
|
margin-right: 3px;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitMenuItemDisabled .dijitMenuItemIconCell {
|
2011-11-08 16:40:44 +00:00
|
|
|
opacity: 1;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitMenuSeparatorTop {
|
2011-11-08 16:40:44 +00:00
|
|
|
height: auto;
|
|
|
|
margin-top: 1px;
|
|
|
|
/* prevents spacing above/below separator */
|
|
|
|
|
|
|
|
border-bottom: 1px solid #b5bcc7;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
2011-11-08 16:40:44 +00:00
|
|
|
.claro .dijitMenuSeparatorBottom {
|
|
|
|
height: auto;
|
|
|
|
margin-bottom: 1px;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
2011-11-08 16:40:44 +00:00
|
|
|
/* the checked menu item */
|
2010-11-15 07:39:52 +00:00
|
|
|
.claro .dijitCheckedMenuItemIconChar {
|
2011-11-08 16:40:44 +00:00
|
|
|
display: none;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitCheckedMenuItemIcon {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-image: url('form/images/checkboxRadioButtonStates.png');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: -15px 50%;
|
|
|
|
width: 15px;
|
|
|
|
height: 16px;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.dj_ie6 .claro .dijitCheckedMenuItemIcon {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-image: url('form/images/checkboxAndRadioButtons_IE6.png');
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitCheckedMenuItemChecked .dijitCheckedMenuItemIcon {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-position: 0 50%;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
2011-11-08 16:40:44 +00:00
|
|
|
/*ComboBox Menu*/
|
2010-11-15 07:39:52 +00:00
|
|
|
.claro .dijitComboBoxMenu {
|
2011-11-08 16:40:44 +00:00
|
|
|
margin-left: 0;
|
|
|
|
background-image: none;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
2011-11-08 16:40:44 +00:00
|
|
|
.claro .dijitComboBoxMenu .dijitMenuItem {
|
|
|
|
padding: 2px;
|
|
|
|
border-width: 1px 0 1px 0;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: #ffffff;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitComboBoxMenu .dijitMenuItemSelected {
|
2011-11-08 16:40:44 +00:00
|
|
|
color: #000000;
|
|
|
|
border-color: #769dc0;
|
|
|
|
background-color: #abd6ff;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitComboBoxMenuActive .dijitMenuItemSelected {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-position: 0 -177px;
|
|
|
|
background-color: #7dbefa;
|
|
|
|
/* TODO: why is this a different color than normal .dijitMenuItemSelected? */
|
|
|
|
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitMenuPreviousButton, .claro .dijitMenuNextButton {
|
2011-11-08 16:40:44 +00:00
|
|
|
font-style: italic;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|