]> git.r.bdr.sh - rbdr/dotfiles/blame_incremental - atom/packages/vim-mode/styles/vim-mode.less
Merge remote-tracking branch 'origin/master'
[rbdr/dotfiles] / atom / packages / vim-mode / styles / vim-mode.less
... / ...
CommitLineData
1@import "syntax-variables";
2@import "ui-variables";
3
4.normal-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.vim-hidden-normal-mode-input {
17 height: 0px !important;
18 width: 0px !important;
19 overflow: hidden !important;
20 border: none !important;
21 padding: 0 !important;
22 display: block !important;
23 position: fixed !important;
24 top: -10px !important;
25 left: -10px !important;
26}
27
28.block-cursor(@visibility: visible) {
29 border: 0;
30 background-color: @syntax-cursor-color;
31 visibility: @visibility;
32 opacity: 0.5;
33}
34
35.underline-cursor(@visibility: visible) {
36 border: none;
37 border-bottom: .3em solid @syntax-cursor-color;
38 background: none;
39 visibility: @visibility;
40 opacity: 0.5;
41}
42
43.low-block-cursor(@visibility: visible) {
44 border: none;
45 border-bottom: .6em solid @syntax-cursor-color;
46 background: none;
47 visibility: @visibility;
48 opacity: 0.5;
49}
50
51atom-text-editor.vim-mode.normal-mode,
52atom-text-editor.vim-mode.operator-pending-mode,
53atom-text-editor.vim-mode.visual-mode,
54{
55 &::shadow, // shadow-DOM enabled
56 & // shadow-DOM disabled
57 {
58 .cursor {
59 .block-cursor(hidden);
60 }
61 }
62}
63
64atom-text-editor.vim-mode.normal-mode.is-focused,
65atom-text-editor.vim-mode.operator-pending-mode.is-focused,
66atom-text-editor.vim-mode.visual-mode.is-focused
67{
68 &::shadow, // shadow-DOM enabled
69 & // shadow-DOM disabled
70 {
71 .cursor {
72 .block-cursor;
73 }
74 }
75}
76
77atom-text-editor.vim-mode.visual-mode
78{
79 &::shadow, // shadow-DOM enabled
80 & // shadow-DOM disabled
81 {
82 .cursor.hidden-cursor {
83 display: block;
84 }
85 }
86}
87
88atom-text-editor.vim-mode.replace-mode
89{
90 &::shadow, // shadow-DOM enabled
91 & // shadow-DOM disabled
92 {
93 .cursor {
94 .underline-cursor(hidden);
95 }
96 }
97}
98
99atom-text-editor.vim-mode.replace-mode.is-focused
100{
101 &::shadow, // shadow-DOM enabled
102 & // shadow-DOM disabled
103 {
104 .cursor {
105 .underline-cursor;
106 }
107
108 .cursors.blink-off .cursor {
109 .underline-cursor(hidden);
110 }
111 }
112}
113
114atom-text-editor.vim-mode.operator-pending-mode
115{
116 &::shadow, // shadow-DOM enabled
117 & // shadow-DOM disabled
118 {
119 .cursor {
120 .low-block-cursor(hidden);
121 }
122 }
123}
124
125atom-text-editor.vim-mode.operator-pending-mode.is-focused
126{
127 &::shadow, // shadow-DOM enabled
128 & // shadow-DOM disabled
129 {
130 .cursor {
131 .low-block-cursor;
132 }
133
134 .cursors.blink-off .cursor {
135 .low-block-cursor(hidden);
136 }
137 }
138}
139
140.search-input atom-text-editor[mini]::before {
141 content: '/';
142}
143
144.reverse-search-input atom-text-editor[mini]::before {
145 content: '?';
146}