[new feature] IndexBar: add sticky prop (#3402)
This commit is contained in:
@@ -5,4 +5,15 @@
|
||||
font-weight: @index-anchor-font-weight;
|
||||
font-size: @index-anchor-font-size;
|
||||
line-height: @index-anchor-line-height;
|
||||
background-color: transparent;
|
||||
transition: background-color .2s;
|
||||
|
||||
&--sticky {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
background-color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user