antd-custom-tpl
Version:
antd-custom项目模板
117 lines (101 loc) • 2.14 kB
text/less
.header {
padding: 0;
box-shadow: 0 1px 4px rgba(0,21,41,.08);
position: relative;
display: flex;
justify-content: space-between;
height: 64px;
z-index: 9;
align-items: center;
background-color: #fff;
.rightcon {
display: flex;
}
.trigger {
font-size: 18px;
line-height: 64px;
padding: 0 24px;
cursor: pointer;
transition: color 0.3s;
}
.trigger:hover {
color: #1890ff;
}
&.fixed {
position: fixed;
top: 0;
right: 0;
width: ~'calc(100% - 256px)';
z-index: 29;
transition: width 0.2s;
&.collapsed {
width: ~'calc(100% - 80px)';
}
}
:global {
.ant-menu-submenu-title {
height: 64px;
}
.ant-menu-horizontal {
line-height: 64px;
& > .ant-menu-submenu:hover {
background-color: rgb(230, 230, 230);
}
}
.ant-menu {
border-bottom: none;
height: 64px;
}
.ant-menu-horizontal > .ant-menu-submenu {
top: 0;
margin-top: 0;
}
.ant-menu-horizontal > .ant-menu-item,
.ant-menu-horizontal > .ant-menu-submenu {
border-bottom: none;
}
.ant-menu-horizontal > .ant-menu-item-active,
.ant-menu-horizontal > .ant-menu-item-open,
.ant-menu-horizontal > .ant-menu-item-selected,
.ant-menu-horizontal > .ant-menu-item:hover,
.ant-menu-horizontal > .ant-menu-submenu-active,
.ant-menu-horizontal > .ant-menu-submenu-open,
.ant-menu-horizontal > .ant-menu-submenu-selected,
.ant-menu-horizontal > .ant-menu-submenu:hover {
border-bottom: none;
}
}
.rightContainer {
display: flex;
align-items: center;
}
.button {
width: 64px;
height: 64px;
line-height: 64px;
text-align: center;
font-size: 18px;
cursor: pointer;
}
}
.iconButton {
width: 48px;
height: 48px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 24px;
cursor: pointer;
& + .iconButton {
margin-left: 8px;
}
.iconFont {
color: #b2b0c7;
font-size: 24px;
}
}
@media (max-width: 767px) {
.header {
width: 100% ;
}
}