Skip to content

Instantly share code, notes, and snippets.

@codemasher
Created July 28, 2016 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codemasher/d97f5ce5ca666d44d09c88e70431363a to your computer and use it in GitHub Desktop.
Save codemasher/d97f5ce5ca666d44d09c88e70431363a to your computer and use it in GitHub Desktop.
embed fixes for gitter.im
/* 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