mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:39:07 +08:00
8e27cf986f
* chore: rm component less file * refactor: less file * refactor: rm less * refactor: rm page-header and comment * chore: rm less in components * chore: update dist config * chore: update image test * chore: update dekko * chore: rm lib dekko * chore: update dist dekko * chore: udpate bundle size * test: update snapshot * test: rm theme test * test: update snapshot * test: update snapshot * chore: copy reset.css * test: update image test * chore: copy reset.css to es * chore: update site script
84 lines
1.4 KiB
Plaintext
84 lines
1.4 KiB
Plaintext
@import '../../../static/theme.less';
|
|
@import (reference) '../../../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;
|
|
}
|
|
}
|
|
}
|
|
}
|