ganlanyuan / tiny-slider

Vanilla javascript slider for all purposes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecation Using / for division outside of calc()

albinlang opened this issue · comments

Issue description:
On row 124 & 136 in tiny-slider.scss there's / for division outside calc()
I guess those two lines should be removed since they're correct on line 127 & 139.

  &-ct {
    width: (100% * $count / $perpage);
    width: -webkit-calc(100% * #{$count} / #{$perpage});
    width: -moz-calc(100% * #{$count} / #{$perpage});
    width: calc(100% * #{$count} / #{$perpage});
    position: absolute;
    right: 0;
    &:after {
      content: '';
      display: table;
      clear: both;
    }
    > div {
      width: (100% / $count);
      width: -webkit-calc(100% / #{$count});
      width: -moz-calc(100% / #{$count});
      width: calc(100% / #{$count});
      height: $height;
      float: left;
    }
  }

Tiny-slider version:
^2.9.4

Browser name && version:
Edge, Chrome, Firefox all latest stable

OS name && version:
Win 11, Mac OS