spaCy/website/assets/css/_components/_tables.sass

45 lines
980 B
Sass
Raw Normal View History

2016-10-03 21:19:13 +03:00
//- ----------------------------------
//- 💫 COMPONENTS > TABLES
//- ----------------------------------
2016-03-31 17:24:48 +03:00
2016-10-03 21:19:13 +03:00
// Shadows adapted from "CSS only Responsive Tables" by David Bushell
// http://codepen.io/dbushell/pen/wGaamR
2016-03-31 17:24:48 +03:00
2016-10-03 21:19:13 +03:00
//- Table Container
2016-03-31 17:24:48 +03:00
2016-10-03 21:19:13 +03:00
.c-table
2016-03-31 17:24:48 +03:00
vertical-align: top
2016-10-03 21:19:13 +03:00
@include breakpoint(max, md)
@include scroll-shadow-base($color-front)
display: inline-block
overflow-x: auto
width: auto
-webkit-overflow-scrolling: touch
2016-03-31 17:24:48 +03:00
2016-10-03 21:19:13 +03:00
//- Table Cell
2016-03-31 17:24:48 +03:00
2016-10-03 21:19:13 +03:00
.c-table__cell
padding: 1rem
border: 1px solid $color-subtle
2016-03-31 17:24:48 +03:00
2016-10-03 21:19:13 +03:00
&.c-table__cell--highlight
border: 2px solid $color-theme
2016-03-31 17:24:48 +03:00
2016-10-03 21:19:13 +03:00
@include breakpoint(max, md)
&:first-child
@include scroll-shadow-cover(left, $color-back)
2016-03-31 17:24:48 +03:00
2016-10-03 21:19:13 +03:00
&:last-child
@include scroll-shadow-cover(right, $color-back)
2016-03-31 17:24:48 +03:00
2016-10-03 21:19:13 +03:00
//- Table Head Cell
2016-03-31 17:24:48 +03:00
2016-10-03 21:19:13 +03:00
.c-table__head-cell
background: $color-theme
color: $color-back
padding: 1rem
border: 1px solid $color-theme