mt-ui-components-vue3
Version:
玛果添实UI组件库(Vue3)
175 lines (153 loc) • 3.83 kB
text/less
@import '../style/default.less';
@top-nav-header-prefix-cls: 'ant-pro-top-nav-header';
@pro-layout-global-header-prefix-cls: 'ant-pro-global-header';
@pro-layout-header-bg: @component-background;
@pro-layout-header-hover-bg: @component-background;
@pro-layout-header-box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
.@{pro-layout-global-header-prefix-cls} {
position: relative;
display: flex;
align-items: center;
height: 100%;
padding: 0 16px;
background: @pro-layout-header-bg;
box-shadow: @pro-layout-header-box-shadow;
> * {
height: 100%;
}
&-collapsed-button {
display: flex;
align-items: center;
margin-left: 16px;
font-size: 20px;
}
&-layout {
&-mix {
background-color: @layout-sider-background;
.@{pro-layout-global-header-prefix-cls}-logo {
h1 {
color: @btn-primary-color;
}
}
.anticon {
color: @btn-primary-color;
}
}
}
&-logo {
position: relative;
overflow: hidden;
a {
display: flex;
align-items: center;
height: 100%;
img {
height: 28px;
}
h1 {
height: 32px;
margin: 0 0 0 8px;
margin: 0 0 0 12px;
color: @primary-color;
font-weight: 600;
font-size: 18px;
line-height: 32px;
}
}
}
&-menu {
.anticon {
margin-right: 8px;
}
.@{ant-prefix}-dropdown-menu-item {
min-width: 160px;
}
}
.dark {
height: @pro-layout-header-height;
.action {
color: rgba(255, 255, 255, 0.85);
> i {
color: rgba(255, 255, 255, 0.85);
}
&:hover,
&.opened {
background: @primary-color;
}
.@{ant-prefix}-badge {
color: rgba(255, 255, 255, 0.85);
}
}
}
}
.@{top-nav-header-prefix-cls} {
position: relative;
width: 100%;
height: 100%;
box-shadow: 0 1px 4px 0 rgba(0, 21, 41, 0.12);
transition: background 0.3s, width 0.2s;
.@{ant-prefix}-menu {
background: transparent;
}
&.light {
background-color: @component-background;
.@{top-nav-header-prefix-cls}-logo {
h1 {
color: @heading-color;
}
}
.anticon {
color: inherit;
}
}
&-main {
display: flex;
height: 100%;
padding-left: 16px;
&-left {
display: flex;
min-width: 192px;
}
}
.anticon {
color: @btn-primary-color;
}
&-logo {
position: relative;
min-width: 165px;
height: 100%;
overflow: hidden;
img {
display: inline-block;
height: 32px;
vertical-align: middle;
}
h1 {
display: inline-block;
margin: 0 0 0 12px;
color: @btn-primary-color;
font-weight: 600;
font-size: 16px;
vertical-align: top;
}
}
&-menu {
min-width: 0;
.@{ant-prefix}-menu.@{ant-prefix}-menu-horizontal {
height: 100%;
border: none;
.@{ant-prefix}-menu-item {
height: 100%;
.@{ant-prefix}-badge {
color: unset;
}
}
}
}
}
// replace sub.item
.@{ant-prefix}-pro-menu-popup {
.@{ant-prefix}-badge {
color: unset;
}
}