Prevent blowing up SVG images that are meant to be small.
adjust svg sizes (global) by coolslutguy420_2nd-ressurection
Details
Authorcoolslutguy420_2nd-ressurection
LicenseNo License
CategoryGlobal
Created
Updated
Size550 B
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
svg section of code taken from this css stylesheet https://waldyrious.net/downstyler/
Source code
/* ==UserStyle==
@name adjust svg sizes (global)
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Prevent blowing up SVG images that are meant to be small
@author Me
==/UserStyle== */
@-moz-document url-prefix("http"), url-prefix("https") {
/* Prevent blowing up SVG images that are meant to be small */
*[class*="social"] svg, *[class*="icon"] svg, svg[class*="icon"], img[class*="emoji"][src$=".svg"] { max-height: 30px; }
*[class*="logo" i] svg, *[id*="logo" i] svg { max-width: 100px; }
}