mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
73 lines
1.5 KiB
SCSS
73 lines
1.5 KiB
SCSS
.custom-link {
|
|
@include link;
|
|
@include animated-bottom-border($core-fleet-black, $ui-fleet-black-25);
|
|
|
|
.external-link-icon__outline {
|
|
transition: fill 0.2s;
|
|
}
|
|
.external-link-icon__arrow {
|
|
transition: stroke 0.2s;
|
|
}
|
|
|
|
// Inverse hover over effect
|
|
&:hover {
|
|
.external-link-icon__outline {
|
|
fill: $ui-fleet-black-75-over;
|
|
}
|
|
.external-link-icon__arrow {
|
|
stroke: $core-fleet-white;
|
|
}
|
|
}
|
|
|
|
// Changing display will break multiline links
|
|
&:not(.custom-link--multiline) {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: $pad-xsmall;
|
|
}
|
|
|
|
&__no-wrap {
|
|
white-space: nowrap;
|
|
.icon {
|
|
padding-left: 6px;
|
|
}
|
|
}
|
|
|
|
// Variants
|
|
&--tooltip-link,
|
|
&--banner-link,
|
|
&--flash-message-link {
|
|
color: inherit; // Overrides fleet blue link color with parent color
|
|
}
|
|
|
|
&--tooltip-link,
|
|
&--flash-message-link {
|
|
font-size: inherit; // Overrides link default font size with parent tooltip font size
|
|
@include animated-bottom-border($core-fleet-white, $ui-off-white);
|
|
|
|
.external-link-icon__outline {
|
|
stroke: $core-fleet-white;
|
|
}
|
|
|
|
// Inverse hover over effect
|
|
&:hover {
|
|
color: $ui-off-white;
|
|
|
|
.external-link-icon__outline {
|
|
fill: $ui-off-white;
|
|
}
|
|
|
|
.external-link-icon__arrow {
|
|
stroke: $tooltip-bg;
|
|
}
|
|
}
|
|
}
|
|
|
|
&--flash-message-link {
|
|
&:hover {
|
|
.external-link-icon__arrow {
|
|
stroke: $core-vibrant-red;
|
|
}
|
|
}
|
|
}
|
|
}
|