Debian Codegraph @

extensions/VisualEditor/modules/ve-mw/ui/styles/widgets/ve.ui.MWTransclusionOutlineWidget.less

raw
1 @import 'mediawiki.skin.variables.less';
2 @import 'mediawiki.mixins.less';
3
4 @selected-text-color: @color-progressive;
5 // This shade on a white background results in #eaf3ff a.k.a. @background-color-progressive-subtle
6 @selected-shading: rgba( 0, 109, 255, 21/255 );
7
8 // This shade on a white background results in #eaecf0 a.k.a. @background-color-interactive
9 @hover-shading: @background-color-button-quiet--active;
10
11 @on-click-text-color: @color-progressive;
12 // Same as .oo-ui-optionWidget-pressed, a.k.a. @background-color-primary--hover
13 @on-click-shading: rgba( 41, 98, 204, 0.1 );
14
15 .ve-ui-mwTransclusionOutlineWidget {
16 .ve-ui-mwTransclusionOutline-ariaHidden {
17 display: none;
18 }
19
20 .ve-ui-mwTransclusionOutlinePartWidget {
21 margin-top: 24px;
22 margin-bottom: 24px;
23
24 &:first-child .ve-ui-mwTransclusionOutlineButtonWidget {
25 margin-top: -24px;
26 }
27
28 &:last-child.ve-ui-mwTransclusionOutlineWikitextWidget,
29 &:last-child.ve-ui-mwTransclusionOutlinePlaceholderWidget {
30 margin-bottom: 0;
31 }
32
33 .ve-ui-mwTransclusionOutlineButtonWidget {
34 display: block;
35 margin-top: -10px;
36
37 &:first-child {
38 margin-left: 0;
39 }
40
41 > .oo-ui-buttonElement-button {
42 display: block;
43 overflow: hidden;
44 padding: 8px 0 8px 36px;
45 text-overflow: ellipsis;
46
47 &:hover,
48 &:focus {
49 background-color: @hover-shading;
50 }
51
52 /* click */
53 &:active {
54 background-color: @on-click-shading;
55 color: @on-click-text-color;
56 }
57
58 > .oo-ui-iconElement-icon {
59 left: 10px;
60 }
61 }
62
63 /* selected */
64 &.oo-ui-optionWidget-selected > .oo-ui-buttonElement-button {
65 background-color: @selected-shading;
66
67 &:hover {
68 background-color: @hover-shading;
69 color: @selected-text-color;
70 }
71 }
72 }
73 }
74 }
75
76 .ve-ui-mwTransclusionOutlineTemplateWidget {
77 &-sticky {
78 background-color: @background-color-base;
79 .position-sticky();
80 top: 0;
81 z-index: 1;
82 }
83
84 &-no-template-parameters {
85 font-style: italic;
86 color: @color-subtle;
87 margin: 8px 24px 24px 24px;
88 }
89
90 &-searchWidget {
91 margin: 8px 24px;
92 width: auto;
93
94 &:last-child {
95 /* Workaround to override oo-ui-inputWidget:last-child rule */
96 margin-right: 24px;
97 }
98 }
99
100 &-no-match {
101 font-style: italic;
102 color: @color-subtle;
103 margin: 8px 24px;
104 }
105
106 .ve-ui-mwTransclusionOutlineToggleUnusedWidget {
107 margin: -4px 24px 0 24px;
108
109 .oo-ui-labelElement-label {
110 word-break: break-word;
111 word-wrap: break-word;
112 overflow-wrap: break-word;
113 white-space: normal;
114 }
115 }
116
117 .ve-ui-mwTransclusionOutlineParameterSelectWidget:focus {
118 border-radius: @border-radius-base;
119 box-shadow: @box-shadow-inset-small @box-shadow-color-progressive--focus;
120 outline: @outline-base--focus;
121 }
122
123 .ve-ui-mwTransclusionOutlineParameterWidget {
124 overflow: hidden;
125 padding-bottom: 8px;
126 padding-left: 30px;
127 padding-top: 8px;
128 text-overflow: ellipsis;
129 white-space: nowrap;
130
131 /* click */
132 &:active {
133 background-color: @on-click-shading;
134 color: @on-click-text-color;
135 }
136
137 &.ve-ui-mwTransclusionOutlineParameterWidget-activePage {
138 background-color: @selected-shading;
139
140 &,
141 &.oo-ui-optionWidget-highlighted {
142 color: @selected-text-color;
143 }
144 }
145
146 &.oo-ui-optionWidget-highlighted {
147 background-color: @hover-shading;
148 color: @color-emphasized;
149 }
150
151 &-hasValue {
152 font-weight: bold;
153 }
154
155 > .oo-ui-labelElement-label {
156 cursor: pointer;
157 display: inline;
158 }
159
160 .oo-ui-checkboxInputWidget.oo-ui-widget-enabled [ type='checkbox' ]:hover + span {
161 /* Stronger :hover effect to make the different checkbox/label click regions more obvious */
162 border-width: 2px;
163 }
164 }
165 }