Skip to content

Commit

Permalink
Goodbye accordian.js :)
Browse files Browse the repository at this point in the history
  • Loading branch information
NightScript370 committed Dec 24, 2024
1 parent 2f9afda commit 1c5f35e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 154 deletions.
1 change: 0 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ <h5 class="modal-title" id="aboutModalLabel">Credits</h5>
{% include modals/calendar.html %}
{% endcomment %}
{% include modals/mobile.html %}
{% if page.accordian %}<script src="/assets/js/misc/accordian.js"></script>{% endif %}
{% if page.chaiTable %}
{% include modals/chaiTable.html %}
{% include toasts/failToast.html toastId="ctFailToast" errorText="ChaiTable did not return a table. Please be in contact with us to check what went wrong." %}
Expand Down
17 changes: 14 additions & 3 deletions assets/css/accordian.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

.accordian details {
position: relative;
interpolate-size: allow-keywords;
}

.accordian summary .timeDisplay {
Expand Down Expand Up @@ -82,13 +83,23 @@ body[dir=rtl] .accordian details[open] > summary .accordianText:before {
transform: rotate(-90deg) translateX(3px) translateY(-3px);
}

.accordian details::details-content {
background: white;
overflow-y: scroll;
transition:
block-size .25s cubic-bezier(.4,0,.2,1),
content-visibility .25s cubic-bezier(.4,0,.2,1) allow-discrete;
block-size: 0;
}

.accordian .accordianContent {
padding: 10px;
border: 2px solid var(--bs-card-bg);
border-top: none;
background: white;
max-height: 35vh;
overflow: scroll;
}

.accordian details[open]::details-content {
block-size: 35vh;
}

.accordian .accordianContent hr:last-child {
Expand Down
2 changes: 1 addition & 1 deletion assets/css/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
background-color: #373E5C;
}

.accordian .accordianContent {
.accordian details::details-content {
background: #303030;
}

Expand Down
149 changes: 0 additions & 149 deletions assets/js/misc/accordian.js

This file was deleted.

0 comments on commit 1c5f35e

Please sign in to comment.