Skip to content

Commit d4f866c

Browse files
committed
materia: support svg in ie by reverting size attributes
1 parent 8e53916 commit d4f866c

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

dist/materia/_bootswatch.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ select,
293293
select.form-control {
294294
appearance: none;
295295
padding: .5rem 0;
296-
background-image: escape-svg(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4'%3e%3cpolygon fill='#{$gray-600}' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a"));
296+
background-image: escape-svg(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3e%3cpolygon fill='#{$gray-600}' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a"));
297297
background-size: 8px 4px;
298298
background-repeat: no-repeat;
299299
background-position: right center;
@@ -315,7 +315,7 @@ select.form-control {
315315

316316
&:focus {
317317
box-shadow: $input-focus-box-shadow;
318-
background-image: escape-svg(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4'%3e%3cpolygon fill='#{$gray-900}' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a"));
318+
background-image: escape-svg(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3e%3cpolygon fill='#{$gray-900}' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a"));
319319
}
320320

321321
&[multiple] {

dist/materia/bootstrap.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11360,7 +11360,7 @@ select.form-control {
1136011360
-moz-appearance: none;
1136111361
appearance: none;
1136211362
padding: .5rem 0;
11363-
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4'%3e%3cpolygon fill='%23666' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a");
11363+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3e%3cpolygon fill='%23666' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a");
1136411364
background-size: 8px 4px;
1136511365
background-repeat: no-repeat;
1136611366
background-position: right center;
@@ -11385,7 +11385,7 @@ select.form-control.input-lg {
1138511385
select:focus,
1138611386
select.form-control:focus {
1138711387
box-shadow: inset 0 -2px 0 #2196f3;
11388-
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4'%3e%3cpolygon fill='%23212121' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a");
11388+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3e%3cpolygon fill='%23212121' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a");
1138911389
}
1139011390

1139111391
select[multiple],

dist/materia/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/4/materia/_bootswatch.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ select,
293293
select.form-control {
294294
appearance: none;
295295
padding: .5rem 0;
296-
background-image: escape-svg(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4'%3e%3cpolygon fill='#{$gray-600}' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a"));
296+
background-image: escape-svg(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3e%3cpolygon fill='#{$gray-600}' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a"));
297297
background-size: 8px 4px;
298298
background-repeat: no-repeat;
299299
background-position: right center;
@@ -315,7 +315,7 @@ select.form-control {
315315

316316
&:focus {
317317
box-shadow: $input-focus-box-shadow;
318-
background-image: escape-svg(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4'%3e%3cpolygon fill='#{$gray-900}' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a"));
318+
background-image: escape-svg(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3e%3cpolygon fill='#{$gray-900}' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a"));
319319
}
320320

321321
&[multiple] {

docs/4/materia/bootstrap.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11360,7 +11360,7 @@ select.form-control {
1136011360
-moz-appearance: none;
1136111361
appearance: none;
1136211362
padding: .5rem 0;
11363-
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4'%3e%3cpolygon fill='%23666' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a");
11363+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3e%3cpolygon fill='%23666' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a");
1136411364
background-size: 8px 4px;
1136511365
background-repeat: no-repeat;
1136611366
background-position: right center;
@@ -11385,7 +11385,7 @@ select.form-control.input-lg {
1138511385
select:focus,
1138611386
select.form-control:focus {
1138711387
box-shadow: inset 0 -2px 0 #2196f3;
11388-
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4'%3e%3cpolygon fill='%23212121' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a");
11388+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3e%3cpolygon fill='%23212121' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a");
1138911389
}
1139011390

1139111391
select[multiple],

docs/4/materia/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)