Sha256: 6f9a575c0ca4d553ed73749e9cfef8b2cfdee75da1526bcfec9cfd06759d0d23

Contents?: true

Size: 1.74 KB

Versions: 17

Compression:

Stored size: 1.74 KB

Contents

// Variables

$accordion-border: 3px solid $color-gray-lightest;

// Accordion Styles

.usa-accordion,
.usa-accordion-bordered {

  + .usa-accordion,
  + .usa-accordion-bordered {
    margin-top: 1rem;
  }

  > ul {
    color: $color-base;
    margin: 0;
    padding: 0;
    width: 100%;

    > li {
      background-color: $color-gray-lightest;
      font-family: $font-sans;
      list-style: none;
      margin-bottom: 6px;
      width: 100%;
    }
  }

  button[aria-expanded=false] {
    background-image: url('../images/icons/plus.png');
    background-image: url('../images/icons/plus.svg');
    background-repeat: no-repeat;
    // background-size: 1.3rem;
  }

  button {
    background-color: $color-gray-lightest;
    background-image: url('../images/icons/minus.png');
    background-image: url('../images/icons/minus.svg');
    background-position: right 3rem center;
    background-repeat: no-repeat;
    background-size: 13px;
    color: $color-base;
    cursor: pointer;
    display: inline-block;
    font-family: $font-sans;
    margin: 0;
    padding: {
      bottom: 1.5rem;
      left: 3rem;
      right: 5.5rem;
      top: 1.5rem;
    }
    width: 100%;

    &:focus {
      box-shadow: $focus-shadow;
    }

    &:hover {
      background-color: $color-gray-lighter;
      color: $color-base;
    }

    h1, h2, h3, h4, h5, h6 {
      margin: 0;
    }
  }
}

.usa-accordion-bordered {
  .usa-accordion-content {
    border: {
      bottom: $accordion-border;
      left: $accordion-border;
      right: $accordion-border;
    }
  }
}

.usa-accordion-content {
  display: block;
  background-color: white;
  overflow: auto;
  padding: 2rem;

  > *:first-child {
    margin-top: 0;
  }

  > *:last-child {
    margin-bottom: 0;
  }
  ul {
    padding-left:0;
  }
}

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
va_common-0.4.4 app/assets/stylesheets/components/_accordions.scss
va_common-0.4.3 app/assets/stylesheets/components/_accordions.scss
va_common-0.4.1 app/assets/stylesheets/components/_accordions.scss
va_common-0.4.0 app/assets/stylesheets/components/_accordions.scss
va_common-0.3.6 app/assets/stylesheets/components/_accordions.scss
va_common-0.3.5 app/assets/stylesheets/components/_accordions.scss
va_common-0.3.4 app/assets/stylesheets/components/_accordions.scss
va_common-0.3.3 app/assets/stylesheets/components/_accordions.scss
va_common-0.3.2 app/assets/stylesheets/components/_accordions.scss
va_common-0.3.0 app/assets/stylesheets/components/_accordions.scss
va_common-0.2.5 app/assets/stylesheets/components/_accordions.scss
va_common-0.2.4 app/assets/stylesheets/components/_accordions.scss
va_common-0.2.3 app/assets/stylesheets/components/_accordions.scss
va_common-0.2.2 app/assets/stylesheets/components/_accordions.scss
va_common-0.2.1 app/assets/stylesheets/components/_accordions.scss
va_common-0.2.0 app/assets/stylesheets/components/_accordions.scss
va_common-0.1.0 app/assets/stylesheets/components/_accordions.scss