diff --git a/scss/utilities/rounded-corners-mixin.scss b/scss/utilities/rounded-corners-mixin.scss index 91f1bf9..608c9bd 100644 --- a/scss/utilities/rounded-corners-mixin.scss +++ b/scss/utilities/rounded-corners-mixin.scss @@ -11,12 +11,27 @@ border-image-source: url('data:image/svg+xml;utf8,'); } +@mixin border-image-repeat() { + border-image-repeat: stretch; + + // for chrome + @media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) { + border-image-repeat: space; + } + + // for firefox + @supports (-moz-appearance: meterbar) { + border-image-repeat: stretch; + } +} + @mixin rounded-corners($isDark: false) { @extend %rounded-corner-defaults; border-image-slice: 3; border-image-width: 3; - border-image-repeat: stretch; + + @include border-image-repeat(); @if $isDark { @include border-image($color-white); @@ -34,7 +49,8 @@ border-image-slice: 2; border-image-width: 2; - border-image-repeat: stretch; + + @include border-image-repeat(); @if $isDark { @include compact-border-image($color-white);