-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc(Theme): add dark theme for web site (#2630)
* refactor: 更新标签颜色 * refactor: 更新 main 最小高度 * doc: 移除侧边栏背景色 * doc: 更新代码高亮背景色 * doc: 去除权重关键字 * refactor: 更新 Select 组件背景色 * refactor: 增加 primary 颜色样式 * refactor: 增加 icon-summary 样式 * refactor: 增加 badge-menu 样式 * refactor: 更新 archor-link 颜色 * refactor: 更新 dropdown-item menu-item 颜色样式 * refactor: 更新 GlobalSearch 样式 * refactor: 调整边框颜色 * refactor: 调整 Tab 样式 * refactor: 调整 Divider 样式 * refactor: 更新 tab header 背景色 * refactor: 更新当前标签页颜色 * feat: 增加暗黑主题 * refactor: 更新主题切换逻辑 * refactor: 增加 hover 样式 * refactor: 增加黑色主题样式支持 * refactor: 增加 navbar-version 样式 * refactor: 更新右侧边框样式 * refactor: 自定义菜单项前景色 * refactor: 微调 tips 样式 * refactor: 更新圆角 * feat: 客户端存储主题 * feat: 增加主题脚本 * refactor: 复用设置主题代码 * chore: 更新 sasscompiler 配置 * refactor: 移除 motronic 样式 * doc: 更新文档 * chore: 更新配置文件 * refactor: 精简 Table 样式 * refactor: 更新分页组件暗黑样式 * refactor: 更新 code 样式 * refactor: 调整 Card 样式 * refactor: 调整 Table 暗黑样式 * refactor: 调整 btn-copy 按钮样式 * refactor: 调整 ConsoleLogger 样式 * refactor: 调整侧边栏边框 * doc: 微调间隙 * refactor: 调整全局搜索样式 * refactor: 更新 Select 组件样式 * refactor: 更新文化组件样式 * refactor: 统一 border 颜色 * refactor: 调整重连组件样式 * refactor: 微调 Header 样式 * refactor: 适配全局搜索暗黑样式 * refactor: 适配主题样式
- Loading branch information
Showing
45 changed files
with
351 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 16 additions & 4 deletions
20
src/BootstrapBlazor.Server/Components/Components/CultureChooser.razor.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
.culture-selector { | ||
--bs-border-color: rgba(255,255,255,.2); | ||
--bb-border-hover-color: rgba(255,255,255,.8); | ||
--bb-select-color: rgba(255,255,255,.85); | ||
display: flex; | ||
align-items: center; | ||
color: var(--bb-select-color); | ||
} | ||
|
||
.culture-selector span { | ||
margin: 0; | ||
color: var(--bs-navbar-color); | ||
opacity: 0.85; | ||
} | ||
|
||
.culture-selector ::deep .select { | ||
width: 210px; | ||
} | ||
|
||
.culture-selector ::deep .dropdown-menu { | ||
--bs-dropdown-link-active-bg: #7532f9; | ||
} | ||
::deep .form-control { | ||
transition: border-color .3s linear; | ||
} | ||
|
||
::deep .dropdown-toggle { | ||
--bs-body-bg: transparent; | ||
} | ||
|
||
|
||
::deep .form-select { | ||
color: var(--bb-select-color); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/BootstrapBlazor.Server/Components/Components/GlobalSearch.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div class="d-none d-xl-flex flex-xl-fill justify-content-xl-end px-3"> | ||
<Search PlaceHolder="@Localizer["Search"]" IsSelectAllTextOnEnter="true" IsSelectAllTextOnFocus="true" IsLikeMatch="true" Items="@ComponentItems" SearchButtonText="" OnSearch="OnSearch" OnSelectedItemChanged="OnSelectedItemChanged" SearchButtonColor="Color.None" class="btn-search" /> | ||
<Search PlaceHolder="@Localizer["Search"]" IsSelectAllTextOnEnter="true" IsSelectAllTextOnFocus="true" IsLikeMatch="true" Items="@ComponentItems" SearchButtonText="" OnSearch="OnSearch" OnSelectedItemChanged="OnSelectedItemChanged" SearchButtonColor="Color.None" /> | ||
</div> |
26 changes: 26 additions & 0 deletions
26
src/BootstrapBlazor.Server/Components/Components/GlobalSearch.razor.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
| ||
::deep .auto-complete { | ||
--bb-complete-border-color: rgba(255,255,255,.2); | ||
--bs-border-width: 0; | ||
--bb-complete-color: rgba(255,255,255,.85); | ||
border: 1px solid var(--bb-complete-border-color); | ||
border-radius: var(--bs-border-radius); | ||
transition: border-color .3s linear; | ||
} | ||
|
||
::deep .form-control { | ||
background-color: transparent; | ||
color: var(--bb-complete-color); | ||
} | ||
|
||
::deep .form-control::placeholder { | ||
color: rgba(255,255,255,.4); | ||
} | ||
|
||
::deep .auto-complete:hover { | ||
--bb-complete-border-color: rgba(255,255,255,.8); | ||
} | ||
|
||
::deep .btn { | ||
color: var(--bb-complete-color); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
</Alert> | ||
|
||
@code { | ||
|
||
/// <summary> | ||
/// 获得/设置 图标 | ||
/// </summary> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,7 @@ | |
margin-bottom: 0; | ||
max-height: 260px; | ||
} | ||
|
||
main { | ||
min-height: calc(100vh - var(--bs-header-height)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.