Skip to content

Commit 3aeff30

Browse files
committed
Improve readabilities by restricting X (Twitter) widget width and height in /community page
1. Limit embedded X (Twitter) widget iframe with - 600px of width with data-width attribute, - 800px of height with data-height attribute. 2. Adjusted the styles of the container of X (Twitter) widget for better UI/UX with centered elements. Signed-off-by: Neko Ayaka <[email protected]>
1 parent ab3810c commit 3aeff30

File tree

14 files changed

+25
-46
lines changed

14 files changed

+25
-46
lines changed

assets/scss/_custom.scss

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -680,19 +680,6 @@ main.content {
680680
}
681681
}
682682

683-
/* COMMUNITY legacy styles */
684-
/* Leave these in place until localizations are caught up */
685-
686-
.newcommunitywrapper {
687-
.news {
688-
margin-left: 0;
689-
690-
@media screen and (min-width: 768px) {
691-
margin-left: 10%;
692-
}
693-
}
694-
}
695-
696683
/* CASE-STUDIES */
697684

698685
// Many of the case studies have small variations in markup and styles;

content/de/community/_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ <h1 style="margin-bottom:2%">Aktuelle Neuigkeiten</h1>
246246

247247
<br>
248248
<div class="twittercol1">
249-
<a class="twitter-timeline" data-tweet-limit="1" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">Tweets von kubernetesio</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
249+
<a class="twitter-timeline" data-tweet-limit="1" data-width="600" data-height="800" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">Tweets von kubernetesio</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
250250
</div>
251251

252252
<br>

content/en/community/_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,6 @@ <h2>Global community</h2>
178178
<div class="community-section community-frame" id="news">
179179
<h2>Recent News</h2>
180180
<div class="twittercol1">
181-
<a class="twitter-timeline" data-tweet-limit="1" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">Tweets by kubernetesio</a>
181+
<a class="twitter-timeline" data-tweet-limit="1" data-width="600" data-height="800" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">Tweets by kubernetesio</a>
182182
</div>
183183
</div>

content/fr/community/_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ <h1 style="margin-bottom:2%">Actualités récentes</h1>
227227

228228
<br>
229229
<div class="twittercol1">
230-
<a class="twitter-timeline" data-tweet-limit="1" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">Tweets de kubernetesio</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
230+
<a class="twitter-timeline" data-tweet-limit="1" data-width="600" data-height="800" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">Tweets de kubernetesio</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
231231
</div>
232232

233233
<br>

content/id/community/_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ <h1 style="margin-bottom:2%">Berita Terkini</h1>
226226

227227
<br>
228228
<div class="twittercol1">
229-
<a class="twitter-timeline" data-tweet-limit="1" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">Tweet oleh kubernetesio</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
229+
<a class="twitter-timeline" data-tweet-limit="1" data-width="600" data-height="800" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">Tweet oleh kubernetesio</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
230230
</div>
231231

232232
<br>

content/it/community/_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ <h1 style="margin-bottom:2%">Notizie Recenti</h1>
227227

228228
<br>
229229
<div class="twittercol1">
230-
<a class="twitter-timeline" data-tweet-limit="1" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">I tweet di kubernetesio</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
230+
<a class="twitter-timeline" data-tweet-limit="1" data-width="600" data-height="800" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">I tweet di kubernetesio</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
231231
</div>
232232

233233
<br>

content/ja/community/_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ <h1 style="margin-bottom:2%">最新ニュース</h1>
226226

227227
<br>
228228
<div class="twittercol1">
229-
<a class="twitter-timeline" data-tweet-limit="1" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">kubernetesioさんのツイート</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
229+
<a class="twitter-timeline" data-tweet-limit="1" data-width="600" data-height="800" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">kubernetesioさんのツイート</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
230230
</div>
231231

232232
<br>

content/ko/community/_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,6 @@ <h2>글로벌 커뮤니티</h2>
178178
<div class="community-section community-frame" id="news">
179179
<h2>최근 소식</h2>
180180
<div class="twittercol1">
181-
<a class="twitter-timeline" data-tweet-limit="1" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">kubernetesio의 트윗</a>
181+
<a class="twitter-timeline" data-tweet-limit="1" data-width="600" data-height="800" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">kubernetesio의 트윗</a>
182182
</div>
183183
</div>

content/pt-br/community/_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,6 @@ <h2>Comunidade global</h2>
194194
<div class="community-section community-frame" id="news">
195195
<h2>Notícias Recentes</h2>
196196
<div class="twittercol1">
197-
<a class="twitter-timeline" data-tweet-limit="1" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">Tuítes por kubernetesio</a>
197+
<a class="twitter-timeline" data-tweet-limit="1" data-width="600" data-height="800" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">Tuítes por kubernetesio</a>
198198
</div>
199199
</div>

content/ru/community/_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ <h1 style="margin-bottom:2%">Последние новости</h1>
226226

227227
<br>
228228
<div class="twittercol1">
229-
<a class="twitter-timeline" data-tweet-limit="1" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">Твиты от kubernetesio</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
229+
<a class="twitter-timeline" data-tweet-limit="1" data-width="600" data-height="800" href="https://twitter.com/kubernetesio?ref_src=twsrc%5Etfw">Твиты от kubernetesio</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
230230
</div>
231231

232232
<br>

0 commit comments

Comments
 (0)