aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static/css
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-04-12 08:58:32 +0200
committerGravatar Leon Sandøy <[email protected]>2019-04-12 08:58:32 +0200
commit4c47d99f707d9d74c85fa6df204b26b600ec140f (patch)
tree51befe582de877358022be3d89ca7d30b901eda5 /pydis_site/static/css
parentFixing the footer. Django logo no longer clips, and matches the rest of the f... (diff)
responsive video container
Diffstat (limited to 'pydis_site/static/css')
-rw-r--r--pydis_site/static/css/base/base.css25
-rw-r--r--pydis_site/static/css/home/index.css18
2 files changed, 32 insertions, 11 deletions
diff --git a/pydis_site/static/css/base/base.css b/pydis_site/static/css/base/base.css
index e9b40758..f9c557d5 100644
--- a/pydis_site/static/css/base/base.css
+++ b/pydis_site/static/css/base/base.css
@@ -1,3 +1,17 @@
+html {
+ overflow:auto;
+}
+
+body.site {
+ display: flex;
+ min-height: 100vh;
+ flex-direction: column;
+}
+
+main.site-content {
+ flex: 1;
+}
+
#django-logo {
padding-bottom: 2px;
background: url(https://static.djangoproject.com/img/logos/django-logo-negative.png) no-repeat center;
@@ -18,14 +32,3 @@
#pydis-text {
font-weight: bold;
}
-
-
-body.site {
- display: flex;
- min-height: 100vh;
- flex-direction: column;
-}
-
-main.site-content {
- flex: 1;
-}
diff --git a/pydis_site/static/css/home/index.css b/pydis_site/static/css/home/index.css
index 2ead1a12..3516c6a5 100644
--- a/pydis_site/static/css/home/index.css
+++ b/pydis_site/static/css/home/index.css
@@ -46,4 +46,22 @@
margin-left: 3rem;
}
+.video-container {
+ position: relative;
+ padding-bottom: 56.25%;
+ padding-top: 30px;
+ height: 0;
+ overflow: hidden;
+}
+.video-container iframe,
+.video-container object,
+.video-container embed {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ max-width: 560px;
+ max-height: 315px;
+}