Skip to content

Commit

Permalink
Add none theme
Browse files Browse the repository at this point in the history
  • Loading branch information
segevfiner committed Apr 16, 2023
1 parent ad85f6f commit 2f31294
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/themes/none.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '../../src/scss/themes/none.scss';
33 changes: 33 additions & 0 deletions src/scss/themes/none.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@import '../_mixins.scss';
@import '../_vars.scss';

$color: transparent;

.#{$namespace-prefix}-box[data-theme~='none'] {
color: inherit;
background-color: $color;

&[data-placement^='top'] > .#{$namespace-prefix}-arrow::before {
border-top-color: $color;
}

&[data-placement^='bottom'] > .#{$namespace-prefix}-arrow::before {
border-bottom-color: $color;
}

&[data-placement^='left'] > .#{$namespace-prefix}-arrow::before {
border-left-color: $color;
}

&[data-placement^='right'] > .#{$namespace-prefix}-arrow::before {
border-right-color: $color;
}

> .#{$namespace-prefix}-backdrop {
background-color: $color;
}

> .#{$namespace-prefix}-svg-arrow {
fill: $color;
}
}

0 comments on commit 2f31294

Please sign in to comment.