Sha256: fd672bf020be633a25a903830b89cddc971db37a8072eb365b3476fa009de0ab

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

// Checkboxes
.input.boolean,
.checkbox-wrapper {
  display: block;

  input[type=checkbox] {
    position: absolute;
    left: -9999px;
  }

  .active {
    &:after {
      @include icon-stuff;
      content: fae-icon(check);
      position: absolute;
      top: 6px;
      left: 6px;
      font-size: 12px;
      color: $c-darkest-grey;
      cursor: pointer;
    }
  }
}

.checkbox {
  position: relative;
  padding: 0 20px 0 35px;
  margin: 0;
  cursor: pointer;
  display: inline-block;

  h6 {
    display: inline-block;
    padding-top: 0;
    padding-left: 6px;
  }
}

label.checkbox,
.checkbox label {
  padding-top: 6px; // Vertical align hack

  &:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    border: 1px solid $c-border;
    background: $c-white;
    cursor: pointer;
    border-radius: 2px;
  }
}

label.checkbox.focused:before,
.checkbox.focused label:before {
  border-color: $c-focus-border;
}

.checkbox-wrapper {
  &.-stacked {
    label:not(.control-label) {
      display: block;
      margin-bottom: 25px;
    }

    .checkbox {
      display: block;
    }
  }

  &.-inline {
    label:not(.control-label) {
      padding-top: 0;
      vertical-align: top;
      width: 190px;
      margin-bottom: 25px;
      margin-right: 10px;
    }

    .checkbox {
      vertical-align: top;
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fae-rails-3.0.0 app/assets/stylesheets/fae/modules/forms/_checkbox.scss
fae-rails-2.2.0 app/assets/stylesheets/fae/modules/forms/_checkbox.scss