<div class="sidebar-block">
    <div class="sidebar-block__heading ">
        <h2 class="sidebar-block__title dashboard-nav__title">
            Compare Products
        </h2>

        <span class="sidebar-block__counter">
            3 items
        </span>
    </div>
    <ol class="list sidebar-block__list">
        <li class="sidebar-block__item">
            <button class="button button--icon sidebar-block__remove margin-right-xs" aria-label="Remove product from compare" title="Remove product from compare">
        <svg
    class="icon icon sidebar-block__remove-icon"
    
        role="img"
>
        <title>Close</title>
    <use xlink:href="/images/icons-sprite.svg#close"></use>
</svg>

</button>

            <a class="link sidebar-block__link" href="#" title="Chaz Kangeroo Hoodie">
    Chaz Kangeroo Hoodie
</a>

        </li>
        <li class="sidebar-block__item">
            <button class="button button--icon sidebar-block__remove margin-right-xs" aria-label="Remove product from compare" title="Remove product from compare">
        <svg
    class="icon icon sidebar-block__remove-icon"
    
        role="img"
>
        <title>Close</title>
    <use xlink:href="/images/icons-sprite.svg#close"></use>
</svg>

</button>

            <a class="link sidebar-block__link" href="#" title="Bruno Compete Hoodie">
    Bruno Compete Hoodie
</a>

        </li>
        <li class="sidebar-block__item">
            <button class="button button--icon sidebar-block__remove margin-right-xs" aria-label="Remove product from compare" title="Remove product from compare">
        <svg
    class="icon icon sidebar-block__remove-icon"
    
        role="img"
>
        <title>Close</title>
    <use xlink:href="/images/icons-sprite.svg#close"></use>
</svg>

</button>

            <a class="link sidebar-block__link" href="#" title="Hero Hoodie">
    Hero Hoodie
</a>

        </li>
    </ol>
    <div class="sidebar-block__actions">
        <a class="link sidebar-block__action" href="#" title="Compare">
    Compare
</a>

        <button class="button button--link sidebar-block__action" type="button">
    Clear all
</button>

    </div>
</div>
<div class="sidebar-block">
    <div class="sidebar-block__heading {{ headingClass }}">
        {{ render '@heading' title }}
        <span class="sidebar-block__counter">
            {{ qty }}
        </span>
    </div>
    <ol class="list sidebar-block__list">
        {{#each product}}
            <li class="sidebar-block__item">
                {{ render '@button--icon' ../removeButton }}
                {{ render '@link' productName }}
            </li>
        {{/each}}
    </ol>
    <div class="sidebar-block__actions">
        {{ render '@link' compareLink }}
        {{ render '@button' clearButton }}
    </div>
</div>
{
  "headingClass": "",
  "title": {
    "tag": "h2",
    "class": "heading--second-level sidebar-block__title",
    "text": "Compare Products"
  },
  "qty": "3 items",
  "removeButton": {
    "tag": "button",
    "attributes": "aria-label=\"Remove product from compare\" title=\"Remove product from compare\"",
    "class": "sidebar-block__remove margin-right-xs",
    "icon": {
      "id": "close",
      "title": "Close",
      "class": "icon sidebar-block__remove-icon"
    }
  },
  "product": [
    {
      "productName": {
        "class": "sidebar-block__link",
        "href": "#",
        "text": "Chaz Kangeroo Hoodie"
      }
    },
    {
      "productName": {
        "class": "sidebar-block__link",
        "href": "#",
        "text": "Bruno Compete Hoodie"
      }
    },
    {
      "productName": {
        "class": "sidebar-block__link",
        "href": "#",
        "text": "Hero Hoodie"
      }
    }
  ],
  "compareLink": {
    "href": "#",
    "class": "sidebar-block__action",
    "text": "Compare"
  },
  "clearButton": {
    "tag": "button",
    "attributes": "type=\"button\"",
    "class": "button--link sidebar-block__action",
    "text": "Clear all"
  }
}
  • Content:
    $sidebar-block__padding                     : 0 0 $spacer--large !default;
    $sidebar-block__min-height                  : 150px !default;
    $sidebar-block__min-height--loaded          : auto !default;
    
    $sidebar-block__heading-border              : $border-base !default;
    $sidebar-block__heading-border-width        : 0 0 $border-width-base !default;
    $sidebar-block__heading-margin              : 0 0 $spacer--medium !default;
    $sidebar-block__heading-padding             : 0 0 $spacer !default;
    
    $sidebar-block__title-font-family           : $font-family-base !default;
    $sidebar-block__title-font-weight           : $font-weight-bold !default;
    $sidebar-block__title-font-size             : $font-size-medium !default;
    
    $sidebar-block__list-margin                 : 0 0 $spacer 0 !default;
    
    $sidebar-block__item-padding                : 0 0 $spacer !default;
    
    $sidebar-block__index-margin                : 0 $spacer !default;
    $sidebar-block__index-margin\@large         : 0 $spacer 0 $spacer--extra-small !default;
    $sidebar-block__index-font-weight           : $font-weight-bold !default;
    $sidebar-block__index-min-width             : $spacer--medium !default;
    
    $sidebar-block__icon-fill                   : $red !default;
    $sidebar-block__icon-fill--active           : $theme-second !default;
    
    $sidebar-block__product-image-max-width     : 72px !default;
    $sidebar-block__product-image-margin        : 0 $spacer--medium 0 0 !default;
    
    $sidebar-block__price-margin                : 0 !default;
    $sidebar-block__price-font-weight           : $font-weight-bold !default;
    
    $sidebra-block__action-margin               : 0 $spacer--small !default;
    $sidebra-block__action-margin\@large        : 0 $spacer--small 0 0 !default;
    $sidebra-block__action-font-size            : $font-size-medium !default;
    $sidebra-block__action-font-weight          : $font-weight-bold !default;
    $sidebra-block__action-text-decoration      : underline !default;
    $sidebra-block__action-text-decoration-hover: underline !default;
    $sidebra-block__action-text-align           : left !default;
    
  • URL: /components/raw/sidebar-block/_sidebar-block-variables.scss
  • Filesystem Path: build/components/Organisms/sidebar-block/_sidebar-block-variables.scss
  • Size: 2.1 KB
  • Content:
    @import 'sidebar-block-variables';
    
    .sidebar-block {
        position: relative;
        padding: $sidebar-block__padding;
        min-height: $sidebar-block__min-height;
    
        &--hidden {
            display: none;
        }
    
        &--loaded {
            min-height: $sidebar-block__min-height--loaded;
        }
    
        &__heading {
            display: flex;
            justify-content: space-between;
            align-items: center;
    
            &--with-border {
                border: $sidebar-block__heading-border;
                border-width: $sidebar-block__heading-border-width;
                margin: $sidebar-block__heading-margin;
                padding: $sidebar-block__heading-padding;
            }
        }
    
        &__title {
            font-family: $sidebar-block__title-font-family;
            font-weight: $sidebar-block__title-font-weight;
            font-size: $sidebar-block__title-font-size;
        }
    
        &__list {
            margin: $sidebar-block__list-margin;
            counter-reset: sidebarIndex;
            &--hidden {
                display: none;
            }
        }
    
        &__item {
            display: flex;
            align-items: center;
            padding: $sidebar-block__item-padding;
    
            &:before {
                content: counter(sidebarIndex) ".";
                counter-increment: sidebarIndex;
                margin: $sidebar-block__index-margin;
                min-width: $sidebar-block__index-min-width;
                font-weight: $sidebar-block__index-font-weight;
                @include mq($screen-l) {
                    margin: $sidebar-block__index-margin\@large;
                }
            }
        }
    
        &__remove {
            &:hover,
            &.focus-visible {
                .icon {
                    fill: $sidebar-block__icon-fill--active;
                }
            }
    
            .icon {
                fill: $sidebar-block__icon-fill;
            }
    
        }
    
        &__product-image {
            width: $sidebar-block__product-image-max-width;
            margin: $sidebar-block__product-image-margin;
        }
    
        &__counter {
            white-space: nowrap;
        }
    
    
        &__hidden {
            display: none;
        }
    
        &__actions {
            display: flex;
            flex-flow: row wrap;
        }
    
        &__action {
            @include font-padding($font-size-medium, 48px);
            display: inline-block;
            min-height: initial;
            margin: $sidebra-block__action-margin;
            font-size: $sidebra-block__action-font-size;
            font-weight: $sidebra-block__action-font-weight;
            text-decoration: $sidebra-block__action-text-decoration;
            text-align: $sidebra-block__action-text-align;
            @include mq($screen-l) {
                margin: $sidebra-block__action-margin\@large;
            }
    
            &:hover {
                text-decoration: $sidebra-block__action-text-decoration-hover;
            }
        }
    
        .price-as-configured {
            margin: $sidebar-block__price-margin;
            font-weight: $sidebar-block__price-font-weight;
        }
    }
    
  • URL: /components/raw/sidebar-block/_sidebar-block.scss
  • Filesystem Path: build/components/Organisms/sidebar-block/_sidebar-block.scss
  • Size: 2.8 KB

There are no notes for this item.