mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 14:56:21 -04:00
switch tweet embed centering to recommended method:
https://developer.twitter.com/en/docs/twitter-for-websites/embedded-tweets/overview
This commit is contained in:
parent
3eb37e588e
commit
0b98f51a74
@ -70,13 +70,6 @@ div#content {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.tweet {
|
|
||||||
.twitter-tweet-rendered {
|
|
||||||
margin: 1em auto;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.youtube {
|
&.youtube {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-bottom: 56.25%;
|
padding-bottom: 56.25%;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%v&dnt=1&omit_script=1" (index .Params 0) -}}
|
{{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%v&dnt=1&omit_script=1&align=center" (index .Params 0) -}}
|
||||||
{{- $json := getJSON $url -}}
|
{{- $json := getJSON $url -}}
|
||||||
|
|
||||||
<div class="embed tweet">
|
<div class="embed tweet">
|
||||||
|
@ -636,9 +636,9 @@ camelcase@^6.0.0:
|
|||||||
integrity sha512-8KMDF1Vz2gzOq54ONPJS65IvTUaB1cHJ2DMM7MbPmLZljDH1qpzzLsWdiN9pHh6qvkRVDTi/07+eNGch/oLU4w==
|
integrity sha512-8KMDF1Vz2gzOq54ONPJS65IvTUaB1cHJ2DMM7MbPmLZljDH1qpzzLsWdiN9pHh6qvkRVDTi/07+eNGch/oLU4w==
|
||||||
|
|
||||||
caniuse-lite@^1.0.30001087, caniuse-lite@^1.0.30001088:
|
caniuse-lite@^1.0.30001087, caniuse-lite@^1.0.30001088:
|
||||||
version "1.0.30001089"
|
version "1.0.30001090"
|
||||||
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001089.tgz#0634653159f1179093a35fd7f36dbd7c4ed85101"
|
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001090.tgz#ff7766332f60e80fea4903f30d360622e5551850"
|
||||||
integrity sha512-RnL5dbdqAfQ5oxHjFUU8uiyJMvTKoXfRn0Asp2R5cpRsyiY5+kLl0fcocQijb0V9XAWFEG/2A/vSswRmpYarmA==
|
integrity sha512-QzPRKDCyp7RhjczTPZaqK3CjPA5Ht2UnXhZhCI4f7QiB5JK6KEuZBxIzyWnB3wO4hgAj4GMRxAhuiacfw0Psjg==
|
||||||
|
|
||||||
caw@^2.0.0, caw@^2.0.1:
|
caw@^2.0.0, caw@^2.0.1:
|
||||||
version "2.0.1"
|
version "2.0.1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user