Forked from raisabelatrix/obsidian-show-ribbon-on-hover.css
Last active
October 4, 2024 21:47
-
-
Save NotFluffy/76d775d8c66b124a2e0fbe3a257026e0 to your computer and use it in GitHub Desktop.
Keeps the sidebar ribbon out of sight and only shows it upon hover. [Tested Obsidian 1.6.7 on Windows11]
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
/* NO HOVER : NO RIBBON */ | |
.side-dock-ribbon.mod-left:not(:hover){ | |
width: 0px !important; | |
opacity: 0 | |
} | |
.side-dock-ribbon.mod-left { | |
flex: 0 0 5px; | |
transition: flex .2s; | |
} | |
/* ON HOVER : SHOW RIBBON */ | |
.side-dock-ribbon.mod-left:hover { | |
flex: 0 0 40px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment