Sha256: cb9ef5d69e3ebd1d01615e8d12dc0b678cf8f199395ee6c478967a280f633e34

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

.radio_collection--vertical,
.radio_collection--horizontal {
  input[type=radio] {
    position: absolute;
    left: -9999em;
  }
}

.radio_collection--vertical {
  .radio {
    label {
      display: inline;
      cursor: pointer;
      line-height: 1.75;

      &:after {
        content: '\a';
        white-space: pre;
      }
    }
  }
}

.radio_collection--horizontal {
  label:not(.control-label) {
    display: inline-block;
    margin-right: 50px;
    cursor: pointer;
  }
}

.radio_collection-bullet {
  position: relative;
  bottom: 3px;
  display: inline-block;
  vertical-align: middle;
  height: 22px;
  width: 22px;
  margin-right: 5px;
  background: $c-white;
  border: 1px solid $c-border;
  border-radius: 50%;

  &:before {
    @include transform( translate(-50%, -50%) );
    content: '';
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    height: 9px;
    width: 9px;
    background: $c-darkest-grey;
    border-radius: 50%;
  }

  input:checked + label &,
  input:checked + & {
    &:before {
      display: block;
    }
  }
}

.radio_collection.focused {
  .radio_collection-bullet {
    border-color: $c-focus-border;
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

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