Skip to content

Commit

Permalink
refactor: split support dark theme (#2657)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArgoZhang authored and Vision-Zhang committed Dec 29, 2023
1 parent ba02747 commit 0c30ef7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions src/BootstrapBlazor/Components/Split/Split.razor.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.split {
--bb-split-bar-height: #{$bb-split-bar-height};
--bb-split-var-bg: #{$bb-split-var-bg};
--bb-split-bar-color: #{$bb-split-bar-color};
--bb-split-bar-hover-bg: #{$bb-split-bar-hover-bg};
display: block;
height: 100%;
width: 100%;
Expand Down Expand Up @@ -35,7 +34,6 @@
align-items: center;
height: var(--bb-split-bar-height);
width: 100%;
background: var(--bb-split-bar-bg);
border: 1px solid var(--bs-border-color);
border-left: none;
border-right: none;
Expand All @@ -45,7 +43,7 @@

.split-bar:hover,
&.dragging > .split-wrapper > .split-bar {
background-color: var(--bb-split-bar-color);
background-color: var(--bb-split-bar-hover-bg);
}

.split-bar:hover .split-trigger-bar,
Expand All @@ -61,7 +59,7 @@
.split-bar .split-trigger-bar {
width: 1px;
height: 4px;
background: rgba(23,35,61,.25);
background: rgba(var(--bs-body-color-rgb), .25);
margin-left: 3px;
display: inline-block;
}
Expand Down
3 changes: 1 addition & 2 deletions src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,7 @@ $bb-spinner-border-border-width-xxl: .275em;

// Split
$bb-split-bar-height: 6px;
$bb-split-var-bg: #f8f8f9;
$bb-split-bar-color: #409eff;
$bb-split-bar-hover-bg: #409eff;

// Step
$bb-step-border-width: 2px;
Expand Down

0 comments on commit 0c30ef7

Please sign in to comment.