Skip to content

Commit

Permalink
Apply core changes on button styles (#373)
Browse files Browse the repository at this point in the history
* Apply core changes on button styles

* Load more dependencies
  • Loading branch information
lens0021 authored Nov 22, 2021
1 parent 36552c4 commit 3cf45cd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Versions and bullets are arranged chronologically from latest to oldest.

## Unreleased

- Fixed button colors.

## v1.10.4

- Fixed broken StructuredDiscussions styles. (https://github.com/femiwiki/FemiwikiSkin/issues/365, https://github.com/femiwiki/FemiwikiSkin/issues/366)
Expand Down
34 changes: 12 additions & 22 deletions resources/skins.femiwiki.moduleSkinStyles/mediawiki.ui.button.less
Original file line number Diff line number Diff line change
@@ -1,41 +1,31 @@
@import '../variables.less';
@import 'mediawiki.mixins.less';
@import 'mediawiki.ui/mixins.buttons.less';
@import 'mediawiki.ui/variables.less';

// @See https://github.com/femiwiki/FemiwikiSkin/issues/161
// https://github.com/femiwiki/FemiwikiSkin/issues/161
.mw-ui-button {
border-radius: 0;
&.mw-ui-progressive {
background-color: @color-progressive;
border-color: @color-progressive;

&:hover {
background-color: @color-primary4;
border-color: @color-primary4;
}

&:focus {
box-shadow: inset 0 0 0 1px @color-progressive, inset 0 0 0 2px #fff;
}

&:active,
&.is-on {
background-color: @color-primary5;
border-color: @color-primary5;
}
.mw-ui-button-colors-primary(@color-progressive, @color-primary4, @color-primary5 );

&.mw-ui-quiet {
color: @color-progressive;

input[type='checkbox']:hover + &,
&:hover {
color: @color-primary4;
}

&:active {
color: @color-primary5;
}

input[type='checkbox']:focus + &,
&:focus {
color: @color-progressive;
}

input[type='checkbox']:active + &,
&:active {
color: @color-primary5;
}
}
}
}

0 comments on commit 3cf45cd

Please sign in to comment.