Skip to content

Commit

Permalink
Fix arrow transparency and reduce theme file size
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Nov 8, 2018
1 parent 356f912 commit a1cce0e
Showing 1 changed file with 16 additions and 49 deletions.
65 changes: 16 additions & 49 deletions src/scss/themes/light-border.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

$transparentLight: rgba(0, 8, 16, 0.08);
$transparentDark: rgba(0, 8, 16, 0.15);
$transparentDarker: rgba(0, 8, 16, 0.24);
$transparentDarker: rgba(0, 8, 16, 0.2);

.tippy-tooltip.light-border-theme {
background-color: white;
Expand All @@ -18,8 +18,7 @@ $transparentDarker: rgba(0, 8, 16, 0.24);

.tippy-arrow,
.tippy-roundarrow {
&::after,
&::before {
&::after {
content: '';
position: absolute;
z-index: -1;
Expand Down Expand Up @@ -50,17 +49,9 @@ $transparentDarker: rgba(0, 8, 16, 0.24);
.tippy-arrow {
border-top-color: #fff;

&::after,
&::before {
border-top: 8px solid;
top: -7px;
}

&::after {
border-top-color: $transparentDarker;
}
&::before {
border-top-color: white;
border-top: 7px solid $transparentDarker;
top: -6px;
}
}
}
Expand All @@ -73,17 +64,9 @@ $transparentDarker: rgba(0, 8, 16, 0.24);
.tippy-arrow {
border-bottom-color: #fff;

&::after,
&::before {
border-bottom: 8px solid;
bottom: -7px;
}

&::after {
border-bottom-color: $transparentDarker;
}
&::before {
border-bottom-color: white;
border-bottom: 7px solid $transparentDarker;
bottom: -6px;
}
}
}
Expand All @@ -98,17 +81,9 @@ $transparentDarker: rgba(0, 8, 16, 0.24);
.tippy-arrow {
border-left-color: #fff;

&::after,
&::before {
border-left: 8px solid;
left: -7px;
}

&::after {
border-left-color: $transparentDarker;
}
&::before {
border-left-color: white;
border-left: 7px solid $transparentDarker;
left: -6px;
}
}
}
Expand All @@ -123,17 +98,9 @@ $transparentDarker: rgba(0, 8, 16, 0.24);
.tippy-arrow {
border-right-color: #fff;

&::after,
&::before {
border-right: 8px solid;
right: -7px;
}

&::after {
border-right-color: $transparentDarker;
}
&::before {
border-right-color: white;
border-right: 7px solid $transparentDarker;
right: -6px;
}
}
}
Expand All @@ -146,9 +113,9 @@ $transparentDarker: rgba(0, 8, 16, 0.24);
.tippy-arrow {
&::before,
&::after {
left: -8px;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
left: -7px;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
}
}

Expand All @@ -160,8 +127,8 @@ $transparentDarker: rgba(0, 8, 16, 0.24);
.tippy-arrow {
&::before,
&::after {
top: -8px;
border-top: 8px solid transparent;
border-bottom: 8px solid transparent;
top: -7px;
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
}
}

0 comments on commit a1cce0e

Please sign in to comment.