Skip to content

Instantly share code, notes, and snippets.

View thomasfrobieter's full-sized avatar
😶‍🌫️

Thomas thomasfrobieter

😶‍🌫️
View GitHub Profile
@whizark
whizark / SassMeister-input.scss
Last active June 17, 2021 19:48
Sass: Creating Custom Scope & Scope-based Default Value #sass
// ----
// Sass (v3.4.5)
// Compass (v1.0.1)
// ----
// Sass: Creating custom scope & scope-based default value in Sass
//
// A use case using mixin.
// This is pseudo code so you need implement some code.
//
@larrybotha
larrybotha / A.markdown
Last active February 7, 2024 15:20
Fix SVGs not scaling in IE9, IE10, and IE11

Fix SVG in <img> tags not scaling in IE9, IE10, IE11

IE9, IE10, and IE11 don't properly scale SVG files added with img tags when viewBox, width and height attributes are specified. View this codepen on the different browsers.

Image heights will not scale when the images are inside containers narrower than image widths. This can be resolved in 2 ways.

Use sed in bash to remove width and height attributes in SVG files

As per this answer on Stackoverflow, the issue can be resolved by removing just the width and height attributes.