Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/balloon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ $balloon-bg: fade-out(#101010, .05) !default;
$balloon-base-size: 12px !default;
$balloon-arrow-size: 5px !default;
$balloon-move: 4px !default;

$balloon-delay-in: 0.5s !default;
$balloon-delay-out: 0s !default;

//
// Mixins
Expand Down Expand Up @@ -81,11 +82,13 @@ button[aria-label] {
// Fixing iOS Safari event issue.
// More info at: https://goo.gl/w8JF4W
cursor: pointer;

&:after {
@include base-effects();
@include normalized-text();

transition-delay: var(--ballon-delay-out, $balloon-delay-out);

background: var(--balloon-color);
border-radius: 2px;
color: #fff;
Expand All @@ -100,6 +103,8 @@ button[aria-label] {
@include arrow-down();
@include base-effects();

transition-delay: var(--ballon-delay-out, $balloon-delay-out);

content: "";
position: absolute;
z-index: 10;
Expand All @@ -110,6 +115,7 @@ button[aria-label] {
&:after {
opacity: 1;
pointer-events: none;
transition-delay: var(--ballon-delay-in, $balloon-delay-in);
}
}

Expand Down