Summary Files Commits Branches @commit @diff @stats
path: root / src / accordions.less
diff options
context:
space:
mode:
1 files changed, 25 insertions, 0 deletions
-rw-r--r--src/accordions.less25
diff --git a/src/accordions.less b/src/accordions.less
new file mode 100644
index 0000000..14db162
--- /dev/null
+++ b/src/accordions.less
@@ -0,0 +1,25 @@
+// Accordions
+.accordion {
+ .accordion-item {
+ input {
+ &:checked ~ .accordion-body {
+ max-height: 100rem;
+ transition: max-height 3s ease;
+ }
+ }
+
+ .accordion-header {
+ background: @bg-color;
+ display: block;
+ padding: 1rem 1.6rem;
+ }
+
+ .accordion-body {
+ margin-bottom: .8rem;
+ max-height: 0;
+ overflow: hidden;
+ padding: .2rem .8rem;
+ transition: max-height .3s ease;
+ }
+ }
+}