Sha256: 37528ca37314fe35b92290eb6a6fda6b2cbc5b91a3043f32f95c475e0ad67d48

Contents?: true

Size: 1.13 KB

Versions: 102

Compression:

Stored size: 1.13 KB

Contents

=table-cell-assign($value)
  @if list($value)
    @if unit_number(nth($value, 1))
      padding: $value
    @if direction(nth($value, 1))
      +padding(nth($value, 1), nth($value, 2))
  white-space: if(white_space($value), $value, null)
  background-color: if(color($value), $value, null)
  vertical-align: if(vertical_align($value), $value, null)

// +table-row($white #eeeeee, (bottom, solid 1px black))
=table-row($value1: nul, $value2: nul)
  @if $value1
    @if list($value1)
      &:nth-child(odd)
        background-color: nth($value1, 1)
      &:nth-child(even)
        background-color: nth($value1, 2)
    @else if color($value1)
      background-color: nth($value1, 1)
  @if $value2
    +border(nth($value2, 1), nth($value2, 2))

// +table-cell(middle (12px 16px) no_wrap $white, (14px 1.8 1.4em, black bold center), (bottom, solid 1px black))
=table-cell($value1: null, $value2: null, $value3: null)
  @if $value1
    @for $i from 1 through length($value1)
      +table-cell-assign(nth($value1, $i))
  @if $value2
    +text-block(nth($value2, 1), optional_nth($value2, 2, false))
  @if $value3
    +border(nth($value3, 1), nth($value3, 2))

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
oulu-0.19.1 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.19.0 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.18.5 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.18.4 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.18.3 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.18.2 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.18.1 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.18.0 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.17.9 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.17.8 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.17.7 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.17.6 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.17.4 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.17.3 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.17.2 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.17.1 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.17.0 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.16.9 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.16.8 app/assets/stylesheets/settings/mixins/_table.sass
oulu-0.16.7 app/assets/stylesheets/settings/mixins/_table.sass