aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/ui/tabs/tabs.component.less
blob: f7b18b1cc812c4fddf318ecbb6460f63414b6243 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
@import '../../../../../assets/styles/variables';

tab {
    height: 100%;
}

.tabs {
    display:flex;
    flex: 0 0 auto;
    flex-direction:row;
}

.tab {
    flex: 1 0 auto;
    cursor: pointer;
    padding: .5em;
}

.tab-content-container {
    flex: 1;
    width:100%;
    overflow-y:hidden;
    overflow-x:hidden;
}

.tab-content {
    height:100%;
}

/*Tab styles*/
.tabs{
    &.round-tabs .tab{
        background-color: #f8f8f8;
        color: #959595;
        border: solid 1px #d2d2d2;
        border-bottom:none;
        border-left:none;
        position:relative;

        &:first-child {
            border-left:solid 1px #d2d2d2;
        }

        &.active {
            background-color:#009fdb;
            color:#e9e9e9;
            border-color:#009fdb;
        }

        .tab-indication {
            position: absolute;
            top: -10px;
            background-color: #009fdb;
            right: 10px;
            padding: 2px 0;
            border-radius: 15px;
            border: solid 1px #d2d2d2;
            color:white;
            width: 25px;
            height: 25px;
            text-align: center;

        }
    }

    &.simple-tabs .tab {
        font-size: 12px;
        color: @main_color_n;

        &:after {
            display:block;
            content: '';
            border-bottom: 2px solid @main_color_a;
            transform: scaleX(0);
            transition: transform 200ms ease-in-out;
        }

        &.active {
            color: @main_color_a;
            &:after {
                transform: scaleX(1.2);
            }
        }
    }
}