Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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

    #1471256

    declare an absolute Value – for width f.e.: 40px and then your max-width value

    #1471273

    Thank 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

    #1471277

    As a participant as you i can not see private content – may we others see the page it concerns?

    #1471280

    Yes of course: The page it concerns is https://claritymatters.nl/2024/

    #1471281

    it 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;
    }
    #1471289

    Hi,

    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

    #1471915

    Thank you Ismael and Guenni007,
    I have it working. After I found that I used wrong classes for the container I chanced that into the right ones.

    Thank you for thinking with me.

    Regards Woutski

    #1471942

    Hi,

    Thanks for the update. Should we close this thread for now then?

    Best regards,
    Rikard

    #1471966

    Yes le’s close close this thread.

    Regards Woutski

    #1472002

    Hi,

    Thanks for letting us know. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘sizing .svg on telephone’ is closed to new replies.