Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
02b859d3
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
02b859d3
编写于
1月 20, 2016
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
same focus indication in tree as elsewhere
上级
9dba3d14
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
24 addition
and
23 deletion
+24
-23
src/vs/base/parts/tree/browser/tree.css
src/vs/base/parts/tree/browser/tree.css
+17
-8
src/vs/workbench/electron-browser/media/shell.css
src/vs/workbench/electron-browser/media/shell.css
+7
-15
未找到文件。
src/vs/base/parts/tree/browser/tree.css
浏览文件 @
02b859d3
...
...
@@ -28,6 +28,7 @@
.monaco-tree
.monaco-tree-rows
{
position
:
absolute
;
width
:
100%
;
height
:
100%
;
}
.monaco-tree
.monaco-tree-rows
>
.monaco-tree-row
{
...
...
@@ -155,11 +156,24 @@
background-color
:
inherit
!important
;
}
/* Default style */
.monaco-tree.focused
.monaco-tree-rows
>
.monaco-tree-row.focused
:not
(
.highlighted
)
{
background-color
:
#DCEBFC
;
}
.monaco-tree.focused
.monaco-tree-rows
>
.monaco-tree-row.selected
:not
(
.highlighted
)
{
background-color
:
#4FA7FF
;
color
:
white
;
}
/* Focus Indication */
.monaco-tree.focused
.monaco-tree-rows
>
.monaco-tree-row.focused
,
.monaco-tree.focused
.monaco-tree-rows
:empty
{
outline
:
2px
auto
-webkit-focus-ring-color
;
outline-offset
:
-2px
;
}
/* Pre 0.10.7 styles we used for focus indication */
/*.monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: #DCEBFC; }
.monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: #3399FF; color: white; }
.monaco-tree .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: #eaeaea; }
.vs-dark .monaco-tree.focused .monaco-tree-row.focused:not(.highlighted) { background-color: #073655; }
.vs-dark .monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: #094771; color: white; }
.vs-dark .monaco-tree .monaco-tree-row.focused:not(.highlighted) { background-color: #2f3334; }
.hc-black .monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { border: 1px dotted #DF740C; }
.hc-black .monaco-tree .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { border: 1px dotted #DF740C; }*/
/* Default style */
.monaco-tree.focused
.monaco-tree-rows
>
.monaco-tree-row.selected
:not
(
.highlighted
)
{
background-color
:
#4FA7FF
;
color
:
white
;
}
.monaco-tree
.monaco-tree-rows
>
.monaco-tree-row.selected
:not
(
.highlighted
)
{
background-color
:
#CCCEDB
;
}
.monaco-tree
.monaco-tree-rows
>
.monaco-tree-row
:hover:not
(
.highlighted
)
:not
(
.selected
)
:not
(
.focused
)
{
background-color
:
#F0F0F0
;
}
.monaco-tree
.monaco-tree-wrapper.drop-target
,
...
...
@@ -179,10 +193,7 @@
.monaco-tree.focused
.monaco-tree-rows
>
.monaco-tree-row.selected.expanded
>
.content
:before
{
border-right-color
:
white
;
border-left-color
:
transparent
;
}
/* VS Dark */
.vs-dark
.monaco-tree.focused
.monaco-tree-row.focused
:not
(
.highlighted
)
{
background-color
:
#073655
;
}
.vs-dark
.monaco-tree.focused
.monaco-tree-row.selected
:not
(
.highlighted
)
{
background-color
:
#0E639C
;
color
:
white
;
}
.vs-dark
.monaco-tree.focused
.monaco-tree-rows
>
.monaco-tree-row.focused.selected
:not
(
.highlighted
)
{
background-color
:
#094771
;
color
:
white
;
}
.vs-dark
.monaco-tree
.monaco-tree-row.focused
:not
(
.highlighted
)
{
background-color
:
#2f3334
;
}
.vs-dark
.monaco-tree
.monaco-tree-row.selected
:not
(
.highlighted
)
{
background-color
:
#3F3F46
;
}
.vs-dark
.monaco-tree
.monaco-tree-row
:hover:not
(
.highlighted
)
:not
(
.selected
)
:not
(
.focused
)
{
background-color
:
#2A2D2E
;
}
.vs-dark
.monaco-tree-wrapper.drop-target
,
...
...
@@ -200,9 +211,7 @@
/* High Contrast Theming */
.hc-black
.monaco-tree
.monaco-tree-rows
>
.monaco-tree-row
{
background
:
none
!important
;
}
.hc-black
.monaco-tree.focused
.monaco-tree-rows
>
.monaco-tree-row.focused
:not
(
.highlighted
)
{
border
:
1px
dotted
#DF740C
;
}
.hc-black
.monaco-tree.focused
.monaco-tree-rows
>
.monaco-tree-row.selected
:not
(
.highlighted
)
{
border
:
1px
solid
#DF740C
;
}
.hc-black
.monaco-tree
.monaco-tree-rows
>
.monaco-tree-row.focused
:not
(
.highlighted
)
{
border
:
1px
dotted
#DF740C
;
}
.hc-black
.monaco-tree
.monaco-tree-rows
>
.monaco-tree-row.selected
:not
(
.highlighted
)
{
border
:
1px
solid
#DF740C
;
}
.hc-black
.monaco-tree
.monaco-tree-rows
>
.monaco-tree-row
:hover:not
(
.highlighted
)
:not
(
.selected
)
:not
(
.focused
)
{
border
:
1px
dashed
#DF740C
;
}
.hc-black
.monaco-tree
.monaco-tree-wrapper.drop-target
,
...
...
src/vs/workbench/electron-browser/media/shell.css
浏览文件 @
02b859d3
...
...
@@ -47,33 +47,25 @@
text-decoration
:
none
;
}
.monaco-shell
a
[
tabindex
=
"0"
]
:focus
,
.monaco-shell
div
[
tabindex
=
"0"
]
:focus
,
.monaco-shell
[
tabindex
=
"0"
]
:focus
,
.monaco-shell
select
:focus
,
.monaco-shell
input
[
type
=
"button"
]
:focus
,
.monaco-shell
input
[
type
=
"submit"
]
:focus
,
.monaco-shell
input
[
type
=
"checkbox"
]
:focus
,
.monaco-shell
iframe
[
tabindex
=
"0"
]
:focus
{
.monaco-shell
input
[
type
=
"checkbox"
]
:focus
{
outline
:
2px
auto
-webkit-focus-ring-color
;
outline-offset
:
-2px
;
opacity
:
1
!important
;
/* prevent components from dimming focus feedback */
}
/*.monaco-shell a[tabindex="0"]:active, .monaco-shell a[tabindex="0"]:hover,
.monaco-shell div[tabindex="0"]:active, .monaco-shell div[tabindex="0"]:hover,
.monaco-shell select:active, .monaco-shell select:hover,
.monaco-shell input[type="button"]:active, .monaco-shell input[type="button"]:hover,
.monaco-shell input[type="checkbox"]:active, .monaco-shell input[type="checkbox"]:hover,
.monaco-shell input[type="submit"]:active, .monaco-shell input[type="submit"]:hover,
.monaco-shell iframe[tabindex="0"]:active, .monaco-shell iframe[tabindex="0"]:hover {
outline: 0;
opacity: inherit;
}*/
.monaco-shell
input
[
type
=
"text"
],
.monaco-shell
textarea
{
outline
:
0
;
/* do not show outline in input fields and textarea */
}
.monaco-shell
.monaco-tree
:focus
{
outline
:
0
;
/* tree indicates focus not via outline but through the focussed item */
}
.monaco-shell
a
.prominent
{
text-decoration
:
underline
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录