1 @import 'mediawiki.mixins';
2 @import 'mediawiki.ui/variables';
3 @import 'mediawiki.ui/mixins';
6 .mixin-mw-ui-anchor-styles( @mainColor ) {
10 color: lighten( @mainColor, @colorLightenPercentage );
15 color: darken( @mainColor, @colorDarkenPercentage );
19 // Quiet mode is gray at first
21 .mixin-mw-ui-anchor-styles-quiet( @mainColor );
28 The anchor base type can be applied to `a` elements when a basic context styling needs to be given to a link, without
29 having to assign it as a button type. `.mw-ui-anchor` only changes the text color, and should not be used in combination
30 with other base classes, such as `.mw-ui-button`.
33 <a href="#" class="mw-ui-anchor mw-ui-progressive">Progressive</a>
34 <a href="#" class="mw-ui-anchor mw-ui-destructive">Destructive</a>
36 .mw-ui-quiet - Quiet until interaction.
41 // Setup compound anchor selectors (such as .mw-ui-anchor.mw-ui-progressive)
44 .mixin-mw-ui-anchor-styles( @colorProgressive );
48 .mixin-mw-ui-anchor-styles( @colorDestructive );
55 Use quiet anchors when they are less important and alongside other progressive/destructive
56 anchors. Use of quiet anchors is not recommended on mobile/tablet due to lack of hover state.
59 <a href="#" class="mw-ui-anchor mw-ui-progressive mw-ui-quiet">Progressive</a>
60 <a href="#" class="mw-ui-anchor mw-ui-destructive mw-ui-quiet">Destructive</a>
64 .mixin-mw-ui-anchor-styles-quiet( @mainColor ) {
65 color: @colorTextLight;
66 text-decoration: none;
73 color: darken( @mainColor, @colorDarkenPercentage );