1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-18 13:05:32 -04:00

clean up shortcodes

This commit is contained in:
2021-12-13 20:46:28 -05:00
parent 964c4ef543
commit cda7d538a6
15 changed files with 64 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
// External social embeds
div.embed {
.embed {
&.codepen {
iframe {
width: 100%;
@@ -8,8 +8,10 @@ div.embed {
}
&.tweet {
.twitter-tweet-rendered iframe {
margin: 0.5em 0;
margin: 0.5em 0;
> .twitter-tweet-rendered {
margin: 0 auto;
}
}
@@ -40,12 +42,25 @@ div.embed {
}
}
&.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
> span,
> a {
> a,
> span {
margin: 0 0.5em;
}
}