<div class="modal-wrapper js-modal" id="country-identifier">
    <div class="modal-overlay js-modal-overlay"></div>
    <div class="modal modal--country-identifier modal--mobile-overlay">
        <div class="modal__inner">
            <button class="modal__close js-modal-close-button">
        <svg class="icon icon--close-large">
  <use xlink:href="/assets/icons/icons.svg#close-large"></use>
</svg>

      </button>
            <span class="modal__title">Choose Your Country</span>
            <div class="modal__content">
                <div class="country-identifier">
                    <ul class="country-identifier__options">
                        <li class="country-identifier__option">
                            <a class="country-identifier__option-link" href="#">
                <img class="country-identifier__option-flag" src="/assets/images/flag-us.png">
                <span class="country-identifier__option-label">Visit USA Website</span>
              </a>
                        </li>
                        <li class="country-identifier__option">
                            <a class="country-identifier__option-link" href="#">
                <img class="country-identifier__option-flag" src="/assets/images/flag-ca.png">
                <span class="country-identifier__option-label">Visit Canada Website</span>
              </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal-wrapper js-modal" id="{{id}}">
  <div class="modal-overlay js-modal-overlay"></div>
  <div class="modal modal--{{id}} modal--mobile-overlay">
    <div class="modal__inner">
      <button class="modal__close js-modal-close-button">
        {{render '@icons--close-large'}}
      </button>
      {{#if title}}
      <span class="modal__title">{{title}}</span>
      {{/if}}
      <div class="modal__content">
        {{#if description}}
        <p class="modal__description">{{description}}</p>
        {{/if}}
        <div class="country-identifier">
          <ul class="country-identifier__options">
            {{#each options}}
            <li class="country-identifier__option">
              <a class="country-identifier__option-link" href="{{this.path}}">
                <img class="country-identifier__option-flag" src="{{flag}}">
                <span class="country-identifier__option-label">{{label}}</span>
              </a>
            </li>
            {{/each}}
          </ul>
          {{#if callToAction}}
          <a class="country-identifier__call-to-action" href="{{callToAction.path}}">
            {{callToAction.label}}
            {{render '@icons--arrow-right'}}
          </a>
          {{/if}}
        </div>
      </div>
    </div>
  </div>
</div>
{
  "modal": true,
  "id": "country-identifier",
  "title": "Choose Your Country",
  "description": null,
  "options": [
    {
      "flag": "/assets/images/flag-us.png",
      "label": "Visit USA Website",
      "path": "#"
    },
    {
      "flag": "/assets/images/flag-ca.png",
      "label": "Visit Canada Website",
      "path": "#"
    }
  ],
  "callToAction": null,
  "zeal": true
}
  • Content:
    .modal.modal--country-identifier {
      .modal__inner {
        max-width: 700px;
        min-height: 390px;
    
        @include breakpoint($breakpoint-md) {
          min-height: 300px;
        }
      }
    
      .modal__content {
        max-width: 520px;
        margin: 0 auto;
        padding: 10px;
      }
    
      .country-identifier__options {
        position: relative;
        bottom: map-get($country-identifier-options-bottom, sm);
    
        @include breakpoint($breakpoint-md) {
          bottom: map-get($country-identifier-options-bottom, md);
        }
      }
    
      .modal__description {
        text-align: center;
    
        @include breakpoint($page-width-max) {
          margin-top: 10px;
        }
      }
    }
    
    .country-identifier {
      text-align: center;
    }
    
    .country-identifier__options {
      @include reset-list;
    
      @include breakpoint($breakpoint-md) {
        display: table;
        width: 100%;
        table-layout: fixed;
      }
    }
    
    .country-identifier__option {
      @include breakpoint($breakpoint-md) {
        display: table-cell;
      }
    }
    
    .country-identifier__option-link,
    .country-identifier__call-to-action {
      transition: color $transition-standard;
      color: $color-darkest;
      font-size: 1.4rem;
      line-height: 2.0rem;
      text-decoration: none;
    
      &:hover {
        color: $color-primary;
      }
    }
    
    .country-identifier__option-link {
      display: block;
      margin: 40px 0;
    
      @include breakpoint($breakpoint-md) {
        margin: 30px 0 0;
      }
    
      @include breakpoint($breakpoint-xl) {
        margin: 24px 0 0;
      }
    }
    
    .country-identifier__option-flag {
      width: 40px;
      height: auto;
      margin: 0 auto;
    }
    
    .country-identifier__option-label {
      display: block;
      margin-top: 10px;
    
      @include breakpoint($breakpoint-xl) {
        margin-top: 7px;
      }
    }
    
    .country-identifier__call-to-action {
      display: block;
      margin-top: 60px;
    
      .icon {
        width: 4px;
        height: 8px;
        padding-left: 5px;
        transition: fill $transition-standard;
      }
    
      &:hover {
        .icon {
          fill: $color-primary;
        }
      }
    
      @include breakpoint($breakpoint-md) {
        margin-top: 50px;
      }
    }
    
  • URL: /components/raw/country-identifier/country-identifier.scss
  • Filesystem Path: src/components/01-elements/modals/country-identifier/country-identifier.scss
  • Size: 2 KB

There are no notes for this item.