<label class="">
    <input class="" type="checkbox">
    <span class="c-form-switcher u-absolute u-top u-left u-right u-bottom u-cursor-pointer"></span>

    <span class="c-form-label">
        Ho letto e accetto l'
        <a class="c-modal">
            informativa sulla privacy
        </a>
    </span>

    <!-- modal -->
    <div class="c-modal__dialog u-fixed u-top u-bottom u-right u-left o-bg-base">
        <div class="c-modal__wrap u-absolute u-bottom u-right u-left ">

            <div class="c-modal__textual u-relative u-mt-xlarge u-p-base o-bg-base u-flex u-justify-start u-items-center u-column">
                <div class="u-flex u-justify-between u-size-full o-divider o-divider--bottom u-pt-base">
                    <h2 class="u-heading-05 u-m-none">Allagamento fosso Bel Poggio 1 (foto Reporter Montesacro) 2</h2>
                    <span class="c-modal__close o-link-inverse u-p-xxsmall u-absolute u-radius-circle">
                        <svg class="o-icon o-icon--md u-cursor-pointer">
                            <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-x"></use>
                        </svg>
                    </span>
                </div>
                <div class="o-divider o-divider--bottom u-overflow-scroll">
                    <div class="u-py-none">
                        <p>Straripamento torrente Bel Poggio (foto Reporter Montesacro)</p>
                    </div>
                </div>
                <div class="u-pt-medium u-flex u-justify-end u-size-full u-wrap">
                    <button class="c-btn c-btn--default u-label-04 u-cursor-pointer u-mb-base u-ml-small">
                        Chiudi </button>
                    <button class="c-btn c-btn--primary u-label-04 u-cursor-pointer u-mb-base u-ml-small">
                        Richiedi info </button>
                </div>
            </div>

        </div>
    </div>
    <!-- end modal -->
</label>
<label class="{{ labelClass }}">
    <input class="{{ inputCheckboxClass }}" type="checkbox">
    <span class="c-form-switcher u-absolute u-top u-left u-right u-bottom u-cursor-pointer"></span>

    <span class="c-form-label">
        Ho letto e accetto l'
        <a class="c-modal">
            informativa sulla privacy
        </a>
    </span>

    <!-- modal -->
    <div class="c-modal__dialog u-fixed u-top u-bottom u-right u-left o-bg-base">
        <div class="c-modal__wrap u-absolute u-bottom u-right u-left ">
            
            <div class="c-modal__textual u-relative u-mt-xlarge u-p-base o-bg-base u-flex u-justify-start u-items-center u-column">
                <div class="u-flex u-justify-between u-size-full o-divider o-divider--bottom u-pt-base">
                    <h2 class="u-heading-05 u-m-none">{{title}}</h2>
                    <span class="c-modal__close o-link-inverse u-p-xxsmall u-absolute u-radius-circle">
                        <svg class="o-icon o-icon--md u-cursor-pointer">
                            <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-x"></use>
                        </svg>
                    </span>
                </div>
                <div class="o-divider o-divider--bottom u-overflow-scroll">
                    <div class="u-py-none">
                        <p>{{description}}</p>
                    </div>
                </div>
                <div class="u-pt-medium u-flex u-justify-end u-size-full u-wrap">
                    <button class="c-btn c-btn--default u-label-04 u-cursor-pointer u-mb-base u-ml-small">
                        {{action_one}} </button>
                    <button class="c-btn c-btn--primary u-label-04 u-cursor-pointer u-mb-base u-ml-small">
                        {{action_two}} </button>
                </div>
            </div>
            
        </div>
    </div>
    <!-- end modal -->
</label>
{
  "action": false,
  "media": "https://unsplash.it/600/338?random",
  "title": "Allagamento fosso Bel Poggio 1 (foto Reporter Montesacro) 2",
  "description": "Straripamento torrente Bel Poggio (foto Reporter Montesacro)",
  "action_one": "Chiudi",
  "action_two": "Richiedi info",
  "// labelClass": "c-form-switch u-relative",
  "// inputCheckboxClass": "u-none"
}
  • Content:
    // Name:            Modal
    // Description:     Modal of website
    //
    // Component:       `c-modal`
    //
    // Dependencies:    `settings/v7/colors.tokens`
    //                  `settings/v7/colors.themes`
    //                  `settings/v7/colors.mode`
    //                  `settings/v7/global`
    //                  `settings/v7/spacing.tokens`
    //
    // ========================================================================
    
    $modal-close-position: -12px;
    
    .c-modal {
      --modal-size: 90%;
    
      &__dialog {
        opacity: 0;
        visibility: hidden;
        background: rgba($ui-02, .5);
        transition: opacity .25s ease;
        @include z(clouds);
      }
    
      &__close {
        top: 1rem;
        right: 1rem;
        fill: $ui-02;
        @include z(high);
      }
    
      &__wrap {
        transition: top .5s ease-in-out;
        top: -50%;
      }
    
      input {
        &:checked {
          ~ .c-modal__dialog {
            opacity: 1;
            visibility: visible;
            .c-modal__wrap {
              top: 0;
            }
          }
        }
      }
    
      &__media {
        &__close {
          top: $modal-close-position;
          right: $modal-close-position;
          border: 2px solid $ui-01;
          background: $ui-02;
          @include z(high);
        }
        max-width: var(--modal-size);
        margin: 0 auto;
        @include bp(md) {
          --modal-size: 70%;
        }
      }
    
      &__content {
        background: $ui-01;
        border-radius: 2px;
      }
    
      &__footer {
        :first-child {
          margin-right: auto;
        }
        // background: $ui-01;
        border-radius: 2px;
      }
    
      &__textual {
        max-width: var(--modal-size);
        margin: 0 auto;
        max-height: 80vh;
        @include bp(md) {
          --modal-size: 50%;
        }
      }
    
      &__image {
        max-height: 90vh;
      } 
    
      &--orientation {
        display: none;
        height: 100vh;
        @include z(cover);
    
        @media (max-width: 768px) and (orientation: landscape) {
          display: flex;
        }
    
        height: 100vh;
        width: 100vw;
    
        .o-icon {
          animation: rotate 3s infinite ease-in-out;
        }
      }
      
    }
    
    
    
    
  • URL: /components/raw/modal/_modal.scss
  • Filesystem Path: src/lib/components/modal/_modal.scss
  • Size: 1.9 KB

No notes defined.