From ab18c0d88ad7f11073a49c097ff20c5510cb2e7d Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Fri, 12 Apr 2019 14:06:47 +0200 Subject: Responsive video container not quite working the way it should. --- pydis_site/static/css/base/base.css | 6 ++ pydis_site/static/css/home/index.css | 37 +++++++++-- pydis_site/templates/home/index.html | 121 +++++++++++++++++++++-------------- 3 files changed, 113 insertions(+), 51 deletions(-) diff --git a/pydis_site/static/css/base/base.css b/pydis_site/static/css/base/base.css index f9c557d5..969511f4 100644 --- a/pydis_site/static/css/base/base.css +++ b/pydis_site/static/css/base/base.css @@ -12,6 +12,12 @@ main.site-content { flex: 1; } +div.card.has-equal-height { + height: 100%; + display: flex; + flex-direction: column; +} + #django-logo { padding-bottom: 2px; background: url(https://static.djangoproject.com/img/logos/django-logo-negative.png) no-repeat center; diff --git a/pydis_site/static/css/home/index.css b/pydis_site/static/css/home/index.css index 9f060562..4f1a25ab 100644 --- a/pydis_site/static/css/home/index.css +++ b/pydis_site/static/css/home/index.css @@ -48,9 +48,9 @@ .video-container { position: relative; - padding-bottom: 285px; - padding-top: 30px; - height: 0; + padding-top: 56.25%; + margin-left: 10px; + margin-right: 10px; overflow: hidden; } @@ -60,8 +60,37 @@ position: absolute; top: 0; left: 0; + right: 0; width: 100%; height: 100%; - max-width: 560px; + border: 0; max-height: 315px; + max-width: 560px; +} + +span.repo-language-dot { + border-radius: 50%; + height: 12px; + width: 12px; + top: 1px; + display: inline-block; + position: relative; +} + +span.repo-language-dot.python { + background-color: #3572A5; +} + +span.repo-language-dot.html { + background-color: #e34c26; +} + +span.repo-language-dot.css { + background-color: #563d7c; +} + + + +#repo-footer-item { + margin-left: 1.2rem; } diff --git a/pydis_site/templates/home/index.html b/pydis_site/templates/home/index.html index 88d557e1..9f9fe93e 100644 --- a/pydis_site/templates/home/index.html +++ b/pydis_site/templates/home/index.html @@ -11,9 +11,8 @@
- +
-

Who are we?


@@ -39,8 +38,10 @@ complex project, we've got someone who can help you if you get stuck.

-
-
@@ -49,68 +50,94 @@

Projects


-
+
-
-
-
-

- pythondiscord/site -

-
+
+
-
- Some stuff goes in here. tags? dynamic info? -
+ python-discord/site +

+ Source code for our website +

+ Python + 566 + 27
- -
-
-
-

- pythondiscord/seasonalbot -

-
+ +
+
-
- Some stuff goes in here. tags? dynamic info? github stars? -
+ python-discord/bot +

+ Source code for our Discord bot +

+ Python + 566 + 27
- -
-
-
-

- pythondiscord/seasonalbot -

-
+ +
+
-
- Some stuff goes in here. tags? dynamic info? github stars? -
+ python-discord/snekbox +

+ Easy, safe evaluation of arbitrary Python code +

+ Python + 566 + 27
-
-
-
-

- pythondiscord/seasonalbot -

-
+
+
+
+ python-discord/seasonalbot +

+ A Discord bot that changes with the seasons. Meant as a beginner-friendly learning project. +

+ Python + 566 + 27 +
+
+
+ + +
+
+
+ python-discord/django-simple-bulma +

+ Django application to add the Bulma CSS framework and its extensions +

+ CSS + 566 + 27 +
+
+
+ + +
+
-
- Some stuff goes in here. tags? dynamic info? github stars? -
+ python-discord/django-crispy-bulma +

+ Django application to add 'django-crispy-forms' layout objects for Bulma.io +

+ HTML + 566 + 27
-- cgit v1.2.3