-
AuthorPosts
-
November 13, 2024 at 4:34 pm #1471252
Hi,
The script Ismael sent me for sizing the .svg seemed to work and I was very happy with it.
@media only screen and (max-width: 767px) {
/* Add your Mobile Styles here */
.av-4htruh-aeabf568c97bc031467ccc24ed3ff2ab, .av-31x6k1-7fb95fe73764fba5b214f313d3f98aa7, .av-2b5ymp-559c7e72ca93c0db26ae73506c5bb616, .av-jmo1d-2e71f49f79ce34153a1617f697fe4d5a {
max-width: 50%;
}
}However I had to add one more Icon and since then some icons are big and some are small. The items are built in a content section in where there is a column of 20% In that column is a picture element in where the icon.svg are. All icons are 282 X 204 px. Even when I copy a good one it is displayed wrong. I checked everything over and over again and even tried a new page. Nothing seemes to work.
On a normal size screen it works fine but as soon as I see it on a telephone I see different sizes of the icons
Please help me out,
Cheers Woutski
November 13, 2024 at 4:54 pm #1471256declare an absolute Value – for width f.e.: 40px and then your max-width value
November 13, 2024 at 8:57 pm #1471273Thank you Guenni
Changed it to:
/* Add your Mobile Styles here */
.av-4htruh-aeabf568c97bc031467ccc24ed3ff2ab, .av-31x6k1-7fb95fe73764fba5b214f313d3f98aa7, .av-2b5ymp-559c7e72ca93c0db26ae73506c5bb616, .av-jmo1d-2e71f49f79ce34153a1617f697fe4d5a {
width: 200px;
max-width: 300px;
}
}Has no effect. 3 icons are big and two are small
November 13, 2024 at 10:43 pm #1471277As a participant as you i can not see private content – may we others see the page it concerns?
November 13, 2024 at 11:37 pm #1471280Yes of course: The page it concerns is https://claritymatters.nl/2024/
November 13, 2024 at 11:42 pm #1471281it concerns the “how i add value” icons ?
@media only screen and (max-width: 767px) { #top.page-id-289 img[src*=".svg"] { width: 150px; } }
another hint:
i wouldn’t have for each an own color-section.
You can do that all “how i add value” in one color section. To better select the color section give a custom class to it and tell the img to have a specific width.
___________________this is a bit offtopic
because you do not have a script that converts img svgs to inline svgs – the following does not affect you directly. But if you also work with svgs as inline svgs, you have to think about the graphic styles:btw: as inline svg files this would not work – because all these svg files got the same classes inside – but with different declarations!
( new illustrator standard class: cls-index ) so they will disturb each other/***** claritymatters-icons_icon-compelling-story.svg *****/ .cls-1 { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4px; } .cls-2 { fill: #2ec4ed; } /***** claritymatters-content-roadmap.svg *****/ .cls-1 { fill: #fff; } .cls-2, .cls-3 { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4px; } .cls-4 { fill: #2ec4ed; } .cls-3 { stroke-dasharray: 12; }
November 14, 2024 at 4:39 am #1471289Hi,
Thank you for the inquiry.
You can also assign custom cssclass names to the Image element, allowing you to target them specifically. Please check the documentation below for more info: https://kriesi.at/documentation/enfold/add-custom-css/#enable-custom-css-class-name-support
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.