Skip to content

Commit bc10d8d

Browse files
committed
Fix SVG height bug in IE
By default, SVGs have a height of 150px in Internet Explorer, so using `height: auto` on base `svg` elements was overriding the inline `height` attribute and producing tall, awkward, John D. Jameson-esque SVGs.
1 parent b9b1680 commit bc10d8d

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

client/stylesheets/foundation/_base.sass

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@ pre
5555
// Inline Content
5656
// -------------------------------------
5757
58-
// ----- Images ----- //
59-
60-
img, svg
61-
height: auto
62-
max-width: 100%
63-
vertical-align: middle
64-
6558
// ----- Inputs ----- //
6659
6760
input[type='email'],
@@ -89,6 +82,19 @@ a, %a
8982
+state
9083
color: darken($c-highlight, 10%)
9184

85+
// ----- Media ----- //
86+
87+
// Shared
88+
89+
img, svg
90+
max-width: 100%
91+
vertical-align: middle
92+
93+
// Images
94+
95+
img
96+
height: auto
97+
9298
// ----- Selection ----- //
9399
94100
::selection

0 commit comments

Comments
 (0)