aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/ui/expand-collapse/expand-collapse.component.less
blob: deda687a098cfa73004ba0e23dfc83e6b5fcbc74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.ellipsis-directive-more-less {
    float: right;
    margin-right: 10px;
    line-height: 23px;
    text-decoration: underline;
    text-align: left;
}


.expand-collapse-title {
    display:flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 32px;
    padding: 0 10px 0 20px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    header {
        flex: 1;
    }

    .expand-collapse-title-icon {
        padding-top: 10px;
        padding-left: 2px; 
        transition: transform .3s ease-out;
        
    }

    &.expanded .expand-collapse-title-icon {
        transform: rotate(0);
    }

    &.collapsed .expand-collapse-title-icon {
        transform: rotate(-180deg);
    }
    
} 

.expand-collapse-content {
    overflow: hidden;
    transition: max-height .3s ease-in;

    &.collapsed {
        max-height: 0px;
        overflow:hidden;
        transition: all .3s cubic-bezier(0, 1, 0, 1);

    }

}