Fix Bug 2048:The VCA Status for an NS with both a KNF and a VNF does not provide...
[osm/NG-UI.git] / src / app / dashboard / DashboardComponent.scss
1 /*
2  Copyright 2020 TATA ELXSI
3
4  Licensed under the Apache License, Version 2.0 (the 'License');
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7
8   http://www.apache.org/licenses/LICENSE-2.0
9
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15
16  Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
17  */
18  @import "../../assets/scss/mixins/mixin";
19  @import "../../assets/scss/variable";
20  $min-height-set: 200px;
21  .dashboard {
22    .custom-card {
23      background-color: $white;
24      word-wrap: break-word;
25      @include box-shadow(0px, 1px, 15px, 0px, rgba(69, 90, 100, 0.1));
26      @include transition(all, 0.2s, null, null);
27      @include roundedCorners(5);
28      @include border(all, 1, solid, rgba(238, 238, 238, 0.75));
29      color: $white;
30      &.card-hover {
31        @include transition(all, 0.25s, ease, null);
32        &:hover {
33          -moz-transform: translateY(-4px) scale(1.01);
34          -ms-transform: translateY(-4px) scale(1.01);
35          -o-transform: translateY(-4px) scale(1.01);
36          transform: translateY(-4px) scale(1.01);
37        }
38      }
39      &.pink-card {
40        @include background(
41          linear-gradient(to left top,#d81b60,#e0306d,#e7407a,#ee4f87,#f55c94),
42          null,
43          null,
44          null,
45          null
46        );
47      }
48      &.purple-card {
49        @include background(
50          linear-gradient(to left top,#605ca8,#736ebb,#8681ce,#9994e2,#aca7f6),
51          null,
52          null,
53          null,
54          null
55        );
56      }
57      &.aqua-card {
58        @include background(
59          linear-gradient(to left top,#00c0ef,#00cdf5,#00dafa,#00e6fd,#0af3ff),
60          null,
61          null,
62          null,
63          null
64        );
65      }
66      .custom-card-header {
67        padding: 12px 20px 12px 20px;
68        @include background(null, $primary, null, null, null);
69        @include roundedTop(5);
70        a {
71          color: $white;
72          @include flexbox(flex, space-between, null, null, center, null);
73          @include padding-value(12, 20, 12, 20);
74        }
75      }
76      .card-body {
77        @include padding-value(5, 5, 5, 10);
78        &.list-overflow {
79          overflow-y: scroll;
80          .list-group {
81            .list-group-item {
82              background-color: $white;
83              cursor: default;
84              @include border(all, 0, solid, $black-coral);
85              @include border(bottom, 1, solid, rgba(0, 0, 0, 0.125));
86              @include padding-value(10, 0, 10, 0);
87              @include margin-value(0, 0, 0, 0);
88              color: $gray-600;
89              i {
90                cursor: pointer;
91                @include font(null, 14px, null);
92                &.activeProjectLink {
93                  cursor: default;
94                }
95              }
96              &:last-child {
97                @include border(bottom, 0, solid, rgba(0, 0, 0, 0.125));
98              }
99            }
100          }
101          &.failed-instances {
102            max-height: $min-height-set;
103          }
104          &.project-list {
105            max-height: 65vh;
106          }
107        }
108      }
109    }
110    .instances {
111      .graph-section {
112        min-height: $min-height-set;
113        @include flexbox(null, center, null, null, null, null);
114        @include padding-value(10, 10, 10, 10);
115        .card-title {
116          color: $gray-600;
117        }
118        .instances-canvas {
119          @include flexbox(none !important, null, null, null, null, null);
120          &.show-canvas {
121            @include flexbox(block !important, null, null, null, null, null);
122          }
123          #canvas {
124            @include wh-value(100%, $min-height-set);
125          }
126        }
127      }
128    }
129    .module-counts {
130      .status-card {
131        overflow: hidden;
132        @include wh-value(null, 130px);
133        @include roundedCorners(4);
134        @include box-shadow(0px, 5px, 20px, 2px, $transparent-dark-bg);
135        cursor: pointer;
136        @include flexbox(null, null, null, null, center, null);
137        @include padding-value(20, 20, 20, 20);
138        @include border(all, 0, solid, $gray-80);
139        i {
140          @include font(null, 2rem, null);
141          @include margin-value(0, 0, 8, 0);
142        }
143        h6 {
144          @include font(null, 0.8rem, null);
145        }
146        &:hover .link-icon {
147          @include position_value(null, null, -60px, null, null);
148        }
149        .link-icon {
150          @include background(null, rgba(255, 255, 255, 0.5), null, null, null);
151          @include position_value(absolute, 0px, -130px, null, null);
152          @include wh-value(130px, 130px);
153          @include font(null, 30px, null);
154          @include padding-value(40, 20, 40, 20);
155          @include roundedCornersPercentage(50%);
156          @include transition(all, 0.3s, ease-in-out, null);
157          i {
158            @include font(null, 1.875rem, null);
159          }
160        }
161      }
162    }
163    .font-weight-bold {
164      border-radius: 10px;
165    }
166    .form-row {
167      display: flex;
168      flex-wrap: wrap;
169      .form-group {
170        flex: 0 0 auto;
171        width: 47%;
172        margin-right: 25px;
173      }
174    }
175    .vimdetails {
176      width: 100%;
177    }
178  }