| | |
| | |
| | |
| |
|
| | |
| | .admonition.toggle .admonition-title ~ * { |
| | transition: opacity .3s, height .3s; |
| | } |
| |
|
| | |
| | .admonition.toggle { |
| | position: relative; |
| | } |
| |
|
| | |
| | .admonition.toggle .admonition-title { |
| | padding-right: 25%; |
| | cursor: pointer; |
| | } |
| |
|
| | |
| | .admonition.toggle .admonition-title:hover { |
| | box-shadow: inset 0 0 0px 20px rgb(0 0 0 / 1%); |
| | } |
| |
|
| | |
| | .admonition.toggle .admonition-title:active { |
| | box-shadow: inset 0 0 0px 20px rgb(0 0 0 / 3%); |
| | } |
| |
|
| | |
| | .admonition.toggle-hidden { |
| | padding-bottom: 0; |
| | } |
| |
|
| | .admonition.toggle-hidden .admonition-title { |
| | margin-bottom: 0; |
| | } |
| |
|
| | |
| | .admonition.toggle-hidden .admonition-title ~ * { |
| | height: 0; |
| | margin: 0; |
| | opacity: 0; |
| | visibility: hidden; |
| | } |
| |
|
| | |
| | button.toggle-button { |
| | |
| | |
| | |
| | |
| | background: none; |
| | border: none; |
| | outline: none; |
| |
|
| | |
| | position: absolute; |
| | right: 0.5em; |
| | padding: 0px; |
| | border: none; |
| | outline: none; |
| | } |
| |
|
| | |
| | @media (min-width: 768px) { |
| | button.toggle-button.toggle-button-hidden:before { |
| | content: attr(data-toggle-hint); |
| | font-size: .8em; |
| | align-self: center; |
| | } |
| | } |
| |
|
| | |
| | .tb-icon { |
| | transition: transform .2s ease-out; |
| | height: 1.5em; |
| | width: 1.5em; |
| | stroke: currentColor; |
| | } |
| |
|
| | |
| | |
| | .admonition.toggle button .tb-icon { |
| | transform: rotate(90deg); |
| | } |
| |
|
| | |
| | .admonition.toggle button.toggle-button-hidden .tb-icon { |
| | transform: rotate(0deg); |
| | } |
| |
|
| | |
| | details.toggle-details .tb-icon { |
| | height: 1.4em; |
| | width: 1.4em; |
| | margin-top: 0.1em; |
| | } |
| |
|
| |
|
| | |
| | |
| | |
| | |
| |
|
| | |
| | details.toggle-details { |
| | margin: 1em 0; |
| | } |
| |
|
| |
|
| | details.toggle-details summary { |
| | display: flex; |
| | align-items: center; |
| | cursor: pointer; |
| | list-style: none; |
| | border-radius: .2em; |
| | border-left: 3px solid #1976d2; |
| | background-color: rgb(204 204 204 / 10%); |
| | padding: 0.2em 0.7em 0.3em 0.5em; |
| | font-size: 0.9em; |
| | } |
| |
|
| | details.toggle-details summary:hover { |
| | background-color: rgb(204 204 204 / 20%); |
| | } |
| |
|
| | details.toggle-details summary:active { |
| | background: rgb(204 204 204 / 28%); |
| | } |
| |
|
| | .toggle-details__summary-text { |
| | margin-left: 0.2em; |
| | } |
| |
|
| | details.toggle-details[open] summary { |
| | margin-bottom: .5em; |
| | } |
| |
|
| | details.toggle-details[open] summary .tb-icon { |
| | transform: rotate(90deg); |
| | } |
| |
|
| | details.toggle-details[open] summary ~ * { |
| | animation: toggle-fade-in .3s ease-out; |
| | } |
| |
|
| | @keyframes toggle-fade-in { |
| | from {opacity: 0%;} |
| | to {opacity: 100%;} |
| | } |
| |
|
| | |
| | @media print { |
| | |
| | details.toggle-details summary { |
| | display: none; |
| | } |
| | } |