Skip to content

Commit

Permalink
Remove special message variables and unify message appearance
Browse files Browse the repository at this point in the history
Removing special message variables and instead rely on mediawiki.ui
until mediawiki.ui becomes solely used by MF.
Also renaming variables accordingly.

Bug: T228022
Change-Id: I80fe14b7dc729db1702b6a063c9e804c5b75953f
Depends-On: I49ca4b8f510888dff7a2487470174666143bcd76
  • Loading branch information
Volker-E committed Jul 15, 2019
1 parent 6680478 commit 96ba479
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 22 deletions.
5 changes: 0 additions & 5 deletions mobile.less/mobile.variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,5 @@
// background color for help screens/tutorials
@colorTutorial: #2e76ff;

// TODO: Can these be made to use core variables (or swapped out for some)?
@colorErrorBackground: #fae3e3;
@colorSuccessBackground: #e1fddf;
@colorSuccessText: #009000;

// FIXME: To be moved to includes/Config in a follow up patch.
@wgMFDeviceWidthDesktop: 62.5em; // 1000px / 16 px;
24 changes: 10 additions & 14 deletions resources/mobile.messageBox.styles/messageBox.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
color: @colorGray2;
}

.successbox {
color: @colorSuccessText;
background: @colorSuccessBackground;
}

// Necessary for fallback editor preview.
.previewnote p,
.successbox,
Expand All @@ -29,6 +24,16 @@
margin: 0 0 1em;
}

.errorbox {
background-color: @backgroundColorError;
color: @colorTextEmphasized;
}

.successbox {
background-color: @backgroundColorSuccess;
color: @colorTextEmphasized;
}

.successbox,
.errorbox,
.warningbox,
Expand All @@ -44,12 +49,3 @@
margin-bottom: 1em;
}
}

.errorbox {
/**
* @wmui-color-red90 from wikimedia-ui-base.less
* https://phabricator.wikimedia.org/source/wikimedia-ui-base/browse/master/wikimedia-ui-base.less
*/
background-color: #fee7e6;
color: @colorErrorText;
}
4 changes: 2 additions & 2 deletions resources/mobile.special.styles/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// used in Special:Nearby and Special:UserLogin
.errorbox,
.error {
color: @colorErrorText;
background: @colorErrorBackground;
background: @backgroundColorError;
color: @colorError;
}

.mw-ui-button-group,
Expand Down
2 changes: 1 addition & 1 deletion resources/mobile.talk.overlays/talk.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// src/mobile.talk.overlays/TalkSectionOverlay.js
// Could this be generalised? e.g. MessageBox
.error {
border: 1px solid @colorErrorText;
border: 1px solid @borderColorError;
}

// src/mobile.talk.overlays/TalkSectionOverlay.js
Expand Down

0 comments on commit 96ba479

Please sign in to comment.