jenkins-bot has submitted this change and it was merged.
Change subject: MediaWiki theme: Copy
.theme-oo-ui-outline{Controls,Option}Widget from Apex
......................................................................
MediaWiki theme: Copy .theme-oo-ui-outline{Controls,Option}Widget from Apex
Turns out this piece of code is critical for the outlines and assorted
UI to display correctly. Who would have thought?
Also:
* Adjusted outlineControlsWidget not to set unnecessary margins, which
cause the bottom icon area to be *just* too wide, which results in
scrollbar idiocy on Chrome.
* Changed colors for MediaWiki theme.
Bug: T78031
Bug: T78177
Bug: T78321
Change-Id: I19a986f2c950b9f4a76d023e02df816752383c47
---
M src/themes/apex/widgets.less
M src/themes/mediawiki/widgets.less
2 files changed, 76 insertions(+), 7 deletions(-)
Approvals:
Jforrester: Looks good to me, but someone else must approve
Trevor Parscal: Looks good to me, approved
jenkins-bot: Verified
diff --git a/src/themes/apex/widgets.less b/src/themes/apex/widgets.less
index ac23f78..7f52e9b 100644
--- a/src/themes/apex/widgets.less
+++ b/src/themes/apex/widgets.less
@@ -11,7 +11,7 @@
&-items,
&-movers {
height: 2em;
- margin: 0.5em;
+ margin: 0.5em 0.5em 0.5em 0;
padding: 0;
}
@@ -20,10 +20,6 @@
height: 2em;
margin: 0.5em 0 0.5em 0.5em;
opacity: 0.2;
- }
-
- &-items {
- margin-left: 0;
}
}
diff --git a/src/themes/mediawiki/widgets.less
b/src/themes/mediawiki/widgets.less
index d660dfe..21ea2ff 100644
--- a/src/themes/mediawiki/widgets.less
+++ b/src/themes/mediawiki/widgets.less
@@ -4,7 +4,24 @@
.theme-oo-ui-lookupInputWidget () {}
-.theme-oo-ui-outlineControlsWidget () {}
+.theme-oo-ui-outlineControlsWidget () {
+ height: 3em;
+ background-color: #fff;
+
+ &-items,
+ &-movers {
+ height: 2em;
+ margin: 0.5em 0.5em 0.5em 0;
+ padding: 0;
+ }
+
+ > .oo-ui-iconElement-icon {
+ width: 1.5em;
+ height: 2em;
+ margin: 0.5em 0 0.5em 0.5em;
+ opacity: 0.2;
+ }
+}
.theme-oo-ui-toggleWidget () {}
@@ -506,7 +523,63 @@
color: #888;
}
-.theme-oo-ui-outlineOptionWidget () {}
+.theme-oo-ui-outlineOptionWidget () {
+ font-size: 1.1em;
+ padding: 0.75em;
+
+ &.oo-ui-indicatorElement .oo-ui-labelElement-label {
+ padding-right: 1.5em;
+ }
+
+ &.oo-ui-indicatorElement .oo-ui-indicatorElement-indicator {
+ opacity: 0.5;
+ }
+
+ &-level-0 {
+ padding-left: 3.5em;
+
+ .oo-ui-iconElement-icon {
+ left: 1em;
+ }
+ }
+ &-level-1 {
+ padding-left: 5em;
+
+ .oo-ui-iconElement-icon {
+ left: 2.5em;
+ }
+ }
+
+ &-level-2 {
+ padding-left: 6.5em;
+
+ .oo-ui-iconElement-icon {
+ left: 4em;
+ }
+ }
+
+ .oo-ui-selectWidget-depressed &.oo-ui-optionWidget-selected {
+ background-color: #d0d0d0;
+ text-shadow: 0 1px 1px #fff;
+ }
+
+ &.oo-ui-flaggedElement-important {
+ font-weight: bold;
+ }
+
+ &.oo-ui-flaggedElement-placeholder {
+ font-style: italic;
+ }
+
+ &.oo-ui-flaggedElement-empty {
+ .oo-ui-iconElement-icon {
+ opacity: 0.5;
+ }
+ .oo-ui-labelElement-label {
+ color: #777;
+ }
+ }
+}
.theme-oo-ui-popupWidget () {
&-popup {
--
To view, visit https://gerrit.wikimedia.org/r/179198
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I19a986f2c950b9f4a76d023e02df816752383c47
Gerrit-PatchSet: 5
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Bartosz DziewoĆski <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Trevor Parscal <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits