RSS Feed/News SVGZ logo hidden if screen width is too small

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,642
Points
823

Reputation:

This CSS in app_nav.less causes an SVGZ image to be hidden if the extension is .svgz:

Code:

&:not([src$=".svg"])

it probably makes more sense for the selector to be a "contains" rather than "ends with" because the .svgz extension is a valid SVG (it simply means it's compressed):

Code:

&:not([src*=".svg"])

Either way as it is now, the logo disappears if it's a .svgz image, but doesn't disappear (as expected) if it's .svg

Continue reading...
 
Status
Not open for further replies.
Top