Skip to content

Commit

Permalink
fix: use leading slash
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Mar 16, 2020
1 parent 4666790 commit 1797b96
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
.DS_Store
.parcel-cache/
coverage/
.devserver/
node_modules/
dist/
themes/
animations/
/themes
/animations
index.d.ts
4 changes: 2 additions & 2 deletions src/scss/svg-arrow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
&::after,
> svg {
transform: rotate(90deg);
top: calc(50% - 4px);
top: calc(50% - 3px);
left: 11px;
}
}
Expand All @@ -36,7 +36,7 @@
&::after,
> svg {
transform: rotate(-90deg);
top: calc(50% - 4px);
top: calc(50% - 3px);
right: 11px;
}
}
Expand Down
31 changes: 14 additions & 17 deletions src/scss/themes/light-border.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ $transparent-darker: rgba(0, 8, 16, 0.2);

> .#{$namespace-prefix}-arrow,
> .#{$namespace-prefix}-svg-arrow {
width: 18px;
height: 18px;

&::after {
content: '';
position: absolute;
Expand All @@ -43,18 +40,18 @@ $transparent-darker: rgba(0, 8, 16, 0.2);
&::after {
border-top-color: $transparent-darker;
border-width: 7px 7px 0;
top: 19px;
top: $arrow-size + 1;
left: 1px;
}
}

> .#{$namespace-prefix}-svg-arrow {
> svg {
top: 18px;
top: $arrow-size;
}

&::after {
top: 19px;
top: $arrow-size + 1;
}
}
}
Expand All @@ -63,24 +60,24 @@ $transparent-darker: rgba(0, 8, 16, 0.2);
> .#{$namespace-prefix}-arrow {
&::before {
border-bottom-color: $color;
bottom: 18px;
bottom: $arrow-size;
}

&::after {
border-bottom-color: $transparent-darker;
border-width: 0 7px 7px;
bottom: 19px;
bottom: $arrow-size + 1;
left: 1px;
}
}

> .#{$namespace-prefix}-svg-arrow {
> svg {
bottom: 18px;
bottom: $arrow-size;
}

&::after {
bottom: 19px;
bottom: $arrow-size + 1;
}
}
}
Expand All @@ -94,18 +91,18 @@ $transparent-darker: rgba(0, 8, 16, 0.2);
&::after {
border-left-color: $transparent-darker;
border-width: 7px 0 7px 7px;
left: 19px;
left: $arrow-size + 1;
top: 1px;
}
}

> .#{$namespace-prefix}-svg-arrow {
> svg {
left: 13px;
left: 11px;
}

&::after {
left: 14px;
left: 12px;
}
}
}
Expand All @@ -114,24 +111,24 @@ $transparent-darker: rgba(0, 8, 16, 0.2);
> .#{$namespace-prefix}-arrow {
&::before {
border-right-color: $color;
right: 18px;
right: $arrow-size;
}

&::after {
border-width: 7px 7px 7px 0;
right: 19px;
right: $arrow-size + 1;
top: 1px;
border-right-color: $transparent-darker;
}
}

> .#{$namespace-prefix}-svg-arrow {
> svg {
right: 13px;
right: 11px;
}

&::after {
right: 14px;
right: 12px;
}
}
}
Expand Down

0 comments on commit 1797b96

Please sign in to comment.