-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy patheditor.less
98 lines (79 loc) · 1.97 KB
/
editor.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Editor styles (background, gutter, guides)
atom-text-editor {
.uno-1(); // @syntax-text-color
.bg-1(); // @syntax-background-color
.line.cursor-line {
.cl();
}
.selection .region {
.bg-3(); // @syntax-selection-color
}
.cursor {
border-color: var(--accent); // @syntax-cursor-color
border-left-width: 2px;
}
.bracket-matcher .region {
border-bottom: 1px solid var(--accent);
}
.invisible {
.fg-2();
}
.invisible-character {
.fg-2(); // @syntax-invisible-character-color
-webkit-font-smoothing: antialiased;
}
.indent-guide {
.fg-2(); // @syntax-indent-guide-color
}
.wrap-guide {
.bg-2(); // @syntax-wrap-guide-color
}
// find + replace
.find-result .region.region.region,
.current-result .region.region.region {
border: none;
border-radius: 0px;
background-color: var(--duo-1);
opacity: .15;
transition: none;
}
// highlight-selected
// Attribute selector needed since background will be asked to change to -> syntax--background
[class="highlight highlight-selected background"] .region.region.region.region {
background-color: var(--duo-1);
opacity: .15;
}
.gutter {
.line-number {
.fg-1(); // @syntax-gutter-text-color
-webkit-font-smoothing: antialiased;
&.git-line-removed:before {
bottom: -3px;
}
&.git-line-removed:after {
content: "";
position: absolute;
left: 0px;
bottom: 0px;
width: 25px;
border-bottom: 1px dotted fade(@syntax-color-removed, 50%);
pointer-events: none;
}
&.cursor-line {
.uno-1(); // @syntax-gutter-text-color-selected
.bg-2(); // @syntax-gutter-background-color-selected
}
&.cursor-line-no-selection {
background-color: transparent;
}
.icon-right {
.uno-1();
}
}
}
.gutter .line-number.folded,
.gutter .line-number:after,
.fold-marker:after {
.uno-1();
}
}