diff --git a/docs-orange/_includes/boostwatch/tableSorter.html b/docs-orange/_includes/boostwatch/tableSorter.html index b2d1bc586c..9e703ca257 100644 --- a/docs-orange/_includes/boostwatch/tableSorter.html +++ b/docs-orange/_includes/boostwatch/tableSorter.html @@ -1,10 +1,10 @@

Tables

-

Default tables

+

Striped table

-
+
- + @@ -32,8 +32,6 @@

Default tables

@@ -49,42 +47,99 @@

Default tables

+ +
Optional table caption.
#
3 - - success Column content Column content
5 - - information Column content Column content Column content
+
+
+ +

Checkbox table

+
+
+ + + - + + + + + + + + + + - - + + + + + + + + + - + - + @@ -92,11 +147,125 @@

Default tables

6 + + StatusColumn headingColumn headingColumn heading
+ + Column content Column content Column content
7
+ + Column contentColumn contentColumn content
+ + - - warning Column content Column content Column content
8 + + Column content Column content Column content
9 + + - - danger Column content Column content
-
+
+
+ +

Thumbnails & Icons table

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + NameColumn headingColumn headingColumn heading
+ + + + folder + Finance + Column contentColumn contentColumn content
+ + + + file + File + Column contentColumn contentColumn content
+ + + thumb_yellow.pngImg 1 + Column contentColumn contentColumn content
+ + + thumb_blue.pngImg 2 + Column contentColumn contentColumn content
+ + + + info + + + checked + + + checked + + + checked +
+
-

Complex table

-

Table with sortable columns.

+

Sortable table

diff --git a/docs-orange/_includes/nav-boostwatch.html b/docs-orange/_includes/nav-boostwatch.html index 597c082136..e0da66de47 100644 --- a/docs-orange/_includes/nav-boostwatch.html +++ b/docs-orange/_includes/nav-boostwatch.html @@ -7,7 +7,7 @@ Modal window
Bullet point diff --git a/docs-orange/assets/img/thumb_blue.png b/docs-orange/assets/img/thumb_blue.png new file mode 100644 index 0000000000..9f83517b96 Binary files /dev/null and b/docs-orange/assets/img/thumb_blue.png differ diff --git a/docs-orange/assets/img/thumb_yellow.png b/docs-orange/assets/img/thumb_yellow.png new file mode 100644 index 0000000000..344f8cb7ec Binary files /dev/null and b/docs-orange/assets/img/thumb_yellow.png differ diff --git a/docs-orange/components/orange-tables.md b/docs-orange/components/orange-tables.md index 42888e6f0d..55c30e71a4 100644 --- a/docs-orange/components/orange-tables.md +++ b/docs-orange/components/orange-tables.md @@ -4,7 +4,210 @@ title: Orange tables group: components --- -### Title +### Checkbox tables + +Add `.has-checkbox` class to the `
` element to get correct spacing on the first column. + +{% example html %} +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + StatusColumn headingColumn headingColumn heading
+ + Column contentColumn contentColumn content
+ + Column contentColumn contentColumn content
+ + + Column contentColumn contentColumn content
+ + Column contentColumn contentColumn content
+ + + Column contentColumn contentColumn content
+{% endexample %} + +### Thumbnail and icons tables + +In addition use `.has-icon` to specify the table is using icons and thumbnails to get correct row height. {% example html %} -{% endexample %} \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + NameColumn headingColumn headingColumn heading
+ + + + folder + Finance + Column contentColumn contentColumn content
+ + + + file + File + Column contentColumn contentColumn content
+ + + thumb_yellow.pngImg 1 + Column contentColumn contentColumn content
+ + + thumb_blue.pngImg 2 + Column contentColumn contentColumn content
+ + + + info + + + checked + + + checked + + + checked +
+{% endexample %} diff --git a/docs/_data/nav.yml b/docs/_data/nav.yml index 39f3b97c84..6d230fdfb9 100644 --- a/docs/_data/nav.yml +++ b/docs/_data/nav.yml @@ -61,6 +61,7 @@ - title: Progress # boosted mod - title: Orange list + - title: Orange tables # end mod - title: Scrollspy # boosted mod diff --git a/scss/_orange-css.scss b/scss/_orange-css.scss index 119535e713..5ea33545bc 100644 --- a/scss/_orange-css.scss +++ b/scss/_orange-css.scss @@ -202,22 +202,83 @@ a:focus { > tbody, > tfoot { > tr { + border-bottom: 1px solid $table-border-color; + > th, > td { - // Remove border top and put border-botom + padding: .625rem .625rem .625rem 0; font-size: $font-size-sm; - border-top: 0; - border-bottom: 1px solid $table-border-color; + border: 0; + } + + > th:first-child, + > td:first-child { + padding-left: .625rem; } + + > th { + font-size: $font-size-base; + } + [class^="icon-"], [class*=" icon-"] { - font-size: ($font-size-sm * $line-height-base); + font-size: 1.8125rem; + } + } + } + + thead tr { + border-bottom-width: 2px; + } + + &.has-checkbox { + tr.selected { + > td, + > th { + background-color: $gray-lighter-o; + } + } + + tr > th:first-child, + tr > td:first-child { + width: 1.25rem; + + .custom-control.custom-checkbox { + padding-left: 1.25rem; } } } - > thead th { - border-bottom: 2px; + &.has-icon { + tr > td, + tr > th { + height: 3.125rem; + // padding-top: .9375rem; + // padding-bottom: .9375rem; + vertical-align: middle; + + span, + img { + vertical-align: middle; + } + + span { + margin-right: .375rem; + } + + img { + width: 1.875rem; + height: 1.875rem; + margin-right: .625rem; + } + + [class^="icon-"] { + width: 1.875rem; + font-size: 1.8125rem; + line-height: 0; + vertical-align: middle; + } + } } }