Debian Codegraph @

skins/Vector/resources/skins.vector.styles/components/Dropdown.less

raw
1 /**
2 * Dropdown container
3 */
4 .vector-dropdown {
5 position: relative;
6
7 /**
8 * Dropdown toggle buttons. Doesn't apply to icon only buttons like the main menu dropdown.
9 * - language variants, Actions menus
10 * - more menu, user menu
11 * - ULS button in sticky header
12 */
13 .vector-dropdown-label:not( .cdx-button--icon-only ) {
14 .mixin-vector-arrowed-dropdown-toggle();
15 }
16
17 .vector-dropdown-label-text {
18 font-size: @font-size-dropdown;
19 }
20
21 /**
22 * Invisible checkbox covering the dropdown toggle button.
23 */
24 .vector-dropdown-checkbox {
25 cursor: pointer;
26 position: absolute;
27 top: 0;
28 left: 0;
29 z-index: @z-index-stacking-1;
30 opacity: 0;
31 width: 100%;
32 height: 100%;
33 margin: 0;
34 padding: 0;
35
36 // Hide and show menu content based off checked status.
37 &:checked ~ .vector-dropdown-content {
38 opacity: 1;
39 visibility: visible;
40 height: auto;
41 }
42 }
43
44 // Dropdown menu container. Hidden by default until checkbox is checked.
45 .vector-dropdown-content {
46 position: absolute;
47 top: 100%;
48 left: -@border-width-base;
49 opacity: 0;
50 height: 0;
51 visibility: hidden;
52 overflow: hidden auto;
53 z-index: @z-index-dropdown;
54 .mixin-vector-dropdown-menu();
55 max-height: 75vh;
56 }
57 }
58
59 .vector-pinnable-element .vector-menu-heading {
60 color: @color-subtle;
61 font-weight: normal;
62 cursor: default;
63 padding: @padding-vertical-dropdown-menu-item 0;
64 margin: @padding-vertical-dropdown-menu-item 0;
65 border-bottom: @border-width-base @border-style-base @border-color-content-box;
66 }
67
68 .vector-pinnable-element .mw-list-item,
69 .vector-dropdown-content .mw-list-item {
70 padding: 0;
71
72 a {
73 .mixin-vector-dropdown-menu-item();
74 }
75 }