diff options
| author | 2021-10-06 02:17:14 +0400 | |
|---|---|---|
| committer | 2021-10-06 02:18:26 +0400 | |
| commit | b8466fcbb3325b590c4b6ebe508ee35d02dc4b6a (patch) | |
| tree | b6bcc9878f829f2462fc5c2aa0884c69504fcb31 /pydis_site | |
| parent | Merge pull request #595 from python-discord/add-more-supported-symbols-to-otn (diff) | |
Properly Resize Sponsor Logos
Ensure sponsor logos don't go past the edge of the screen, and maintain
aspect ratio when sized down.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to '')
| -rw-r--r-- | pydis_site/static/css/home/index.css | 12 | 
1 files changed, 10 insertions, 2 deletions
diff --git a/pydis_site/static/css/home/index.css b/pydis_site/static/css/home/index.css index ee6f6e4c..7ec8af74 100644 --- a/pydis_site/static/css/home/index.css +++ b/pydis_site/static/css/home/index.css @@ -215,12 +215,20 @@ h1 {  }  #sponsors .columns { +    display: block;      justify-content: center;      margin: auto;      max-width: 80%;  } +#sponsors a { +    margin: auto; +    display: inline-block; +} +  #sponsors img { -    height: 5rem; -    margin: auto 1rem; +    width: auto; +    height: auto; + +    max-height: 5rem;  }  |