Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commitcb6e1d48a6764e5bf6b17be2cf591d0e4e9d1882 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-11-13 14:54:17 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-11-13 14:54:17 +0800
Files67d3628efe37551b3d00b0635b2a1f02ec88375f /src
Spectre-Dark-Gruvbox-cb6e1d48a6764e5bf6b17be2cf591d0e4e9d1882.tar
Spectre-Dark-Gruvbox-cb6e1d48a6764e5bf6b17be2cf591d0e4e9d1882.tar.gz
Spectre-Dark-Gruvbox-cb6e1d48a6764e5bf6b17be2cf591d0e4e9d1882.zip
Parent19d2ea1bc04ea5bf7b7ec57994e66057f5d59536 (diff)
Add Table with horizontal scroll support #333
1 files changed, 13 insertions, 5 deletions
-rw-r--r--src/_tables.scss18
diff --git a/src/_tables.scss b/src/_tables.scss
index 63a163a..074301f 100644
--- a/src/_tables.scss
+++ b/src/_tables.scss
@@ -13,27 +13,35 @@
}
}
- &.table-hover {
+ &,
+ &.table-striped {
tbody {
tr {
- &:hover {
+ &.active {
background: $bg-color-dark;
}
}
}
}
- &,
- &.table-striped {
+ &.table-hover {
tbody {
tr {
- &.active {
+ &:hover {
background: $bg-color-dark;
}
}
}
}
+ // Tables with horizontal scrollbar
+ &.table-scroll {
+ display: block;
+ overflow-x: auto;
+ padding-bottom: .75rem;
+ white-space: nowrap;
+ }
+
td,
th {
border-bottom: $border-width solid $border-color;