To finish off this list, we have an accordion that is the most similar to the real – life accordions. 25 rem $accordion-icon-color : $accordion-color $accordion-icon-active-color : $accordion-button-active-color $accordion-icon-transition : transform. 15 s ease $accordion-button-active-bg : tint-color ( $component-active-bg, 90 % ) $accordion-button-active-color : shade-color ( $primary, 10 % ) $accordion-button-focus-border-color : $input-focus-border-color $accordion-button-focus-box-shadow : $btn-focus-box-shadow $accordion-icon-width : 1. 125 ) $accordion-border-radius : $border-radius $accordion-inner-border-radius : subtract ( $accordion-border-radius, $accordion-border-width ) $accordion-body-padding-y : $accordion-padding-y $accordion-body-padding-x : $accordion-padding-x $accordion-button-padding-y : $accordion-padding-y $accordion-button-padding-x : $accordion-padding-x $accordion-button-color : $accordion-color $accordion-button-bg : $accordion-bg $accordion-transition : $btn-transition, border-radius. 25 rem $accordion-color : $body-color $accordion-bg : $body-bg $accordion-border-width : $border-width $accordion-border-color : rgba ( $black. $accordion-padding-y : 1 rem $accordion-padding-x : 1. Please read the collapse accessibility section for more information. accordion-body, though the transition does limit overflow. It's also worth noting that just about any HTML can go within the. You can modify any of this with custom CSS or overriding our default variables. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. It is shown by default, until the collapse plugin adds the appropriate classes that we use to style each element. This is the first item's accordion body. accordion-collapse to make accordion items stay open when another item is opened. Omit the data-bs-parent attribute on each. Nothing more exciting happening here in terms of content, but just filling up the space to make it look, at least at first glance, a bit more representative of how this would look in a real-world application. Placeholder content for this accordion, which is intended to demonstrate the. Let's imagine this being filled with some actual content. This is the second item's accordion body. accordion-flush to remove the default background-color, some borders, and some rounded corners to render accordions edge-to-edge with their parent container. accordion-body, though the transition does limit overflow.Īdd. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. This is the third item's accordion body.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |