Skip to content

Commit

Permalink
doc(GoTop): update sample code support dark theme (#2659)
Browse files Browse the repository at this point in the history
* refactor: split support dark theme

* refactor: 调整 footer 样式

* doc: 更新 GoTop Stack 示例
  • Loading branch information
ArgoZhang authored Dec 24, 2023
1 parent be9a38c commit 568097f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/BootstrapBlazor.Server/Components/Samples/GoTops.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<h4>@Localizer["Description"]</h4>

<DemoBlock Title="@Localizer["NormalTitle"]" Introduction="@Localizer["NormalIntro"]" Name="Normal">
<div class="overflow-auto border border-secondary" style="max-height: 180px; border-radius: 4px; position: relative;">
<div class="overflow-auto border" style="max-height: 180px; border-radius: var(--bs-border-radius); position: relative;">
<div class="p-2" style="height: 200px;">
<p>@Localizer["Description1"]</p>
<p>@Localizer["Description2"]</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
.stack-demo {
border: 2px solid var(--bs-info);
border: 1px solid var(--bs-border-color);
height: 400px;
border-radius: var(--bs-border-radius);
padding: 1rem;
margin-top: 1rem;
background-color: #e9ecef;
}

::deep .bb_stack {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ $bb-filter-item-btn-hover-border-color: #409eff;
$bb-filter-row-input-min-width: 50px;

// Footer
$bb-footer-bg: var(--bs-secondary);
$bb-footer-bg: rgba(var(--bs-body-color-rgb), .12);
$bb-footer-padding: .5rem 1rem;

// GoTop
Expand Down

0 comments on commit 568097f

Please sign in to comment.