-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Icon link: envariable + enhance the documentation (#38130)
* Envariable the icon-link helper * Proposal * .
- Loading branch information
1 parent
912cfe5
commit 7832136
Showing
3 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
.icon-link { | ||
display: inline-flex; | ||
gap: .375rem; | ||
gap: $icon-link-gap; | ||
align-items: center; | ||
text-decoration-color: rgba(var(--#{$prefix}link-color-rgb), var(--#{$prefix}link-opacity, .5)); | ||
text-underline-offset: .25em; | ||
text-underline-offset: $icon-link-underline-offset; | ||
backface-visibility: hidden; | ||
|
||
> .bi { | ||
flex-shrink: 0; | ||
width: 1em; | ||
height: 1em; | ||
@include transition(.2s ease-in-out transform); | ||
width: $icon-link-icon-size; | ||
height: $icon-link-icon-size; | ||
fill: currentcolor; | ||
@include transition($icon-link-icon-transition); | ||
} | ||
} | ||
|
||
.icon-link-hover { | ||
&:hover, | ||
&:focus-visible { | ||
> .bi { | ||
transform: var(--#{$prefix}icon-link-transform, translate3d(.25em, 0, 0)); | ||
transform: var(--#{$prefix}icon-link-transform, $icon-link-icon-transform); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters