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
16 color: darken( @mainColor, @colorDarkenPercentage );
17 outline: none; // outline fix
20 // Quiet mode is gray at first
22 .mixin-mw-ui-anchor-styles-quiet( @mainColor );
29 The anchor base type can be applied to A elements when a basic context styling needs to be given to a link, without
30 having to assign it as a button type. mw-ui-anchor only changes the text color, and should not be used in combination
31 with other base classes, such as mw-ui-button.
34 <a href="#" class="mw-ui-anchor mw-ui-progressive">Progressive</a>
35 <a href="#" class="mw-ui-anchor mw-ui-constructive">Constructive</a>
36 <a href="#" class="mw-ui-anchor mw-ui-destructive">Destructive</a>
38 .mw-ui-quiet - Quiet until interaction.
43 // Setup compound anchor selectors (such as .mw-ui-anchor.mw-ui-progressive)
46 .mixin-mw-ui-anchor-styles( @colorProgressive );
49 &.mw-ui-constructive {
50 .mixin-mw-ui-anchor-styles( @colorConstructive );
54 .mixin-mw-ui-anchor-styles( @colorDestructive );
61 Use quiet anchors when they are less important and alongside other progressive/destructive/progressive
62 anchors. Use of quiet anchors is not recommended on mobile/tablet due to lack of hover state.
65 <a href="#" class="mw-ui-anchor mw-ui-progressive mw-ui-quiet">Progressive</a>
66 <a href="#" class="mw-ui-anchor mw-ui-constructive mw-ui-quiet">Constructive</a>
67 <a href="#" class="mw-ui-anchor mw-ui-destructive mw-ui-quiet">Destructive</a>
71 .mixin-mw-ui-anchor-styles-quiet( @mainColor ) {
72 color: @colorTextLight;
73 text-decoration: none;
80 color: darken( @mainColor, @colorDarkenPercentage );