Accordion Blocks is a simple plugin that adds Gutenberg blocks for adding accordion drop-downs to your pages.
Accordion Blocks是一个简单的插件,它添加了Gutenberg块,用于向您的页面添加手风琴下拉列表。 p>
The accordions should blend seamlessly with your theme.
手风琴应与您的主题无缝融合。
However, you may want to add custom styles to your theme.
但是,您可能想要向主题添加自定义样式。 p>
Features
功能 h4>
-auto-close="true" data-scroll="false" data-scroll-offset="0">
-auto-close =“ true” data-scroll =“ false” data-scroll-offset =“ 0”>
Title with H2 tag
带H2标签的标题
h2>
div>
code> pre>
Custom CSS
自定义CSS h4>
You can use the following CSS classes to customize the look of the accordion.
您可以使用以下CSS类来自定义手风琴的外观。 p>
.c-accordion__item {} /* The accordion item container */ .c-accordion__item {} / *手风琴项目容器* /.c-accordion__item.is-open {} /* is-open is added to open accordion items */
.c-accordion__item.is-open {} / * is-open添加到打开的手风琴项目中* /
.c-accordion__item.is-read {} /* is-read is added to accordion items that have been opened at least once */
.c-accordion__item.is-read {} / * is-read被添加到至少打开过一次的手风琴中* /
.c-accordion__title {} /* An accordion item title */
.c-accordion__title {} / *手风琴项目标题* /
.c-accordion__title--button {} /* An accordion item title that is using a `
code> pre>