Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Lint Sass file
Browse files Browse the repository at this point in the history
  • Loading branch information
breehall committed Nov 6, 2022
1 parent c605cbd commit a5cd2de
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions x-pack/plugins/infra/public/components/eui/tooltip/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

$euiTooltipBackgroundColor: tintOrShade($euiColorFullShade, 25%, 100%) !default;
$euiTooltipBorderColor: tintOrShade($euiColorFullShade, 35%, 80%) !default;

Expand All @@ -8,29 +7,28 @@ $euiTooltipAnimations: (
bottom: euiToolTipLeft,
right: euiToolTipRight,
) !default;

@mixin euiToolTipStyle($size: null) {
@include euiBottomShadow($color: $euiColorInk);
border-radius: $euiBorderRadius;
background-color: $euiTooltipBackgroundColor;
color: $euiColorGhost;
z-index: $euiZLevel9;
max-width: 256px;
overflow-wrap: break-word;
padding: $euiSizeS;

.euiHorizontalRule {
background-color: $euiTooltipBorderColor;
}
}

@mixin euiToolTipTitle {
font-weight: $euiFontWeightBold;
border-bottom: solid $euiBorderWidthThin $euiTooltipBorderColor;
padding-bottom: $euiSizeXS;
margin-bottom: $euiSizeXS;
@include euiBottomShadow($color: $euiColorInk);
border-radius: $euiBorderRadius;
background-color: $euiTooltipBackgroundColor;
color: $euiColorGhost;
z-index: $euiZLevel9;
max-width: 256px;
overflow-wrap: break-word;
padding: $euiSizeS;

.euiHorizontalRule {
background-color: $euiTooltipBorderColor;
}

@mixin euiToolTipAnimation($side: 'top') {
animation: #{map-get($euiTooltipAnimations, $side)} $euiAnimSpeedSlow ease-out 0s forwards;
}
}

@mixin euiToolTipTitle {
font-weight: $euiFontWeightBold;
border-bottom: solid $euiBorderWidthThin $euiTooltipBorderColor;
padding-bottom: $euiSizeXS;
margin-bottom: $euiSizeXS;
}

@mixin euiToolTipAnimation($side: 'top') {
animation: #{map-get($euiTooltipAnimations, $side)} $euiAnimSpeedSlow ease-out 0s forwards;
}

0 comments on commit a5cd2de

Please sign in to comment.