-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditor.less
executable file
·44 lines (35 loc) · 935 Bytes
/
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
// Editor in a panel
// TODO: Find a better selector, maybe a new class like atom-text-editor[medium]
atom-panel-container atom-text-editor.is-focused {
.focus();
}
// Mini
// Usually just single line inputs
atom-text-editor[mini] {
overflow: auto;
font-size: @ui-input-size;
line-height: @ui-line-height;
max-height: @ui-line-height * 5; // rows
padding-left: @ui-padding/3;
border-radius: @component-border-radius;
color: @text-color-highlight;
border: 1px solid @input-border-color;
background-color: @input-background-color;
.placeholder-text {
color: @text-color-subtle;
}
.selection .region {
background-color: @input-selection-color;
}
.cursor {
border-color: @accent-color;
border-width: 2px;
}
&.is-focused {
.focus();
background-color: @input-background-color-focus;
.selection .region {
background-color: @input-selection-color-focus;
}
}
}