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

42 lines
643 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-07 23:12:17 +02:00
word-break: normal;
word-break: keep-all;
}
thead {
2017-03-16 20:34:29 +02:00
th,
td {
2017-03-07 23:12:17 +02:00
background-color: tint($base-color, 80%);
}
}
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
}