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 {
51 // Hide inner elements
52 .mw-rcfilters-ui-filterTagMultiselectWidget-wrapper-filters,
53 .mw-rcfilters-ui-filterTagMultiselectWidget-views {
58 .oo-ui-tagMultiselectWidget.oo-ui-widget-enabled &-animate.oo-ui-tagMultiselectWidget-handle {
59 .transition( background-color 500ms ease-out );
62 .oo-ui-tagMultiselectWidget.oo-ui-widget-enabled &-emphasize.oo-ui-tagMultiselectWidget-handle {
63 background-color: @background-color-primary;
66 &-hideshowButton.oo-ui-buttonElement > .oo-ui-buttonElement-button {
67 // Override the OOUI default for buttons
75 justify-content: space-between;
78 padding: 0.6em 0; // Same top padding as the handle
83 padding: 0.6em 0; // Same top padding as the handle
85 min-width: 0; // This has to be here to enable the text truncation
87 text-overflow: ellipsis;
110 text-overflow: ellipsis;
112 // This is necessary for Firefox to be able to
113 // truncate the text. Without this rule, the label
114 // is treated as if it's full-width, and while it is
115 // being truncated with the overflow:hidden,
116 // the ellipses isn't showing properly.
117 // This rule seems to convince Firefox to re-render,
118 // fix the label's width properly, and add the ellipses
132 &-widget.oo-ui-widget {
133 border: 1px solid @colorGray10;
134 border-left-width: 0;
135 border-radius: 0 0 @borderRadius 0;
136 // Using the 'left' value from
137 // .oo-ui-buttonElement-frameless.oo-ui-iconElement >
138 // .oo-ui-buttonElement-button > .oo-ui-iconElement-icon
139 padding-right: 0.35714286em;
144 .box-sizing( border-box );
146 .oo-ui-buttonOptionWidget:first-child {
160 div.oo-ui-tagMultiselectWidget-group {