Debian Codegraph @

dijit-themes/flat/dijit/Menu.css

raw symbols SCIP
1 /* Menu
2
3 There are three areas of styling for the Menu:
4
5 1. The menu
6 There are three types of menus:
7 i) Context Menu
8 ii) Drop down Menu
9 iii) Navigation Menu
10 All three types of menus are affected by the .dijitMenu class in which you can set the background-color, padding and border
11 .dijitMenu affects the drop down menu in TimeTextBox, Calendar, ComboBox and FilteringSelect
12 .dijitMenuTable - for padding - also affects Select widget
13
14 2. The menu bar
15 .dijitMenuBar - for border, margins, padding, background-color of the menu bar
16 .dijitMenuBar .dijitMenuItem - for padding, text color of menu items in the menu bar (overrides .dijitMenuItem)
17
18 3. Menu items - items in the menu.
19 .dijitMenuItem - for color
20 .dijitMenuItemHover, .dijitMenuItemSelected - for background-color, border, text color, padding of a menu item or menubar item that has been hovered over or selected
21 .dijitMenuItemActive - for background-color of an active (mousedown) menu item
22 td.dijitMenuItemIconCell - for padding around a menu item's icon
23 td.dijitMenuItemLabel - for padding around a menu item's label
24 .dijitMenuSeparatorTop - for border, top border, of the separator
25 .dijitMenuSeparatorBottom - for bottom margin of the separator
26
27 Styles specific to ComboBox and FilteringSelect widgets:
28 .dijitComboBoxMenu .dijitMenuItem - for padding and border of a menu item in a ComboBox or FilteringSelect widget's menu
29 .dijitComboBoxMenu .dijitMenuItemSelected- for text color, background-color and border of a menu item in a ComboBox or FilteringSelect widget's menu
30
31 */
32 .flat .dijitMenu {
33 background: #fff;
34 border: 1px solid #9e9e9e;
35 border-radius: 3px;
36 margin: 0;
37 -webkit-box-shadow: 0 7px 3px -4px rgba(0,0,0,0.3), 0 8px 8px rgba(0,0,0,0.2);
38 box-shadow: 0 7px 3px -4px rgba(0,0,0,0.3), 0 8px 8px rgba(0,0,0,0.2);
39 }
40 .flat .dijitMenuTable,
41 .flat .dijitComboBoxMenu {
42 padding: 8px 0;
43 }
44 .flat .dijitComboBoxMenu {
45 margin-left: 0;
46 background-image: none;
47 }
48 .flat .dijitMenuTable {
49 /* this prevents jiggling upon hover of a menu item */
50 border-collapse: separate;
51 border-spacing: 0 0;
52 }
53 .flat .dijitMenuItem,
54 .flat .dijitMenuItem td {
55 line-height: 20px;
56 padding: 8px;
57 white-space: nowrap;
58 }
59 .flat .dijitMenuItemHover td,
60 .flat .dijitMenuItemHover {
61 color: #fff;
62 background-color: #2196f3;
63 }
64 .flat .dijitMenuItemActive td,
65 .flat .dijitMenuItemActive {
66 color: #fff;
67 background-color: #2196f3;
68 }
69 .flat .dijitMenuItemSelected td,
70 .flat .dijitMenuItemSelected {
71 color: #fff;
72 background-color: #2196f3;
73 }
74 .flat .dijitMenuItemDisabled {
75 color: #9e9e9e;
76 }
77 .flat .dijitMenuItemDisabled.dijitMenuItemSelected td,
78 .flat .dijitMenuItemDisabled.dijitMenuItemSelected {
79 color: #f2f2f2;
80 background: #6fbbf7;
81 }
82 .flat .dijitMenuSeparatorTop {
83 height: auto;
84 margin-top: 1px; /* prevents spacing above/below separator */
85 border-bottom: 1px solid #9e9e9e;
86 }
87 .flat .dijitMenuSeparatorBottom {
88 height: auto;
89 margin-bottom: 1px;
90 border-top: 1px solid transparent;
91 }
92 .flat td.dijitMenuItemIconCell {
93 padding: 4px;
94 margin: 0 0 0 4px;
95 text-align: center;
96 }
97 .flat .dijitMenuExpand {
98 font-family: "flat-icon";
99 speak: none;
100 font-style: normal;
101 font-weight: normal;
102 font-variant: normal;
103 text-transform: none;
104 line-height: 1;
105 font-size: 16px;
106 -webkit-font-smoothing: antialiased;
107 -moz-osx-font-smoothing: grayscale;
108 }
109 .flat .dijitMenuExpand:before {
110 content: "\f001";
111 }
112 .flat .dijitCheckedMenuItemIconChar {
113 display: none;
114 }
115 .flat .dijitMenuPreviousButton,
116 .flat .dijitMenuNextButton {
117 font-style: italic;
118 }
119 .flat .dijitMenuBar {
120 margin: 0;
121 padding: 0;
122 background-color: #f5f5f5;
123 }
124 .flat .dijitMenuBar .dijitMenuItem {
125 padding: 8px 12px;
126 margin: 0;
127 }
128 .flat .dijitMenuBar .dijitMenuItemHover {
129 color: #fff;
130 background-color: #2196f3;
131 }
132 .flat .dijitMenuBar .dijitMenuItemActive {
133 color: #fff;
134 background-color: #2196f3;
135 }
136 .flat .dijitMenuBar .dijitMenuItemSelected,
137 .flat .dijitMenuBar .dijitMenuItemHover.dijitMenuItemSelected,
138 .flat .dijitMenuBar .dijitMenuItemActive.dijitMenuItemSelected {
139 color: #fff;
140 background-color: #2196f3;
141 }
142 .flat .dijitMenuBar .dijitMenuItemDisabled.dijitMenuItemSelected {
143 color: #f2f2f2;
144 background: #6fbbf7;
145 }
146 .flat .dijitMenuPopup {
147 border-top-left-radius: 0;
148 border-top-right-radius: 0;
149 }
150 .flat .dijitMenuPopup .dijitMenu {
151 border-top-left-radius: 0;
152 border-top-right-radius: 0;
153 }
154 .flat .dijitMenuPopup .dijitMenuItem,
155 .flat .dijitMenuPopup .dijitMenuItem td {
156 padding: 8px;
157 }