Sha256: 6062e436423efb57c4cc6a532219d43d9d8e847cfdbef325f715257ed6c45059

Contents?: true

Size: 1.16 KB

Versions: 40

Compression:

Stored size: 1.16 KB

Contents

=table-cell-assign($value)
  @if list($value)
    @if unit_number(nth($value, 1))
      +rem('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)
  +box-sizing(border-box)
  @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

40 entries across 40 versions & 2 rubygems

Version Path
middleman-oulu-0.6.8 assets/stylesheets/settings/mixins/_table.sass
middleman-oulu-0.6.7 assets/stylesheets/settings/mixins/_table.sass
middleman-oulu-0.6.6 assets/stylesheets/settings/mixins/_table.sass
middleman-oulu-0.6.5 assets/stylesheets/settings/mixins/_table.sass
oulu-rails-0.6.5 vendor/assets/stylesheets/settings/mixins/_table.sass
oulu-rails-0.6.4 vendor/assets/stylesheets/settings/mixins/_table.sass
middleman-oulu-0.6.4 assets/stylesheets/settings/mixins/_table.sass
oulu-rails-0.6.3 vendor/assets/stylesheets/settings/mixins/_table.sass
middleman-oulu-0.6.3 assets/stylesheets/settings/mixins/_table.sass
middleman-oulu-0.6.2 assets/stylesheets/settings/mixins/_table.sass
oulu-rails-0.6.2 vendor/assets/stylesheets/settings/mixins/_table.sass
middleman-oulu-0.6.1 assets/stylesheets/settings/mixins/_table.sass
oulu-rails-0.6.0 vendor/assets/stylesheets/settings/mixins/_table.sass
middleman-oulu-0.5.37 assets/stylesheets/settings/mixins/_table.sass
oulu-rails-0.5.37 vendor/assets/stylesheets/settings/mixins/_table.sass
middleman-oulu-0.5.36 assets/stylesheets/settings/mixins/_table.sass
middleman-oulu-0.5.35 assets/stylesheets/settings/mixins/_table.sass
oulu-rails-0.5.34 vendor/assets/stylesheets/settings/mixins/_table.sass
oulu-rails-0.5.33 vendor/assets/stylesheets/settings/mixins/_table.sass
middleman-oulu-0.5.32 assets/stylesheets/settings/mixins/_table.sass