Skip to content

adjust svg sizes (global) by coolslutguy420_2nd-ressurection

Screenshot of adjust svg sizes (global)

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

Prevent blowing up SVG images that are meant to be small.

Notes

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; }
}

Reviews

No reviews yet.