Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1441318

    if you like to have gradient fillings for icons on enfold you can use that background-clip: text

    on all icons:

    [data-av_icon]:before {
      background-size: 100% 100%;
      background: var(--wp--preset--gradient--cool-to-warm-spectrum);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    as background you can use the existing css variable gradients – or any gradient you like.

    if you need to be more specific – than you had to use custom classes.

    #1441322

    Hey Guenter,

    Your code results like this on my side (added to base.css line 450) on ALB icon element:

    Best regards,
    Günter

    #1441340

    yes – all data-av_icons are influenced from this.

    but you can use that method aswell on headings:

    #top #wrap_all .all_colors h1, 
    #top #wrap_all .all_colors h2, 
    #top #wrap_all .all_colors h3, 
    #top #wrap_all .all_colors h4, 
    #top #wrap_all .all_colors h5, 
    #top #wrap_all .all_colors h6 {
      background-size: 100% 100% !important;
      background: var(--wp--preset--gradient--cool-to-warm-spectrum);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      display: inline-block;
    }

    #1441403

    Hi Günter,

    Thanks for sharing this.

    I only wanted to point, that your code does not apply to background of the icon as shown in the image of the first post but to the font.

    I add this idea to our dev repo – maybe it will become part in one of the next releases for some elements.

    Best regards,
    Günter

    #1441414

    yes – thats why i wrote “if you like to have gradient fillings for icons on enfold you can use that background-clip: text
    as I used an inverted icon in my example, it was misleading – sorry

    #1441423

    by the way – is see we do not need to go over the before pseudo class :

    this will work

    #top [data-av_icon] {
      background-size: 100% 100%;
      background: var(--wp--preset--gradient--cool-to-warm-spectrum);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    and to have that on iconbox_top: – without gradient on icon:

    #top .main_color.iconbox_top .iconbox_icon {
      background: var(--wp--preset--gradient--cool-to-warm-spectrum);
      -webkit-background-clip: unset;
      -webkit-text-fill-color: unset;
    }
    #1441424

    Hi,

    Did not check that. Thanks for clarifying.

    Best regards,
    Günter

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.