ganlanyuan / tiny-slider

Vanilla javascript slider for all purposes.
MIT License
5.26k stars 786 forks source link

Deprecation Using / for division outside of calc() #834

Open albinlang opened 1 year ago

albinlang commented 1 year ago

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