Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
78298312
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,发现更多精彩内容 >>
提交
78298312
编写于
5月 17, 2017
作者:
R
Ramya Achutha Rao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add close icon to close expanded suggest docs
上级
14c752b7
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
20 deletion
+15
-20
src/vs/editor/contrib/suggest/browser/media/back.svg
src/vs/editor/contrib/suggest/browser/media/back.svg
+0
-1
src/vs/editor/contrib/suggest/browser/media/close-dark.svg
src/vs/editor/contrib/suggest/browser/media/close-dark.svg
+1
-0
src/vs/editor/contrib/suggest/browser/media/close.svg
src/vs/editor/contrib/suggest/browser/media/close.svg
+1
-0
src/vs/editor/contrib/suggest/browser/media/suggest.css
src/vs/editor/contrib/suggest/browser/media/suggest.css
+6
-12
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
+7
-7
未找到文件。
src/vs/editor/contrib/suggest/browser/media/back.svg
已删除
100644 → 0
浏览文件 @
14c752b7
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
viewBox=
"-0.994 0 16 16"
enable-background=
"new -0.994 0 16 16"
><path
fill=
"#808080"
d=
"M13 6c0 1.461-.636 2.846-1.746 3.797l-5.584 4.951-1.324-1.496 5.595-4.962c.678-.582 1.061-1.413 1.061-2.29 0-1.654-1.345-3-2.997-3-.71 0-1.399.253-1.938.713l-1.521 1.287h2.448l-1.998 2h-3.996v-4l1.998-2v2.692l1.775-1.504c.899-.766 2.047-1.188 3.232-1.188 2.754 0 4.995 2.243 4.995 5z"
/></svg>
\ No newline at end of file
src/vs/editor/contrib/suggest/browser/media/close-dark.svg
0 → 100644
浏览文件 @
78298312
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
viewBox=
"3 3 16 16"
enable-background=
"new 3 3 16 16"
><polygon
fill=
"#e8e8e8"
points=
"12.597,11.042 15.4,13.845 13.844,15.4 11.042,12.598 8.239,15.4 6.683,13.845 9.485,11.042 6.683,8.239 8.238,6.683 11.042,9.486 13.845,6.683 15.4,8.239"
/></svg>
\ No newline at end of file
src/vs/editor/contrib/suggest/browser/media/close.svg
0 → 100644
浏览文件 @
78298312
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
viewBox=
"3 3 16 16"
enable-background=
"new 3 3 16 16"
><polygon
fill=
"#424242"
points=
"12.597,11.042 15.4,13.845 13.844,15.4 11.042,12.598 8.239,15.4 6.683,13.845 9.485,11.042 6.683,8.239 8.238,6.683 11.042,9.486 13.845,6.683 15.4,8.239"
/></svg>
\ No newline at end of file
src/vs/editor/contrib/suggest/browser/media/suggest.css
浏览文件 @
78298312
...
...
@@ -73,25 +73,24 @@
font-weight
:
bold
;
}
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.header
>
.
go-back
,
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.header
>
.
close
,
.monaco-editor
.suggest-widget
.monaco-list
.monaco-list-row
>
.contents
>
.main
>
.docs-details
{
opacity
:
0.6
;
background-position
:
center
center
;
background-repeat
:
no-repeat
;
background-size
:
70%
;
color
:
#0035DD
;
cursor
:
pointer
;
}
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.header
>
.
go-back
{
background-image
:
url('./
back
.svg')
;
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.header
>
.
close
{
background-image
:
url('./
close
.svg')
;
}
.monaco-editor
.suggest-widget
.monaco-list
.monaco-list-row
>
.contents
>
.main
>
.docs-details
{
background-image
:
url('./info.svg')
;
}
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.header
>
.
go-back
:hover
,
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.header
>
.
close
:hover
,
.monaco-editor
.suggest-widget
.monaco-list
.monaco-list-row
>
.contents
>
.main
>
.docs-details
:hover
{
opacity
:
1
;
}
...
...
@@ -218,13 +217,8 @@
/* Dark theme */
.monaco-editor.vs-dark
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.header
{
border-color
:
rgba
(
85
,
85
,
85
,
0.5
);
}
.monaco-editor.vs-dark
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.header
>
.go-back
,
.monaco-editor.vs-dark
.suggest-widget
.monaco-list
.monaco-list-row
>
.contents
>
.main
>
.docs-details
{
color
:
#4E94CE
;
.monaco-editor.vs-dark
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.header
>
.close
{
background-image
:
url('./close-dark.svg')
;
}
/* High Contrast Theming */
...
...
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
浏览文件 @
78298312
...
...
@@ -185,7 +185,7 @@ const enum State {
class
SuggestionDetails
{
private
el
:
HTMLElement
;
private
back
:
HTMLElement
;
private
close
:
HTMLElement
;
private
header
:
HTMLElement
;
private
scrollbar
:
DomScrollableElement
;
private
body
:
HTMLElement
;
...
...
@@ -214,8 +214,8 @@ class SuggestionDetails {
this
.
header
=
append
(
this
.
body
,
$
(
'
.header
'
));
this
.
type
=
append
(
this
.
header
,
$
(
'
p.type
'
));
this
.
back
=
append
(
this
.
header
,
$
(
'
span.go-back
'
));
this
.
back
.
title
=
nls
.
localize
(
'
goback
'
,
"
Read less...{0}
"
,
triggerKeybindingLabel
);
this
.
close
=
append
(
this
.
header
,
$
(
'
span.close
'
));
this
.
close
.
title
=
nls
.
localize
(
'
readLess
'
,
"
Read less...{0}
"
,
triggerKeybindingLabel
);
this
.
docs
=
append
(
this
.
body
,
$
(
'
p.docs
'
));
this
.
ariaLabel
=
null
;
...
...
@@ -245,11 +245,11 @@ class SuggestionDetails {
this
.
el
.
style
.
height
=
this
.
type
.
clientHeight
+
this
.
docs
.
clientHeight
+
8
+
'
px
'
;
this
.
back
.
onmousedown
=
e
=>
{
this
.
close
.
onmousedown
=
e
=>
{
e
.
preventDefault
();
e
.
stopPropagation
();
};
this
.
back
.
onclick
=
e
=>
{
this
.
close
.
onclick
=
e
=>
{
e
.
preventDefault
();
e
.
stopPropagation
();
this
.
widget
.
toggleDetails
();
...
...
@@ -299,8 +299,8 @@ class SuggestionDetails {
this
.
el
.
style
.
fontSize
=
fontSizePx
;
this
.
type
.
style
.
fontFamily
=
fontFamily
;
this
.
back
.
style
.
height
=
lineHeightPx
;
this
.
back
.
style
.
width
=
lineHeightPx
;
this
.
close
.
style
.
height
=
lineHeightPx
;
this
.
close
.
style
.
width
=
lineHeightPx
;
}
dispose
():
void
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录