Skip to content

Commit

Permalink
Media fix: Missing reboot found at last!
Browse files Browse the repository at this point in the history
- this patches what appears to be a years-long issue where some resets 
were missing for certain media elements including figure, img, & svg 
elements.
  • Loading branch information
ChippyWhips committed Jul 14, 2019
1 parent b7a44e1 commit 6d9dcca
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
node_modules
package-lock.json
2 changes: 1 addition & 1 deletion reboot.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 20 additions & 1 deletion reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,28 @@ video {


/*----------------------------------------------------------------------------*\
Figure reset (opinionated).
1. Change the fill color to match the text color in all browsers (opinionated).
2. Hide the overflow in IE.
\*----------------------------------------------------------------------------*/

svg {
fill: currentColor; /* 1 */

&:not(:root) {
overflow: hidden; /* 2 */
}
}

img,
svg {
display: block;
max-width: 100%;
}

img {
height: auto;
}

figure {
margin: 0;
}
Expand Down

0 comments on commit 6d9dcca

Please sign in to comment.