✨ feat(vscode): 代码阅读把推导式换成按读的顺序重排的遍历小框
This commit is contained in:
1 parent
677fb7da1f
commit
6416cdf714
16 files changed
+641
-91
No files matched your search
@@ -278,6 +278,38 @@ body.vscode-high-contrast-light {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/*
|
||||
* 框起来的一组词(写在表达式里的遍历):嵌在译文里的小框,框头是图标和 label,边框、底色、框头取框的样式色(遍历同「循环」块)。
|
||||
* 整个框放不下时挪到下一行,比一行还长时占满一行、在框里换行。上下边框算在行高里:框和前后文字顶部对齐、基线对齐,不把这一行撑高;
|
||||
* 框里再套的框行高再减 2px,同样不撑高外面那个框的行
|
||||
*/
|
||||
.cr-group[data-style="iteration"] { --group: var(--cr-kind-loop); }
|
||||
.cr-group {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
padding: 0 5px;
|
||||
line-height: 18px;
|
||||
vertical-align: top;
|
||||
border: 1px solid color-mix(in srgb, var(--group) 45%, transparent);
|
||||
border-radius: 4px;
|
||||
background: color-mix(in srgb, var(--group) 14%, transparent);
|
||||
}
|
||||
.cr-group .cr-group {
|
||||
line-height: 16px;
|
||||
}
|
||||
.cr-group-head {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
margin-right: 6px;
|
||||
vertical-align: top;
|
||||
font-family: var(--vscode-font-family, system-ui, sans-serif), "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
color: var(--group);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* 编辑:透明输入框垫在底下接收输入和选区,着色层盖在上面只负责显示,高度由着色层撑开 */
|
||||
.cr-editor {
|
||||
position: relative;
|
||||
|
||||
Reference in new issue
Block a user