Created
July 28, 2016 19:09
-
-
Save codemasher/d97f5ce5ca666d44d09c88e70431363a to your computer and use it in GitHub Desktop.
embed fixes for gitter.im
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
/* limit embed height and align left */ | |
.embed { | |
height: inherit; | |
max-height: 640px; | |
overflow: inherit; | |
position: initial; | |
} | |
/* don't stretch code blocks over the whole screen */ | |
pre code { | |
display: inline-block; | |
} | |
/** | |
* twitter profiles - timeline scrolling requires a line of jquery on each new element of that type | |
* $('.embed > iframe.twitter-timeline').contents().find('.timeline-Widget').attr('style', 'overflow-y:scroll;height:500px;') | |
*/ | |
iframe.twitter-timeline { | |
height: 500px; | |
width: 800px; | |
} | |
twitterwidget { | |
margin: 10px 0; | |
position: initial; | |
} | |
/** | |
* spotify embeds - by @darthmaim | |
* https://gist.github.com/darthmaim/219ac0fad352a0beec100c0aad3fcb45 | |
*/ | |
a[href*="https://open.spotify.com/track"] + .embed { | |
height: 80px; | |
} | |
a[href*="https://open.spotify.com/track"] + .embed > div { | |
padding-bottom: 80px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment