1 @import "mediawiki.mixins";
2 @import "mediawiki.ui/variables";
3 @import "mediawiki.ui/mixins";
6 .mixin-mw-ui-anchor-styles( @mainColor ) {
11 color: lighten( @mainColor, @colorLightenPercentage );
13 // Focus and active states
15 color: darken( @mainColor, @colorDarkenPercentage );
16 outline: none; // outline fix
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-constructive">Constructive</a>
35 <a href="#" class="mw-ui-anchor mw-ui-destructive">Destructive</a>
37 .mw-ui-quiet - Quiet until interaction.
42 // Setup compound anchor selectors (such as .mw-ui-anchor.mw-ui-progressive)
45 .mixin-mw-ui-anchor-styles( @colorProgressive );
48 &.mw-ui-constructive {
49 .mixin-mw-ui-anchor-styles( @colorConstructive );
53 .mixin-mw-ui-anchor-styles( @colorDestructive );
60 Use quiet anchors when they are less important and alongside other progressive/destructive/progressive
61 anchors. Use of quiet anchors is not recommended on mobile/tablet due to lack of hover state.
64 <a href="#" class="mw-ui-anchor mw-ui-progressive mw-ui-quiet">Progressive</a>
65 <a href="#" class="mw-ui-anchor mw-ui-constructive mw-ui-quiet">Constructive</a>
66 <a href="#" class="mw-ui-anchor mw-ui-destructive mw-ui-quiet">Destructive</a>
70 .mixin-mw-ui-anchor-styles-quiet( @mainColor ) {
71 color: @colorTextLight;
72 text-decoration: none;
78 color: darken( @mainColor, @colorDarkenPercentage );