mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 09:49:57 +08:00
b926c535ea
* chore: rm color-less * refactor: MV theme to variable * docs: fix header * chore: clean up * chore: enable esbuild
84 lines
1.4 KiB
Plaintext
84 lines
1.4 KiB
Plaintext
@import '../../../static/theme.less';
|
|
@import (reference) '../../../../../components/style/themes/index.less';
|
|
@import './index.less';
|
|
|
|
#nav {
|
|
height: 100%;
|
|
font-size: 14px;
|
|
font-family: Avenir, @font-family, sans-serif;
|
|
border: 0;
|
|
|
|
&.ant-menu-horizontal {
|
|
border-bottom: none;
|
|
|
|
& > .ant-menu-item,
|
|
& > .ant-menu-submenu {
|
|
min-width: (40px + 12px * 2);
|
|
height: @header-height;
|
|
padding-right: 12px;
|
|
padding-left: 12px;
|
|
line-height: @header-height;
|
|
|
|
&::after {
|
|
top: 0;
|
|
right: 12px;
|
|
bottom: auto;
|
|
left: 12px;
|
|
border-width: @menu-item-border;
|
|
}
|
|
}
|
|
|
|
& .ant-menu-submenu-title .anticon {
|
|
margin: 0;
|
|
}
|
|
|
|
& > .ant-menu-item-selected {
|
|
a {
|
|
color: @primary-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
& > .ant-menu-item,
|
|
& > .ant-menu-submenu {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.header-link {
|
|
color: @site-text-color;
|
|
}
|
|
|
|
.ant-menu-item-active .header-link {
|
|
color: @primary-color;
|
|
}
|
|
|
|
// Popover menu is only used for mobile
|
|
.popover-menu {
|
|
width: 300px;
|
|
|
|
.ant-popover-inner-content {
|
|
padding: 0;
|
|
|
|
#nav {
|
|
.ant-menu-item,
|
|
.ant-menu-submenu {
|
|
text-align: left;
|
|
}
|
|
|
|
.ant-menu-item-group-title {
|
|
padding-left: 24px;
|
|
}
|
|
|
|
.ant-menu-item-group-list {
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.ant-menu-item,
|
|
a {
|
|
color: #333;
|
|
}
|
|
}
|
|
}
|
|
}
|