Chris@0
|
1 /**
|
Chris@0
|
2 * @file toolbar.menu.css
|
Chris@0
|
3 */
|
Chris@0
|
4 .toolbar .toolbar-menu,
|
Chris@0
|
5 [dir="rtl"] .toolbar .toolbar-menu {
|
Chris@0
|
6 margin: 0;
|
Chris@0
|
7 padding: 0;
|
Chris@18
|
8 list-style: none;
|
Chris@0
|
9 }
|
Chris@0
|
10 .toolbar .toolbar-box {
|
Chris@18
|
11 position: relative;
|
Chris@0
|
12 display: block;
|
Chris@18
|
13 width: auto;
|
Chris@0
|
14 line-height: 1em; /* this prevents the value "normal" from being returned as the line-height */
|
Chris@0
|
15 }
|
Chris@0
|
16
|
Chris@0
|
17 /**
|
Chris@0
|
18 * Hidden vertical toolbar sub-menus by default.
|
Chris@0
|
19 */
|
Chris@0
|
20 .toolbar .toolbar-tray-vertical .toolbar-menu ul {
|
Chris@0
|
21 display: none;
|
Chris@0
|
22 }
|
Chris@0
|
23
|
Chris@0
|
24 /**
|
Chris@0
|
25 * Hidden horizontal toolbar handle icon.
|
Chris@0
|
26 */
|
Chris@0
|
27 .toolbar .toolbar-tray-horizontal .toolbar-menu .toolbar-handle {
|
Chris@0
|
28 display: none;
|
Chris@0
|
29 }
|
Chris@0
|
30 /**
|
Chris@0
|
31 * Hidden toolbar sub-menus by default.
|
Chris@0
|
32 */
|
Chris@0
|
33 .toolbar-tray-open .toolbar-menu .menu-item--expanded ul {
|
Chris@0
|
34 display: none;
|
Chris@0
|
35 }
|
Chris@0
|
36 .toolbar .toolbar-tray-vertical li.open > ul {
|
Chris@0
|
37 display: block; /* Show the sub-menus */
|
Chris@0
|
38 }
|
Chris@0
|
39 .toolbar .toolbar-tray-vertical .toolbar-handle + a {
|
Chris@0
|
40 margin-right: 3em; /* LTR */
|
Chris@0
|
41 }
|
Chris@0
|
42 [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-handle + a {
|
Chris@18
|
43 margin-right: 0;
|
Chris@0
|
44 margin-left: 3em;
|
Chris@0
|
45 }
|
Chris@0
|
46 .toolbar .toolbar-tray .menu-item--active-trail > .toolbar-box a,
|
Chris@0
|
47 .toolbar .toolbar-tray a.is-active {
|
Chris@0
|
48 color: #000;
|
Chris@0
|
49 font-weight: bold;
|
Chris@0
|
50 }
|
Chris@0
|
51
|
Chris@0
|
52 /* ----- Toolbar menu tray for viewports less than 320px ------ */
|
Chris@0
|
53 @media screen and (max-width: 319px) {
|
Chris@0
|
54 .toolbar .toolbar-tray-vertical.is-active {
|
Chris@0
|
55 width: 100%;
|
Chris@0
|
56 }
|
Chris@0
|
57 }
|
Chris@0
|
58
|
Chris@0
|
59 /**
|
Chris@0
|
60 * Items.
|
Chris@0
|
61 */
|
Chris@0
|
62 .toolbar .level-2 > ul {
|
Chris@18
|
63 border-top-color: #e5e5e5;
|
Chris@18
|
64 border-bottom-color: #ccc;
|
Chris@0
|
65 background-color: #fafafa;
|
Chris@0
|
66 }
|
Chris@0
|
67 .toolbar .level-3 > ul {
|
Chris@18
|
68 border-top-color: #ddd;
|
Chris@18
|
69 border-bottom-color: #c5c5c5;
|
Chris@0
|
70 background-color: #f5f5f5;
|
Chris@0
|
71 }
|
Chris@0
|
72 .toolbar .level-4 > ul {
|
Chris@18
|
73 border-top-color: #d5d5d5;
|
Chris@18
|
74 border-bottom-color: #bbb;
|
Chris@14
|
75 background-color: #eee;
|
Chris@0
|
76 }
|
Chris@0
|
77 .toolbar .level-5 > ul {
|
Chris@18
|
78 border-top-color: #ccc;
|
Chris@18
|
79 border-bottom-color: #b5b5b5;
|
Chris@0
|
80 background-color: #e5e5e5;
|
Chris@0
|
81 }
|
Chris@0
|
82 .toolbar .level-6 > ul {
|
Chris@18
|
83 border-top-color: #c5c5c5;
|
Chris@18
|
84 border-bottom-color: #aaa;
|
Chris@14
|
85 background-color: #eee;
|
Chris@0
|
86 }
|
Chris@0
|
87 .toolbar .level-7 > ul {
|
Chris@18
|
88 border-top-color: #ccc;
|
Chris@18
|
89 border-bottom-color: #b5b5b5;
|
Chris@0
|
90 background-color: #fafafa;
|
Chris@0
|
91 }
|
Chris@0
|
92 .toolbar .level-8 > ul {
|
Chris@18
|
93 border-top-color: #ddd;
|
Chris@18
|
94 border-bottom-color: #ccc;
|
Chris@14
|
95 background-color: #ddd;
|
Chris@0
|
96 }
|
Chris@0
|
97
|
Chris@0
|
98 /**
|
Chris@0
|
99 * Handle.
|
Chris@0
|
100 */
|
Chris@0
|
101 .toolbar .toolbar-handle:hover {
|
Chris@0
|
102 cursor: pointer;
|
Chris@0
|
103 }
|
Chris@0
|
104 .toolbar .toolbar-icon.toolbar-handle {
|
Chris@18
|
105 position: absolute;
|
Chris@18
|
106 z-index: 1;
|
Chris@18
|
107 top: 0;
|
Chris@18
|
108 right: 0; /* LTR */
|
Chris@0
|
109 bottom: 0;
|
Chris@0
|
110 display: block;
|
Chris@0
|
111 height: 100%;
|
Chris@0
|
112 padding: 0;
|
Chris@0
|
113 }
|
Chris@0
|
114 [dir="rtl"] .toolbar .toolbar-icon.toolbar-handle {
|
Chris@18
|
115 right: auto;
|
Chris@0
|
116 left: 0;
|
Chris@0
|
117 padding: 0;
|
Chris@0
|
118 }
|