Sha256: 1c83e68a1ccdd3d782564ea651847cd3b221b3071369b8965d1287548e0dac2c

Contents?: true

Size: 903 Bytes

Versions: 8

Compression:

Stored size: 903 Bytes

Contents

%inline-label
  display: inline-block
  color: #404040
  font: 200 1.0rem $default
  vertical-align: top
  font-size: 2.1em

=checkbox-columns($h: 40px, $cols: 1)
  width: 100%
  display: flex
  flex-wrap: wrap
  vertical-align: top
  line-height: 1em
  padding-top: 2px
  .field
    display: inline-block
    line-height: $h
    min-height: $h
    padding: 0
    margin: 0 0 10px 1%
    border: none
    clear: none
  .checkbox, .radio
    line-height: $h
    & + label
      line-height: $h
  label
    line-height: $h
  .other
    width: 100%
    clear: both
    label
      @extend %inline-label
      line-height: 40px
      margin: 0 0 0 10px
    .text
      width: 70%
      margin: 0px 0 0 8px
  @if $cols == 1
    .field
      flex-basis: 100%
  @if $cols == 2
    .field
      flex-basis: 48%
  @if $cols == 3
    .field
      flex-basis: 32%
  @if $cols == 4
    .field
      flex-basis: 24%

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
study_engine-0.3.1 app/assets/stylesheets/study_engine/mixins/_checkbox-columns.sass
study_engine-0.3.0 app/assets/stylesheets/study_engine/mixins/_checkbox-columns.sass
study_engine-0.2.2 app/assets/stylesheets/study_engine/mixins/_checkbox-columns.sass
study_engine-0.2.1 app/assets/stylesheets/study_engine/mixins/_checkbox-columns.sass
study_engine-0.2.0 app/assets/stylesheets/study_engine/mixins/_checkbox-columns.sass
study_engine-0.1.1 app/assets/stylesheets/study_engine/mixins/_checkbox-columns.sass
study_engine-0.1.0 app/assets/stylesheets/study_engine/mixins/_checkbox-columns.sass
study_engine-0.0.2 app/assets/stylesheets/study_engine/mixins/_checkbox-columns.sass