Skip to content

Commit

Permalink
refactor(Step): support dark theme (#2663)
Browse files Browse the repository at this point in the history
* doc: 更新 Step 示例

* refactor: 更新 Cascade 二级菜单颜色

* refactor: 更新 required 颜色

* refactor(IpAddress): 更新背景色

* doc: 更新拷贝按钮样式

* doc: 更新示例代码块过渡动画
  • Loading branch information
ArgoZhang authored Dec 24, 2023
1 parent c4f92ff commit 3e58f02
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.card {
transition: all .3s linear;
transition: box-shadow .3s linear;
}

.card:hover {
Expand Down
6 changes: 3 additions & 3 deletions src/BootstrapBlazor.Server/Components/Components/Pre.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
@if (ShowToolbar)
{
<div class="btn-group">
<Button TooltipPlacement="Placement.Top" TooltipText="@PlusTooltipTitle" TooltipTrigger="hover" Icon="fa-solid fa-plus" class="btn-plus"></Button>
<Button TooltipPlacement="Placement.Top" TooltipText="@MinusTooltipTitle" TooltipTrigger="hover" Icon="fa-solid fa-minus" class="btn-minus"></Button>
<Button TooltipPlacement="Placement.Top" TooltipText="@PlusTooltipTitle" TooltipTrigger="hover" Icon="fa-solid fa-plus" class="btn-code btn-plus"></Button>
<Button TooltipPlacement="Placement.Top" TooltipText="@MinusTooltipTitle" TooltipTrigger="hover" Icon="fa-solid fa-minus" class="btn-code btn-minus"></Button>
</div>
}
<Button TooltipPlacement="Placement.Top" TooltipText="@TooltipTitle" TooltipTrigger="hover" class="btn-copy">Copy</Button>
<Button TooltipPlacement="Placement.Top" TooltipText="@TooltipTitle" TooltipTrigger="hover" class="btn-code btn-copy">Copy</Button>
}
}
</div>
2 changes: 0 additions & 2 deletions src/BootstrapBlazor.Server/Components/Samples/Steps.razor.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
.step-demo ::deep .step {
--step-item-color: #ccc;
background-color: #f8f9fa;
padding: 0 1rem;
border-radius: var(--bs-border-radius);
border: var(--bs-border-width) solid var(--bs-border-color);
Expand Down
4 changes: 2 additions & 2 deletions src/BootstrapBlazor.Server/wwwroot/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ code {
background-color: rgba(var(--bs-emphasis-color-rgb),.1);
}

.btn-copy {
.btn-code {
position: absolute;
top: .65rem;
right: 1.5rem;
Expand All @@ -204,7 +204,7 @@ code {
--bs-btn-padding-x: .5rem;
}

[data-bs-theme='dark'] .btn-copy {
[data-bs-theme='dark'] .btn-code {
--bs-btn-bg: rgba(255, 255, 255, 0.12);
--bs-btn-color: rgba(255, 255, 255, 0.45);
--bs-btn-border-color: #606266;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
}

.ipv4-cell {
background-color: var(--bs-body-bg);
border: none;
max-width: var(--bb-ip-cell-max-width);
text-align: right;
Expand Down
1 change: 1 addition & 0 deletions src/BootstrapBlazor/Components/Menu/Menu.razor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

.menu .nav .nav-link,
.cascade .dropdown-item {
--bs-nav-link-color: var(--bs-body-color);
padding: 0.5rem 1rem;
user-select: none;
white-space: nowrap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ form {

.form-label[required]:before {
content: "*";
color: red;
color: var(--bs-danger);
}
}

Expand Down

0 comments on commit 3e58f02

Please sign in to comment.