diff options
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.pngBinary files differ new 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.pngBinary files differ new 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"; +            } +        }); +    } +}); | 
