mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 14:08:29 -04:00
73 lines
1.0 KiB
SCSS
73 lines
1.0 KiB
SCSS
// External social embeds
|
|
.embed {
|
|
&.codepen {
|
|
iframe {
|
|
width: 100%;
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
&.tweet {
|
|
margin: 0.5em 0;
|
|
|
|
> .twitter-tweet-rendered {
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
&.youtube {
|
|
position: relative;
|
|
padding-bottom: 56.25%;
|
|
margin: 1em auto;
|
|
height: 0;
|
|
overflow: hidden;
|
|
|
|
iframe.youtube-player {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: inline-block;
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
&.video {
|
|
video {
|
|
display: block;
|
|
margin: 1em auto;
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
&.vimeo {
|
|
padding: 75% 0 0 0;
|
|
position: relative;
|
|
|
|
iframe {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
&.gh-buttons {
|
|
text-align: center;
|
|
|
|
// GitHub's script replaces <a> with <span>, so cover both
|
|
> a,
|
|
> span {
|
|
margin: 0 0.5em;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Responsive
|
|
// stylelint-disable-next-line block-no-empty
|
|
@mixin responsive() {
|
|
}
|