2020-11-09 20:10:24 +08:00
|
|
|
html {
|
|
|
|
&.rtl {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
2020-04-24 18:48:05 +08:00
|
|
|
}
|
|
|
|
|
2019-11-29 09:57:28 +08:00
|
|
|
body {
|
2021-01-07 16:16:54 +08:00
|
|
|
overflow-x: hidden;
|
2017-11-28 16:15:22 +08:00
|
|
|
color: @site-text-color;
|
2020-09-02 15:48:09 +08:00
|
|
|
font-size: @font-size-base;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-family: @font-family;
|
2019-12-23 16:02:09 +08:00
|
|
|
background: @body-background;
|
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;
|
2019-02-15 10:48:07 +08:00
|
|
|
padding: 40px 0 0;
|
2019-12-23 11:46:40 +08:00
|
|
|
background: @component-background;
|
2016-02-29 14:08:40 +08:00
|
|
|
}
|
|
|
|
|
2017-02-21 12:07:28 +08:00
|
|
|
.main-container {
|
2019-02-15 10:48:07 +08:00
|
|
|
position: relative;
|
2016-02-29 14:08:40 +08:00
|
|
|
min-height: 500px;
|
2019-12-17 17:58:58 +08:00
|
|
|
padding: 0 170px 32px 64px;
|
2019-12-23 11:46:40 +08:00
|
|
|
background: @component-background;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
|
|
|
.ant-row-rtl & {
|
|
|
|
padding: 0 64px 144px 170px;
|
|
|
|
}
|
2016-03-01 16:20:32 +08:00
|
|
|
}
|
|
|
|
|
2017-11-27 16:51:59 +08:00
|
|
|
.main-menu {
|
|
|
|
z-index: 1;
|
2018-12-24 15:59:59 +08:00
|
|
|
|
|
|
|
&-inner {
|
2019-12-19 14:47:12 +08:00
|
|
|
height: 100%;
|
2019-02-15 10:48:07 +08:00
|
|
|
max-height: 100vh;
|
2019-12-18 14:34:47 +08:00
|
|
|
overflow: hidden;
|
2018-12-24 15:59:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover &-inner {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
2019-12-19 14:47:12 +08:00
|
|
|
|
|
|
|
> div,
|
|
|
|
> div > div {
|
|
|
|
height: 100%;
|
|
|
|
}
|
2017-11-27 16:51:59 +08:00
|
|
|
}
|
|
|
|
|
2016-03-24 17:13:19 +08:00
|
|
|
.aside-container {
|
2019-12-21 12:09:29 +08:00
|
|
|
min-height: 100%;
|
2018-12-24 15:59:59 +08:00
|
|
|
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
|
|
|
|
2019-12-19 14:47:12 +08:00
|
|
|
&.ant-menu-inline {
|
|
|
|
.ant-menu-submenu-title h4,
|
|
|
|
> .ant-menu-item,
|
|
|
|
.ant-menu-item a {
|
|
|
|
overflow: hidden;
|
|
|
|
font-size: 14px;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
2019-12-26 15:27:52 +08:00
|
|
|
> .ant-menu-item-group > .ant-menu-item-group-title {
|
2019-12-19 14:47:12 +08:00
|
|
|
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,
|
2019-12-26 15:27:52 +08:00
|
|
|
> .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item,
|
|
|
|
&.ant-menu-inline > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item {
|
2019-12-19 14:47:12 +08:00
|
|
|
padding-left: 40px !important;
|
2020-03-04 18:59:33 +08:00
|
|
|
|
|
|
|
.ant-row-rtl & {
|
|
|
|
padding-right: 40px !important;
|
|
|
|
padding-left: 16px !important;
|
|
|
|
}
|
2019-12-19 14:47:12 +08:00
|
|
|
}
|
2016-03-18 11:24:01 +08:00
|
|
|
|
2019-12-26 15:27:52 +08:00
|
|
|
// Nest Category > Type > Article
|
|
|
|
&.ant-menu-inline {
|
|
|
|
.ant-menu-item-group-title {
|
2020-08-12 17:37:31 +08:00
|
|
|
padding-left: 60px;
|
2020-03-04 18:59:33 +08:00
|
|
|
|
|
|
|
.ant-row-rtl & {
|
2020-08-12 17:37:31 +08:00
|
|
|
padding-right: 60px;
|
2020-03-04 18:59:33 +08:00
|
|
|
padding-left: 16px;
|
|
|
|
}
|
2019-12-26 15:27:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.ant-menu-item-group-list > .ant-menu-item {
|
|
|
|
padding-left: 80px !important;
|
2020-03-04 18:59:33 +08:00
|
|
|
|
|
|
|
.ant-row-rtl & {
|
|
|
|
padding-right: 80px !important;
|
|
|
|
padding-left: 16px !important;
|
|
|
|
}
|
2019-12-26 15:27:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-19 14:47:12 +08:00
|
|
|
.ant-menu-item-group:first-child {
|
|
|
|
.ant-menu-item-group-title {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
2017-11-27 15:36:58 +08:00
|
|
|
}
|
|
|
|
|
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;
|
2019-02-15 10:48:07 +08:00
|
|
|
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;
|
2019-02-15 10:48:07 +08:00
|
|
|
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;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-size: 12px;
|
2020-04-26 22:13:15 +08:00
|
|
|
.ant-row-rtl & {
|
|
|
|
margin-right: 5px;
|
|
|
|
margin-left: 0;
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
2016-03-07 11:35:23 +08:00
|
|
|
}
|
|
|
|
|
2017-11-28 17:59:28 +08:00
|
|
|
// reset menu text color
|
2019-07-17 19:52:02 +08:00
|
|
|
.menu-site {
|
|
|
|
.ant-menu-item > a {
|
|
|
|
color: @site-text-color;
|
|
|
|
}
|
2017-11-28 17:59:28 +08:00
|
|
|
|
2019-07-17 19:52:02 +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%;
|
2019-02-15 10:48:07 +08:00
|
|
|
transition: transform 0.3s @ease-in-out-circ;
|
2017-11-28 16:15:22 +08:00
|
|
|
}
|
|
|
|
|
2017-11-17 19:17:37 +08:00
|
|
|
.drawer-content {
|
|
|
|
padding: 40px 0;
|
2020-02-24 22:44:29 +08:00
|
|
|
&-wrapper {
|
|
|
|
background-color: @component-background;
|
|
|
|
}
|
2017-11-17 19:17:37 +08:00
|
|
|
}
|
|
|
|
|
2017-11-21 11:18:31 +08:00
|
|
|
.drawer {
|
|
|
|
z-index: 1029;
|
2017-11-17 19:17:37 +08:00
|
|
|
}
|
2018-10-28 17:59:34 +08:00
|
|
|
|
2019-03-20 19:34:07 +08:00
|
|
|
#_hj_feedback_container {
|
2020-10-13 20:44:55 +08:00
|
|
|
[class$='icon_emotion_path1']::before {
|
2019-03-20 19:34:07 +08:00
|
|
|
color: @primary-color !important;
|
|
|
|
}
|
2018-10-28 17:59:34 +08:00
|
|
|
}
|
2019-12-18 18:45:05 +08:00
|
|
|
|
|
|
|
.fixed-widgets {
|
|
|
|
position: fixed;
|
2019-12-25 00:14:17 +08:00
|
|
|
right: 32px;
|
2019-12-26 15:55:10 +08:00
|
|
|
bottom: 102px;
|
|
|
|
z-index: 2147483640;
|
2020-03-29 10:39:46 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-12-25 00:14:17 +08:00
|
|
|
cursor: pointer;
|
2019-12-31 13:50:30 +08:00
|
|
|
&-tooltip {
|
|
|
|
.ant-tooltip-inner {
|
|
|
|
min-width: 100px;
|
|
|
|
}
|
|
|
|
}
|
2019-12-18 18:45:05 +08:00
|
|
|
& > div {
|
|
|
|
display: block;
|
|
|
|
}
|
2020-03-29 10:39:46 +08:00
|
|
|
&-active {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
2019-12-25 00:14:17 +08:00
|
|
|
& &-avatar {
|
2020-03-29 10:39:46 +08:00
|
|
|
color: #000;
|
2019-12-25 00:14:17 +08:00
|
|
|
background-color: #fff;
|
2020-02-27 10:53:30 +08:00
|
|
|
box-shadow: @shadow-2;
|
2020-04-24 18:48:05 +08:00
|
|
|
transition: color 0.3s;
|
2020-03-29 10:39:46 +08:00
|
|
|
&:hover {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
2019-12-25 00:14:17 +08:00
|
|
|
}
|
2019-12-18 18:45:05 +08:00
|
|
|
}
|
2020-03-17 23:01:17 +08:00
|
|
|
|
|
|
|
// keep transition consistent to make mode toggle animation be more smooth, include:
|
|
|
|
// nav bar background
|
|
|
|
// nav search border
|
|
|
|
// nav menu background
|
|
|
|
// wrapper content
|
|
|
|
// sidemenu background
|
|
|
|
// sidemenu active background
|
|
|
|
// content background
|
|
|
|
// affix toc
|
|
|
|
#header,
|
|
|
|
#header #search-box,
|
|
|
|
#header #nav.ant-menu,
|
|
|
|
.main-wrapper,
|
|
|
|
.main-wrapper > .ant-row > .main-menu .main-menu-inner > .ant-menu,
|
2020-03-29 10:39:46 +08:00
|
|
|
.main-wrapper
|
|
|
|
> .ant-row
|
|
|
|
> .main-menu
|
|
|
|
.main-menu-inner
|
|
|
|
> .ant-menu.aside-container.ant-menu-inline
|
|
|
|
> .ant-menu-item-group
|
|
|
|
> .ant-menu-item-group-title::after,
|
2020-03-17 23:01:17 +08:00
|
|
|
.main-wrapper .main-container,
|
|
|
|
#demo-toc.toc {
|
|
|
|
transition: all 0.3s @ease-in-out-circ;
|
|
|
|
}
|
|
|
|
|
|
|
|
// remove margin-bottom from dark theme (why need margin-bottom in dark theme?)
|
|
|
|
#header > .ant-row > .ant-col h1 {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|