aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar hedy <[email protected]>2024-01-12 14:30:13 +0800
committerGravatar hedy <[email protected]>2024-01-12 14:30:13 +0800
commit4be2284f1ea65a7f6bb12d0eb4ee79cb11e80c47 (patch)
treef64dfddf795a3a92938349d31c82422480eca43d /pydis_site
parentDark: Fix backgrounds on sponsors section on homepage (diff)
Dark: Fix sizing of sponsors' logos
Also works on mobile. I *love* CSS.
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/static/css/home/index.css24
1 files changed, 18 insertions, 6 deletions
diff --git a/pydis_site/static/css/home/index.css b/pydis_site/static/css/home/index.css
index 552961e7..e0dd1ebc 100644
--- a/pydis_site/static/css/home/index.css
+++ b/pydis_site/static/css/home/index.css
@@ -252,6 +252,11 @@ h1 {
#sponsors a {
border-radius: .2rem;
margin-bottom: .8rem;
+ position: relative;
+}
+
+#sponsors img {
+ max-height: 4rem;
}
[data-theme="dark"] #sponsors a {
@@ -283,18 +288,25 @@ h1 {
margin-right: -.8rem;
}
+ #sponsors a {
+ height: 5rem;
+ padding: .4rem;
+ }
+
#sponsors img {
- height: 4rem;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ margin: auto;
+ max-width: calc(100% - 0.8rem);
}
+
}
@media (max-width: 800px) {
#sponsors .columns {
margin-bottom: 1.5rem;
}
-
- #sponsors img {
- max-height: 4rem;
- max-width: 50%;
- }
}