mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-29 03:48:26 +08:00
6936599aef
* rename .stylelintrc to .stylelintrc.json for explicit file type * add new npm script lint-fix:style * fix pseudo-element with double colon * function name should be lower except ignored functions * support stylelint declaration-block-no-ignored-properties rule * support sorted CSS properties order for readability and consistency * autofix order of all styles by lint-fix:style script * remove double slash comments after selector * replace .stylelintignore with ignoreFiles in .stylelintrc.json
82 lines
1.5 KiB
Plaintext
82 lines
1.5 KiB
Plaintext
@import '../../style/themes/default';
|
|
@import '../../style/mixins/index';
|
|
|
|
@anchor-border-width: 2px;
|
|
|
|
.@{ant-prefix}-anchor {
|
|
.reset-component;
|
|
position: relative;
|
|
padding-left: @anchor-border-width;
|
|
|
|
&-wrapper {
|
|
margin-left: -4px;
|
|
padding-left: 4px;
|
|
overflow: auto;
|
|
background-color: @component-background;
|
|
}
|
|
|
|
&-ink {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
&::before {
|
|
position: relative;
|
|
display: block;
|
|
width: @anchor-border-width;
|
|
height: 100%;
|
|
margin: 0 auto;
|
|
background-color: @border-color-split;
|
|
content: ' ';
|
|
}
|
|
&-ball {
|
|
position: absolute;
|
|
left: 50%;
|
|
display: none;
|
|
width: 8px;
|
|
height: 8px;
|
|
background-color: @component-background;
|
|
border: 2px solid @primary-color;
|
|
border-radius: 8px;
|
|
transform: translateX(-50%);
|
|
transition: top 0.3s ease-in-out;
|
|
&.visible {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.fixed &-ink &-ink-ball {
|
|
display: none;
|
|
}
|
|
|
|
&-link {
|
|
padding: 7px 0 7px 16px;
|
|
line-height: 1.143;
|
|
|
|
&-title {
|
|
position: relative;
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
overflow: hidden;
|
|
color: @text-color;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
transition: all 0.3s;
|
|
|
|
&:only-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
&-active > &-title {
|
|
color: @primary-color;
|
|
}
|
|
}
|
|
|
|
&-link &-link {
|
|
padding-top: 5px;
|
|
padding-bottom: 5px;
|
|
}
|
|
}
|