a2b3eb7313556dad78a05b7166684d5715cfd13c
[lhc/web/wiklou.git] / resources / src / mediawiki.rcfilters / styles / mw.rcfilters.ui.FilterTagMultiselectWidget.less
1 @import 'mediawiki.mixins';
2 @import 'mediawiki.ui/variables';
3 @import 'mw.rcfilters.variables';
4
5 .mw-rcfilters-ui-filterTagMultiselectWidget {
6 max-width: none;
7
8 .oo-ui-tagMultiselectWidget-input input {
9 // Make sure this uses the interface direction, not the content direction
10 direction: ltr;
11 border-bottom-right-radius: 0;
12 height: 2.5em;
13 }
14
15 &.oo-ui-widget-enabled .oo-ui-tagMultiselectWidget-handle {
16 border: 1px solid @colorGray10;
17 border-bottom: 0;
18 background-color: @colorGray15;
19 border-radius: 2px 2px 0 0;
20 padding: 0 0.6em 0.6em 0.6em;
21 margin-top: 1em;
22 line-height: normal;
23 }
24
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;
29
30 &.mw-rcfilters-ui-filterTagMultiselectWidget.oo-ui-widget-enabled .oo-ui-tagMultiselectWidget-handle {
31 padding-bottom: 0;
32 padding-top: 0;
33 }
34
35 .mw-rcfilters-ui-filterTagMultiselectWidget-wrapper-hideshow {
36 border-left: 1px solid @colorGray10;
37 }
38
39 &.oo-ui-tagMultiselectWidget-outlined {
40 width: unset;
41 max-width: 100%;
42 }
43
44 // Hide inner elements
45 .mw-rcfilters-ui-filterTagMultiselectWidget-wrapper-filters,
46 .mw-rcfilters-ui-filterTagMultiselectWidget-views {
47 display: none;
48 }
49 }
50
51 .oo-ui-tagMultiselectWidget.oo-ui-widget-enabled &-animate.oo-ui-tagMultiselectWidget-handle {
52 .transition( background-color 500ms ease-out );
53 }
54
55 .oo-ui-tagMultiselectWidget.oo-ui-widget-enabled &-emphasize.oo-ui-tagMultiselectWidget-handle {
56 background-color: @background-color-primary;
57 }
58
59 &-hideshowButton.oo-ui-buttonElement > .oo-ui-buttonElement-button {
60 // Override the OOUI default for buttons
61 font-weight: normal;
62 }
63
64 &-wrapper {
65 &-top {
66 display: flex;
67 flex-wrap: nowrap;
68 justify-content: space-between;
69 }
70
71 &-title {
72 padding: 0.6em 0; // Same top padding as the handle
73 white-space: nowrap;
74 min-width: 0; // This has to be here to enable the text truncation
75 overflow: hidden;
76 text-overflow: ellipsis;
77 }
78
79 &-hideshow {
80 margin-left: 0.5em;
81 padding-left: 0.5em;
82 }
83
84 &-content {
85 &-title {
86 font-weight: bold;
87 color: @colorGray5;
88 white-space: nowrap;
89 }
90
91 &-savedQueryTitle {
92 color: @colorGray2;
93 padding-left: 1em;
94 font-weight: bold;
95 vertical-align: top;
96 overflow: hidden;
97 text-overflow: ellipsis;
98 white-space: nowrap;
99 }
100 }
101 }
102
103 &-views {
104 &-input {
105 width: 100%;
106 }
107
108 &-select {
109 width: 1em;
110
111 &-widget.oo-ui-widget {
112 border: 1px solid @colorGray10;
113 border-left-width: 0;
114 border-radius: 0 0 @borderRadius 0;
115
116 display: block;
117 text-align: right;
118 height: 2.5em;
119 .box-sizing( border-box );
120
121 .oo-ui-buttonOptionWidget:first-child {
122 margin-left: 0;
123 }
124 }
125 }
126 }
127
128 &-emptyFilters {
129 color: @colorGray7;
130 }
131
132 &-cell-filters {
133 width: 100%;
134
135 div.oo-ui-tagMultiselectWidget-group {
136 margin-top: 0.2em;
137 display: block;
138 }
139 }
140
141 &-cell-reset {
142 text-align: right;
143 padding-left: 0.5em;
144 }
145 }