summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/resources/scss/modules/onboardingCatalog/_catalogTile.scss
blob: a2c799726632312e18617b93ded3e9abde949304 (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
.catalog-tile {
    &:hover {
        box-shadow: 0.3px 5px 12.8px 1.3px rgba(24, 24, 25, 0.15);
        border: 1px solid $light-gray;
    }
    .catalog-tile-top {
        position: relative;
        flex: 1;
        display: flex;
        padding-top: 29px;
        padding-left: 10px;
        align-items: flex-start;
        flex-direction: column;
        .catalog-tile-content {
            margin-top: auto;
            width: 180px;
        }

        .catalog-tile-type {
            display: block;
            margin-top: -25px;
            font-size: $heading-font-5;
            &.license-model-type {
                color: $purple;
            }
            &.software-product-type {
                color: $blue;
            }
        }
        .catalog-tile-entity-details {
            margin-top: 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            flex: 0.8;
            .catalog-tile-version-info {
                display: flex;
                justify-content: space-between;

                .catalog-tile-item-version {
                    @extend .body-2;
                    line-height: 6px;
                }
            }
            .catalog-tile-vendor-name {
                @extend .body-3;
                flex: 0.4;
                align-self: baseline;
                color: $gray;
                line-height: 10px;
                &:first-letter {
                    text-transform: capitalize;
                }
                @include ellipsis(auto, inline-block, 178px);
            }
        }
        .catalog-tile-item-name {
            @extend .heading-5-semibold;
            color: $black;
            @include ellipsis(auto, inline-block, 175px);
            line-height: inherit;
            &:first-letter {
                text-transform: capitalize;
            }
        }
    }
    .catalog-tile-icon {
        width: 58px;
        height: 58px;
        text-align: center;
        justify-content: center;
        display: flex;

        .icon {
            align-self: center;
            height: 58px;
            width: 58px;
            margin-left: 122px;
            background-repeat: no-repeat;
            .svg-icon {
                &.__vendor {
                    fill: $dark-gray;
                    &:hover {
                        fill: $dark-gray;
                    }
                    margin-top: 22px;
                }
                &.__vsp {
                    fill: $light-blue;
                }
                margin-top: 18px;
                margin-left: 3px;
                &.__vlm {
                    margin-top: 18px;
                    fill: $purple;
                }
            }
        }
    }
    .catalog-tile-content {
        border-top: 1px solid $background-gray;
        padding-top: 5px;
        display: flex;
        justify-content: space-between;
        margin-top: 2px;
        padding-bottom: 3px;
        @extend .body-2-semibold;
        .svg-icon {
            &.__plus {
                width: 20px;
                height: 20px;
                fill: $blue;
            }
        }
        .catalog-tile-item-details {
            overflow: hidden;
        }

        .catalog-tile-add-new-vsp {
            color: $blue;
            .svg-icon {
                &.__plus {
                    width: 20px;
                    height: 20px;
                }
            }
            margin-left: 40px;
        }
        .catalog-tile-locking-user-name {
            @extend .body-2;
            @include ellipsis(auto, inline-block, 180px);
        }
        .catalog-tile-check-in-status {
            .svg-icon {
                &.__locked {
                    fill: $gray;
                }
                &.__unlocked {
                    fill: $gray;
                }
            }
        }
    }
}