🐛 fix(vscode): 代码阅读跳到参数、导入项、多变量声明里的一个时只闪属性表里那一行,按源码位置判断
This commit is contained in:
1 parent
5b4ca903c5
commit
3ac1c783fb
14 files changed
+367
-47
No files matched your search
@@ -94,7 +94,16 @@ body.vscode-high-contrast-light {
|
||||
background: var(--kind);
|
||||
}
|
||||
|
||||
/* 跳到定义的目标块:边框和底色往聚焦色闪三下(共 1.5 秒)再复原;减少动态效果时改成静止高亮同样长的时间 */
|
||||
/* 属性行、子行平时看不出边框;往外扩出一圈,跳到定义只闪它时亮起来不贴着字,排版不动 */
|
||||
.cr-prop-row,
|
||||
.cr-prop-item {
|
||||
margin: -1px -4px;
|
||||
padding: 0 3px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* 跳到定义的目标(整块,或属性表里的一行 / 子行):边框和底色往聚焦色闪三下(共 1.5 秒)再复原;减少动态效果时改成静止高亮同样长的时间 */
|
||||
@keyframes cr-flash {
|
||||
50% {
|
||||
background: color-mix(in srgb, var(--vscode-focusBorder) 25%, transparent);
|
||||
@@ -107,7 +116,7 @@ body.vscode-high-contrast-light {
|
||||
border-color: var(--vscode-focusBorder);
|
||||
}
|
||||
}
|
||||
.cr-block[data-flash] {
|
||||
:is(.cr-block, .cr-prop-row, .cr-prop-item)[data-flash] {
|
||||
animation: cr-flash 500ms ease-in-out 3;
|
||||
}
|
||||
|
||||
@@ -116,7 +125,7 @@ body.vscode-high-contrast-light {
|
||||
.cr-guide {
|
||||
transition: none;
|
||||
}
|
||||
.cr-block[data-flash] {
|
||||
:is(.cr-block, .cr-prop-row, .cr-prop-item)[data-flash] {
|
||||
animation: cr-flash-still 1500ms;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user