]> git.r.bdr.sh - rbdr/dotfiles/blame - atom/packages/vim-mode/styles/vim-mode.less
Adds atom
[rbdr/dotfiles] / atom / packages / vim-mode / styles / vim-mode.less
CommitLineData
24c7594d
BB
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
23atom-text-editor.vim-mode.command-mode,
24atom-text-editor.vim-mode.operator-pending-mode,
25atom-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
36atom-text-editor.vim-mode.command-mode.is-focused,
37atom-text-editor.vim-mode.operator-pending-mode.is-focused,
38atom-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
49atom-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}