Skip to content

Commit

Permalink
Merge "Notifications: Migrate to Less and use design tokens"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Jun 20, 2024
2 parents 439ce10 + d0b0366 commit 65bbcf3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion resources/Resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@
=> [ 'media' => 'print' ],
],
'skinStyles' => [
'default' => 'resources/src/mediawiki.notification/default.css',
'default' => 'resources/src/mediawiki.notification/default.less',
],
'scripts' => 'resources/src/mediawiki.notification/notification.js',
'dependencies' => [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import 'mediawiki.skin.variables.less';

.mw-notification-area-overlay {
position: absolute;
top: 0;
Expand All @@ -22,9 +24,9 @@
.mw-notification {
padding: 0.75em 1.5em;
margin-bottom: 0.5em;
border: solid 1px #ddd;
background-color: #fff;
color: #000;
border: @border-width-base @border-style-base @border-color-notice;
background-color: @background-color-base;
color: @color-emphasized;
/* Click handler in mediawiki.notification.js */
cursor: pointer;
opacity: 0;
Expand All @@ -50,22 +52,16 @@
}

.mw-notification.mw-notification-type-warn {
/* Yellow100 */
background-color: #fef6e7;
/* Yellow600 */
border-color: #fc3;
background-color: @background-color-warning-subtle;
border-color: @border-color-warning;
}

.mw-notification.mw-notification-type-error {
/* Red100 */
background-color: #fee7e6;
/* Red600 */
border-color: #d73333;
background-color: @background-color-error-subtle;
border-color: @border-color-error;
}

.mw-notification.mw-notification-type-success {
/* Green100 */
background-color: #d5fdf4;
/* Green700 */
border-color: #14866d;
background-color: @background-color-success-subtle;
border-color: @border-color-success;
}

0 comments on commit 65bbcf3

Please sign in to comment.