X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.ui%2Fcomponents%2Fanchors.less;h=a9e4b7882dc87cd39ed68c241523dc1bc107d308;hb=d939ca58a4595aa5a6da6e6dc393dc69d7f545f6;hp=4c4e129834e5c4d9c38e1e49381cf8ada2706c6f;hpb=c8d361a38027ef5d808225b8a83f15417248aa67;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.ui/components/anchors.less b/resources/src/mediawiki.ui/components/anchors.less index 4c4e129834..a9e4b7882d 100644 --- a/resources/src/mediawiki.ui/components/anchors.less +++ b/resources/src/mediawiki.ui/components/anchors.less @@ -1,6 +1,5 @@ -@import "mediawiki.mixins"; -@import "mediawiki.ui/variables"; -@import "mediawiki.ui/mixins"; +@import 'mediawiki.mixins'; +@import 'mediawiki.ui/variables'; // Helpers .mixin-mw-ui-anchor-styles( @mainColor ) { @@ -29,7 +28,6 @@ The anchor base type can be applied to `a` elements when a basic context styling having to assign it as a button type. `.mw-ui-anchor` only changes the text color, and should not be used in combination with other base classes, such as `.mw-ui-button`. - Markup: Progressive Destructive @@ -48,22 +46,16 @@ Styleguide 6.2. &.mw-ui-destructive { .mixin-mw-ui-anchor-styles( @colorDestructive ); } - - //`.mw-ui-constructive` is deprecated; consolidated with `progressive`, see T110555 - &.mw-ui-constructive { - .mixin-mw-ui-anchor-styles( @colorConstructive ); - } } /* Quiet anchors -Use quiet anchors when they are less important and alongside other progressive/destructive/progressive +Use quiet anchors when they are less important and alongside other progressive/destructive anchors. Use of quiet anchors is not recommended on mobile/tablet due to lack of hover state. Markup: Progressive -Constructive Destructive Styleguide 6.2.1. @@ -75,6 +67,7 @@ Styleguide 6.2.1. &:hover { color: @mainColor; } + &:focus, &:active { color: darken( @mainColor, @colorDarkenPercentage );