Sha256: bb1202d76fa750ef421adbecdb15b5fe75da628e38e820340408a2e1d3cc5369

Contents?: true

Size: 1.06 KB

Versions: 15

Compression:

Stored size: 1.06 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: 0;
      top-width: 0; };
    &:last-child {
      border-right-width: 0; }

    // 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: 0; } } }

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

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/compass-core-1.0.3/stylesheets/compass/utilities/tables/_borders.scss
gem_2345-0.1.2 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.0.3 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.1.0.alpha.3 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.1.0.alpha.2 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.1.0.alpha.1 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.1.0.alpha.0 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.0.1 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.0.0 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.0.0.rc.1 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.0.0.rc.0 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.0.0.alpha.21 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.0.0.alpha.20 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.0.0.alpha.19 stylesheets/compass/utilities/tables/_borders.scss
compass-core-1.0.0.alpha.17 stylesheets/compass/utilities/tables/_borders.scss