-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'local-v4-dev' into v4-dev
- Loading branch information
Showing
6 changed files
with
299 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,253 @@ | ||
// | ||
// Tables | ||
// | ||
|
||
// Change the table states color | ||
@mixin table-row-variant-border($state, $color) { | ||
// Exact selectors below required to override `.table-striped` and prevent | ||
// inheritance to nested tables. | ||
.table > thead > tr, | ||
.table > tbody > tr, | ||
.table > tfoot > tr { | ||
> td.#{$state}, | ||
> th.#{$state}, | ||
&.#{$state} > td, | ||
&.#{$state} > th { | ||
background-color: $color; | ||
} | ||
} | ||
|
||
// Hover states for `.table-hover` | ||
// Note: this is not available for cells or rows within `thead` or `tfoot`. | ||
.table-hover > tbody > tr { | ||
> td.#{$state}:hover, | ||
> th.#{$state}:hover, | ||
&.#{$state}:hover > td, | ||
&:hover > .#{$state}, | ||
&.#{$state}:hover > th { | ||
background-color: darken($color, 5%); | ||
} | ||
} | ||
} | ||
|
||
.table { | ||
// Cells | ||
> thead, | ||
> tbody, | ||
> tfoot { | ||
> tr { | ||
border-bottom: 1px solid $table-border-color; | ||
|
||
> th, | ||
> td { | ||
padding: .625rem .625rem .625rem 0; | ||
font-size: $font-size-sm; | ||
border: 0; | ||
} | ||
|
||
> th:first-child, | ||
> td:first-child { | ||
padding-left: .625rem; | ||
} | ||
|
||
> th { | ||
font-size: $font-size-base; | ||
} | ||
|
||
[class^="icon-"], | ||
[class*=" icon-"] { | ||
font-size: 1.8125rem; | ||
} | ||
} | ||
} | ||
|
||
thead { | ||
th { | ||
font-weight: bold; | ||
} | ||
|
||
tr { | ||
border-bottom-width: 2px; | ||
} | ||
} | ||
|
||
tbody > th { | ||
font-weight: normal; | ||
} | ||
|
||
&.has-checkbox { | ||
// Boosted mod | ||
// for display into tables with description sr-only (reg introduce in alpha.5 whith display inline-block | ||
.custom-control { | ||
display: inline; | ||
} | ||
// end mod | ||
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; | ||
} | ||
} | ||
} | ||
|
||
&.has-icon { | ||
tr > td, | ||
tr > th { | ||
height: 3.125rem; | ||
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; | ||
} | ||
} | ||
} | ||
|
||
// &.has-status { | ||
// thead th:not(:first-child), | ||
// tr > td { | ||
// text-align: center; | ||
// } | ||
// } | ||
|
||
&.table-reflow { | ||
thead, | ||
tbody, { | ||
> tr { | ||
border: 0; | ||
} | ||
|
||
> tr > td { | ||
line-height: 1.25rem; | ||
} | ||
|
||
> tr > th:first-child { | ||
border-bottom: 2px solid $table-border-color; | ||
} | ||
|
||
> tr > th, | ||
> tr > td { | ||
border-bottom: 1px solid $table-border-color; | ||
} | ||
|
||
> tr > td:last-child { | ||
border-right: 0; | ||
} | ||
} | ||
|
||
thead > tr { | ||
border: 0; | ||
|
||
> th:not(:first-child) { | ||
padding-left: .625rem; | ||
border-bottom: 1px solid $table-border-color; | ||
} | ||
|
||
> th:last-child { | ||
border-right: 0; | ||
} | ||
} | ||
|
||
tbody { | ||
> tr > th:first-child { | ||
padding-left: 0; | ||
} | ||
} | ||
} | ||
} | ||
|
||
@include table-row-variant-border(success, $state-success-border); | ||
@include table-row-variant-border(info, $state-info-border); | ||
@include table-row-variant-border(warning, $state-warning-border); | ||
@include table-row-variant-border(danger, $state-danger-border); | ||
|
||
|
||
// force caption for tables | ||
caption { | ||
padding: $padding-large-vertical 0; | ||
font-size: $font-size-h1; | ||
font-weight: bold; | ||
color: #000; | ||
caption-side: top; | ||
background-color: #fff; | ||
} | ||
|
||
// Style jquery tablesorter ext | ||
// scss-lint:disable SelectorFormat | ||
// | ||
// Table sorter | ||
// | ||
|
||
.tablesorter { | ||
caption { | ||
padding: $padding-large-vertical 0; | ||
font-size: $font-size-h1; | ||
font-weight: bold; | ||
color: #000; | ||
background-color: #fff; | ||
} | ||
|
||
th { | ||
padding-right: 30px; | ||
// font-weight: bold; | ||
text-align: left; | ||
cursor: pointer; | ||
|
||
&.header { | ||
background-repeat: no-repeat; | ||
background-position: 95% 50%; | ||
|
||
@include hover { | ||
background-image: url("../img/triangle_sort.png"); | ||
} | ||
} | ||
|
||
&.tablesorter-headerDesc { | ||
background-image: url("../img/triangle_down.png"); | ||
} | ||
|
||
&.tablesorter-headerAsc { | ||
background-image: url("../img/triangle_up.png"); | ||
} | ||
|
||
a { | ||
color: #000; | ||
text-decoration: none; | ||
|
||
@include hover-focus { | ||
color: $brand-primary; | ||
text-decoration: underline; | ||
} | ||
} | ||
} | ||
|
||
td { | ||
text-align: left; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.