Skip to content

Commit

Permalink
Merge pull request kenwheeler#2969 from vanilla-thunder/patch-1
Browse files Browse the repository at this point in the history
conditional @font-face hack for slick-theme.less
  • Loading branch information
Greg Westneat authored Jul 27, 2017
2 parents 34042b4 + bd884b7 commit 40cc0d4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions slick/slick-theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,7 @@
background: #fff url('@{slick-loader-path}ajax-loader.gif') center center no-repeat;
}

/* Icons */
@font-face{
font-family: 'slick';
font-weight: normal;
font-style: normal;

src: url('@{slick-font-path}slick.eot');
src: url('@{slick-font-path}slick.eot?#iefix') format('embedded-opentype'), url('@{slick-font-path}slick.woff') format('woff'), url('@{slick-font-path}slick.ttf') format('truetype'), url('@{slick-font-path}slick.svg#slick') format('svg');
}

/* Arrows */

.slick-prev,
.slick-next {
position: absolute;
Expand Down Expand Up @@ -72,6 +61,17 @@
opacity: @slick-opacity-default;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

& when ( @slick-font-family = 'slick' ) {
/* Icons */
@font-face {
font-family: 'slick';
font-weight: normal;
font-style: normal;
src: url('@{slick-font-path}slick.eot');
src: url('@{slick-font-path}slick.eot?#iefix') format('embedded-opentype'), url('@{slick-font-path}slick.woff') format('woff'), url('@{slick-font-path}slick.ttf') format('truetype'), url('@{slick-font-path}slick.svg#slick') format('svg');
}
}
}

.slick-prev {
Expand Down

0 comments on commit 40cc0d4

Please sign in to comment.