Skip to content

Commit

Permalink
Use clip-path in addition to clip.
Browse files Browse the repository at this point in the history
clip is deprecated; clip-path is not supported in older browsers.
  • Loading branch information
adunkman committed May 29, 2018
1 parent 50cc388 commit 61eb5e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sass/chosen.scss
Expand Up @@ -21,9 +21,11 @@ $chosen-sprite-retina: url('chosen-sprite@2x.png') !default;
background: #fff;
box-shadow: 0 4px 5px rgba(#000,.15);
clip: rect(0,0,0,0);
clip-path: inset(100% 100%);
}
&.chosen-with-drop .chosen-drop {
clip: auto;
clip-path: none;
}
a{
cursor: pointer;
Expand Down Expand Up @@ -138,6 +140,7 @@ $chosen-sprite-retina: url('chosen-sprite@2x.png') !default;
&.chosen-container-single-nosearch .chosen-search {
position: absolute;
clip: rect(0,0,0,0);
clip-path: inset(100% 100%);
}
}
/* @end */
Expand Down

0 comments on commit 61eb5e4

Please sign in to comment.