1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-16 13:09:49 -05:00
notes/_sass/tables.scss

59 lines
936 B
SCSS
Raw Normal View History

2017-03-24 09:47:37 -04:00
//
// Tables
//
2018-11-15 16:17:29 -05:00
// stylelint-disable max-nesting-depth, selector-no-type, selector-max-type
2017-03-24 09:47:37 -04:00
.table-wrapper {
2017-03-24 09:47:37 -04:00
display: block;
2017-03-09 13:16:08 -05:00
width: 100%;
2017-03-24 09:47:37 -04:00
max-width: 100%;
2017-03-09 13:16:08 -05:00
margin-bottom: $sp-5;
2017-03-26 21:09:19 -04:00
overflow-x: auto;
border-radius: $border-radius;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
}
2017-03-24 09:47:37 -04:00
table {
display: table;
min-width: 100%;
border-collapse: separate;
2017-03-09 13:16:08 -05:00
}
th,
td {
@include fs-3;
2017-03-26 21:09:19 -04:00
min-width: 120px;
2017-03-09 13:16:08 -05:00
padding-top: $sp-2;
padding-right: $sp-3;
2017-03-26 21:09:19 -04:00
padding-bottom: $sp-2;
padding-left: $sp-3;
2019-05-18 20:41:40 -04:00
background-color: $table-background-color;
2018-11-15 15:12:12 -05:00
border-bottom: $border rgba($border-color, 0.5);
2017-03-09 13:16:08 -05:00
border-left: $border $border-color;
&:first-of-type {
border-left: 0;
}
}
tbody {
tr {
&:last-of-type {
th,
td {
border-bottom: 0;
}
td {
padding-bottom: $sp-3;
}
2017-03-09 13:16:08 -05:00
}
}
}
thead {
th {
2019-05-18 20:41:40 -04:00
border-bottom: $border $border-color;
2017-03-09 13:16:08 -05:00
}
}