diff options
| author | 2022-01-23 16:38:03 +0100 | |
|---|---|---|
| committer | 2022-01-23 16:38:03 +0100 | |
| commit | 605d9a0266a9a967f051fa244bf1c2d31776c119 (patch) | |
| tree | a9f3218e355c8f6a106ba2604334ce8a34823715 /pydis_site/static | |
| parent | Link icons belong close together. (diff) | |
| parent | Merge pull request #640 from Krish-bhardwaj/main (diff) | |
Merge branch 'main' into swfarnsworth/smarter-resources/merge-with-main
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/css/home/index.css | 12 | ||||
| -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/images/sponsors/netlify.png | bin | 0 -> 177462 bytes | |||
| -rw-r--r-- | pydis_site/static/js/content/page.js | 13 | 
7 files changed, 48 insertions, 5 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/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;  } 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/images/sponsors/netlify.png b/pydis_site/static/images/sponsors/netlify.png Binary files differnew file mode 100644 index 00000000..0f14f385 --- /dev/null +++ b/pydis_site/static/images/sponsors/netlify.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"; +            } +        }); +    } +});  |