<div class="color-circle-icon color-circle-icon--orange color-circle-icon--big">
    <span class="color-circle-icon__icon">
        <svg width="6" height="12" viewBox="0 0 6 12" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path class="_mark icon-right-chevron__shape" fill-rule="evenodd" clip-rule="evenodd" d="M0.400059 0.200059C0.841887 -0.131312 1.46869 -0.041769 1.80006 0.400059L6.00006 6.00006L1.80006 11.6001C1.46869 12.0419 0.841887 12.1314 0.400059 11.8001C-0.0417684 11.4687 -0.131312 10.8419 0.200059 10.4001L3.50006 6.00006L0.200059 1.60006C-0.131312 1.15823 -0.0417684 0.53143 0.400059 0.200059Z" fill="black" />
        </svg>
    </span>
</div>
<div class="color-circle-icon color-circle-icon--{{ background|default('orange') }} color-circle-icon--{{ size|default('big') }}">
    {% if icon %}
        <span class="color-circle-icon__icon">
            {% include 'bits/icons/'~ icon.name ~'.twig' %}
        </span>
    {% endif %}
</div>
{
  "background": "orange",
  "icon": {
    "name": "right-chevron"
  }
}
  • Content:
    .color-circle-icon
        --backgroundColor orange
        --iconColor white
        --iconSize 24px
    
        &--orange
            --backgroundColor orange
    
        &--blue
            --backgroundColor blue500
    
        &--small
            --iconSize 16px
    
        &--big
            --iconSize 24px
    
        align-items center
        background-color var(--backgroundColor)
        border 2px solid var(--borderColor)
        border-radius 50%
        display flex
        justify-content center
        height 48px
        width 48px
    
        &__icon
            display flex
    
        &__icon > svg
            height var(--iconSize)
            width var(--iconSize)
    
        &__icon > svg > path
            fill var(--iconColor)
    
    
  • URL: /components/raw/color-circle-icon/color-circle-icon.styl
  • Filesystem Path: patterns/bits/color-circle-icon/color-circle-icon.styl
  • Size: 635 Bytes

No notes defined.