Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
64bd1b64
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,发现更多精彩内容 >>
提交
64bd1b64
编写于
4月 30, 2016
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean up editor css around current line highlight
上级
3027f1a4
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
17 addition
and
96 deletion
+17
-96
src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css
...r/viewParts/currentLineHighlight/currentLineHighlight.css
+15
-1
src/vs/editor/browser/widget/media/default-theme.css
src/vs/editor/browser/widget/media/default-theme.css
+0
-7
src/vs/editor/browser/widget/media/editor.css
src/vs/editor/browser/widget/media/editor.css
+1
-77
src/vs/workbench/browser/parts/editor/media/texteditor.css
src/vs/workbench/browser/parts/editor/media/texteditor.css
+0
-9
src/vs/workbench/browser/parts/editor/textEditor.ts
src/vs/workbench/browser/parts/editor/textEditor.ts
+0
-1
src/vs/workbench/services/themes/electron-browser/themeService.ts
...orkbench/services/themes/electron-browser/themeService.ts
+1
-1
未找到文件。
src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css
浏览文件 @
64bd1b64
...
...
@@ -2,9 +2,23 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
.monaco-editor
.current-line
{
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
0
;
box-sizing
:
border-box
;
}
.monaco-editor.vs.focused
.current-line
{
border
:
2px
solid
#EEE
;
}
.monaco-editor.vs-dark.focused
.current-line
{
border
:
2px
solid
#282828
;
}
.monaco-editor.hc-black.focused
.current-line
{
border
:
2px
solid
#f38518
;
}
src/vs/editor/browser/widget/media/default-theme.css
浏览文件 @
64bd1b64
...
...
@@ -25,13 +25,6 @@
color
:
white
;
/* opposite of black */
}
/* Current line */
.monaco-editor
.current-line
{
background
:
#eaeaf2
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
/* Line Numbers */
.monaco-editor
.line-numbers
{
color
:
#2B91AF
;
...
...
src/vs/editor/browser/widget/media/editor.css
浏览文件 @
64bd1b64
...
...
@@ -42,12 +42,6 @@
top
:
0
;
}
.monaco-editor
.view-overlays
>
.static
{
position
:
absolute
;
top
:
0
;
}
/* ---------- Lines Content ---------- */
.monaco-editor
.inputarea
{
...
...
@@ -89,15 +83,6 @@
background
:
rgba
(
255
,
255
,
255
,
0.85
);
}
.monaco-editor
.accessibility-output
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
0
;
height
:
0
;
overflow
:
hidden
;
}
.monaco-editor
.lines-content
{
position
:
absolute
;
top
:
0
;
...
...
@@ -140,7 +125,7 @@
width
:
100%
;
}
.margin-view-overlays
>
.view-line
{
.m
onaco-editor
.m
argin-view-overlays
>
.view-line
{
width
:
100%
;
}
...
...
@@ -160,10 +145,6 @@
background
:
url("green-squiggly.svg")
repeat-x
bottom
left
;
}
.monaco-editor
.linked-editing
{
box-shadow
:
inset
0
0
0
1px
#B9B9B9
;
}
/* ----------- bracket Match ------ */
...
...
@@ -185,34 +166,6 @@
color
:
inherit
;
}
/* ----------- BEGIN VS THEME ----------- */
/* Current line */
.monaco-editor.vs
.current-line
{
background
:
none
;
border
:
2px
solid
#EEE
;
box-sizing
:
border-box
;
}
.monaco-editor.vs.focus
.current-line
{
border-color
:
#EAEAF2
;
}
/* ----------- END VS THEME ----------- */
/* ----------- BEGIN VS-DARK THEME ----------- */
/* The editor */
.monaco-editor.vs-dark
,
...
...
@@ -249,13 +202,6 @@
color
:
#51504f
;
/* opposite of #AEAFAD */
}
/* Current line */
.monaco-editor.vs-dark
.current-line
{
background
:
none
;
border
:
2px
solid
#282828
;
box-sizing
:
border-box
;
}
/* Highlight a line */
.monaco-editor.vs-dark
.lineHighlight
{
background-color
:
rgba
(
243
,
240
,
245
,
0.2
);
...
...
@@ -333,9 +279,6 @@
@-ms-keyframes
monaco-editor-dark-word-highlight-strong
{
from
{
background-color
:
inherit
;
}
to
{
background-color
:
rgba
(
0
,
73
,
114
,
0.72
);
}
}
@keyframes
monaco-editor-dark-word-highlight-strong
{
from
{
background-color
:
inherit
;
}
to
{
background-color
:
rgba
(
0
,
73
,
114
,
0.72
);
}
}
/* Linked Editing */
.monaco-editor.vs-dark
.linked-editing
{
box-shadow
:
inset
0
0
0
1px
#555
;
}
/* Snippets */
.monaco-editor.vs-dark
.new-snippet
{
background-color
:
rgba
(
100
,
105
,
110
,
0.1
);
}
.monaco-editor.vs-dark
.snippet-placeholder
{
background-color
:
rgba
(
124
,
124
,
124
,
0.1
);
}
...
...
@@ -390,18 +333,6 @@
color
:
#000
;
/* opposite of #fff */
}
/* Current line */
.monaco-editor.hc-black
.current-line
{
background
:
none
;
border
:
none
;
box-sizing
:
border-box
;
}
.monaco-editor.hc-black.focused
.current-line
{
background
:
none
;
border
:
2px
solid
#f38518
;
box-sizing
:
border-box
;
}
/* Highlight a line */
.monaco-editor.hc-black
.lineHighlight
{
background-color
:
rgba
(
243
,
240
,
245
,
0.2
);
...
...
@@ -458,10 +389,6 @@
opacity
:
0.8
;
}
.monaco-editor.hc-black
.linked-editing
{
box-shadow
:
inset
0
0
0
1px
#B9B9B9
;
}
/* Glyph Margin */
.monaco-editor.hc-black
.glyph-margin
{
background
:
#000
;
...
...
@@ -501,9 +428,6 @@
box-shadow
:
none
;
}
/* Linked Editing */
.monaco-editor.hc-black
.linked-editing
{
box-shadow
:
inset
0
0
0
1px
#fff
;
}
/* Snippets */
.monaco-editor.hc-black
.new-snippet
{
background-color
:
rgba
(
100
,
105
,
110
,
0.1
);
}
.monaco-editor.hc-black
.snippet-placeholder
{
background-color
:
rgba
(
124
,
124
,
124
,
0.1
);
}
...
...
src/vs/workbench/browser/parts/editor/media/texteditor.css
已删除
100644 → 0
浏览文件 @
3027f1a4
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/* No highlight for current line when editor is inactive */
.monaco-workbench
>
.editor
>
.content
.inactive
.monaco-editor
.current-line
{
border-width
:
0
;
}
\ No newline at end of file
src/vs/workbench/browser/parts/editor/textEditor.ts
浏览文件 @
64bd1b64
...
...
@@ -5,7 +5,6 @@
'
use strict
'
;
import
'
vs/css!./media/texteditor
'
;
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
{
Dimension
,
Builder
}
from
'
vs/base/browser/builder
'
;
import
objects
=
require
(
'
vs/base/common/objects
'
);
...
...
src/vs/workbench/services/themes/electron-browser/themeService.ts
浏览文件 @
64bd1b64
...
...
@@ -338,7 +338,7 @@ function _processThemeObject(themeId: string, themeDocument: ThemeDocument): str
}
if
(
editorSettings
.
lineHighlight
)
{
let
lineHighlight
=
new
Color
(
editorSettings
.
lineHighlight
);
cssRules
.
push
(
`.monaco-editor.
${
themeSelector
}
.current-line { background-color:
${
lineHighlight
}
; border:0; }`
);
cssRules
.
push
(
`.monaco-editor.
${
themeSelector
}
.focused
.current-line { background-color:
${
lineHighlight
}
; border:0; }`
);
}
if
(
editorSettings
.
caret
)
{
let
caret
=
new
Color
(
editorSettings
.
caret
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录