2016-02-29 14:08:40 +08:00
|
|
|
.toc {
|
2017-11-27 15:36:58 +08:00
|
|
|
margin: 16px 0;
|
|
|
|
padding-left: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-size: 12px;
|
2016-09-15 01:38:32 +08:00
|
|
|
list-style: none;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-left: 1px solid @site-border-color-split;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
|
|
|
.ant-row-rtl & {
|
|
|
|
border-right: 1px solid @site-border-color-split;
|
|
|
|
border-left: none;
|
|
|
|
}
|
2016-02-29 14:08:40 +08:00
|
|
|
}
|
|
|
|
|
2017-11-27 15:36:58 +08:00
|
|
|
ul.toc > li {
|
|
|
|
margin-left: 0;
|
|
|
|
padding-left: 0;
|
2017-11-27 17:08:45 +08:00
|
|
|
line-height: 1.5;
|
2019-02-15 10:48:07 +08:00
|
|
|
list-style: none;
|
2017-11-27 15:36:58 +08:00
|
|
|
&:not(:last-child) {
|
2017-11-27 17:08:45 +08:00
|
|
|
margin-bottom: 4px;
|
2017-11-27 15:36:58 +08:00
|
|
|
}
|
2020-01-02 19:10:16 +08:00
|
|
|
|
|
|
|
.ant-row-rtl & {
|
|
|
|
margin-right: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2016-02-29 14:08:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.toc li > ul {
|
|
|
|
display: none;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-size: 12px;
|
|
|
|
text-indent: 8px;
|
2016-02-29 14:08:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.toc a {
|
|
|
|
display: block;
|
2019-02-15 10:48:07 +08:00
|
|
|
width: 110px;
|
|
|
|
margin-left: -1px;
|
|
|
|
padding-left: 16px;
|
2016-02-29 14:08:40 +08:00
|
|
|
overflow: hidden;
|
2017-11-28 16:15:22 +08:00
|
|
|
color: @site-text-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2017-12-03 16:13:04 +08:00
|
|
|
border-left: 1px solid transparent;
|
2019-02-15 10:48:07 +08:00
|
|
|
transition: all 0.3s ease;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
|
|
|
.ant-row-rtl & {
|
|
|
|
margin-right: -1px;
|
|
|
|
margin-left: 0;
|
|
|
|
padding-right: 16px;
|
|
|
|
padding-left: 0;
|
|
|
|
border-right: 1px solid transparent;
|
|
|
|
border-left: none;
|
|
|
|
}
|
2016-02-29 14:08:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.toc a:hover {
|
2016-11-13 18:58:02 +08:00
|
|
|
color: @primary-color;
|
2016-02-29 14:08:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.toc a.current {
|
2016-11-13 18:58:02 +08:00
|
|
|
color: @primary-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-color: @primary-color;
|
2016-03-07 15:20:18 +08:00
|
|
|
}
|
|
|
|
|
2016-03-09 15:09:10 +08:00
|
|
|
.toc-affix {
|
2016-04-18 13:43:33 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 8px;
|
2016-05-15 19:18:20 +08:00
|
|
|
right: 20px;
|
2017-11-27 15:36:58 +08:00
|
|
|
.ant-affix {
|
2019-01-06 13:25:59 +08:00
|
|
|
z-index: 9;
|
2019-02-15 10:48:07 +08:00
|
|
|
max-height: ~'calc(100vh - 16px)';
|
2019-06-04 18:53:54 +08:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2019-12-26 14:38:51 +08:00
|
|
|
background: #fff;
|
|
|
|
}
|
2020-01-02 19:10:16 +08:00
|
|
|
.ant-row-rtl & {
|
|
|
|
right: auto;
|
|
|
|
left: 20px;
|
|
|
|
}
|
2019-12-26 14:38:51 +08:00
|
|
|
}
|
|
|
|
|
2017-11-27 15:36:58 +08:00
|
|
|
.toc-affix-bottom {
|
|
|
|
position: absolute;
|
|
|
|
right: 20px;
|
2019-02-15 10:48:07 +08:00
|
|
|
bottom: 88px;
|
2019-12-18 22:42:09 +08:00
|
|
|
.ant-affix {
|
2019-12-23 16:02:09 +08:00
|
|
|
background: @body-background;
|
2019-12-18 22:42:09 +08:00
|
|
|
}
|
2020-01-02 19:10:16 +08:00
|
|
|
.ant-row-rtl & {
|
|
|
|
right: auto;
|
|
|
|
left: 20px;
|
|
|
|
}
|
2016-04-18 13:43:33 +08:00
|
|
|
}
|