Sha256: 730952d2136b93cc599905ddc3807da09823f3354123ec4192fdce0e4b24c606

Contents?: true

Size: 1.08 KB

Versions: 11

Compression:

Stored size: 1.08 KB

Contents

@import "compass/support";

@mixin outer-table-borders($width: 2px, $color: black) {
  border: $width solid $color;
  thead {
    th {
      border-bottom: $width solid $color; } }
  tfoot {
    th, td {
      border-top: $width solid $color; } }
  th {
    &:first-child #{if(support-legacy-browser(ie, "6"), ', &.first', null)} {
      border-right: $width solid $color; } } }

@mixin inner-table-borders($width: 2px, $color: black) {
  th, td {
    border: {
      right: $width solid $color;
      bottom: $width solid $color;
      left-width: 0px;
      top-width: 0px; };
    &:last-child {
      border-right-width: 0px; }

    // IE8 ignores rules that are included on the same line as :last-child
    // see http://www.richardscarrott.co.uk/posts/view/ie8-last-child-bug for details
    @if support-legacy-browser(ie, "8") {
      &.last {
        border-right-width: 0px; } } }

  tbody, tfoot {
    tr:last-child {
      th, td {
        border-bottom-width: 0px; } }
    @if support-legacy-browser(ie, "8") {
      tr.last {
        th, td {
          border-bottom-width: 0px; } } } } }

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
compass-core-1.0.0.alpha.16 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.0.0.alpha.15 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.0.0.alpha.14 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.0.0.alpha.13 stylesheets/compass/utilities/tables/_borders.scss
compass-0.13.alpha.12 frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss
compass-0.13.alpha.10 frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss
compass-0.13.alpha.9 frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss
compass-0.13.alpha.8 frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss
compass-0.13.alpha.7 frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss
compass-0.13.alpha.6 frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss
compass-0.13.alpha.5 frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss