ant-design/site/theme/static/common.less

178 lines
2.8 KiB
Plaintext
Raw Normal View History

2016-03-15 17:40:31 +08:00
html,
body {
height: 100%;
}
html {
overflow-x: hidden;
}
body {
2017-11-28 16:15:22 +08:00
color: @site-text-color;
2016-03-15 17:40:31 +08:00
font-size: 14px;
font-family: @font-family;
line-height: 1.5;
2017-02-26 15:41:50 +08:00
background: #fff;
2016-03-15 17:40:31 +08:00
transition: background 1s cubic-bezier(0.075, 0.82, 0.165, 1);
2016-03-08 16:12:04 +08:00
}
2016-03-22 19:19:37 +08:00
a {
2018-12-07 16:17:45 +08:00
transition: color 0.3s ease;
2016-03-22 19:19:37 +08:00
}
2016-02-29 14:08:40 +08:00
.main-wrapper {
position: relative;
padding: 40px 0 0;
background: #fff;
2016-02-29 14:08:40 +08:00
}
2017-02-21 12:07:28 +08:00
.main-container {
position: relative;
2016-02-29 14:08:40 +08:00
min-height: 500px;
padding: 0 170px 144px 64px;
2016-02-29 14:08:40 +08:00
overflow: hidden;
background: #fff;
2016-03-01 16:20:32 +08:00
}
2017-11-27 16:51:59 +08:00
.main-menu {
z-index: 1;
&-inner {
height: 100%;
max-height: 100vh;
overflow-x: hidden;
overflow-y: hidden;
}
&:hover &-inner {
overflow-y: auto;
}
> div,
> div > div {
height: 100%;
}
2017-11-27 16:51:59 +08:00
}
2016-03-24 17:13:19 +08:00
.aside-container {
height: 100%;
padding-bottom: 48px;
2019-01-28 16:01:25 +08:00
font-family: Avenir, @font-family, sans-serif;
2016-03-02 12:10:18 +08:00
&.ant-menu-inline {
.ant-menu-submenu-title h4,
> .ant-menu-item,
.ant-menu-item a {
overflow: hidden;
font-weight: 500;
font-size: 14px;
text-overflow: ellipsis;
}
.ant-menu-item-group-title {
margin-top: 16px;
margin-bottom: 16px;
font-size: 13px;
&::after {
position: relative;
top: 12px;
display: block;
width: calc(100% - 20px);
height: 1px;
background: @border-color-split;
content: '';
}
}
> .ant-menu-item,
> .ant-menu-submenu > .ant-menu-submenu-title,
> .ant-menu-item-group > .ant-menu-item-group-title,
> .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item {
padding-left: 40px !important;
}
2016-03-18 11:24:01 +08:00
.ant-menu-item-group:first-child {
.ant-menu-item-group-title {
margin-top: 0;
}
}
}
2016-03-02 12:10:18 +08:00
a[disabled] {
color: #ccc;
}
2017-01-22 19:16:54 +08:00
.menu-item-link-outside {
position: relative;
.anticon {
position: absolute;
top: 16px;
right: -10px;
color: @primary-color;
font-size: 12px;
opacity: 0;
2018-12-07 16:17:45 +08:00
transition: all 0.3s;
2017-01-22 19:16:54 +08:00
}
&:hover .anticon {
opacity: 1;
}
}
2016-03-01 17:42:23 +08:00
}
2016-03-24 17:13:19 +08:00
.aside-container .chinese {
2016-03-01 16:20:32 +08:00
margin-left: 6px;
font-weight: normal;
font-size: 12px;
2018-12-07 16:17:45 +08:00
opacity: 0.67;
2016-03-07 11:35:23 +08:00
}
2016-08-04 17:59:07 +08:00
.outside-link {
display: inline-block;
}
2018-08-21 18:33:52 +08:00
.outside-link-icon {
2016-03-07 11:35:23 +08:00
margin-left: 5px;
2016-08-04 17:59:07 +08:00
color: #aaa;
font-size: 12px;
2016-03-07 11:35:23 +08:00
}
2017-11-28 17:59:28 +08:00
// reset menu text color
.menu-site {
.ant-menu-item > a {
color: @site-text-color;
}
2017-11-28 17:59:28 +08:00
.ant-menu-item-selected > a,
.ant-menu-item > a:hover {
color: @primary-color;
}
2017-11-28 17:59:28 +08:00
}
2017-11-28 16:15:22 +08:00
#react-content {
2018-03-26 16:53:02 +08:00
height: 100%;
transition: transform 0.3s @ease-in-out-circ;
2017-11-28 16:15:22 +08:00
}
2018-01-04 20:00:38 +08:00
.page-wrapper {
width: 100%;
padding: 0;
overflow: hidden;
2018-01-04 20:00:38 +08:00
}
2017-11-28 16:15:22 +08:00
.drawer-content {
padding: 40px 0;
}
2017-11-21 11:18:31 +08:00
.drawer {
z-index: 1029;
}
#_hj_feedback_container {
.path1::before {
color: @primary-color !important;
}
.path2::before {
color: #fff !important;
}
}