Summary Files Commits Branches @commit @diff @stats
path: root / src / accordions.less
diff options
context:
space:
mode:
Commit17dccfb2cfcf0401e1c855337e1b86c79b2f3b2b (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-05-05 21:06:07 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-05-05 21:06:07 +0800
Files31221f3f4ca926c858678f1f392dde2a0419e0fe /src/accordions.less
Spectre-Dark-Gruvbox-17dccfb2cfcf0401e1c855337e1b86c79b2f3b2b.tar
Spectre-Dark-Gruvbox-17dccfb2cfcf0401e1c855337e1b86c79b2f3b2b.tar.gz
Spectre-Dark-Gruvbox-17dccfb2cfcf0401e1c855337e1b86c79b2f3b2b.zip
Parent22af202a537652a91f1589dab9cedcc31fb459e0 (diff)
Move Accordions to Components and add icons
1 files changed, 17 insertions, 6 deletions
-rw-r--r--src/accordions.less23
diff --git a/src/accordions.less b/src/accordions.less
index 14db162..edbf648 100644
--- a/src/accordions.less
+++ b/src/accordions.less
@@ -2,23 +2,34 @@
.accordion {
.accordion-item {
input {
- &:checked ~ .accordion-body {
- max-height: 100rem;
- transition: max-height 3s ease;
+ &:checked {
+ & ~ .accordion-header {
+ .icon {
+ transform: rotate(270deg);
+ transition: all .25s ease;
+ }
+ }
+ & ~ .accordion-body {
+ max-height: 100rem;
+ transition: max-height 3s ease;
+ }
}
}
.accordion-header {
background: @bg-color;
display: block;
- padding: 1rem 1.6rem;
+ padding: 1rem;
+
+ .icon {
+ transition: all .25s ease;
+ }
}
.accordion-body {
- margin-bottom: .8rem;
+ margin-bottom: 1rem;
max-height: 0;
overflow: hidden;
- padding: .2rem .8rem;
transition: max-height .3s ease;
}
}