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

61 lines
869 B
Plaintext
Raw Normal View History

2016-02-29 14:08:40 +08:00
.toc {
font-size: 12px;
margin: 16px 0;
padding-left: 0;
border-left: 1px solid #ebedf0;
2016-09-15 01:38:32 +08:00
list-style: none;
2016-02-29 14:08:40 +08:00
}
ul.toc > li {
2016-02-29 14:08:40 +08:00
list-style: none;
margin-left: 0;
padding-left: 0;
2017-11-27 17:08:45 +08:00
line-height: 1.5;
&:not(:last-child) {
2017-11-27 17:08:45 +08:00
margin-bottom: 4px;
}
2016-02-29 14:08:40 +08:00
}
.toc li > ul {
text-indent: 8px;
font-size: 12px;
display: none;
}
.toc a {
padding-left: 16px;
display: block;
transition: all 0.3s ease;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: @text-color;
width: 110px;
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
border-color: @primary-color;
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;
.ant-affix {
background: #fff;
}
2016-03-09 15:09:10 +08:00
}
.toc-affix-bottom {
position: absolute;
bottom: 88px;
right: 20px;
.ant-affix {
background: #fff;
2016-03-07 15:20:18 +08:00
}
2016-04-18 13:43:33 +08:00
}