Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
7acb6ff4
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,发现更多精彩内容 >>
提交
7acb6ff4
编写于
1月 21, 2016
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more focus indication styles improvements
上级
d4b5aa94
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
59 addition
and
19 deletion
+59
-19
src/vs/workbench/browser/parts/activitybar/media/activityaction.css
...kbench/browser/parts/activitybar/media/activityaction.css
+13
-2
src/vs/workbench/browser/parts/editor/iframeEditor.ts
src/vs/workbench/browser/parts/editor/iframeEditor.ts
+0
-1
src/vs/workbench/electron-browser/media/shell.css
src/vs/workbench/electron-browser/media/shell.css
+46
-15
src/vs/workbench/parts/html/browser/htmlPreviewPart.ts
src/vs/workbench/parts/html/browser/htmlPreviewPart.ts
+0
-1
未找到文件。
src/vs/workbench/browser/parts/activitybar/media/activityaction.css
浏览文件 @
7acb6ff4
...
...
@@ -35,7 +35,19 @@
top
:
4px
;
height
:
32px
;
width
:
0
;
border-left
:
2px
solid
#1E8AE5
;
border-left
:
2px
solid
;
}
.monaco-workbench.vs
>
.activitybar
>
.content
.monaco-action-bar
.action-item
.action-label
:focus:before
{
border-left-color
:
#1E8AE5
;
}
.monaco-workbench.vs-dark
>
.activitybar
>
.content
.monaco-action-bar
.action-item
.action-label
:focus:before
{
border-left-color
:
#1E8AE5
;
}
.monaco-workbench.hc-black
>
.activitybar
>
.content
.monaco-action-bar
.action-item
.action-label
:focus:before
{
border-left-color
:
#DF740C
;
}
.monaco-workbench
>
.activitybar.left
>
.content
.monaco-action-bar
.action-item
.action-label
:focus:before
{
...
...
@@ -176,7 +188,6 @@
/* High Contrast Theming */
.monaco-workbench.hc-black
>
.activitybar
>
.content
.monaco-action-bar
.action-label
,
.monaco-workbench.hc-black
>
.activitybar
>
.content
.monaco-action-bar
.action-label.active
{
background
:
none
;
opacity
:
1
;
}
...
...
src/vs/workbench/browser/parts/editor/iframeEditor.ts
浏览文件 @
7acb6ff4
...
...
@@ -51,7 +51,6 @@ export class IFrameEditor extends BaseEditor {
let
iframeContainerElement
=
document
.
createElement
(
'
div
'
);
iframeContainerElement
.
className
=
'
iframe-container monaco-editor-background
'
;
// Inherit the background color from selected theme
this
.
iframeContainer
=
$
(
iframeContainerElement
);
this
.
iframeContainer
.
tabindex
(
0
);
// enable focus support
// IFrame
this
.
iframeBuilder
=
$
(
this
.
iframeContainer
).
element
(
'
iframe
'
).
addClass
(
'
iframe
'
);
...
...
src/vs/workbench/electron-browser/media/shell.css
浏览文件 @
7acb6ff4
...
...
@@ -49,32 +49,63 @@
/* START Keyboard Focus Indication Styles */
.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
{
outline
:
2px
auto
-webkit-focus-ring-color
;
outline-offset
:
-
2
px
;
.monaco-shell
.vs
[
tabindex
=
"0"
]
:focus
,
.monaco-shell
.vs
select
:focus
,
.monaco-shell
.vs
input
[
type
=
"button"
]
:focus
,
.monaco-shell
.vs
input
[
type
=
"submit"
]
:focus
,
.monaco-shell
.vs
input
[
type
=
"checkbox"
]
:focus
{
outline
:
1px
auto
#1E8AE5
;
outline-offset
:
-
3
px
;
opacity
:
1
!important
;
/* prevent components from dimming focus feedback */
}
.monaco-shell
input
[
type
=
"text"
],
.monaco-shell
textarea
{
outline
:
0
;
/* do not show outline in input fields and textarea */
.monaco-shell.vs-dark
[
tabindex
=
"0"
]
:focus
,
.monaco-shell.vs-dark
select
:focus
,
.monaco-shell.vs-dark
input
[
type
=
"button"
]
:focus
,
.monaco-shell.vs-dark
input
[
type
=
"submit"
]
:focus
,
.monaco-shell.vs-dark
input
[
type
=
"checkbox"
]
:focus
{
outline
:
1px
auto
#1E8AE5
;
outline-offset
:
-3px
;
opacity
:
1
!important
;
/* prevent components from dimming focus feedback */
}
.monaco-shell
.monaco-tree
:focus
{
outline
:
0
;
/* tree indicates focus not via outline but through the focussed item */
.monaco-shell.hc-black
[
tabindex
=
"0"
]
:focus
,
.monaco-shell.hc-black
select
:focus
,
.monaco-shell.hc-black
input
[
type
=
"button"
]
:focus
,
.monaco-shell.hc-black
input
[
type
=
"submit"
]
:focus
,
.monaco-shell.hc-black
input
[
type
=
"checkbox"
]
:focus
{
outline
:
2px
auto
#DF740C
;
outline-offset
:
-2px
;
}
.monaco-shell.vs
.monaco-tree.focused
.monaco-tree-rows
:empty
,
.monaco-shell.vs
.monaco-tree.focused.no-item-focus
.monaco-tree-rows
{
outline
:
1px
auto
#1E8AE5
;
/* we still need to handle the empty tree or no focus item case */
outline-offset
:
-3px
;
}
.monaco-shell
.monaco-tree.focused
.monaco-tree-rows
:empty
,
.monaco-shell
.monaco-tree.focused.no-item-focus
.monaco-tree-rows
{
outline
:
2px
auto
-webkit-focus-ring-color
;
/* we still need to handle the empty tree or no focus item case */
.monaco-shell.vs-dark
.monaco-tree.focused
.monaco-tree-rows
:empty
,
.monaco-shell.vs-dark
.monaco-tree.focused.no-item-focus
.monaco-tree-rows
{
outline
:
1px
auto
#1E8AE5
;
/* we still need to handle the empty tree or no focus item case */
outline-offset
:
-3px
;
}
.monaco-shell.hc-black
.monaco-tree.focused
.monaco-tree-rows
:empty
,
.monaco-shell.hc-black
.monaco-tree.focused.no-item-focus
.monaco-tree-rows
{
outline
:
2px
auto
#DF740C
;
/* we still need to handle the empty tree or no focus item case */
outline-offset
:
-2px
;
}
.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
!important
;
/* tree indicates focus not via outline but through the focussed item */
}
.monaco-shell
.activitybar
[
tabindex
=
"0"
]
:focus
{
outline
:
0
;
/* activity bar indicates focus customly */
outline
:
0
!important
;
/* activity bar indicates focus customly */
}
/* END Keyboard Focus Indication Styles */
...
...
src/vs/workbench/parts/html/browser/htmlPreviewPart.ts
浏览文件 @
7acb6ff4
...
...
@@ -71,7 +71,6 @@ export class HtmlPreviewPart extends BaseEditor {
// Container for IFrame
const
iFrameContainerElement
=
document
.
createElement
(
'
div
'
);
iFrameContainerElement
.
className
=
'
iframe-container monaco-editor-background
'
;
// Inherit the background color from selected theme
iFrameContainerElement
.
tabIndex
=
0
;
iFrameContainerElement
.
appendChild
(
this
.
_iFrameElement
);
parent
.
getHTMLElement
().
appendChild
(
iFrameContainerElement
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录