shithub: mycel

Download patch

ref: de9bad8d5776023db5d6823dff07bd9b8afa2d02
parent: a687c85de1959516bcd1c881a5a40a0078c81325
author: Philip Silva <[email protected]>
date: Tue Jan 12 17:20:53 EST 2021

ignore media print

--- a/style/stylesheets.go
+++ b/style/stylesheets.go
@@ -165,6 +165,9 @@
 		}
 
 		// for media queries
+		if strings.Contains(r.Prelude, "print") {
+			continue
+		}
 		if rMaxWidth.MatchString(r.Prelude) {
 			maxWidth, err := strconv.Atoi(rMaxWidth.FindStringSubmatch(r.Prelude)[1])
 			if err != nil {