Skip to content

Commit

Permalink
Dev: Correct the dark mode colour control for the arrows
Browse files Browse the repository at this point in the history
DD-2776
  • Loading branch information
AllanJard committed Dec 24, 2023
1 parent 500fd1b commit 91552b9
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions css/responsive.dataTables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
content: '';
}

@mixin control-open() {
@mixin control-open($color) {
border-top: 5px solid transparent;
border-left: 10px solid rgba(0, 0, 0, 0.5);
border-left: 10px solid $color;
border-bottom: 5px solid transparent;
border-right: 0px solid transparent;
}

@mixin control-close() {
border-top: 10px solid rgba(0, 0, 0, 0.5);
@mixin control-close($color) {
border-top: 10px solid $color;
border-left: 5px solid transparent;
border-bottom: 0px solid transparent;
border-right: 5px solid transparent;
Expand Down Expand Up @@ -53,7 +53,7 @@ table.dataTable {
margin-right: 0.5em;

@include control;
@include control-open;
@include control-open(rgba(0, 0, 0, 0.5));
}

&.arrow-right::before {
Expand All @@ -67,7 +67,7 @@ table.dataTable {
> tr.dtr-expanded {
> td.dtr-control:before,
> th.dtr-control:before {
@include control-close;
@include control-close(rgba(0, 0, 0, 0.5));
}
}
}
Expand All @@ -91,7 +91,7 @@ table.dataTable {

&:before {
@include control;
@include control-open;
@include control-open(rgba(0, 0, 0, 0.5));
}

&.arrow-right::before {
Expand All @@ -107,7 +107,7 @@ table.dataTable {
th.dtr-control:before,
td.control:before,
th.control:before {
@include control-close;
@include control-close(rgba(0, 0, 0, 0.5));
}
}
}
Expand Down Expand Up @@ -227,7 +227,20 @@ html[data-bs-theme="dark"] {
table.dataTable > tbody {
> tr > td.dtr-control {
&:before {
color: rgba(255, 255, 255, 0.5) !important;
border-left-color: rgba(255, 255, 255, 0.5) !important;
}

&.arrow-right::before {
border-right-color: rgba(255, 255, 255, 0.5) !important;
}
}

> tr.dtr-expanded {
> td.dtr-control:before,
> th.dtr-control:before {
border-top-color: rgba(255, 255, 255, 0.5) !important;
border-left-color: transparent !important;
border-right-color: transparent !important;
}
}

Expand Down

0 comments on commit 91552b9

Please sign in to comment.