summaryrefslogtreecommitdiff
path: root/assets/sass/_table.sass
diff options
context:
space:
mode:
Diffstat (limited to 'assets/sass/_table.sass')
-rw-r--r--assets/sass/_table.sass54
1 files changed, 54 insertions, 0 deletions
diff --git a/assets/sass/_table.sass b/assets/sass/_table.sass
new file mode 100644
index 00000000..c570ef16
--- /dev/null
+++ b/assets/sass/_table.sass
@@ -0,0 +1,54 @@
+@import variables
+@import mixins
+
+table
+ width: 100%
+ border-collapse: collapse
+ border-spacing: 0
+ margin-bottom: 20px
+
+ &.table-fixed
+ table-layout: fixed
+ white-space: nowrap
+ th
+ overflow: hidden
+ td
+ white-space: nowrap
+ overflow: hidden
+ text-overflow: ellipsis
+
+ &.table-small
+ font-size: size('small')
+
+ &.table-striped tr:nth-child(odd)
+ background: bg-color('lighter')
+
+ &.table-scrolling
+ @include sm-device
+ overflow-x: auto
+ display: inline-block
+ vertical-align: top
+ max-width: 100%
+ white-space: nowrap
+
+ th
+ text-align: left
+ padding: 0.5em 3px
+ border: 1px solid #eee
+ background: bg-color('primary')
+
+ a
+ text-decoration: none
+ color: color('primary')
+ &:focus, &:hover
+ text-decoration: underline
+
+ td
+ border: 1px solid #eee
+ padding: 0.5em 3px
+ vertical-align: top
+
+ li
+ margin-left: 20px
+
+@include col-x(100)