2011-11-08 16:40:44 +00:00
/* Menu
There are three areas of styling for the Menu:
1. The menu
There are three types of menus:
2013-03-18 06:26:24 +00:00
i) Context Menu
ii) Drop down Menu
2011-11-08 16:40:44 +00:00
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
2017-01-20 17:29:59 +00:00
2011-11-08 16:40:44 +00:00
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
2013-03-18 06:26:24 +00:00
.dijitMenuItemActive - for background-color of an active (mousedown) menu item
2011-11-08 16:40:44 +00:00
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
*/
@import "variables";
.claro .dijitMenuBar {
border: 1px solid @border-color;
margin: 0;
padding: 0;
background-color: @bar-background-color;
2013-03-18 06:26:24 +00:00
.standard-gradient;
2011-11-08 16:40:44 +00:00
}
2013-03-18 06:26:24 +00:00
2011-11-08 16:40:44 +00:00
.claro .dijitMenu {
background-color:@menu-background-color;
border: 1px solid @popup-border-color;
}
2013-03-18 06:26:24 +00:00
.claro .dijitMenuItem {
color: @text-color;
}
2017-01-20 17:29:59 +00:00
.claro .dijitMenuBar .dijitMenuItem {
2011-11-08 16:40:44 +00:00
padding: 6px 10px 7px;
margin:-1px;
2013-03-18 06:26:24 +00:00
}
.claro .dijitMenuBar .dijitMenuItemHover,
.claro .dijitMenuBar .dijitMenuItemSelected {
2017-01-20 17:29:59 +00:00
// on hover or selection of MenuBar item, add border and reduce padding to compensate
2013-03-18 06:26:24 +00:00
border:solid 1px @hovered-border-color;
padding: 5px 9px 6px;
2011-11-08 16:40:44 +00:00
}
/* this prevents jiggling upon hover of a menu item */
.claro .dijitMenuTable {
border-collapse:separate;
border-spacing:0 0;
padding:0;
}
2017-01-20 17:29:59 +00:00
.claro .dijitMenu .dijitMenuItem td,
.claro .dijitComboBoxMenu .dijitMenuItem {
padding: @textbox-padding; // Make drop down menu text line up with text in <input>.
border-width:1px 0 1px 0;
border-style:solid;
border-color: @select-dropdownitem-background-color;
2011-11-08 16:40:44 +00:00
}
2017-01-20 17:29:59 +00:00
2013-03-18 06:26:24 +00:00
/* hover over a MenuItem or MenuBarItem */
2017-01-20 17:29:59 +00:00
.claro .dijitMenu .dijitMenuItemHover td,
.claro .dijitMenu .dijitMenuItemSelected td,
2013-03-18 06:26:24 +00:00
.claro .dijitMenuItemHover,
2017-01-20 17:29:59 +00:00
.claro .dijitComboBoxMenu .dijitMenuItemHover,
2013-03-18 06:26:24 +00:00
.claro .dijitMenuItemSelected {
2017-01-20 17:29:59 +00:00
// note: seems like the selected MenuItem should use @pressed-background-color
// and .active-gradient, but claro didn't to that
border-color: @hovered-border-color;
2011-11-08 16:40:44 +00:00
background-color: @hovered-background-color;
2013-03-18 06:26:24 +00:00
.standard-gradient;
2011-11-08 16:40:44 +00:00
}
2017-01-20 17:29:59 +00:00
2013-03-18 06:26:24 +00:00
.claro .dijitMenuItemActive {
2017-01-20 17:29:59 +00:00
// todo: seems like the selected MenuItem should come here
// todo: seems like should use @pressed-background-color
.active-gradient;
2011-11-08 16:40:44 +00:00
}
.dj_ie .claro .dijitMenuActive .dijitMenuItemHover,
.dj_ie .claro .dijitMenuActive .dijitMenuItemSelected,
.dj_ie .claro .dijitMenuPassive .dijitMenuItemHover,
.dj_ie .claro .dijitMenuPassive .dijitMenuItemSelected {
2017-01-20 17:29:59 +00:00
// Selectivity set to override ComboBox rules below.
// If this rule isn't present, on IE6 hovering an item in the ComboBox drop down causes two
// items to be highlighted (except when hovering the first item in the list)
2011-11-08 16:40:44 +00:00
padding-top: 6px;
padding-bottom: 5px;
margin-top: -3px;
}
2013-03-18 06:26:24 +00:00
2011-11-08 16:40:44 +00:00
.claro td.dijitMenuItemIconCell {
2013-03-18 06:26:24 +00:00
padding: 2px;
margin: 0 0 0 4px;
2011-11-08 16:40:44 +00:00
}
.claro td.dijitMenuItemLabel {
padding-top: 5px;
padding-bottom: 5px;
}
.claro .dijitMenuExpand {
width: 7px;
height: 7px;
2012-08-14 14:59:10 +00:00
background-image: url(@image-arrow-sprite);
2011-11-08 16:40:44 +00:00
background-position: -14px 0;
margin-right:3px;
2017-01-20 17:29:59 +00:00
margin-bottom: 4px;
2011-11-08 16:40:44 +00:00
}
.claro .dijitMenuSeparatorTop {
height: auto;
margin-top:1px; /* prevents spacing above/below separator */
border-bottom: 1px solid @border-color
}
.claro .dijitMenuSeparatorBottom{
height: auto;
margin-bottom:1px;
}
/* the checked menu item */
2017-01-20 17:29:59 +00:00
.claro .dijitCheckedMenuItem .dijitMenuItemIcon,
.claro .dijitRadioMenuItem .dijitMenuItemIcon {
2012-08-14 14:59:10 +00:00
background-image: url(@image-form-checkbox-and-radios);
2011-11-08 16:40:44 +00:00
background-repeat:no-repeat;
2017-01-20 17:29:59 +00:00
background-position: -15px 50%; /* unchecked checkbox */
2011-11-08 16:40:44 +00:00
width:15px;
height:16px;
}
2017-01-20 17:29:59 +00:00
.dj_ie6 .claro .dijitCheckedMenuItem .dijitMenuItemIcon,
.dj_ie6 .claro .dijitRadioMenuItem .dijitMenuItemIcon {
2012-08-14 14:59:10 +00:00
background-image: url(@image-form-checkbox-and-radios-ie6);
2011-11-08 16:40:44 +00:00
}
.claro .dijitCheckedMenuItemChecked .dijitCheckedMenuItemIcon {
2017-01-20 17:29:59 +00:00
background-position: 0 50%; /* checked checkbox */
}
.claro .dijitRadioMenuItem .dijitMenuItemIcon {
background-position: -105px 50%; /* unfilled circle */
}
.claro .dijitRadioMenuItemChecked .dijitMenuItemIcon {
background-position: -90px 50%; /* filled circle */
2011-11-08 16:40:44 +00:00
}
/*ComboBox Menu*/
.claro .dijitComboBoxMenu {
margin-left:0;
background-image: none;
}
2017-01-20 17:29:59 +00:00
.claro .dijitMenu .dijitMenuItemSelected td,
2011-11-08 16:40:44 +00:00
.claro .dijitComboBoxMenu .dijitMenuItemSelected {
2017-01-20 17:29:59 +00:00
// TODO: combine with above rules for selected items?
// But the selected item in a Select drop down is different than when MenuBarItem "File" is highlighted
// because the user is on the file menu?
2011-11-08 16:40:44 +00:00
color:@selected-text-color;
border-color:@hovered-border-color;
background-color:@hovered-background-color;
}
2017-01-20 17:29:59 +00:00
2011-11-08 16:40:44 +00:00
.claro .dijitComboBoxMenuActive .dijitMenuItemSelected {
background-color: @select-dropdownitem-hovered-background-color; /* TODO: why is this a different color than normal .dijitMenuItemSelected? */
}
.claro .dijitMenuPreviousButton, .claro .dijitMenuNextButton {
font-style: italic;
}