Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vantagedesign/ace-documentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian <julian@vantage-design.com>2020-05-13 23:05:47 +0300
committerGitHub <noreply@github.com>2020-05-13 23:05:47 +0300
commit94982f7998875e98de9d00482a35dcbe6a5df5eb (patch)
treef1d69328b12553024a9b4817ccc4b808ed989dcd /assets/css/bootstrap/_functions.scss
parentb8aab92a90099fe7bde3c2fbf029f50a29825be4 (diff)
parentc3e9fedca8577469dc58981e59a71ab78d0ced34 (diff)
Merge pull request #11 from vantagedesign/dev1.0.4
v1.0.4 - updated Bootstrap to v4.5
Diffstat (limited to 'assets/css/bootstrap/_functions.scss')
-rw-r--r--assets/css/bootstrap/_functions.scss17
1 files changed, 12 insertions, 5 deletions
diff --git a/assets/css/bootstrap/_functions.scss b/assets/css/bootstrap/_functions.scss
index 695e6cd..eb2471d 100644
--- a/assets/css/bootstrap/_functions.scss
+++ b/assets/css/bootstrap/_functions.scss
@@ -23,10 +23,12 @@
// Starts at zero
// Used to ensure the min-width of the lowest breakpoint starts at 0.
@mixin _assert-starts-at-zero($map, $map-name: "$grid-breakpoints") {
- $values: map-values($map);
- $first-value: nth($values, 1);
- @if $first-value != 0 {
- @warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
+ @if length($map) > 0 {
+ $values: map-values($map);
+ $first-value: nth($values, 1);
+ @if $first-value != 0 {
+ @warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
+ }
}
}
@@ -52,7 +54,12 @@
@function escape-svg($string) {
@if str-index($string, "data:image/svg+xml") {
@each $char, $encoded in $escaped-characters {
- $string: str-replace($string, $char, $encoded);
+ // Do not escape the url brackets
+ @if str-index($string, "url(") == 1 {
+ $string: url("#{str-replace(str-slice($string, 6, -3), $char, $encoded)}");
+ } @else {
+ $string: str-replace($string, $char, $encoded);
+ }
}
}