Skip to content

Instantly share code, notes, and snippets.

@ciceronianus
Last active October 28, 2020 07:42
Show Gist options
  • Save ciceronianus/daa48501df2139f24757525212b16abf to your computer and use it in GitHub Desktop.
Save ciceronianus/daa48501df2139f24757525212b16abf to your computer and use it in GitHub Desktop.
Roam - show Tweets on hover
/*
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