datat.fi/_sass/basically-basic/_tables.scss

35 lines
609 B
SCSS
Raw Normal View History

/* ==========================================================================
Tables
========================================================================== */
2017-03-07 23:12:17 +02:00
table {
@include fluid-type($min-vw, $max-vw, 12px, 18px);
2017-03-16 20:34:29 +02:00
width: 100%;
2017-03-07 23:12:17 +02:00
border-collapse: collapse;
/* For Firefox to horizontally scroll wider tables */
2017-03-16 21:39:43 +02:00
// scss-lint:disable DuplicateProperty
2017-03-07 23:12:17 +02:00
word-break: normal;
word-break: keep-all;
}
2017-03-16 20:34:29 +02:00
th,
td {
2017-03-07 23:12:17 +02:00
border-bottom: 1px solid $border-color;
}
th {
padding: 0.5em;
font-weight: bold;
text-align: left;
}
td {
padding: 0.5em;
}
2017-03-16 20:34:29 +02:00
tr,
td,
th {
2017-03-07 23:12:17 +02:00
vertical-align: middle;
2017-03-16 20:34:29 +02:00
}