diff options
| author | 2022-01-21 21:55:19 +0000 | |
|---|---|---|
| committer | 2022-01-21 21:55:19 +0000 | |
| commit | 721d313e9170661bd969fe8e737866b2560dae4a (patch) | |
| tree | 44aa19b25573ada3bf2ef3cf16c9c279d7b05603 /pydis_site/static | |
| parent | Implement voice mute + migration from voice mute -> voice ban (diff) | |
| parent | Merge pull request #640 from Krish-bhardwaj/main (diff) | |
Merge branch 'main' into voicemute
Diffstat (limited to 'pydis_site/static')
| -rw-r--r-- | pydis_site/static/css/base/base.css | 15 | ||||
| -rw-r--r-- | pydis_site/static/css/content/page.css | 13 | ||||
| -rw-r--r-- | pydis_site/static/images/content/contributing/pycharm_run_module.png | bin | 0 -> 38758 bytes | |||
| -rw-r--r-- | pydis_site/static/images/sponsors/netcup.png | bin | 0 -> 9492 bytes | |||
| -rw-r--r-- | pydis_site/static/js/content/page.js | 13 |
5 files changed, 38 insertions, 3 deletions
diff --git a/pydis_site/static/css/base/base.css b/pydis_site/static/css/base/base.css index f3fe1e44..4b36b7ce 100644 --- a/pydis_site/static/css/base/base.css +++ b/pydis_site/static/css/base/base.css @@ -78,12 +78,20 @@ main.site-content { color: #00000000; } +#netcup-logo { + padding-left: 15px; + background: url(https://www.netcup-wiki.de/static/assets/images/netcup_logo_white.svg) no-repeat center; + background-size: 60px; + background-position: 0px 3px; + color: #00000000; +} + #django-logo { padding-bottom: 2px; - background: url(https://static.djangoproject.com/img/logos/django-logo-negative.png) no-repeat center; - filter: grayscale(1) invert(0.02); + background: url(https://static.djangoproject.com/img/logos/django-logo-negative.svg) no-repeat center; + filter: grayscale(1) invert(0.09); background-size: 52px 25.5px; - background-position: -1px -2px; + background-position: -2px -1px; color: #00000000; } @@ -92,6 +100,7 @@ main.site-content { height: 20px; background: url(https://bulma.io/images/bulma-logo-white.png) no-repeat center; background-size: 60px; + background-position: 0px 3px; color: #00000000; } diff --git a/pydis_site/static/css/content/page.css b/pydis_site/static/css/content/page.css index d831f86d..2d4bd325 100644 --- a/pydis_site/static/css/content/page.css +++ b/pydis_site/static/css/content/page.css @@ -77,3 +77,16 @@ ul.menu-list.toc { li img { margin-top: 0.5em; } + +.collapsible { + cursor: pointer; + width: 100%; + border: none; + outline: none; +} + +.collapsible-content { + overflow: hidden; + max-height: 0; + transition: max-height 0.2s ease-out; +} diff --git a/pydis_site/static/images/content/contributing/pycharm_run_module.png b/pydis_site/static/images/content/contributing/pycharm_run_module.png Binary files differnew file mode 100644 index 00000000..c5030519 --- /dev/null +++ b/pydis_site/static/images/content/contributing/pycharm_run_module.png diff --git a/pydis_site/static/images/sponsors/netcup.png b/pydis_site/static/images/sponsors/netcup.png Binary files differnew file mode 100644 index 00000000..e5dff196 --- /dev/null +++ b/pydis_site/static/images/sponsors/netcup.png diff --git a/pydis_site/static/js/content/page.js b/pydis_site/static/js/content/page.js new file mode 100644 index 00000000..366a033c --- /dev/null +++ b/pydis_site/static/js/content/page.js @@ -0,0 +1,13 @@ +document.addEventListener("DOMContentLoaded", () => { + const headers = document.getElementsByClassName("collapsible"); + for (const header of headers) { + header.addEventListener("click", () => { + var content = header.nextElementSibling; + if (content.style.maxHeight){ + content.style.maxHeight = null; + } else { + content.style.maxHeight = content.scrollHeight + "px"; + } + }); + } +}); |