Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/css/application/base/main-menu-view.css
12242 views
1
/**
2
* @provides phabricator-main-menu-view
3
* @requires phui-theme-css
4
*/
5
6
7
/* - Main Menu -----------------------------------------------------------------
8
9
Main menu at the top of every page that has chrome. It reacts to resolution
10
changes in order to behave reasonably on tablets and phones.
11
12
*/
13
14
.phabricator-main-menu {
15
position: relative;
16
}
17
18
.phabricator-main-menu-background {
19
min-height: 44px;
20
}
21
22
.device-desktop .phabricator-main-menu {
23
height: 44px;
24
padding-right: 4px;
25
}
26
27
.phabricator-main-menu a:hover {
28
text-decoration: none;
29
}
30
31
32
/* - Logo ----------------------------------------------------------------------
33
34
The "Phabricator" logo group in the main menu. On tablet and phone devices,
35
this shows a "reveal" button to expand/collapse the rest of the menu.
36
37
*/
38
39
.device-desktop .phabricator-main-menu-group-logo {
40
float: left;
41
}
42
43
.phabricator-main-menu-brand {
44
height: 44px;
45
float: left;
46
margin-right: 6px;
47
padding-left: 6px;
48
}
49
50
.phabricator-main-menu-eye {
51
margin: 2px 0;
52
width: 40px;
53
height: 40px;
54
float: left;
55
display: block;
56
background-image: url(/rsrc/image/logo/light-eye.png);
57
background-size: 40px 40px;
58
}
59
60
.device-desktop .phabricator-main-menu-brand:hover {
61
background-color: rgba({$alphagrey},.2);
62
cursor: hand;
63
}
64
65
.device-phone .phabricator-wordmark {
66
display: none;
67
}
68
69
.phabricator-wordmark {
70
float: left;
71
color: #fff;
72
font-size: 18px;
73
margin: 9px 4px 9px 6px;
74
padding-right: 8px;
75
max-width: 175px;
76
overflow: hidden;
77
white-space: nowrap;
78
}
79
80
/* - Expand/Collapse Button ----------------------------------------------------
81
82
On phones, the menu switches to a vertical layout and uses a button to expand
83
or collapse the items.
84
85
*/
86
87
.phabricator-menu-button-icon {
88
width: 20px;
89
height: 32px;
90
float: left;
91
margin: 10px 8px 0 8px;
92
}
93
94
.phabricator-menu-button-icon.phui-icon-view {
95
font-size: 20px;
96
height: 20px;
97
width: 20px;
98
color: {$hoverwhite};
99
text-align: center;
100
vertical-align: middle;
101
line-height: 24px;
102
}
103
104
.phabricator-expand-application-menu,
105
.phabricator-expand-search-menu {
106
float: right;
107
}
108
109
.device-desktop .phabricator-main-menu-search-button,
110
.device-desktop .phabricator-main-menu-expand-button {
111
display: none;
112
}
113
114
115
/* - Search --------------------------------------------------------------------
116
117
The main search input in the menu bar.
118
119
*/
120
121
.device-desktop .phabricator-main-menu-search {
122
width: 298px;
123
}
124
125
.device .phabricator-main-menu-search {
126
height: 40px;
127
}
128
129
.phabricator-main-menu-search-container {
130
padding: 8px 0;
131
position: relative;
132
height: 24px;
133
margin: 0 8px 0 0;
134
}
135
136
.phabricator-main-menu-search-target {
137
position: absolute;
138
top: 42px;
139
}
140
141
.device-desktop .phabricator-main-menu-search-target {
142
width: 360px;
143
}
144
145
.device .phabricator-main-menu-search-target {
146
width: 100%;
147
margin-left: -25px;
148
}
149
150
.device .phabricator-main-menu-search-container {
151
padding: 4px 0;
152
margin: 0 4px;
153
}
154
155
.phabricator-main-menu .phabricator-main-menu-search input {
156
outline: 0;
157
margin: 0;
158
box-shadow: none;
159
transition: none;
160
161
color: {$bluetext};
162
width: 100%;
163
right: 0;
164
position: absolute;
165
font-size: {$normalfontsize};
166
border: none;
167
background-color: {$page.content};
168
height: 28px;
169
padding: 3px 28px 3px 48px;
170
float: left;
171
width: 280px;
172
}
173
174
.device .phabricator-main-menu-search input {
175
height: 32px;
176
font-size: {$biggestfontsize};
177
width: 100%;
178
padding-left: 50px;
179
border: 1px solid {$lightblueborder};
180
}
181
182
.phabricator-main-menu .phabricator-main-menu-search input:focus {
183
background: {$page.content};
184
opacity: 1;
185
color: {$darkbluetext};
186
box-shadow: none;
187
}
188
189
.phabricator-main-menu-search input.jx-typeahead-placeholder {
190
color: {$bluetext};
191
}
192
193
.phabricator-main-menu-search button {
194
color: {$bluetext};
195
position: absolute;
196
background: transparent;
197
border: none;
198
outline: none;
199
box-shadow: none;
200
text-shadow: none;
201
min-width: 0;
202
height: 24px;
203
width: 28px;
204
top: 9px;
205
right: -6px;
206
margin: 0 8px 0 0;
207
padding: 0;
208
border-radius: 0;
209
}
210
211
.phabricator-main-menu-search button.phabricator-main-menu-search-dropdown {
212
position: absolute;
213
right: auto;
214
left: 12px;
215
width: 40px;
216
background: {$greybackground};
217
z-index: 1;
218
}
219
220
.device-desktop .phabricator-main-menu-search
221
button.phabricator-main-menu-search-dropdown {
222
height: 24px;
223
top: 10px;
224
border-radius: 3px;
225
}
226
227
.device-desktop .phabricator-main-menu-search
228
button.phabricator-main-menu-search-dropdown:hover .phui-icon-view {
229
color: {$sky};
230
}
231
232
.device .phabricator-main-menu-search
233
button.phabricator-main-menu-search-dropdown {
234
left: 2px;
235
background: {$greybackground};
236
}
237
238
button.phabricator-main-menu-search-dropdown .caret:before,
239
a.phabricator-core-user-menu .caret:before {
240
content: "\f107";
241
font-family: FontAwesome;
242
}
243
244
.phabricator-main-menu-search button.phabricator-main-menu-search-dropdown
245
.phui-icon-view {
246
color: {$bluetext};
247
font-size: 15px;
248
top: 4px;
249
left: 8px;
250
position: absolute;
251
}
252
253
.phabricator-main-menu-search-dropdown .caret {
254
position: absolute;
255
right: 20px;
256
top: 2px;
257
border: none;
258
margin-top: 1px;
259
}
260
261
.phabricator-main-menu-search button:hover {
262
color: {$sky};
263
}
264
265
.device .phabricator-main-menu-search button {
266
top: 6px;
267
border-radius: 0;
268
height: 28px;
269
right: -6px;
270
}
271
272
.phabricator-main-menu-search-target div.jx-typeahead-results {
273
background: {$page.content};
274
word-wrap: break-word;
275
overflow-y: auto;
276
box-shadow: {$dropshadow};
277
border: 1px solid {$lightgreyborder};
278
border-radius: 3px;
279
margin-left: -64px;
280
}
281
282
.device .phabricator-main-menu-search-target div.jx-typeahead-results {
283
margin-left: 28px;
284
}
285
286
.phabricator-main-search-typeahead-result .phabricator-search-icon {
287
width: 28px;
288
height: 28px;
289
position: absolute;
290
top: 8px;
291
left: 8px;
292
font-size: 24px;
293
text-align: center;
294
vertical-align: bottom;
295
}
296
297
.phabricator-main-search-typeahead-result {
298
display: block;
299
padding: 6px 8px 8px 44px;
300
background-position: 8px;
301
background-size: 30px 30px;
302
background-repeat: no-repeat;
303
position: relative;
304
}
305
306
.phabricator-main-search-typeahead-result .result-name {
307
display: block;
308
font-size: {$normalfontsize};
309
font-weight: bold;
310
color: {$darkgreytext};
311
}
312
313
.phabricator-main-search-typeahead-result.result-closed {
314
opacity: .8;
315
-webkit-filter: grayscale(100%);
316
filter: grayscale(100%);
317
}
318
319
.phabricator-main-search-typeahead-result.result-closed
320
.result-name {
321
text-decoration: line-through;
322
color: {$lightgreytext};
323
}
324
325
.phabricator-main-search-typeahead-result.has-image {
326
padding-left: 48px;
327
}
328
329
.phabricator-main-search-typeahead-result .result-type {
330
color: {$lightgreytext};
331
font-size: {$smallestfontsize};
332
font-weight: normal;
333
}
334
335
.device .phabricator-application-menu-expanded.phabricator-search-menu-expanded
336
.phabricator-search-menu {
337
padding: 0;
338
}
339
340
.device-phone .phabricator-main-search-typeahead-result .result-name {
341
font-size: {$biggestfontsize};
342
}
343
344
.device-phone .phabricator-main-search-typeahead-result .result-type {
345
font-size: {$normalfontsize};
346
}
347
348
349
/* - Alert ---------------------------------------------------------------------
350
351
Alert menus are like icon menus but don't obey collapse rules.
352
353
*/
354
355
.phabricator-main-menu-alerts {
356
display: inline-block;
357
float: left;
358
padding: 4px 0;
359
}
360
361
.alert-notifications {
362
float: left;
363
}
364
365
.alert-notifications .phui-icon-view {
366
color: {$hoverwhite};
367
}
368
369
.device-desktop .alert-notifications:hover {
370
margin-top: -2px;
371
transition-duration: .2s;
372
373
/* See T13508. Avoid animation flickering behavior if the user's cursor is
374
at the very bottom of the element. */
375
padding-bottom: 2px;
376
}
377
378
.device-desktop .alert-notifications:hover .phui-icon-view {
379
color: #fff;
380
}
381
382
.phabricator-main-menu-alert-icon,
383
.phabricator-main-menu-message-icon,
384
.phabricator-main-menu-setup-icon {
385
width: 18px;
386
height: 18px;
387
float: left;
388
padding: 8px 6px 8px 4px;
389
color: #fff;
390
font-size: 18px;
391
line-height: 20px;
392
text-align: right;
393
}
394
395
.phui-icon-view.menu-icon-selected {
396
color: #fff;
397
}
398
399
.phabricator-main-menu-alert-icon {
400
font-size: 16px;
401
margin-top: 2px;
402
}
403
404
.setup-unread .phui-icon-view.phabricator-main-menu-setup-icon {
405
color: #ecf36c;
406
font-size: 16px;
407
margin-top: 2px;
408
width: 15px;
409
}
410
411
.setup-unread .phabricator-main-menu-setup-count {
412
color: #ecf36c;
413
margin-top: 10px;
414
}
415
416
.device-desktop .alert-notifications.setup-unread:hover .phui-icon-view {
417
color: #ecf36c;
418
}
419
420
.phabricator-main-menu-alert-count,
421
.phabricator-main-menu-message-count,
422
.phabricator-main-menu-setup-count {
423
color: #fff;
424
text-align: center;
425
display: none;
426
float: left;
427
margin: 11px 6px 0 -2px;
428
font-size: {$smallerfontsize};
429
}
430
431
.device-phone .alert-unread .phabricator-main-menu-alert-count,
432
.device-phone .message-unread .phabricator-main-menu-message-count,
433
.device-phone .setup-unread .phabricator-main-menu-setup-count {
434
display: none;
435
}
436
437
.alert-unread .phabricator-main-menu-alert-icon,
438
.message-unread .phabricator-main-menu-message-icon,
439
.setup-unread .phabricator-main-menu-setup-icon {
440
color: #fff;
441
}
442
443
.alert-unread .phabricator-main-menu-alert-count,
444
.message-unread .phabricator-main-menu-message-count,
445
.setup-unread .phabricator-main-menu-setup-count {
446
display: block;
447
}
448
449
450
/* - Core Menu -----------------------------------------------------------------
451
452
Styles unique to the core menu (left button on mobile).
453
454
*/
455
456
.device .phabricator-search-menu {
457
display: none;
458
}
459
460
.device-desktop .phabricator-search-menu {
461
float: right;
462
}
463
464
.device .phabricator-search-menu-expanded .phabricator-search-menu {
465
display: block;
466
position: absolute;
467
top: 38px;
468
left: 8px;
469
right: 8px;
470
border: 1px solid {$lightblueborder};
471
border-radius: 3px;
472
box-shadow: {$dropshadow};
473
background: {$page.background};
474
}
475
476
.device-desktop .phabricator-application-menu {
477
float: right;
478
}
479
480
.device-desktop .phabricator-application-menu .phui-list-item-view,
481
.device-desktop .phabricator-application-menu .phui-list-item-name {
482
display: none;
483
}
484
485
.phabricator-application-menu .phui-list-item-href {
486
display: block;
487
}
488
489
.phabricator-application-menu .phui-list-item-icon.phui-font-fa {
490
font-size: 20px;
491
height: 20px;
492
width: 20px;
493
color: {$hoverwhite};
494
margin: 8px;
495
text-align: center;
496
vertical-align: middle;
497
}
498
499
.device .phabricator-application-menu .phui-list-item-icon.phui-font-fa {
500
margin: 4px 12px 4px 0;
501
}
502
503
.phabricator-application-menu .phui-list-item-icon.fa-plus {
504
line-height: 22px;
505
}
506
507
.device-desktop .phabricator-application-menu
508
.core-menu-item.phui-list-item-view:hover
509
.phui-list-item-icon.phui-font-fa {
510
color: #fff;
511
}
512
513
.device-desktop .phabricator-application-menu
514
.phui-list-item-view.core-menu-item {
515
display: block;
516
}
517
518
.device-desktop .phabricator-application-menu .phui-list-item-view {
519
float: left;
520
position: relative;
521
min-width: 36px;
522
height: 36px;
523
margin-top: 4px;
524
}
525
526
.device-desktop .phabricator-core-menu-icon {
527
top: 4px;
528
left: 4px;
529
}
530
531
.device .phabricator-core-menu-icon {
532
left: 16px;
533
height: 24px;
534
width: 24px;
535
background-size: 24px;
536
margin: 2px;
537
}
538
539
.phabricator-core-menu-icon {
540
position: absolute;
541
display: block;
542
width: 28px;
543
height: 28px;
544
}
545
546
.phabricator-main-menu-dropdown.phui-list-sidenav {
547
position: absolute;
548
background: #fff;
549
top: 42px;
550
padding: 6px 0;
551
margin: 0 20px 0 0;
552
box-shadow: {$dropshadow};
553
border: 1px solid {$lightblueborder};
554
border-radius: 3px;
555
}
556
557
.phabricator-main-menu-dropdown.phui-list-sidenav .phui-list-item-has-icon
558
.phui-list-item-href {
559
padding: 4px 40px 4px 12px;
560
white-space: nowrap;
561
}
562
563
.phabricator-main-menu-dropdown.phui-list-sidenav .phui-list-item-type-label
564
.phui-list-item-name {
565
padding-left: 12px;
566
}
567
568
/* - User Menu -----------------------------------------------------------------
569
570
Styles unique to the user profile menu.
571
572
*/
573
574
.phabricator-core-user-menu {
575
float: right;
576
display: inline-block;
577
padding: 9px 24px 0 8px;
578
height: 35px;
579
position: relative;
580
}
581
582
.phabricator-core-user-mobile-menu {
583
display: none;
584
}
585
586
.phabricator-core-user-menu span.phui-icon-view.phuihead-small {
587
height: 24px;
588
width: 24px;
589
background-size: 24px;
590
border-radius: 3px;
591
display: inline-block;
592
margin: 1px 0 0 0;
593
}
594
595
.phabricator-core-user-menu .phui-icon-view {
596
color: {$hoverwhite};
597
font-size: 18px;
598
margin: 4px 0 0 0;
599
}
600
601
.phabricator-core-user-menu .caret {
602
position: absolute;
603
right: 17px;
604
top: 13px;
605
border: none;
606
margin: 1px;
607
color: {$hoverwhite};
608
}
609
610
.phabricator-core-login-button {
611
float: right;
612
display: inline-block;
613
padding: 4px 12px;
614
border-radius: 3px;
615
margin: 8px 6px 4px;
616
border: 1px solid {$hoverwhite};
617
color: {$hoverwhite};
618
}
619
620
.device-desktop .phabricator-core-login-button:hover {
621
border: 1px solid #fff;
622
color: #fff;
623
}
624
625
.device-desktop .phabricator-core-user-menu:hover .caret,
626
.device-desktop .phabricator-core-user-menu:hover .phui-icon-view {
627
color: #fff;
628
}
629
630
.device .phabricator-core-user-menu .caret {
631
display: none;
632
}
633
634
.device .phabricator-core-user-mobile-menu {
635
display: block;
636
}
637
638
.device .phabricator-core-user-menu {
639
padding: 9px 8px 0 8px;
640
}
641
642
.device .phabricator-core-user-menu .phui-icon-view {
643
font-size: 20px;
644
margin: 3px 0 0 0;
645
}
646
647
ul.phabricator-core-user-profile-object .phui-oi-objname {
648
font-size: {$biggestfontsize};
649
}
650
651
ul.phabricator-core-user-profile-object li.phui-oi,
652
ul.phabricator-core-user-profile-object .phui-oi-name,
653
ul.phabricator-core-user-profile-object .phui-oi-content,
654
ul.phabricator-core-user-profile-object .phui-oi-subhead {
655
padding: 0;
656
margin: 0;
657
background: transparent;
658
}
659
660
ul.phabricator-core-user-profile-object.phui-oi-list-simple .phui-oi-image {
661
height: 36px;
662
width: 36px;
663
}
664
665
ul.phabricator-core-user-profile-object.phui-oi-list-simple
666
.phui-oi-content-box {
667
margin-left: 44px;
668
}
669
670
671
672
/* - Print ---------------------------------------------------------------------
673
*/
674
675
!print .phabricator-main-menu {
676
display: none;
677
}
678
679