BIG HACK: Corrected frequency calculation for new members
[civicrm-core.git] / css / crm-menubar.css
CommitLineData
b30809e4
CW
1/* CiviCRM navigation menu stylesheet */
2
3#civicrm-menu-nav {
4 line-height: 0;
5 text-align: left;
6 font-size: 13px;
7}
8#civicrm-menu {
8a52ae34
CW
9 background-color: $menubarColor;
10 width: 100%;
b30809e4
CW
11 z-index: 500;
12 height: auto;
13 margin: 0;
14}
15#civicrm-menu i {
16 margin-right: 3px;
17}
18#civicrm-menu li {
19 border: none;
20 padding: 0;
21}
22#civicrm-menu li a {
23 padding: 12px 8px;
24 text-decoration: none;
b30809e4
CW
25 box-shadow: none;
26 border: none;
27}
28#civicrm-menu li a[href="#"] {
29 cursor: default;
30}
31#civicrm-menu li li a {
32 padding: 6px 36px 6px 10px;
33}
e0674c37
CW
34#civicrm-menu li.crm-menu-border-bottom + li,
35#civicrm-menu li + li.crm-menu-border-top {
b30809e4
CW
36 border-top: 1px solid #bbb;
37}
38#civicrm-menu li a:focus,
39#civicrm-menu li a:hover,
40#civicrm-menu li a.highlighted {
41 text-decoration: none;
8a52ae34
CW
42 background-color: $highlightColor;
43 color: $highlightTextColor;
b30809e4
CW
44}
45#civicrm-menu li li .sub-arrow:before {
46 content: "\f0da";
9383ac27
EM
47 font-family: 'FontAwesome';
48 float: right;
49 margin-right: -25px;
b30809e4
CW
50}
51/* x icon */
52#crm-menubar-state:checked ~ .crm-menubar-toggle-btn .crm-menubar-toggle-btn-icon {
53 height: 0;
54 background: transparent;
55}
56#crm-menubar-state:checked ~ .crm-menubar-toggle-btn .crm-menubar-toggle-btn-icon:before {
57 top: 0;
58 -webkit-transform: rotate(-45deg);
59 transform: rotate(-45deg);
60}
61#crm-menubar-state:checked ~ .crm-menubar-toggle-btn .crm-menubar-toggle-btn-icon:after {
62 top: 0;
63 -webkit-transform: rotate(45deg);
64 transform: rotate(45deg);
65}
66/* hide menu state checkbox (keep it visible to screen readers) */
67#civicrm-menu-nav #crm-menubar-state {
68 position: absolute;
69 width: 1px;
70 height: 1px;
71 margin: -1px;
72 border: 0;
73 padding: 0;
74 overflow: hidden;
75 clip: rect(1px,1px,1px,1px);
76}
77#civicrm-menu-nav .crm-menubar-toggle-btn {
78 position: relative;
79 display: inline-block;
80 width: 57px;
81 height: 28px;
82 text-indent: 28px;
83 white-space: nowrap;
84 overflow: hidden;
85 cursor: pointer;
86 color: transparent;
87 -webkit-tap-highlight-color: rgba(0,0,0,0);
8a52ae34 88 background-color: #1b1b1b;
b30809e4
CW
89}
90
91/* responsive icon */
92
93#civicrm-menu-nav .crm-menubar-toggle-btn-icon,
94#civicrm-menu-nav .crm-menubar-toggle-btn-icon:before,
95#civicrm-menu-nav .crm-menubar-toggle-btn-icon:after {
96 position: absolute;
97 top: 50%;
98 left: 27px;
99 height: 2px;
100 width: 24px;
101 background: #bbb;
102 -webkit-transition: all 0.25s;
103 transition: all 0.25s;
104}
105#civicrm-menu-nav .crm-menubar-toggle-btn-icon:before {
106 content: '';
107 top: -7px;
108 left: 0;
109}
110#civicrm-menu-nav .crm-menubar-toggle-btn-icon:after {
111 content: '';
112 top: 7px;
113 left: 0;
114}
115
116/* Quicksearch */
117#crm-qsearch {
118 padding: 1px 0 1px 2px;
119 background-color: transparent !important;
120}
121#civicrm-menu #crm-qsearch > a {
122 padding: 2px 0 0 2px;
123}
124
125input#crm-qsearch-input {
126 box-sizing: border-box;
127 background-color: #eaeaea;
128 font-size: 13px;
129 border: 1px solid #ccc;
130 margin: 4px 4px 0;
131 padding: 2px 8px;
2c975a1c 132 height: calc($menubarHeight - 10px);
b30809e4
CW
133 width: 30px;
134 transition: width .5s .05s, background-color .3s .05s;
b74e118e 135 color: black;
b30809e4
CW
136}
137a.highlighted #crm-qsearch-input,
138#crm-qsearch-input:focus,
139#crm-qsearch-input.has-user-input {
140 background-color: white;
141 width: 130px;
142}
143input#crm-qsearch-input:-ms-input-placeholder {
9c504e42 144 font-family: 'FontAwesome', sans-serif;
b30809e4
CW
145}
146input#crm-qsearch-input::-webkit-input-placeholder {
9c504e42 147 font-family: 'FontAwesome', sans-serif;
b30809e4
CW
148}
149input#crm-qsearch-input::-moz-placeholder {
9c504e42 150 font-family: 'FontAwesome', sans-serif;
b30809e4
CW
151}
152input#crm-qsearch-input::placeholder {
9c504e42 153 font-family: 'FontAwesome', sans-serif;
b30809e4
CW
154}
155
156ul.crm-quickSearch-results {
157 z-index: 100001;
158}
159ul.crm-quickSearch-results.ui-state-disabled {
160 opacity: .8;
161}
162
163#civicrm-menu-nav .crm-logo-sm {
1889d803 164 background: url($resourceBase/i/logo_sm.png) no-repeat;
b30809e4
CW
165 display: inline-block;
166 width: 16px;
167 height: 16px;
168 margin: 0 2px;
169}
170
171#civicrm-menu #crm-menubar-toggle-position {
172 float: right;
173}
174#civicrm-menu #crm-menubar-toggle-position a i {
b30809e4 175 margin: 0;
8a52ae34 176 border-top: 2px solid $textColor;
b30809e4 177 font-size: 11px;
8a52ae34 178 opacity: .8;
b30809e4
CW
179}
180body.crm-menubar-over-cms-menu #crm-menubar-toggle-position a i {
181 transform: rotate(180deg);
182}
183
ed10290a
CW
184/* Drilldown menu item finder */
185#civicrm-menu [data-name=MenubarDrillDown] > a {
186 padding-top: 2px;
187 padding-bottom: 2px;
188}
189#crm-menubar-drilldown {
190 padding: 4px;
191 background-color: #eee;
192}
193#crm-menubar-drilldown:focus {
194 background-color: white;
195}
196#crm-menubar-drilldown + .sub-arrow:before {
197 margin-top: 5px;
198}
199
4373b3dd 200@media (min-width: $breakMin) {
b30809e4
CW
201
202 /* Switch to desktop layout
203 -----------------------------------------------
204 These transform the menu tree from
205 collapsible to desktop (navbar + dropdowns)
206 -----------------------------------------------*/
207 /* start... (it's not recommended editing these rules) */
9383ac27
EM
208 #civicrm-menu ul {
209 position: absolute;
210 width: 12em;
211 }
212 #civicrm-menu li {
213 float: left;
214 }
215 #civicrm-menu.sm-rtl li {
216 float: right;
217 }
218 #civicrm-menu ul li,
219 #civicrm-menu.sm-rtl ul li,
220 #civicrm-menu.sm-vertical li {
221 float: none;
222 }
223 #civicrm-menu a {
224 white-space: nowrap;
225 }
226 #civicrm-menu ul a,
227 #civicrm-menu.sm-vertical a {
228 white-space: normal;
229 }
230 #civicrm-menu .sm-nowrap > li > a,
231 #civicrm-menu .sm-nowrap > li > :not(ul) a {
232 white-space: nowrap;
233 }
b30809e4
CW
234 /* ...end */
235
236 /* hide the button in desktop view */
237 #civicrm-menu-nav .crm-menubar-toggle-btn {
238 position: absolute;
fba7aa1c 239 top: -99999px; /* do not edit this without updating the isMobile() function in crm.menubar.js */
b30809e4
CW
240 }
241
242 #civicrm-menu {
243 border-bottom: 1px solid #ccc;
244 }
245
246 body.crm-menubar-below-cms-menu > #civicrm-menu-nav #civicrm-menu {
247 top: 30px;
248 }
249
250 #civicrm-menu ul {
b30809e4
CW
251 box-shadow: 0px 0px 2px 0 rgba(0,0,0,0.3);
252 }
253
8a52ae34 254 #civicrm-menu li a {
4543469f 255 background-color: $menuItemColor;
8a52ae34
CW
256 color: $textColor;
257 }
258
b30809e4 259 #civicrm-menu > li > a {
2c975a1c
CW
260 height: $menubarHeight;
261 padding: 0 8px;
262 }
263
264 #civicrm-menu > li > a > * {
265 vertical-align: middle;
266 }
267
268 /* Pseudo-element to ensure vertical alignment */
94a63791 269 #civicrm-menu > li:not(#crm-qsearch) > a:after {
2c975a1c
CW
270 content: '';
271 display: inline-block;
272 height: 100%;
273 vertical-align: middle;
b30809e4
CW
274 }
275
276 #civicrm-menu > li > a.highlighted {
277 z-index: 200000;
278 }
279
b30809e4
CW
280 body.crm-menubar-over-cms-menu #civicrm-menu,
281 body.crm-menubar-below-cms-menu #civicrm-menu {
282 position: fixed;
283 top: 0;
284 }
285
286 body.crm-menubar-over-cms-menu #civicrm-menu {
287 z-index: 99999;
288 }
289
9bc58661
CW
290 body.crm-menubar-above-crm-container #civicrm-menu {
291 z-index: 100;
292 }
293
b30809e4
CW
294 body.crm-menubar-hidden #civicrm-menu {
295 display: none;
296 }
297}
298
4373b3dd 299@media (max-width: $breakMax) {
b30809e4
CW
300 /* hide the menu in mobile view */
301 #crm-menubar-state:not(:checked) ~ #civicrm-menu {
302 display: none;
303 }
304 #civicrm-menu {
305 z-index: 100000;
8a52ae34 306 background-color: #1b1b1b;
b30809e4 307 }
9383ac27
EM
308 #civicrm-menu ul {
309 background-color: #444;
310 }
311 #civicrm-menu ul ul {
312 background-color: #555;
313 }
314 #civicrm-menu ul ul ul {
315 background-color: #666;
316 }
b30809e4
CW
317 #civicrm-menu li {
318 padding: 5px;
319 }
9383ac27
EM
320 #civicrm-menu li a {
321 text-align: center;
322 font-size: 14px;
b30809e4 323 color: #ddd;
9383ac27 324 }
b30809e4
CW
325 #civicrm-menu li a:focus,
326 #civicrm-menu li a:hover,
327 #civicrm-menu li a.highlighted {
328 background-color: #676767;
329 color: #fff;
330 }
331 #civicrm-menu li .sub-arrow:before,
332 #civicrm-menu li li .sub-arrow:before {
333 content: "\f0da";
334 font-family: 'FontAwesome';
335 color: #bbb;
336 float: none;
337 margin-left: 10px;
338 }
339 #civicrm-menu li a.highlighted .sub-arrow:before {
340 content: "\f0d7";
341 }
342 #civicrm-menu-nav {
343 position: fixed;
344 background: transparent;
345 pointer-events: none;
346 top: 0;
347 left: 0;
348 height: 50px;
349 width: 100%;
350 z-index: 100000;
351 }
352 #civicrm-menu-nav > * {
353 pointer-events: auto;
354 }
355 #civicrm-menu-nav .crm-menubar-toggle-btn {
356 margin-left: 20px;
357 z-index: 110000;
358 margin-top: 10px;
359 }
360 #civicrm-menu-nav .crm-menubar-toggle-btn span.crm-menu-logo {
361 display: block;
362 position: absolute;
363 left: 5px;
364 width: 18px;
365 height: 18px;
1889d803 366 background: url($resourceBase/i/logo_lg.png) no-repeat;
b30809e4
CW
367 background-size: 18px;
368 top: 6px;
369 }
370 #crm-qsearch {
371 text-align: center;
372 }
373 #crm-qsearch .sub-arrow {
374 display: none;
375 }
376
377 #civicrm-menu li[data-name="Hide Menu"] {
378 display: none;
379 }
380
381 #crm-qsearch-input {
382 width: 14em !important;
383 }
384
385 #crm-menubar-toggle-position {
386 display: none;
387 }
388
389 /* Make sure we can click overlapped submenus in responsive mode */
390 #civicrm-menu li ul li {
391 z-index: 110000;
392 background-color: inherit;
393 }
394}