Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
f707df6f
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f707df6f
编写于
6月 10, 2016
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
css cleanup
上级
5570066b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
32 addition
and
31 deletion
+32
-31
src/vs/workbench/browser/parts/editor/media/notabstitle.css
src/vs/workbench/browser/parts/editor/media/notabstitle.css
+9
-8
src/vs/workbench/browser/parts/editor/media/tabstitle.css
src/vs/workbench/browser/parts/editor/media/tabstitle.css
+15
-16
src/vs/workbench/browser/parts/editor/noTabsTitleControl.ts
src/vs/workbench/browser/parts/editor/noTabsTitleControl.ts
+2
-2
src/vs/workbench/browser/parts/editor/tabsTitleControl.ts
src/vs/workbench/browser/parts/editor/tabsTitleControl.ts
+6
-5
未找到文件。
src/vs/workbench/browser/parts/editor/media/notabstitle.css
浏览文件 @
f707df6f
...
@@ -54,19 +54,19 @@
...
@@ -54,19 +54,19 @@
}
}
.vs
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
.title-label
a
{
.vs
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
.title-label
a
{
color
:
#333333
;
color
:
rgba
(
51
,
51
,
51
,
0.5
)
;
}
}
.vs
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title.
in
active
.title-label
a
{
.vs
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title.active
.title-label
a
{
color
:
rgba
(
51
,
51
,
51
,
0.5
)
;
color
:
#333333
;
}
}
.vs-dark
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
.title-label
a
{
.vs-dark
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
.title-label
a
{
color
:
white
;
color
:
rgba
(
255
,
255
,
255
,
0.5
)
;
}
}
.vs-dark
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title.
in
active
.title-label
a
{
.vs-dark
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title.active
.title-label
a
{
color
:
rgba
(
255
,
255
,
255
,
0.5
)
;
color
:
white
;
}
}
/* Title Description */
/* Title Description */
...
@@ -89,10 +89,11 @@
...
@@ -89,10 +89,11 @@
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
.title-actions
{
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
.title-actions
{
display
:
flex
;
display
:
flex
;
flex
:
initial
;
flex
:
initial
;
opacity
:
0.5
;
}
}
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title.
in
active
.title-actions
{
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title.active
.title-actions
{
opacity
:
0.5
;
opacity
:
1
;
}
}
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
.title-actions
.action-label
{
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
.title-actions
.action-label
{
...
...
src/vs/workbench/browser/parts/editor/media/tabstitle.css
浏览文件 @
f707df6f
...
@@ -26,7 +26,9 @@
...
@@ -26,7 +26,9 @@
white-space
:
nowrap
;
white-space
:
nowrap
;
cursor
:
pointer
;
cursor
:
pointer
;
border-left
:
1px
solid
rgba
(
128
,
128
,
128
,
0.2
);
border-left
:
1px
solid
rgba
(
128
,
128
,
128
,
0.2
);
border-bottom
:
1px
solid
rgba
(
128
,
128
,
128
,
0.2
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
opacity
:
0.7
;
padding-left
:
10px
;
padding-left
:
10px
;
}
}
...
@@ -34,20 +36,20 @@
...
@@ -34,20 +36,20 @@
border-left
:
0
;
border-left
:
0
;
}
}
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
.tabs-container
>
.tab.
in
active
{
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
.tabs-container
>
.tab.active
{
border-bottom
:
1px
solid
rgba
(
128
,
128
,
128
,
0.2
)
;
border-bottom
:
0
;
opacity
:
0.7
;
opacity
:
1
;
}
}
/* Tab Close */
/* Tab Close */
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title
>
.tabs-container
>
.tab.inactive
>
.tab-close
,
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title
>
.tabs-container
>
.tab
>
.tab-close
{
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title.inactive
>
.tabs-container
>
.tab
>
.tab-close
{
opacity
:
0
;
opacity
:
0
;
}
}
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title
>
.tabs-container
>
.tab
:hover
>
.tab-close
,
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title.active
>
.tabs-container
>
.tab.active
>
.tab-close
,
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title
>
.tabs-container
>
.tab.dirty
>
.tab-close
{
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title
>
.tabs-container
>
.tab.dirty
>
.tab-close
,
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title
>
.tabs-container
>
.tab
:hover
>
.tab-close
{
opacity
:
1
;
opacity
:
1
;
}
}
...
@@ -72,9 +74,6 @@
...
@@ -72,9 +74,6 @@
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
>
.tabs-container
>
.tab
.tab-label
{
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
>
.tabs-container
>
.tab
.tab-label
{
line-height
:
35px
;
line-height
:
35px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
position
:
relative
;
flex
:
1
;
flex
:
1
;
font-style
:
italic
;
font-style
:
italic
;
}
}
...
@@ -90,19 +89,19 @@
...
@@ -90,19 +89,19 @@
}
}
.vs
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
>
.tabs-container
>
.tab
.tab-label
a
{
.vs
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
>
.tabs-container
>
.tab
.tab-label
a
{
color
:
#333333
;
color
:
rgba
(
51
,
51
,
51
,
0.5
)
;
}
}
.vs
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title.
in
active
>
.tabs-container
>
.tab
.tab-label
a
{
.vs
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title.active
>
.tabs-container
>
.tab
.tab-label
a
{
color
:
rgba
(
51
,
51
,
51
,
0.5
)
;
color
:
#333333
;
}
}
.vs-dark
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
>
.tabs-container
>
.tab
.tab-label
a
{
.vs-dark
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
>
.title
>
.tabs-container
>
.tab
.tab-label
a
{
color
:
white
;
color
:
rgba
(
255
,
255
,
255
,
0.5
)
;
}
}
.vs-dark
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title.
in
active
>
.tabs-container
>
.tab
.tab-label
a
{
.vs-dark
.monaco-workbench
>
.part.editor
>
.content
>
.one-editor-container
.title.active
>
.tabs-container
>
.tab
.tab-label
a
{
color
:
rgba
(
255
,
255
,
255
,
0.5
)
;
color
:
white
;
}
}
/* Group Actions */
/* Group Actions */
...
...
src/vs/workbench/browser/parts/editor/noTabsTitleControl.ts
浏览文件 @
f707df6f
...
@@ -158,9 +158,9 @@ export class NoTabsTitleControl extends TitleControl {
...
@@ -158,9 +158,9 @@ export class NoTabsTitleControl extends TitleControl {
// Activity state
// Activity state
if
(
isActive
)
{
if
(
isActive
)
{
this
.
titleContainer
.
removeClass
(
'
in
active
'
);
this
.
titleContainer
.
addClass
(
'
active
'
);
}
else
{
}
else
{
this
.
titleContainer
.
addClass
(
'
in
active
'
);
this
.
titleContainer
.
removeClass
(
'
active
'
);
}
}
// Editor Title
// Editor Title
...
...
src/vs/workbench/browser/parts/editor/tabsTitleControl.ts
浏览文件 @
f707df6f
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
'
use strict
'
;
'
use strict
'
;
import
'
vs/css!./media/tabstitle
'
;
import
'
vs/css!./media/tabstitle
'
;
import
nls
=
require
(
'
vs/nls
'
);
import
{
prepareActions
}
from
'
vs/workbench/browser/actionBarRegistry
'
;
import
{
prepareActions
}
from
'
vs/workbench/browser/actionBarRegistry
'
;
import
arrays
=
require
(
'
vs/base/common/arrays
'
);
import
arrays
=
require
(
'
vs/base/common/arrays
'
);
import
errors
=
require
(
'
vs/base/common/errors
'
);
import
errors
=
require
(
'
vs/base/common/errors
'
);
...
@@ -94,9 +95,9 @@ export class TabsTitleControl extends TitleControl {
...
@@ -94,9 +95,9 @@ export class TabsTitleControl extends TitleControl {
// Activity state
// Activity state
const
isActive
=
this
.
stacks
.
isActive
(
group
);
const
isActive
=
this
.
stacks
.
isActive
(
group
);
if
(
isActive
)
{
if
(
isActive
)
{
this
.
titleContainer
.
removeClass
(
'
in
active
'
);
this
.
titleContainer
.
addClass
(
'
active
'
);
}
else
{
}
else
{
this
.
titleContainer
.
addClass
(
'
in
active
'
);
this
.
titleContainer
.
removeClass
(
'
active
'
);
}
}
// Refresh Tabs
// Refresh Tabs
...
@@ -144,9 +145,9 @@ export class TabsTitleControl extends TitleControl {
...
@@ -144,9 +145,9 @@ export class TabsTitleControl extends TitleControl {
// Active state
// Active state
if
(
isActive
)
{
if
(
isActive
)
{
tab
.
removeClass
(
'
in
active
'
);
tab
.
addClass
(
'
active
'
);
}
else
{
}
else
{
tab
.
addClass
(
'
in
active
'
);
tab
.
removeClass
(
'
active
'
);
}
}
// Dirty State
// Dirty State
...
@@ -167,7 +168,7 @@ export class TabsTitleControl extends TitleControl {
...
@@ -167,7 +168,7 @@ export class TabsTitleControl extends TitleControl {
tab
.
div
({
tab
.
div
({
'
class
'
:
'
tab-close
'
'
class
'
:
'
tab-close
'
},
(
div
)
=>
{
},
(
div
)
=>
{
const
bar
=
new
ActionBar
(
div
,
{
context
:
{
editor
,
group
}
});
const
bar
=
new
ActionBar
(
div
,
{
context
:
{
editor
,
group
}
,
ariaLabel
:
nls
.
localize
(
'
araLabelTabActions
'
,
"
Tab actions
"
)
});
bar
.
push
(
this
.
closeEditorAction
,
{
icon
:
true
,
label
:
false
});
bar
.
push
(
this
.
closeEditorAction
,
{
icon
:
true
,
label
:
false
});
this
.
tabActionBars
.
push
(
bar
);
this
.
tabActionBars
.
push
(
bar
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录