Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit771544f0ae6babd860466f51495746fcd31f3c03 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-04-25 23:19:10 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-04-25 23:19:10 +0800
Files7b2fb719d9be28c15aa0a773a0193135363622fa /src
Spectre-Dark-Gruvbox-771544f0ae6babd860466f51495746fcd31f3c03.tar
Spectre-Dark-Gruvbox-771544f0ae6babd860466f51495746fcd31f3c03.tar.gz
Spectre-Dark-Gruvbox-771544f0ae6babd860466f51495746fcd31f3c03.zip
Parentad0ae360d75c6fc6b4228ce4d31b2369f8465f27 (diff)
Add Accordions
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..a09da4c
--- /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: 0 .8rem;
+ transition: max-height .3s ease;
+ }
+ }
+}