summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/resources/scss/components
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-ui/resources/scss/components')
-rw-r--r--openecomp-ui/resources/scss/components/_accordion.scss28
1 files changed, 28 insertions, 0 deletions
diff --git a/openecomp-ui/resources/scss/components/_accordion.scss b/openecomp-ui/resources/scss/components/_accordion.scss
new file mode 100644
index 0000000000..c96bc71be5
--- /dev/null
+++ b/openecomp-ui/resources/scss/components/_accordion.scss
@@ -0,0 +1,28 @@
+.accordion {
+ display: flex;
+ flex-direction: column;
+ .accordion-header {
+ display: flex;
+ flex-direction: row;
+ cursor: pointer;
+ margin-bottom: 10px;
+ .svg-icon-wrapper {
+ margin-right: 20px;
+ transition: transform .4s;
+ &.down {
+ transform: rotate(180deg);
+ }
+ }
+ }
+ .accordion-body {
+ padding-left: 10px;
+ opacity: 0;
+ overflow-y: hidden;
+ max-height: 0;
+ transition: max-height .3s cubic-bezier(0, 1.18, 1, 1), opacity 0.33s linear;
+ &.open {
+ opacity: 1;
+ max-height: 100%;
+ }
+ }
+} \ No newline at end of file