Turns the mode indicator into a little colored triangle in the corner of the page.
-
-
Save quisquama/0f8ad71c24eccdc739e8e4a434452f2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.TridactylStatusIndicator { | |
/* NOTE: we can't change the size of the border directly in container tabs | |
* because the span for the status indicator sets "style = ... !important". | |
* | |
* HACK: we effectively set the border using size and scale together | |
**/ | |
--mode-indicator-size: 7pt; | |
--mode-indicator-scale: 2.0; | |
--mode-indicator-width: var(--mode-indicator-size); | |
--mode-indicator-height: calc(var(--mode-indicator-size) / 2); | |
--mode-indicator-offset: calc(var(--mode-indicator-width) / 2), calc(var(--mode-indicator-height)/ 2); | |
border: none !important; | |
border-radius: 0 !important; | |
right: 0 !important; | |
bottom: 0 !important; | |
position: fixed !important; | |
width: var(--mode-indicator-width) !important; | |
height: var(--mode-indicator-height) !important; | |
transform: translate(var(--mode-indicator-offset)) rotate(-45deg) scale(var(--mode-indicator-scale)) !important; | |
opacity: 0.5 !important; | |
font-size: 0pt !important; | |
color: rgba(0, 0, 0, 0.0) !important; | |
background: rgba(0, 0, 0, 0.0) !important; | |
} | |
/* when mouse is hovering over status indicator */ | |
.TridactylStatusIndicator.TridactylInvisible { | |
opacity: 0.0 !important; | |
background: rgba(0, 0, 0, 0.0) !important; | |
} | |
/* normal mode */ | |
.TridactylStatusIndicator.TridactylModenormal { | |
background: rgba(0, 0, 0, 0.0) !important; | |
} | |
/* ignore mode */ | |
.TridactylStatusIndicator.TridactylModeignore { | |
background: red !important; | |
} | |
/* visual mode */ | |
.TridactylStatusIndicator.TridactylModevisual { | |
background: orange !important; | |
} | |
/* input mode */ | |
.TridactylStatusIndicator.TridactylModeinput { | |
background: pink !important; | |
} | |
/* insert mode */ | |
.TridactylStatusIndicator.TridactylModeinsert { | |
background: purple !important; | |
} | |
/* hint mode */ | |
.TridactylStatusIndicator.TridactylModehint { | |
background: yellow !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment