diff options
author | 2022-02-01 22:43:15 +0100 | |
---|---|---|
committer | 2022-02-01 22:43:15 +0100 | |
commit | e144d4d1b4d1ef2ec2f9f8b771b3606b581ace34 (patch) | |
tree | 13c057809298c4f6ce6b16985e762df5a96e4107 /pydis_site/static/css | |
parent | Refactor as_css_class to 'to_kebabcase'. (diff) |
Complete refactor of collapsibles.
This is now a completely self-contained feature, which
can be used in the same way on every page. I've moved all the
collapsible-related logics out of the resources.js file and
into collapsibles.js, and added documentation and other
quality-of-life features that will apply to other pages, as well.
Changes:
- The icon will now always change when the collapsible opens or closes.
- By adding the "collapsed" class, you can tell the collapsible to
be collapsed by default.
Diffstat (limited to 'pydis_site/static/css')
-rw-r--r-- | pydis_site/static/css/collapsibles.css | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pydis_site/static/css/collapsibles.css b/pydis_site/static/css/collapsibles.css index a722d646..1d73fa00 100644 --- a/pydis_site/static/css/collapsibles.css +++ b/pydis_site/static/css/collapsibles.css @@ -7,9 +7,5 @@ .collapsible-content { transition: max-height 0.3s ease-out; -} - -.collapsible-content.collapsed { overflow: hidden; - max-height: 0 !important; } |