feat: 增加 Tab 标签页固定样式

This commit is contained in:
Argo-Tianyi 2021-12-19 19:01:31 +08:00
parent fa3d6ba274
commit fa3374a492
2 changed files with 40 additions and 1 deletions

View File

@ -1,6 +1,6 @@
@inherits LayoutComponentBase
<Layout SideWidth="0" IsPage="true" IsFullSide="true" IsFixedHeader="true" IsFixedFooter="false"
<Layout SideWidth="0" IsPage="true" IsFullSide="true" IsFixedHeader="true"
ShowFooter="true" ShowGotoTop="true" ShowCollapseBar="true" Menus="@MenuItems"
OnAuthorizing="@OnAuthorizing"
UseTabSet="true" TabDefaultUrl="/Admin/Index">

View File

@ -2,6 +2,10 @@
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
:root {
--bb-footer-height: 40px;
}
#blazor-error-ui {
background: lightyellow;
bottom: 0;
@ -34,3 +38,38 @@
.tabs-border-card {
box-shadow: none;
}
.tabs-body {
height: calc(100vh - 89px - var(--bb-footer-height));
overflow: auto;
scrollbar-color: rgba(0,0,0,0.3) rgba(0,0,0,0);
scrollbar-width: thin;
}
.tabs-body::-webkit-scrollbar {
width: 6px;
height: 6px
}
.tabs-body::-webkit-scrollbar-thumb {
border-radius: 3px;
background-color: rgba(0,0,0,0.2);
}
.tabs-body::-webkit-scrollbar-thumb:hover {
background-color: rgba(0,0,0,0.3);
}
.tabs-body .tabs-body-content {
width: calc(100vw - 214px - 32px);
}
@media (min-width: 992px) {
.tabs-body {
overflow: hidden;
}
.tabs-body:hover {
overflow-y: auto;
}
}