Sha256: 7033cd6e21bc331f19dbd8faca9ca2673686707270229beb47f92d94d3cb1522

Contents?: true

Size: 1.8 KB

Versions: 21

Compression:

Stored size: 1.8 KB

Contents

[class^=pb_table] {
  &.table-sm,
  &.table-md,
  &.table-lg {
    &.table-card {
      border-collapse: separate;
      background: $white;

      thead {
        tr {
          th {
            border-color: $border_light;
            border-style: solid;
            border-width: 1px 0 1px 0;

            &:first-child {
              border-radius: 4px 0 0 0;
              border-width: 1px 0 1px 1px;
            }
            &:last-child {
              border-radius: 0 4px 0 0;
              border-width: 1px 1px 1px 0;
            }
          }
        }
      }

      tbody {
        tr {
          td {
            border-color: $border_light;
            border-style: solid;
            border-width: 0 0 1px 0;

            &:first-child {
              border-width: 0 0 1px 1px;
            }
            &:last-child {
              border-width: 0 1px 1px 0;
            }
          }

          &:last-child {
            td {
              border-width: 0 0 1px 0;

              &:first-child {
                border-radius: 0 0 0 4px;
                border-width: 0 0 1px 1px;
              }
              &:last-child {
                border-radius: 0 0 4px 0;
                border-width: 0 1px 1px 0;
              }
            }
          }
        }
      }

      &.as-cards {
        border: 1px solid $border_light;
        border-radius: 4px;

        thead {
          tr {
            margin: $space-xs 0 0;
            padding: 0 $space-xs;
            border-bottom: 1px solid $border_light;

            th {
              border-width: 0;
            }
          }
        }
        tbody {
          tr {
            margin: $space-xs;
            width: calc(100% - #{$space-xs}*2);

            td {
              border-top-width: 1px;
            }
          }
        }
      }
    }
  }
}

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
playbook_ui-3.1.0 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-3.0.1 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-3.0.0 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.9.9 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.9.8 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.9.7 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.9.6 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.9.5 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.9.4 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.9.3 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.9.2 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.9.1 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.9.0 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.8.9 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.8.8 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.8.7 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.8.6 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.8.5 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.8.4 app/pb_kits/playbook/pb_table/styles/_table-card.scss
playbook_ui-2.8.3 app/pb_kits/playbook/pb_table/styles/_table-card.scss