Last active
October 28, 2020 07:42
-
-
Save ciceronianus/daa48501df2139f24757525212b16abf to your computer and use it in GitHub Desktop.
Roam - show Tweets on hover
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
/* | |
Author:: @CatoMinor3 | |
Version:: 1 | |
Date:: October 28th, 2020 | |
Changes log | |
Support: | |
- Paypal: https://www.paypal.me/catominor3 | |
- Patreon: https://www.patreon.com/catominor | |
What is this? | |
A little custom CSS that changes the behaviour of embedded tweets: | |
instead of clicking on a button, they are being shown on hover over the button. | |
*/ | |
/* ---------------- code -----------------*/ | |
.twitter-tweet iframe { | |
margin-top: -14px; | |
display:none !important; | |
} | |
.twitter-tweet iframe:hover { | |
display:flex !important; | |
} | |
sub + button:hover + div > div.twitter-tweet > iframe { | |
display:flex !important; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment