Medi Spiegelberg Member
@medi · Joined 7 years ago · 24 posts · 4 topics · 0 reputation
Badges
Recent posts
-
Override blueprints.yaml from plugin
· 4 years ago
Hello @pmoreno ! Have you tried to clone the plugin and renaming the Class name in the plugin main php file ? I've never done that personally... but I would follow the same logic as in this section :
-
Dark mode with JS script and → images / pictures
· 4 years ago
In the end I'm gonna use CSS -webkit-filter : invert(.5) filter : invert(.5) That's much less work Thank you all for your time !
-
Dark mode with JS script and → images / pictures
· 4 years ago
Here's what I would come up in the final output : <picture> <source srcset="dark-image.jpg" media="(prefers-color-scheme: dark)"> <img src="light-image.jpg" alt="logo of blabla">
-
Dark mode with JS script and → images / pictures
· 4 years ago
@Karmalakas: it interact with CSS exactly the same way any other element does - via style and/or class attributes Apparently you can change the scr attribute according to CSS conditions. In my case I
-
Dark mode with JS script and → images / pictures
· 4 years ago
@pamtbaau: @medi, If you have a js script that runs when switching between dark/light theme, why not have js also search for <picture> and change its src attribute? The script is active on the
-
Dark mode with JS script and → images / pictures
· 4 years ago
I'm discovering this "Art Direction" help to you right now. It isn't necessary for now. And could be useful in the future ! In any case, I'll check that and implement stuff that can only add up to GRA
-
Dark mode with JS script and → images / pictures
· 4 years ago
Thanks a lot @pamtbaau for the rephrasing. It's very helpful and so I would like to know how to generate a <picture> in Markdown, by using the common  and finally making i
-
Dark mode with JS script and → images / pictures
· 4 years ago
Good call. Thanks ! But in fact GRAV doesn't generate a <picture> tag when calling  in content. Instead it's the classic “img” tag.
-
Dark mode with JS script and → images / pictures
· 4 years ago
Hello Gravpals, Currently I'm watching some tutorials on how to place dynamic html <picture> tags with the ability to change the src attribute according to some conditions (CSS attributes in my
-
Twig Extensions on a Streamed theme
· 4 years ago
After some research and rubberducksplaning my issue out loud 😄 I finally got it working !! While trying different work-arounds I commented out this line: <input type="hidden" id="redirect" name="re