mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-02 03:59:14 +08:00
feat(WinBox): add Mask background color function (#4164)
* fix: 模态框支持遮罩 * refactor: 更新遮罩透明度 * chore: bump version 8.0.2 * doc: 更新遮罩功能
This commit is contained in:
parent
d58768cd80
commit
c22a03d5c0
@ -66,7 +66,7 @@
|
||||
<PackageReference Include="BootstrapBlazor.Topology" Version="8.0.9" />
|
||||
<PackageReference Include="BootstrapBlazor.VideoPlayer" Version="8.0.7-beta1" />
|
||||
<PackageReference Include="BootstrapBlazor.WebAPI" Version="8.0.5" />
|
||||
<PackageReference Include="BootstrapBlazor.WinBox" Version="8.0.1" />
|
||||
<PackageReference Include="BootstrapBlazor.WinBox" Version="8.0.2" />
|
||||
<PackageReference Include="Longbow.Logging" Version="8.0.0" />
|
||||
<PackageReference Include="Longbow.Tasks" Version="8.0.3" />
|
||||
<PackageReference Include="System.Drawing.Common" Version="8.0.8" />
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>8.0.1</Version>
|
||||
<Version>8.0.2</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
@ -1,11 +1,16 @@
|
||||
@import url('./winbox.min.css');
|
||||
|
||||
:root {
|
||||
--bb-winbox-mask-bg-opacity: 0.3;
|
||||
}
|
||||
|
||||
.winbox {
|
||||
--bb-winbox-bg: #b5b5c3;
|
||||
--bb-winbox-bg-dark: #383b3f;
|
||||
--bb-winbox-body-padding: .5rem;
|
||||
--bb-window-border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
|
||||
--bb-winbox-footer-border-color: var(--bs-border-color);
|
||||
--bb-winbox-mask-bg: #000;
|
||||
background: var(--bb-winbox-bg);
|
||||
border-radius: var(--bb-window-border-radius);
|
||||
}
|
||||
@ -33,7 +38,21 @@
|
||||
|
||||
.winbox.modal {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.winbox.modal:after {
|
||||
background: var(--bb-winbox-mask-bg);
|
||||
}
|
||||
|
||||
@keyframes wb-fade-in {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: var(--bb-winbox-mask-bg-opacity);
|
||||
}
|
||||
}
|
||||
|
||||
[data-bs-theme='dark'] .winbox {
|
||||
|
Loading…
Reference in New Issue
Block a user