Sha256: 95e05e5609fc8906583375df5e5f9038bcfd91963b3998c570b24cab5d9281d2

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

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

// +table-row($white #eeeeee, (bottom, solid 1px black))
=table-row($value1, $value2)
  @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, $value2, $value3)
  +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

2 entries across 2 versions & 2 rubygems

Version Path
middleman-oulu-0.5.16 assets/stylesheets/settings/mixins/_table.css.sass
oulu-rails-0.5.16 vendor/assets/stylesheets/settings/mixins/_table.css.sass