/*!
 * Copyright (c) 2018 Eclipse Foundation, Inc.
 * 
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 * 
 * Contributors:
 *   Christopher Guindon <chris.guindon@eclipse-foundation.org>
 * 
 * SPDX-License-Identifier: EPL-2.0
*/

// Tables styles

// Load variables
@import "~bootstrap/less/variables.less";
@import "_variables.less";

// Baseline styles
table {
  width: 100%;
  max-width: 100%;
  margin-bottom: @line-height-computed;
  > thead , > tbody , > tfoot {
    > tr {
      > th , > td {
        padding: @table-cell-padding;
        line-height: @line-height-base;
        vertical-align: top;
        border-top: 1px solid @table-border-color;
      }
    }
  }

  > thead > tr > th {
    vertical-align: bottom;
    border-bottom: 2px solid @table-border-color;
  }

  > caption + thead , > colgroup + thead , > thead:first-child {
    > tr:first-child {
      > th , > td {
        border-top: 0;
      }
    }
  }

  > tbody + tbody {
    border-top: 2px solid @table-border-color;
  }

  .table {
    background-color: @body-bg;
  }
}

