Sha256: 9b079eaf7518d0676f2e651d2ad5aebda32cf3b06de2d840aa131a1aed615ef3

Contents?: true

Size: 1.15 KB

Versions: 8

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-notice-content;
  }
}

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
fae-rails-2.1.0 app/assets/stylesheets/fae/modules/forms/_radio.scss
fae-railsz-2.1.0 app/assets/stylesheets/fae/modules/forms/_radio.scss
fae-rails-2.0.0 app/assets/stylesheets/fae/modules/forms/_radio.scss
fae-rails-1.7.1 app/assets/stylesheets/fae/modules/forms/_radio.scss
fae-rails-1.7.0 app/assets/stylesheets/fae/modules/forms/_radio.scss
fae-rails-1.6.0 app/assets/stylesheets/fae/modules/forms/_radio.scss
fae-rails-1.5.1 app/assets/stylesheets/fae/modules/forms/_radio.scss
fae-rails-1.5.0 app/assets/stylesheets/fae/modules/forms/_radio.scss