Skip to content

Commit

Permalink
fix colour mapping in bootstrap5 theme
Browse files Browse the repository at this point in the history
  • Loading branch information
olifolkerd committed May 26, 2022
1 parent f767f20 commit fafad37
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 65 deletions.
64 changes: 32 additions & 32 deletions dist/css/tabulator_bootstrap5.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/tabulator_bootstrap5.css.map

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions src/scss/themes/bootstrap/tabulator_bootstrap5.scss
Original file line number Diff line number Diff line change
Expand Up @@ -334,113 +334,113 @@ $table-cell-padding-sm: 5px;
.tabulator-table{
.tabulator-row{
&.table-primary{
background:theme-color-level("primary", -9) !important;
background:map-get($table-variants, "primary") !important;
}
&.table-secondary{
background:theme-color-level("secondary", -9) !important;
background:map-get($table-variants, "secondary") !important;
}
&.table-success{
background:theme-color-level("success", -9) !important;
background:map-get($table-variants, "success") !important;
}
&.table-info{
background:theme-color-level("info", -9) !important;
background:map-get($table-variants, "info") !important;
}
&.table-warning{
background:theme-color-level("warning", -9) !important;
background:map-get($table-variants, "warning") !important;
}
&.table-danger{
background:theme-color-level("danger", -9) !important;
background:map-get($table-variants, "danger") !important;
}
&.table-light{
background:theme-color-level("light", -9) !important;
background:map-get($table-variants, "light") !important;
}
&.table{
background:theme-color-level("dark", -9) !important;
background:map-get($table-variants, "dark") !important;
}
&.table-active{
background:$table-active-bg !important;
}

&.bg-primary{
background:theme-color-level("primary", 0) !important;
background:map-get($table-variants, "primary") !important;
}
&.bg-secondary{
background:theme-color-level("secondary", 0) !important;
background:map-get($table-variants, "secondary") !important;
}
&.bg-success{
background:theme-color-level("success", 0) !important;
background:map-get($table-variants, "success") !important;
}
&.bg-info{
background:theme-color-level("info", 0) !important;
background:map-get($table-variants, "info") !important;
}
&.bg-warning{
background:theme-color-level("warning", 0) !important;
background:map-get($table-variants, "warning") !important;
}
&.bg-danger{
background:theme-color-level("danger", 0) !important;
background:map-get($table-variants, "danger") !important;
}
&.bg-light{
background:theme-color-level("light", 0) !important;
background:map-get($table-variants, "light") !important;
}
&.bg-dark{
background:theme-color-level("dark", 0) !important;
background:map-get($table-variants, "dark") !important;
}
&.bg-active{
background:$table-active-bg !important;
}

.tabulator-cell{
&.table-primary{
background:theme-color-level("primary", -9) !important;
background:map-get($table-variants, "primary") !important;
}
&.table-secondary{
background:theme-color-level("secondary", -9) !important;
background:map-get($table-variants, "secondary") !important;
}
&.table-success{
background:theme-color-level("success", -9) !important;
background:map-get($table-variants, "success") !important;
}
&.table-info{
background:theme-color-level("info", -9) !important;
background:map-get($table-variants, "info") !important;
}
&.table-warning{
background:theme-color-level("warning", -9) !important;
background:map-get($table-variants, "warning") !important;
}
&.table-danger{
background:theme-color-level("danger", -9) !important;
background:map-get($table-variants, "danger") !important;
}
&.table-light{
background:theme-color-level("light", -9) !important;
background:map-get($table-variants, "light") !important;
}
&.table{
background:theme-color-level("dark", -9) !important;
background:map-get($table-variants, "dark") !important;
}
&.table-active{
background:$table-active-bg !important;
}

&.bg-primary{
background:theme-color-level("primary", 0) !important;
background:map-get($table-variants, "primary") !important;
}
&.bg-secondary{
background:theme-color-level("secondary", 0) !important;
background:map-get($table-variants, "secondary") !important;
}
&.bg-success{
background:theme-color-level("success", 0) !important;
background:map-get($table-variants, "success") !important;
}
&.bg-info{
background:theme-color-level("info", 0) !important;
background:map-get($table-variants, "info") !important;
}
&.bg-warning{
background:theme-color-level("warning", 0) !important;
background:map-get($table-variants, "warning") !important;
}
&.bg-danger{
background:theme-color-level("danger", 0) !important;
background:map-get($table-variants, "danger") !important;
}
&.bg-light{
background:theme-color-level("light", 0) !important;
background:map-get($table-variants, "light") !important;
}
&.bg-dark{
background:theme-color-level("dark", 0) !important;
background:map-get($table-variants, "dark") !important;
}
&.bg-active{
background:$table-active-bg !important;
Expand Down

0 comments on commit fafad37

Please sign in to comment.