]> git.r.bdr.sh - rbdr/dotfiles/blobdiff - atom/packages/vim-mode/styles/vim-mode.less
Adds atom packages
[rbdr/dotfiles] / atom / packages / vim-mode / styles / vim-mode.less
index a4589375f2a03a2dfd8ac04a87659ff4f340145c..7c5db28a4e8b1ee1cd400c1134182027bb6fb168 100644 (file)
@@ -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%;
   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;
   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: '?';
+}