Skip to content

Commit

Permalink
Update accordion button
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Sep 26, 2024
1 parent a405fdf commit 32b3ed8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
10 changes: 10 additions & 0 deletions src/bootstrap/_customizations.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,20 @@ ul:not([class]) li {

.accordion-button .icon {
--icon-size: 1.5rem;
margin-top: -.0575em;
margin-bottom: -.0575em;
margin-left: auto;
transition: transform var(--btcpay-transition-duration-fast) ease-in-out;
}

.accordion-button span {
color: rgba(var(--btcpay-body-link-rgb), var(--btcpay-link-opacity, 1));
}

.accordion-button:hover span {
--btcpay-body-link-rgb: var(--btcpay-body-link-accent-rgb);
}

.accordion-button:not(.collapsed) .icon {
transform: rotate(-180deg);
}
Expand Down
16 changes: 13 additions & 3 deletions src/static/styles/btcpayserver-bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -12267,10 +12267,20 @@ ul:not([class]) li {

.accordion-button .icon {
--icon-size: 1.5rem;
margin-top: -.0575em;
margin-bottom: -.0575em;
margin-left: auto;
transition: transform var(--btcpay-transition-duration-fast) ease-in-out;
}

.accordion-button span {
color: rgba(var(--btcpay-body-link-rgb), var(--btcpay-link-opacity, 1));
}

.accordion-button:hover span {
--btcpay-body-link-rgb: var(--btcpay-body-link-accent-rgb);
}

.accordion-button:not(.collapsed) .icon {
transform: rotate(-180deg);
}
Expand Down Expand Up @@ -12840,7 +12850,7 @@ input[type='number'].hide-number-spin {
cursor: pointer;
}

.btcpay-toggle:hover {
.btcpay-toggle:not(:disabled):hover {
background: var(--btcpay-toggle-bg-hover);
}

Expand All @@ -12855,8 +12865,8 @@ input.btcpay-toggle:checked,
background: var(--btcpay-toggle-bg-active);
}

input.btcpay-toggle:checked:hover,
.btcpay-toggle.btcpay-toggle--active:hover {
input.btcpay-toggle:not(:disabled):checked:hover,
.btcpay-toggle.btcpay-toggle--active:not(:disabled):hover {
background: var(--btcpay-toggle-bg-active-hover);
}

Expand Down

0 comments on commit 32b3ed8

Please sign in to comment.