Sha256: 6935ca4f7d89c0e7c71f5216bc96c3a39dcf44a7cb813dce380c3f73bc74f0ea

Contents?: true

Size: 1.63 KB

Versions: 37

Compression:

Stored size: 1.63 KB

Contents

.c-simple-accordion {
    border: 0 !important; // Because of Foundation's bloat
    @include accordion-container;

    &.c-simple-accordion--nomargin {
      margin-bottom: 0;

      :last-child > .c-simple-accordion-content:last-child {
        padding-bottom: 0;
    }
  }
}

.c-simple-accordion-item {
    &:before {
        content: '' !important;
        display: none !important;
    }
    @include accordion-item;
}

.c-simple-accordion-title {
    @include accordion-title;
    display: block;
    padding-left: 2.5rem;
    border: 0; // override accordion-title

    &:hover,
    &:focus {
        color: $body-font-color;
        background: $white;
    }

    &:before {
        display: inline-block;
        width: 22px;
        height: 22px;
        line-height: 22px;
        right: auto;
        left: 0;
        margin-top: auto;
        transform: translateY(-50%);
        color: #fff;
        background: $primary-color;
        font-size: 1.75rem;
        text-align: center;
    }
}

.c-simple-accordion__headline {
  margin: 0;

  @include headerStyle('h2', alt);
}

.c-simple-accordion-content {
    border: 0 !important; // Because of Foundation's bloat, again
    @include accordion-content;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;

    h3 {
        color: $primary-color;
        font-size: 1.45rem;
        margin-bottom: 1.2em;
    }
}

.c-simple-accordion-content-block + .c-simple-accordion-content-block {
    margin-top: 3rem;
    @include breakpoint(mobile down) {
        margin-top: 2rem;
    }
}

:last-child:not(.is-active) > .c-simple-accordion-title {
    border: none;
}

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
jekyll-theme-pirati-8.0.0.pre.beta2 _sass/components/simple-accordion.scss
jekyll-theme-pirati-8.0.0.pre.beta1 _sass/components/simple-accordion.scss
jekyll-theme-pirati-8.0.0.pre.alpha6 _sass/components/simple-accordion.scss
jekyll-theme-pirati-8.0.0.pre.alpha5 _sass/components/simple-accordion.scss
jekyll-theme-pirati-8.0.0.pre.alpha4 _sass/components/simple-accordion.scss
jekyll-theme-pirati-8.0.0.pre.alpha3 _sass/components/simple-accordion.scss
jekyll-theme-pirati-8.0.0.pre.alpha2 _sass/components/simple-accordion.scss
jekyll-theme-pirati-8.0.0.pre.alpha1 _sass/components/simple-accordion.scss
jekyll-theme-pirati-7.7.1 _sass/components/simple-accordion.scss
jekyll-theme-pirati-7.7.0 _sass/components/simple-accordion.scss
jekyll-theme-pirati-7.6.2 _sass/components/simple-accordion.scss
jekyll-theme-pirati-7.6.1 _sass/components/simple-accordion.scss
jekyll-theme-pirati-7.6.0 _sass/components/simple-accordion.scss
jekyll-theme-pirati-7.5.0 _sass/components/simple-accordion.scss
jekyll-theme-pirati-7.4.0 _sass/components/simple-accordion.scss
jekyll-theme-pirati-7.3.0 _sass/components/simple-accordion.scss
jekyll-theme-pirati-7.2.0 _sass/components/simple-accordion.scss
jekyll-theme-pirati-7.1.1 _sass/components/simple-accordion.scss
jekyll-theme-pirati-7.0.0 _sass/components/simple-accordion.scss
jekyll-theme-pirati-6.9.0 _sass/components/simple-accordion.scss