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 .oo-ui-tagMultiselectWidget-handle {
16 border: 1px solid @colorGray10;
18 background-color: @colorGray15;
19 border-radius: 2px 2px 0 0;
20 padding: 0 0.6em 0.6em 0.6em;
25 .mw-rcfilters-collapsed & {
26 // Taking from the handle, since border-bottom is set on the
27 // filters view which is hidden when collapsed
28 border-bottom: 1px solid @colorGray10;
30 &.mw-rcfilters-ui-filterTagMultiselectWidget.oo-ui-widget-enabled .oo-ui-tagMultiselectWidget-handle {
35 .mw-rcfilters-ui-filterTagMultiselectWidget-wrapper-hideshow {
36 border-left: 1px solid @colorGray10;
39 &.oo-ui-tagMultiselectWidget-outlined {
44 // Hide inner elements
45 .mw-rcfilters-ui-filterTagMultiselectWidget-wrapper-filters,
46 .mw-rcfilters-ui-filterTagMultiselectWidget-views {
51 .oo-ui-tagMultiselectWidget.oo-ui-widget-enabled &-animate.oo-ui-tagMultiselectWidget-handle {
52 .transition( background-color 500ms ease-out );
55 .oo-ui-tagMultiselectWidget.oo-ui-widget-enabled &-emphasize.oo-ui-tagMultiselectWidget-handle {
56 background-color: @background-color-primary;
59 &-hideshowButton.oo-ui-buttonElement > .oo-ui-buttonElement-button {
60 // Override the OOUI default for buttons
68 justify-content: space-between;
71 padding: 0.6em 0; // Same top padding as the handle
76 padding: 0.6em 0; // Same top padding as the handle
78 min-width: 0; // This has to be here to enable the text truncation
80 text-overflow: ellipsis;
103 text-overflow: ellipsis;
105 // This is necessary for Firefox to be able to
106 // truncate the text. Without this rule, the label
107 // is treated as if it's full-width, and while it is
108 // being truncated with the overflow:hidden,
109 // the ellipses isn't showing properly.
110 // This rule seems to convince Firefox to re-render,
111 // fix the label's width properly, and add the ellipses
125 &-widget.oo-ui-widget {
126 border: 1px solid @colorGray10;
127 border-left-width: 0;
128 border-radius: 0 0 @borderRadius 0;
133 .box-sizing( border-box );
135 .oo-ui-buttonOptionWidget:first-child {
149 div.oo-ui-tagMultiselectWidget-group {