vendor: amis 6.13.0 base (fork root)

This commit is contained in:
2026-06-16 22:14:57 +08:00
commit 8c8e4247a9
3840 changed files with 2467374 additions and 0 deletions

View File

@@ -0,0 +1,361 @@
.#{$ns}AsideNav {
@include clearfix();
&-label {
color: var(--Layout-asideLabel-color);
margin-top: var(--gap-base);
margin-bottom: var(--gap-sm);
font-size: var(--fontSizeXs);
padding-left: var(--gap-base);
padding-right: var(--gap-base);
}
&-list {
list-style: none;
padding: 0;
margin: 0;
}
&-itemArrow {
float: right;
display: block;
width: var(--gap-md);
text-align: center;
line-height: px2rem(17px);
margin-top: px2rem(2px);
&:empty:before {
content: '';
display: inline-block;
transform-origin: center;
transition: transform var(--animation-duration) ease;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgNTEzIDEwMjEiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+Cgk8ZyBpZD0icmlnaHQtYXJyb3ciIGZpbGw9IiNmZmZmZmYiIGZpbGwtcnVsZT0ibm9uemVybyI+CgkJPHBhdGggZD0iTTU2LjU1OTA1NCwxMDEzLjc3MzY5IEw1MTIuOTA4MTE2LDUxMi42ODQ1MjQgTDU2LjU1OTA1NCwxMi4yMzQ1MDEgQzQ5LjQxMTQ2NzgsMi45MzQ1NTkxMiAzNy42NjY0MjM4LC0xLjU5MTg4MTc2IDI2LjEyNjIzMjQsMC41MDU5NDgyNDYgQzE0LjU4NjA0MSwyLjYwMzc3ODI1IDUuMTg1NDQ0MDksMTAuOTc0MTcyNyAxLjc2ODE1NTE2LDIyLjE5NDY0NzEgQy0xLjY0OTEzMzc3LDMzLjQxNTEyMTQgMS40ODk4MDIyOCw0NS42MDQ1MzUxIDkuOTAxNTE2LDUzLjc3ODg4NCBMNDI0LjcwNjE5Nyw1MTIuNjg0NTI0IEwxMi40NTgwOTQsOTY5LjY3MjczMSBDMi40NTgyMDU5Niw5ODIuNTUxNDk4IDQuMDEyOTc3MzcsMTAwMC45NDgzIDE2LjAzMjQ0MjIsMTAxMS45NjYxNSBDMjguMDUxOTA3MSwxMDIyLjk4Mzk5IDQ2LjUxNDIzNDYsMTAyMi45MzYxOSA1OC40NzY0ODcsMTAxMS44NTYyNiBMNTYuNTU5MDU0LDEwMTMuNzczNjkgWiIgaWQ9Iui3r+W+hCI+CgkJPC9wYXRoPgoJPC9nPgo8L3N2Zz4K);
width: px2rem(10px);
height: px2rem(10px);
background-position: center center;
background-repeat: no-repeat;
}
.#{$ns}AsideNav-item.is-open > a > &:empty:before {
transform: rotate(90deg);
color: var(--Layout-asideLink-onActive-arrowColor);
}
> svg {
color: var(--Layout-asideLink-color);
width: px2rem(10px);
height: px2rem(10px);
transform-origin: center;
transition: transform var(--animation-duration) ease;
}
.#{$ns}AsideNav-item.is-open > a > & > svg {
transform: rotate(90deg);
}
}
&-itemBadge {
padding: px2rem(2px) var(--gap-xs);
margin-top: px2rem(2px);
font-size: var(--fontSizeXs);
text-shadow: 0 px2rem(1px) 0 rgba(0, 0, 0, 0.2);
float: right;
min-width: px2rem(1px);
line-height: 1;
font-weight: var(--fontWeightBold);
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: px2rem(10px);
}
&-itemIcon {
// margin: ($Layout-nav-height - $lineHeightBase * $Layout-asideLink-fontSize)/-2
// px2rem(-10px);
margin: calc(
(
var(--Layout-nav-height) - var(--lineHeightBase) *
var(--Layout-asideLink-fontSize)
) / -2
)
px2rem(-10px);
line-height: var(--Layout-nav-height);
width: var(--Layout-nav-height);
vertical-align: middle;
float: left;
margin-right: 0;
text-align: center;
position: relative;
overflow: hidden;
color: var(--Layout-asideLink-iconColor);
font-size: var(--Layout-asideLink-onHover-iconSize);
&:before {
position: relative;
z-index: 2;
}
}
&-subList {
margin: 0;
padding: 0;
opacity: 0;
height: 0;
overflow: hidden;
margin-left: calc(var(--gap-md) * -1);
transition: all var(--animation-duration) ease-in-out 0s;
background: var(--Layout-aside-subList-bg);
.#{$ns}Layout--folded .#{$ns}AsideNav-item > & {
display: block;
overflow: hidden;
}
.is-open > &,
.#{$ns}Layout--folded .#{$ns}AsideNav-item .#{$ns}AsideNav-item.is-open > &,
.#{$ns}Layout--folded .#{$ns}AsideNav-item:hover > &,
.#{$ns}Layout--folded .#{$ns}AsideNav-item:focus > &,
.#{$ns}Layout--folded .#{$ns}AsideNav-item:active > & {
opacity: 1;
margin-left: 0;
height: auto !important;
overflow: visible;
}
}
&-item {
position: relative;
display: block;
a {
font-weight: normal;
cursor: pointer;
text-transform: none;
display: block;
font-size: var(--Layout-asideLink-fontSize);
padding: calc(
(
var(--Layout-nav-height) - var(--lineHeightBase) *
var(--Layout-asideLink-fontSize)
) / 2
)
var(--gap-base);
position: relative;
transition: background-color var(--animation-duration) ease-in-out 0s;
color: var(--Layout-asideLink-color);
text-decoration: none;
user-select: none;
&:hover {
color: var(--Layout-asideLink-onHover-color);
text-decoration: none;
background: var(--Layout-aside-onHover-bg);
.#{$ns}AsideNav-itemIcon {
color: var(--Layout-asideLink-onHover-iconColor);
}
}
}
&.is-active {
> a {
background: var(--Layout-aside-onAcitve-bg);
color: var(--Layout-asideLink-onActive-color);
&:hover {
background: var(--Layout-aside-onAcitve-onHover-bg);
}
}
}
&.is-lg {
> a {
padding: calc(
(
var(--Layout-nav-lgHeight) - var(--lineHeightBase) *
var(--Layout-asideLink-fontSize)
) / 2
)
var(--gap-md);
}
}
.#{$ns}AsideNav-item {
a {
padding-left: calc(var(--Layout-nav-height) + #{px2rem(5px)});
}
.#{$ns}AsideNav-item a {
padding-left: calc(var(--Layout-nav-height) + #{px2rem(15px)});
}
.#{$ns}AsideNav-item .#{$ns}AsideNav-item a {
padding-left: calc(var(--Layout-nav-height) + #{px2rem(30px)});
}
.#{$ns}AsideNav-item .#{$ns}AsideNav-item .#{$ns}AsideNav-item a {
padding-left: calc(var(--Layout-nav-height) + #{px2rem(45px)});
}
.#{$ns}AsideNav-subList {
display: none;
}
&.is-open .#{$ns}AsideNav-subList {
display: block;
}
}
}
&-subHeader {
display: none;
a {
cursor: default;
background: transparent;
color: var(--Layout-asideLink-color);
padding: calc(
(
var(--Layout-nav--folded-height) - var(--lineHeightBase) *
var(--Layout-asideLink-fontSize)
) / 2
)
var(--gap-md);
&:hover {
color: var(--Layout-asideLink-onHover-color);
background: transparent;
}
}
}
&-tooltip {
pointer-events: none;
left: 0;
top: 50%;
transform: translateY(-50%);
position: absolute;
font-size: var(--Tooltip--attr-fontSize);
line-height: var(--Tooltip--attr-lineHeigt);
text-align: left;
white-space: nowrap;
background: var(--Tooltip--attr-bg);
border: var(--Tooltip--attr-borderWidth) solid
var(--Tooltip--attr-borderColor);
border-radius: var(--Tooltip--attr-borderRadius);
box-shadow: var(--Tooltip--attr-boxShadow);
left: 100%;
color: var(--Tooltip--attr-color);
padding: var(--Tooltip--attr-paddingY) var(--Tooltip--attr-paddingX);
opacity: 0;
transition: var(--Tooltip--attr-transition);
}
&-divider {
width: auto;
height: px2rem(1px);
margin: var(--Layout-asideDivider-margin);
overflow: hidden;
font-size: 0;
background: var(--Layout-asideDivider-bg);
}
}
// 图片 icon
img.#{$ns}AsideNav-itemIcon {
float: none;
height: var(--Layout-asideLink-fontSize);
width: auto;
margin-right: var(--gap-xs);
vertical-align: middle;
}
// @include media-device('mobile') {
// }
@include media-breakpoint-up(md) {
.#{$ns}Layout--folded {
.#{$ns}AsideNav-label {
display: none;
}
.#{$ns}AsideNav-subHeader {
display: block;
}
.#{$ns}AsideNav-item:hover > .#{$ns}AsideNav-tooltip {
opacity: 1;
z-index: $zindex-tooltip;
margin: 0 0 0 var(--Tooltip--attr-gap);
opacity: 1;
}
.#{$ns}AsideNav-list > .#{$ns}AsideNav-item > a {
text-align: center;
position: relative;
padding: 0;
text-align: center;
height: var(--Layout-nav--folded-height);
border: none;
.#{$ns}AsideNav-itemArrow,
.#{$ns}AsideNav-itemLabel {
display: none;
}
.#{$ns}AsideNav-itemIcon {
width: auto;
float: none !important;
display: block;
font-size: px2rem(16px);
margin: 0;
line-height: var(--Layout-nav--folded-height);
border: none !important;
}
.#{$ns}AsideNav-itemBadge {
position: absolute;
right: px2rem(12px);
top: px2rem(8px);
z-index: 3;
}
}
.#{$ns}AsideNav-list > .#{$ns}AsideNav-item.is-lg > a {
height: var(--Layout-nav-lgHeight);
.#{$ns}AsideNav-itemIcon {
line-height: var(--Layout-nav-lgHeight);
}
}
.#{$ns}AsideNav-item .#{$ns}AsideNav-item a {
padding-left: var(--gap-md) !important;
}
.#{$ns}AsideNav-subList {
height: 0 !important;
position: absolute;
left: 100%;
top: 0 !important;
z-index: 1050;
width: var(--Layout-aside-width);
box-shadow: 0 px2rem(2px) px2rem(6px) rgba(0, 0, 0, 0.1);
}
&.#{$ns}Layout--sm .#{$ns}AsideNav-subList {
width: var(--Layout-aside--sm-width);
}
&.#{$ns}Layout--md .#{$ns}AsideNav-subList {
width: var(--Layout-aside--md-width);
}
&.#{$ns}Layout--lg .#{$ns}AsideNav-subList {
width: var(--Layout-aside--lg-width);
}
}
}

View File

@@ -0,0 +1,173 @@
@use 'sass:math';
@mixin make-grid($class) {
@for $i from 1 through $Grid-columns {
.#{$ns}Grid-col--#{$class}#{$i} {
flex: 0 0 percentage(math.div($i, $Grid-columns));
max-width: percentage(math.div($i, $Grid-columns));
min-height: 1px;
padding-left: (math.div($Grid-gutterWidth, 2));
padding-right: (math.div($Grid-gutterWidth, 2));
}
}
.#{$ns}Grid-col--#{$class} {
flex-basis: 0;
flex-grow: 1;
min-height: 1px;
max-width: 100%;
width: 100%;
padding-left: math.div($Grid-gutterWidth, 2);
padding-right: math.div($Grid-gutterWidth, 2);
}
.#{$ns}Grid-col--#{$class}Auto {
flex: 0 0 auto;
width: auto;
max-width: 100%;
padding-left: math.div($Grid-gutterWidth, 2);
padding-right: math.div($Grid-gutterWidth, 2);
}
}
// Generate Grid row
@mixin make-row($gutter: $Grid-gutterWidth) {
margin-left: math.div($gutter, -2);
margin-right: math.div($gutter, -2);
display: flex;
flex-wrap: wrap;
}
@include make-grid(xs);
@include media-breakpoint-up(sm) {
.#{$ns}Grid {
min-width: 0;
min-height: 0;
@include make-row;
flex: 1;
&--hRight {
justify-content: flex-end;
}
&--hCenter {
justify-content: center;
}
&--hBetween {
justify-content: space-between;
}
&--vMiddle > div {
display: flex;
flex-direction: column;
justify-content: center;
}
&--vBottom > div {
display: flex;
flex-direction: column;
justify-content: flex-end;
}
&--vBetween > div {
display: flex;
flex-direction: column;
justify-content: space-between;
}
& > &-col--vTop {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
& > &-col--vMiddle {
display: flex;
flex-direction: column;
justify-content: center;
}
& > &-col--vBottom {
display: flex;
flex-direction: column;
justify-content: flex-end;
}
& > &-col--vBetween {
display: flex;
flex-direction: column;
justify-content: space-between;
}
}
@include make-grid(sm);
}
@include media-breakpoint-up(md) {
@include make-grid(md);
}
@include media-breakpoint-up(lg) {
@include make-grid(lg);
}
.#{$ns}Grid--none {
margin-left: 0;
margin-right: 0;
> div {
padding-left: 0;
padding-right: 0;
}
}
.#{$ns}Grid--xs {
margin-left: calc(var(--gap-xs) * -0.5);
margin-right: calc(var(--gap-xs) * -0.5);
> div {
padding-left: calc(var(--gap-xs) * 0.5);
padding-right: calc(var(--gap-xs) * 0.5);
}
}
.#{$ns}Grid--sm {
margin-left: calc(var(--gap-sm) * -0.5);
margin-right: calc(var(--gap-sm) * -0.5);
> div {
padding-left: calc(var(--gap-sm) * 0.5);
padding-right: calc(var(--gap-sm) * 0.5);
}
}
.#{$ns}Grid--base {
margin-left: calc(var(--gap-base) * -0.5);
margin-right: calc(var(--gap-base) * -0.5);
> div {
padding-left: calc(var(--gap-base) * 0.5);
padding-right: calc(var(--gap-base) * 0.5);
}
}
.#{$ns}Grid--md {
margin-left: calc(var(--gap-md) * -0.5);
margin-right: calc(var(--gap-md) * -0.5);
> div {
padding-left: calc(var(--gap-md) * 0.5);
padding-right: calc(var(--gap-md) * 0.5);
}
}
.#{$ns}Grid--lg {
margin-left: calc(var(--gap-lg) * -0.5);
margin-right: calc(var(--gap-lg) * -0.5);
> div {
padding-left: calc(var(--gap-lg) * 0.5);
padding-right: calc(var(--gap-lg) * 0.5);
}
}

View File

@@ -0,0 +1,127 @@
.#{$ns}Hbox {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
&-col {
flex-basis: 0;
flex-grow: 1;
min-height: 1px;
max-width: 100%;
width: 100%;
&--customWidth {
flex-grow: unset;
flex-basis: unset;
}
&--auto {
flex: 0 0 auto;
width: auto;
max-width: 100%;
}
}
&--hRight {
justify-content: flex-end;
}
&--hCenter {
justify-content: center;
}
&--hBetween {
justify-content: space-between;
}
&--vMiddle > &-col {
display: flex;
flex-direction: column;
justify-content: center;
}
&--vBottom > &-col {
display: flex;
flex-direction: column;
justify-content: flex-end;
}
&--vBetween > &-col {
display: flex;
flex-direction: column;
justify-content: space-between;
}
& > &-col--vTop {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
& > &-col--vMiddle {
display: flex;
flex-direction: column;
justify-content: center;
}
& > &-col--vBottom {
display: flex;
flex-direction: column;
justify-content: flex-end;
}
& > &-col--vBetween {
display: flex;
flex-direction: column;
justify-content: space-between;
}
}
.#{$ns}Hbox--xs {
margin-left: calc(var(--gap-xs) * -0.5);
margin-right: calc(var(--gap-xs) * -0.5);
> .#{$ns}Hbox-col {
padding-left: calc(var(--gap-xs) * 0.5);
padding-right: calc(var(--gap-xs) * 0.5);
}
}
.#{$ns}Hbox--sm {
margin-left: calc(var(--gap-sm) * -0.5);
margin-right: calc(var(--gap-sm) * -0.5);
> .#{$ns}Hbox-col {
padding-left: calc(var(--gap-sm) * 0.5);
padding-right: calc(var(--gap-sm) * 0.5);
}
}
.#{$ns}Hbox--base {
margin-left: calc(var(--gap-base) * -0.5);
margin-right: calc(var(--gap-base) * -0.5);
> .#{$ns}Hbox-col {
padding-left: calc(var(--gap-base) * 0.5);
padding-right: calc(var(--gap-base) * 0.5);
}
}
.#{$ns}Hbox--md {
margin-left: calc(var(--gap-md) * -0.5);
margin-right: calc(var(--gap-md) * -0.5);
> .#{$ns}Hbox-col {
padding-left: calc(var(--gap-md) * 0.5);
padding-right: calc(var(--gap-md) * 0.5);
}
}
.#{$ns}Hbox--lg {
margin-left: calc(var(--gap-lg) * -0.5);
margin-right: calc(var(--gap-lg) * -0.5);
> .#{$ns}Hbox-col {
padding-left: calc(var(--gap-lg) * 0.5);
padding-right: calc(var(--gap-lg) * 0.5);
}
}

View File

@@ -0,0 +1,492 @@
html,
body {
width: 100%;
height: 100%;
}
body {
overflow-x: hidden;
}
.#{$ns}Layout {
min-height: 100%;
width: 100%;
position: relative;
&:before {
content: '';
position: absolute;
width: inherit;
top: 0;
bottom: 0;
z-index: -1;
background: var(--body-bg);
border: inherit;
display: block;
}
&--boxed {
margin-right: auto;
margin-left: auto;
// box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}
.#{$ns}Layout-header {
background: var(--Layout-header-bg);
box-shadow: var(--Layout-header-boxShadow);
height: var(--Layout-header-height);
}
&--headerFixed {
padding-top: var(--Layout-header-height);
.#{$ns}Layout-header {
position: fixed;
top: 0;
width: 100%;
z-index: $zindex-fixed;
}
--affix-offset-top: var(--Layout-header-height);
}
&-brandBar {
background: var(--Layout-brand-bg);
color: var(--Layout-brandBar-color);
> button {
padding: px2rem(10px) px2rem(17px);
font-size: px2rem(16px);
line-height: calc(var(--Layout-header-height) - var(--gap-md));
text-decoration: none;
background: transparent;
border: none;
}
}
&-brand {
color: var(--Layout-brand-color);
text-align: left;
font-size: var(--fontSizeMd);
font-weight: var(--fontWeightNormal);
max-width: 100%;
height: auto;
line-height: var(--Layout-header-height);
display: inline-block;
vertical-align: middle;
padding: 0 var(--gap-base);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&:hover {
text-decoration: none;
}
img {
max-height: calc(var(--Layout-header-height) / 2);
// margin-top: px2rem(-4px);
vertical-align: middle;
display: inline;
}
}
&-headerBar {
border-bottom: var(--Layout-headerBar-borderBottom);
min-height: var(--Layout-header-height);
padding: 0 var(--gap-sm);
display: flex;
flex-direction: row;
align-items: center;
}
&-offScreenBtn {
display: none;
float: right;
padding: 13px var(--gap-md);
}
&-aside {
position: relative;
background: var(--Layout-aside-bg);
color: var(--Layout-aside-color);
&:before {
content: '';
position: absolute;
width: inherit;
top: 0;
bottom: 0;
z-index: -1;
background: inherit;
border: inherit;
}
}
&-asideFooter {
position: absolute;
bottom: 0;
width: 100%;
z-index: $zindex-fixed;
max-width: var(--Layout-aside-width);
// .app-aside-folded & {
// max-width: @app-aside-folded-width;
// }
~ div {
padding-bottom: px2rem(50px);
}
}
// &-content--full {
// position: absolute;
// top: var(--Layout-header-height);
// bottom: var(--Layout-header-height);
// height: auto;
// width: auto !important;
// padding: 0 !important;
// overflow-y: auto;
// -webkit-overflow-scrolling: touch;
// &.h-full {
// bottom: 0;
// height: auto;
// }
// }
&-main {
padding-bottom: var(--Layout-footer-height);
width: 100%;
height: 100%;
}
&--noFooter &-main {
padding-bottom: 0;
}
&-footer {
position: absolute;
bottom: 0;
left: 0;
right: 0;
// z-index: 1005; 为啥要这么高
z-index: 0;
}
&--sm {
.#{$ns}Layout-asideFooter {
max-width: var(--Layout-aside--sm-width);
}
.#{$ns}AsideNav-item a {
font-size: var(--fontSizeSm);
}
}
&--md .#{$ns}Layout-asideFooter {
max-width: var(--Layout-aside--md-width);
}
&--lg .#{$ns}Layout-asideFooter {
max-width: var(--Layout-aside--lg-width);
}
}
@include media-breakpoint-down(sm) {
// .#{$ns}Layout {
// Layout 层没有出现滚动条件,导致移动端无法响应固定顶部/底部效果
// overflow-x: hidden;
// }
.#{$ns}Layout-content {
transition: transform var(--animation-duration) ease;
}
.#{$ns}Layout-aside {
display: none;
.#{$ns}Layout--offScreen & {
position: fixed;
top: px2rem(50px);
bottom: 0;
width: var(--Layout--offscreen-width);
display: block !important;
visibility: visible;
overflow-x: hidden;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
z-index: 1010;
}
}
.#{$ns}Layout-headerBar {
display: none;
}
.#{$ns}Layout--offScreen {
.#{$ns}Layout-body,
.#{$ns}Layout-footer {
background: var(--body-bg);
transition: transform var(--animation-duration) ease;
backface-visibility: hidden;
transform: translate3d(var(--Layout--offscreen-width), 0px, 0px);
overflow: hidden;
position: fixed;
width: 100%;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1015;
padding-top: px2rem(50px);
}
}
.#{$ns}Layout-offScreenBtn {
display: block;
}
}
@include media-breakpoint-up(md) {
.#{$ns}Layout {
display: flex;
flex-direction: column;
&-header {
width: 100%;
}
&-main {
flex-grow: 1;
display: flex;
min-width: 0;
flex-direction: row;
justify-content: stretch;
align-items: stretch;
}
&-body {
flex-grow: 1;
min-width: 0;
display: flex;
flex-direction: column;
justify-content: stretch;
align-items: stretch;
}
&-content {
display: flex;
flex-grow: 1;
min-width: 0;
position: relative;
min-height: 0;
// height: 0;
}
> .#{$ns}Layout-body {
flex-grow: 1;
position: relative;
// height: 0;
}
&--boxed {
width: px2rem(760px);
&.#{$ns}Layout--headerFixed .#{$ns}Layout-header {
width: px2rem(760px);
}
}
&-brand,
&-brandBar,
&-aside {
width: var(--Layout-aside-width);
flex-shrink: 0;
transition: width var(--animation-duration) ease;
}
&-brandBar {
float: left;
}
&--withAside {
// flex-direction: row;
// flex-wrap: wrap;
// justify-content: stretch;
// > .#{$ns}Layout-content {
// flex-grow: 1;
// width: 0;
// position: relative;
// }
.#{$ns}Layout-headerBar,
.#{$ns}Layout-footer {
margin-left: var(--Layout-aside-width);
transition: margin var(--animation-duration) ease;
}
}
.visible-folded {
display: none;
}
&--folded {
.visible-folded {
display: inherit;
}
.hidden-folded {
display: none !important;
}
.text-center-folded {
text-align: center;
}
.pull-none-folded {
float: none !important;
}
.w-auto-folded {
width: auto;
}
.#{$ns}Layout-aside,
.#{$ns}Layout-brandBar {
width: var(--Layout-aside--folded-width);
}
&.#{$ns}Layout--withAside {
.#{$ns}Layout-headerBar,
.#{$ns}Layout-footer {
margin-left: var(--Layout-aside--folded-width);
}
}
.#{$ns}Layout-brand {
display: block;
padding: 0;
font-size: var(--fontSizeLg);
text-align: center;
}
}
&--asideFixed {
.#{$ns}Layout-aside {
height: 100%;
&:before {
position: fixed;
z-index: 15;
}
}
.#{$ns}Layout-brandBar {
position: fixed;
}
.#{$ns}Layout-asideWrap {
position: fixed;
overflow: hidden;
top: var(--Layout-header-height);
bottom: 0;
left: 0;
width: inherit;
z-index: $zindex-fixed;
}
.#{$ns}Layout-asideInner {
position: relative;
width: 100%;
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
scrollbar-width: none; /* Firfox */
&::-webkit-scrollbar {
-webkit-appearance: none;
}
&::-webkit-scrollbar:vertical {
width: 0; /* chrome */
}
}
}
&--noHeader &-asideWrap {
top: 0;
}
&--asideFixed.#{$ns}Layout--folded {
.#{$ns}Layout-aside {
position: static;
}
.#{$ns}Layout-brandBar {
position: static;
padding-right: 17px;
}
.#{$ns}Layout-asideWrap {
overflow: visible;
// position: relative;
// top: 0;
}
.#{$ns}Layout-asideInner {
overflow: visible;
padding-right: 17px;
}
}
&--sm:not(.#{$ns}Layout--folded) {
.#{$ns}Layout-brand,
.#{$ns}Layout-brandBar,
.#{$ns}Layout-aside {
width: var(--Layout-aside--sm-width);
}
}
&--md:not(.#{$ns}Layout--folded) {
.#{$ns}Layout-brand,
.#{$ns}Layout-brandBar,
.#{$ns}Layout-aside {
width: var(--Layout-aside--md-width);
}
}
&--lg:not(.#{$ns}Layout--folded) {
.#{$ns}Layout-brand,
.#{$ns}Layout-brandBar,
.#{$ns}Layout-aside {
width: var(--Layout-aside--lg-width);
}
}
}
}
@include media-breakpoint-up(lg) {
.#{$ns}Layout {
&--boxed {
width: px2rem(980px);
&.#{$ns}Layout--headerFixed .#{$ns}Layout-header {
width: px2rem(980px);
}
}
}
}
@include media-breakpoint-up(xl) {
.#{$ns}Layout {
&--boxed {
width: px2rem(1180px);
&.#{$ns}Layout--headerFixed .#{$ns}Layout-header {
width: px2rem(1180px);
}
}
}
}

View File

@@ -0,0 +1,38 @@
.#{$ns}Vbox {
display: table;
border-spacing: 0;
position: relative;
width: 100%;
height: 100%;
min-height: 240px;
& .row-row {
display: table-row;
height: 100%;
& .#{$ns}Vbox-cell {
position: relative;
height: 100%;
width: 100%;
.ie & {
display: table-cell;
overflow: auto;
& .cell-inner {
overflow: visible !important;
}
}
& .cell-inner {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
-webkit-overflow-scrolling: touch;
overflow: auto;
}
}
}
}