Localisation updates from https://translatewiki.net.
[mediawiki.git] / resources / src / mediawiki.rcfilters / styles / mw.rcfilters.ui.ItemMenuOptionWidget.less
bloba5c6be033430cd25cf11ae83a3b93b53d39db49b
1 @import 'mediawiki.skin.variables.less';
2 @import 'mw.rcfilters.variables.less';
3 @import 'mediawiki.mixins.less';
5 .mw-rcfilters-ui-itemMenuOptionWidget {
6         padding: 0 0.5em;
7         box-sizing: border-box;
9         &:not( :last-child ):not( .mw-rcfilters-ui-itemMenuOptionWidget-identifier-talk ) {
10                 border-bottom: @border-width-base @border-style-base @border-color-subtle;
11         }
13         &-view-namespaces {
14                 border-top: 4px solid @border-color-subtle;
15         }
17         // Don't show border for first namespace & hide for every 'talk' option in second selector
18         &-view-default + &-view-namespaces,
19         &-view-namespaces&.mw-rcfilters-ui-itemMenuOptionWidget-identifier-subject + &-view-namespaces.mw-rcfilters-ui-itemMenuOptionWidget-identifier-talk {
20                 border-top: 0;
21         }
23         &:hover {
24                 background-color: @background-color-interactive-subtle;
25         }
27         .mw-rcfilters-ui-table {
28                 padding-top: (6 / @font-size-system-ui / @font-size-vector);
29                 padding-bottom: (6 / @font-size-system-ui / @font-size-vector);
30         }
32         &.oo-ui-optionWidget-selected {
33                 background-color: @background-color-progressive-subtle;
34         }
36         &-label {
37                 &-title {
38                         font-weight: bold;
39                         font-size: 1.15em;
40                         color: @color-base;
41                 }
43                 &-desc {
44                         color: @color-subtle;
45                         white-space: normal;
46                 }
47         }
49         &-itemCheckbox {
50                 flex-grow: 1;
52                 .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header {
53                         padding-left: (12 / @font-size-system-ui / @font-size-vector);
54                 }
56                 .oo-ui-fieldLayout.oo-ui-fieldLayout-align-inline {
57                         // Override margin-top and -bottom rules from FieldLayout
58                         margin: 0 !important; /* stylelint-disable-line declaration-no-important */
60                         .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field {
61                                 vertical-align: middle;
62                         }
63                 }
65                 label {
66                         // Workaround for Chrome browser bug (T199932)
67                         // Override padding rule from FieldLayout
68                         padding-left: 0 !important; /* stylelint-disable-line declaration-no-important */
69                 }
70         }
72         .mw-rcfilters-ui-cell {
73                 align-self: center;
75                 > * {
76                         margin-left: 1em;
77                 }
78         }
80         &-excludeLabel {
81                 color: @color-subtle;
82         }