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

69 lines
963 B
Plaintext
Raw Normal View History

2016-02-29 14:08:40 +08:00
.toc {
font-size: 14px;
2016-10-18 00:18:03 +08:00
margin: 24px 0;
border-left: 1px solid #e9e9e9;
2016-09-15 01:38:32 +08:00
list-style: none;
2016-02-29 14:08:40 +08:00
}
.markdown .toc {
background: #fbfbfb;
border-left: 2px solid #eee;
}
2016-02-29 14:08:40 +08:00
.toc > ul {
padding: 8px 0;
2016-09-15 01:38:32 +08:00
list-style: none;
2016-02-29 14:08:40 +08:00
}
.toc > ul li {
list-style: none;
2017-02-27 14:56:04 +08:00
margin: 0;
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;
color: @text-color;
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;
2016-03-09 15:09:10 +08:00
}
2016-03-07 15:20:18 +08:00
.demos-anchor {
color: #aaa;
font-size: 12px;
margin: -4px 0 0;
background-color: #fff;
padding: 0;
list-style: none;
2016-03-07 15:20:18 +08:00
a {
padding-left: 8px;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2017-02-18 17:19:17 +08:00
width: 110px;
2016-03-07 15:20:18 +08:00
}
2016-04-18 13:43:33 +08:00
}