]> git.proxmox.com Git - extjs.git/blame - extjs/classic/theme-base/sass/src/menu/Menu.scss
add extjs 6.0.1 sources
[extjs.git] / extjs / classic / theme-base / sass / src / menu / Menu.scss
CommitLineData
6527f429
DM
1.#{$prefix}menu {\r
2 outline: none;\r
3}\r
4\r
5.#{$prefix}menu-body {\r
6 position: relative;\r
7}\r
8\r
9.#{$prefix}menu-item {\r
10 white-space: nowrap;\r
11 overflow: hidden;\r
12 border-color: transparent;\r
13 border-style: solid;\r
14}\r
15\r
16// "Foreign" Components (such as form fields) put inside a Menu get this class.\r
17.#{$prefix}menu-item-cmp {\r
18\r
19 // Ensure labels are centered when in menus which enlarge the height of a Labelable Component\r
20 .#{$prefix}field-label-cell {\r
21 vertical-align: middle;\r
22 }\r
23 @if not is-null($menu-component-margin) and $menu-component-margin != 0 {\r
24 margin: $menu-component-margin;\r
25 }\r
26}\r
27\r
28.#{$prefix}menu-icon-separator {\r
29 position: absolute;\r
30 top: 0px;\r
31 z-index: 0;\r
32 height: 100%;\r
33 overflow: hidden;\r
34 .#{$prefix}menu-plain & {\r
35 display: none;\r
36 }\r
37}\r
38\r
39.#{$prefix}menu-item-link {\r
40 // prevent gray background on tap in mobile webkit\r
41 -webkit-tap-highlight-color: transparent;\r
42 -webkit-touch-callout: none;\r
43 text-decoration: none;\r
44 outline: 0;\r
45 // display:block is required to make the menu item stretch to fill its container so that\r
46 // when using href, the entire menu item is clickable.\r
47 // If we ever consider going back to inline or inline-block, please remember inline\r
48 // will not work because it allows multi line menu items wrap into the padding area\r
49 // (icon space) in Webkit\r
50 display: block;\r
51\r
52}\r
53\r
54.#{$prefix}menu-item-link-href {\r
55 -webkit-touch-callout: default;\r
56}\r
57\r
58.#{$prefix}menu-item-text {\r
59 display: inline-block;\r
60}\r
61\r
62.#{$prefix}menu-item-icon,\r
63.#{$prefix}menu-item-icon-right,\r
64.#{$prefix}menu-item-arrow {\r
65 font-size: 0;\r
66 position: absolute;\r
67 text-align: center;\r
68 background-repeat: no-repeat;\r
69}