Skip to content

Commit

Permalink
fix(less): fix dot-floating variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbin committed Dec 2, 2021
1 parent 61c9a38 commit 67f2d38
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 35 deletions.
6 changes: 3 additions & 3 deletions less/_dot-floating.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
}

@keyframes dot-floating {
0% { left: ~"calc(-50% - @{dotWidth}/2)"; }
75% { left: ~"calc(50% + @{d-max}*2 + @{dotWidth}/2)"; }
100% { left: ~"calc(50% + @{d-max}*2 + @{dotWidth}/2})"; }
0% { left: ~"calc(-50% - @{dot-width}/2)"; }
75% { left: ~"calc(50% + @{d-max}*2 + @{dot-width}/2)"; }
100% { left: ~"calc(50% + @{d-max}*2 + @{dot-width}/2})"; }
}

@keyframes dot-floating-before {
Expand Down
8 changes: 3 additions & 5 deletions less/_mixins.less
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/**
* ==============================================
* Mixins
* ==============================================
*/
// ==============================================
// Mixins
// ==============================================

.dot(@width: @dot-width, @height: @dot-height, @radius: @dot-radius, @bg-color: @dot-bg-color, @color: @dot-color) {
background-color: @bg-color;
Expand Down
8 changes: 3 additions & 5 deletions less/_variables.less
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/**
* ==============================================
* Variables
* ==============================================
*/
// ==============================================
// Variables
// ==============================================

@dot-width: 10px;
@dot-height: 10px;
Expand Down
44 changes: 22 additions & 22 deletions less/three-dots.less
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
// ------------------------------
// Three-Dots
// ------------------------------
@import "variables";
@import "mixins";
@import "./_variables";
@import "./_mixins";
// Basic
@import "dot-elastic";
@import "dot-pulse";
@import "dot-flashing";
@import "dot-collision";
@import "dot-revolution";
@import "dot-carousel";
@import "dot-typing";
@import "dot-windmill";
@import "dot-bricks";
@import "dot-floating";
@import "dot-fire";
@import "dot-spin";
@import "dot-falling";
@import "dot-stretching";
@import "./_dot-elastic";
@import "./_dot-pulse";
@import "./_dot-flashing";
@import "./_dot-collision";
@import "./_dot-revolution";
@import "./_dot-carousel";
@import "./_dot-typing";
@import "./_dot-windmill";
@import "./_dot-bricks";
@import "./_dot-floating";
@import "./_dot-fire";
@import "./_dot-spin";
@import "./_dot-falling";
@import "./_dot-stretching";
// Experimental
@import "dot-gathering";
@import "dot-hourglass";
@import "dot-overtaking";
@import "dot-shuttle";
@import "dot-bouncing";
@import "dot-rolling";
@import "./_dot-gathering";
@import "./_dot-hourglass";
@import "./_dot-overtaking";
@import "./_dot-shuttle";
@import "./_dot-bouncing";
@import "./_dot-rolling";

0 comments on commit 67f2d38

Please sign in to comment.