Initial Commit - NG UI
[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      word-wrap: break-word;
24      @include box-shadow(0px, 1px, 15px, 0px, rgba(69, 90, 100, 0.1));
25      @include transition(all, 0.2s, null, null);
26      @include roundedCorners(5);
27      @include border(all, 1, solid, rgba(238, 238, 238, 0.75));
28      color: $white;
29      &.card-hover {
30        @include transition(all, 0.25s, ease, null);
31        &:hover {
32          -moz-transform: translateY(-4px) scale(1.01);
33          -ms-transform: translateY(-4px) scale(1.01);
34          -o-transform: translateY(-4px) scale(1.01);
35          transform: translateY(-4px) scale(1.01);
36        }
37      }
38      &.pink-card {
39        @include background(
40          linear-gradient(to left top, #d81b60, #e0306d, #e7407a, #ee4f87, #f55c94),
41          null,
42          null,
43          null,
44          null
45        );
46      }
47      &.purple-card {
48        @include background(
49          linear-gradient(to left top, #605ca8, #736ebb, #8681ce, #9994e2, #aca7f6),
50          null,
51          null,
52          null,
53          null
54        );
55      }
56      &.aqua-card {
57        @include background(
58          linear-gradient(to left top, #00c0ef, #00cdf5, #00dafa, #00e6fd, #0af3ff),
59          null,
60          null,
61          null,
62          null
63        );
64      }
65      .custom-card-header {
66        @include background(null, $primary, null, null, null);
67        @include roundedTop(5);
68        a {
69          color: $white;
70          @include flexbox(flex, space-between, null, null, center, null);
71          @include padding-value(12, 20, 12, 20);
72        }
73      }
74      .card-body {
75        @include padding-value(5, 5, 5, 10);
76        &.list-overflow {
77          overflow-y: scroll;
78          .list-group {
79            .list-group-item {
80              cursor: default;
81              @include border(all, 0, solid, $black-coral);
82              @include border(bottom, 1, solid, rgba(0, 0, 0, 0.125));
83              @include padding-value(10, 0, 10, 0);
84              @include margin-value(0, 0, 0, 0);
85              color: $gray-600;
86              i {
87                cursor: pointer;
88                @include font(null, 14px, null);
89                &.activeProjectLink {
90                  cursor: default;
91                }
92              }
93              &:last-child {
94                @include border(bottom, 0, solid, rgba(0, 0, 0, 0.125));
95              }
96            }
97          }
98          &.failed-instances {
99            max-height: $min-height-set;
100          }
101          &.project-list {
102            max-height: 65vh;
103          }
104        }
105      }
106    }
107    .instances {
108      .graph-section {
109        min-height: $min-height-set;
110        @include flexbox(null, center, null, null, null, null);
111        @include padding-value(10, 10, 10, 10);
112        .card-title {
113          color: $gray-600;
114        }
115        .instances-canvas {
116          @include flexbox(none !important, null, null, null, null, null);
117          &.show-canvas {
118            @include flexbox(block !important, null, null, null, null, null);
119          }
120          #canvas{
121           @include wh-value(100%, $min-height-set);
122         }
123        }
124      }
125    }
126    .module-counts {
127      .status-card {
128        overflow: hidden;
129        @include wh-value(null, 130px);
130        @include roundedCorners(4);
131        @include box-shadow(0px, 5px, 20px, 2px, $transparent-dark-bg);
132        cursor: pointer;
133        @include flexbox(null, null, null, null, center, null);
134        @include padding-value(20, 20, 20, 20);
135        @include border(all, 0, solid, $gray-80);
136        i {
137          @include font(null, 2rem, null);
138          @include margin-value(0, 0, 8, 0);
139        }
140        h6 {
141          @include font(null, 0.8rem, null);
142        }
143        &:hover .link-icon {
144          @include position_value(null, null, -60px, null, null);
145        }
146        .link-icon {
147          @include background(null, rgba(255, 255, 255, 0.5), null, null, null);
148          @include position_value(absolute, 0px, -130px, null, null);
149          @include wh-value(130px, 130px);
150          @include font(null, 30px, null);
151          @include padding-value(40, 20, 40, 20);
152          @include roundedCornersPercentage(50%);
153          @include transition(all, 0.3s, ease-in-out, null);
154          i {
155            @include font(null, 1.875rem, null);
156          }
157        }
158      }
159    }
160  }