]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/styles/vim-mode.less
a4589375f2a03a2dfd8ac04a87659ff4f340145c
[rbdr/dotfiles] / atom / packages / vim-mode / styles / vim-mode.less
1 @import "syntax-variables";
2 @import "ui-variables";
3
4 .command-mode-input atom-text-editor[mini] {
5 background-color: inherit;
6 border: none;
7 width: 100%;
8 font-weight: normal;
9 color: @text-color;
10 line-height: 1.28;
11 cursor: default;
12 white-space: nowrap;
13 padding-left: 10px;
14 }
15
16 .block-cursor(@visibility: visible) {
17 border: 0;
18 background-color: @syntax-cursor-color;
19 visibility: @visibility;
20 opacity: 0.5;
21 }
22
23 atom-text-editor.vim-mode.command-mode,
24 atom-text-editor.vim-mode.operator-pending-mode,
25 atom-text-editor.vim-mode.visual-mode,
26 {
27 &::shadow, // shadow-DOM enabled
28 & // shadow-DOM disabled
29 {
30 .cursor, .cursor.blink-off {
31 .block-cursor(hidden);
32 }
33 }
34 }
35
36 atom-text-editor.vim-mode.command-mode.is-focused,
37 atom-text-editor.vim-mode.operator-pending-mode.is-focused,
38 atom-text-editor.vim-mode.visual-mode.is-focused
39 {
40 &::shadow, // shadow-DOM enabled
41 & // shadow-DOM disabled
42 {
43 .cursor, .cursor.blink-off {
44 .block-cursor;
45 }
46 }
47 }
48
49 atom-text-editor.vim-mode.visual-mode
50 {
51 &::shadow, // shadow-DOM enabled
52 & // shadow-DOM disabled
53 {
54 .cursor.hidden-cursor {
55 display: block;
56 }
57 }
58 }