Sha256: e8823aea0f69fcc1df3140fe6d16ae9a696d8dda840ddeb28c5173cf533e77d4

Contents?: true

Size: 1.94 KB

Versions: 4

Compression:

Stored size: 1.94 KB

Contents

// Checkboxes
.input.boolean,
.checkbox_collection--vertical,
.checkbox_collection--horizontal {
  display: block;

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

  .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:before,
  .checkbox label:before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    height: 25px;
    width: 25px;
    border: 1px solid $c-border;
    background: $c-form-checkbox-bg;
    cursor: pointer;

    @include border-radius(2px);
  }

  .js-active {
    &:before {
      border-color: $c-custom-highlight;
    }

    &:after {
      @extend .icon-check:before;
      position: absolute;
      top: -1px;
      left: 3px;
      font-size: 18px;
      color: $c-custom-highlight;
      cursor: pointer;

      @include icon-stuff();
    }
  }
}

.checkbox_styled {
  display: inline-block;

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

  .checkbox {
    display: inline-block;
    height: 20px;
    width: 20px;
    padding: 2px 0 0 2px;
    border: 1px solid $c-border;
    margin-bottom: 0;
    font-size: 13px;
    color: $c-text-heavy;
    background: $c-form-checkbox-bg;
    cursor: pointer;

    @include border-radius(2px);

    &:before {
      visibility: hidden;
    }

    &.js-active:before {
      visibility: visible;
    }
  }
}

.checkbox_collection--vertical {
  &.checkbox_collection--vertical {
    label {
      display: block;
      margin-bottom: 25px;
    }
  }

  .checkbox {
    display: block;
  }
}

.checkbox_collection--horizontal {
  &.checkbox_collection--horizontal {
    label {
      vertical-align: top;
      width: 190px;
      margin-bottom: 25px;
      margin-right: 10px;
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fae-rails-1.2.5 app/assets/stylesheets/fae/modules/forms/_checkbox.scss
fae-rails-1.2.4 app/assets/stylesheets/fae/modules/forms/_checkbox.scss
fae-rails-1.2.3 app/assets/stylesheets/fae/modules/forms/_checkbox.scss
fae-rails-1.2.2 app/assets/stylesheets/fae/modules/forms/_checkbox.scss