X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/24c7594d62d8d7fbbcdb64b11ce4adc5d8e6991a..b49e1944c95b958ef0f84f1e49c6d83d553f9ecd:/atom/packages/vim-mode/styles/vim-mode.less diff --git a/atom/packages/vim-mode/styles/vim-mode.less b/atom/packages/vim-mode/styles/vim-mode.less index a458937..7c5db28 100644 --- a/atom/packages/vim-mode/styles/vim-mode.less +++ b/atom/packages/vim-mode/styles/vim-mode.less @@ -1,7 +1,7 @@ @import "syntax-variables"; @import "ui-variables"; -.command-mode-input atom-text-editor[mini] { +.normal-mode-input atom-text-editor[mini] { background-color: inherit; border: none; width: 100%; @@ -13,6 +13,18 @@ padding-left: 10px; } +.vim-hidden-normal-mode-input { + height: 0px !important; + width: 0px !important; + overflow: hidden !important; + border: none !important; + padding: 0 !important; + display: block !important; + position: fixed !important; + top: -10px !important; + left: -10px !important; +} + .block-cursor(@visibility: visible) { border: 0; background-color: @syntax-cursor-color; @@ -20,27 +32,43 @@ opacity: 0.5; } -atom-text-editor.vim-mode.command-mode, +.underline-cursor(@visibility: visible) { + border: none; + border-bottom: .3em solid @syntax-cursor-color; + background: none; + visibility: @visibility; + opacity: 0.5; +} + +.low-block-cursor(@visibility: visible) { + border: none; + border-bottom: .6em solid @syntax-cursor-color; + background: none; + visibility: @visibility; + opacity: 0.5; +} + +atom-text-editor.vim-mode.normal-mode, atom-text-editor.vim-mode.operator-pending-mode, atom-text-editor.vim-mode.visual-mode, { &::shadow, // shadow-DOM enabled & // shadow-DOM disabled { - .cursor, .cursor.blink-off { + .cursor { .block-cursor(hidden); } } } -atom-text-editor.vim-mode.command-mode.is-focused, +atom-text-editor.vim-mode.normal-mode.is-focused, atom-text-editor.vim-mode.operator-pending-mode.is-focused, atom-text-editor.vim-mode.visual-mode.is-focused { &::shadow, // shadow-DOM enabled & // shadow-DOM disabled { - .cursor, .cursor.blink-off { + .cursor { .block-cursor; } } @@ -56,3 +84,63 @@ atom-text-editor.vim-mode.visual-mode } } } + +atom-text-editor.vim-mode.replace-mode +{ + &::shadow, // shadow-DOM enabled + & // shadow-DOM disabled + { + .cursor { + .underline-cursor(hidden); + } + } +} + +atom-text-editor.vim-mode.replace-mode.is-focused +{ + &::shadow, // shadow-DOM enabled + & // shadow-DOM disabled + { + .cursor { + .underline-cursor; + } + + .cursors.blink-off .cursor { + .underline-cursor(hidden); + } + } +} + +atom-text-editor.vim-mode.operator-pending-mode +{ + &::shadow, // shadow-DOM enabled + & // shadow-DOM disabled + { + .cursor { + .low-block-cursor(hidden); + } + } +} + +atom-text-editor.vim-mode.operator-pending-mode.is-focused +{ + &::shadow, // shadow-DOM enabled + & // shadow-DOM disabled + { + .cursor { + .low-block-cursor; + } + + .cursors.blink-off .cursor { + .low-block-cursor(hidden); + } + } +} + +.search-input atom-text-editor[mini]::before { + content: '/'; +} + +.reverse-search-input atom-text-editor[mini]::before { + content: '?'; +}