Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions src/scss/_closeButton.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "variables" as *;

.#{$vt-namespace}__close-button {
font-weight: bold;
font-size: 24px;
Expand Down
2 changes: 2 additions & 0 deletions src/scss/_icon.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "variables" as *;

.#{$vt-namespace}__icon {
margin: auto 18px auto 0px;
background: transparent;
Expand Down
4 changes: 4 additions & 0 deletions src/scss/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$trans-cubic-bezier: cubic-bezier(0.215, 0.61, 0.355, 1);
@mixin timing-function {
animation-timing-function: $trans-cubic-bezier;
}
2 changes: 2 additions & 0 deletions src/scss/_progressBar.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "variables" as *;

@keyframes scale-x-frames {
0% {
transform: scaleX(1);
Expand Down
2 changes: 2 additions & 0 deletions src/scss/_toast.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "variables" as *;

.#{$vt-namespace}__toast {
display: inline-flex;
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion src/scss/_toastContainer.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use "sass:math";

@use "variables" as *;
.#{$vt-namespace}__container {
z-index: $vt-z-index;
position: fixed;
Expand Down
7 changes: 2 additions & 5 deletions src/scss/animations/_bounce.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Bounce Animation taken from https://github.com/fkhadra/react-toastify
$trans-cubic-bezier: cubic-bezier(0.215, 0.61, 0.355, 1);
@mixin timing-function {
animation-timing-function: $trans-cubic-bezier;
}

@use "../variables" as *;
@use "../mixins" as *;
@keyframes bounceInRight {
from,
60%,
Expand Down
9 changes: 3 additions & 6 deletions src/scss/animations/_fade.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
$trans-cubic-bezier: cubic-bezier(0.215, 0.61, 0.355, 1);
@mixin timing-function {
animation-timing-function: $trans-cubic-bezier;
}

@use "../variables" as *;
@use "../mixins" as *;
/* ----------------------------------------------
* Modified version from Animista
* Animista is Licensed under FreeBSD License.
* See http://animista.net/license for more info.
* See http://animista.net/license for more info.
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */

Expand Down
8 changes: 3 additions & 5 deletions src/scss/animations/_slideBlurred.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
$trans-cubic-bezier: cubic-bezier(0.215, 0.61, 0.355, 1);
@mixin timing-function {
animation-timing-function: $trans-cubic-bezier;
}
@use "../variables" as *;
@use "../mixins" as *;

/* ----------------------------------------------
* Modified version from Animista
* Animista is Licensed under FreeBSD License.
* See http://animista.net/license for more info.
* See http://animista.net/license for more info.
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */

Expand Down
19 changes: 10 additions & 9 deletions src/scss/index.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
@charset "UTF-8";

@import "variables";
@import "toastContainer";
@import "toast";
@import "closeButton";
@import "progressBar";
@import "icon";
@forward "variables";
@forward "toastContainer";
@forward "toast";
@forward "closeButton";
@forward "progressBar";
@forward "icon";

@forward "animations/bounce";
@forward "animations/fade";
@forward "animations/slideBlurred";

@import "animations/bounce";
@import "animations/fade";
@import "animations/slideBlurred";