1 @import 'mediawiki.mixins';
2 @import 'mediawiki.ui/variables';
3 @import 'mw.rcfilters.variables';
5 .mw-rcfilters-ui-filterTagMultiselectWidget {
8 .oo-ui-tagMultiselectWidget-input input {
9 // Make sure this uses the interface direction, not the content direction
11 border-bottom-right-radius: 0;
15 &.oo-ui-widget-enabled {
16 .oo-ui-tagMultiselectWidget-handle {
17 border: 1px solid @colorGray10;
19 background-color: @colorGray15;
20 border-radius: 2px 2px 0 0;
21 padding: 0 0.6em 0.6em 0.6em;
26 // Hamburger menu for dropdown.
27 .oo-ui-tagMultiselectWidget-input > .oo-ui-icon-menu {
32 .mw-rcfilters-collapsed & {
33 // Taking from the handle, since border-bottom is set on the
34 // filters view which is hidden when collapsed
35 border-bottom: 1px solid @colorGray10;
37 &.mw-rcfilters-ui-filterTagMultiselectWidget.oo-ui-widget-enabled .oo-ui-tagMultiselectWidget-handle {
42 .mw-rcfilters-ui-filterTagMultiselectWidget-wrapper-hideshow {
43 border-left: 1px solid @colorGray10;
46 &.oo-ui-tagMultiselectWidget-outlined {
47 // per T177206#4271707 we avoid keeping the collapsed element to take the whole width of the screen
48 // we are providing enough cues (keeping the labels) for it to be clear that the panel gets compacted
49 // to the left and the user not to feel lost with the transition.
54 // Hide inner elements
55 .mw-rcfilters-ui-filterTagMultiselectWidget-wrapper-filters,
56 .mw-rcfilters-ui-filterTagMultiselectWidget-views,
57 .mw-rcfilters-ui-filterTagMultiselectWidget-views-input {
62 .oo-ui-tagMultiselectWidget.oo-ui-widget-enabled &-animate.oo-ui-tagMultiselectWidget-handle {
63 .transition( background-color 500ms ease-out );
66 .oo-ui-tagMultiselectWidget.oo-ui-widget-enabled &-emphasize.oo-ui-tagMultiselectWidget-handle {
67 background-color: @background-color-primary;
70 &-hideshowButton.oo-ui-buttonElement > .oo-ui-buttonElement-button {
71 // Override the OOUI default for buttons
79 justify-content: space-between;
82 padding: 0.6em 0; // Same top padding as the handle
88 padding: 0.6em 0; // Same top padding as the handle
90 min-width: 0; // This has to be here to enable the text truncation
92 text-overflow: ellipsis;
115 text-overflow: ellipsis;
117 // This is necessary for Firefox to be able to
118 // truncate the text. Without this rule, the label
119 // is treated as if it's full-width, and while it is
120 // being truncated with the overflow:hidden,
121 // the ellipses isn't showing properly.
122 // This rule seems to convince Firefox to re-render,
123 // fix the label's width properly, and add the ellipses
135 &-widget.oo-ui-widget {
137 .box-sizing( border-box );
139 border: 1px solid @colorGray10;
140 border-left-width: 0;
141 border-radius: 0 0 @borderRadius 0;
142 // For `padding-right` using the 'left' value from
143 // .oo-ui-buttonElement-frameless.oo-ui-iconElement >
144 // .oo-ui-buttonElement-button > .oo-ui-iconElement-icon
145 padding-right: 0.35714286em;
149 .oo-ui-buttonOptionWidget:first-child {
163 div.oo-ui-tagMultiselectWidget-group {