2 Copyright 2020 TATA ELXSI
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
16 Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
18 /** Styles for the application **/
19 @import "../../assets/scss/mixins/mixin";
20 @import "../../assets/scss/variable";
21 $customnavbar-padding-x: ($spacer / 0.5) !default;
25 button[type="submit"]:focus,
26 .sidebar-body button[type="button"]:focus {
27 @include box-shadow(0, 0, 0, 0.2rem, lighten($primary, 50%) !important);
30 @include box-shadow(0, 0, 0, 0.2rem, lighten($danger, 30%) !important);
36 .modal-body-custom-height,
38 .CodeMirror-vscrollbar,
40 .runninginstances .popover-body {
41 &::-webkit-scrollbar {
42 @include wh-value(10px, null);
44 &::-webkit-scrollbar-thumb {
45 background-clip: content-box;
46 @include border(all, 3, solid, transparent);
47 @include roundedCorners(7);
48 @include box-shadow(0, 0, 0, 10px, rgba($black, 0.8), inset);
50 &::-webkit-scrollbar-button {
51 @include wh-value(0, 0);
52 @include flexbox(none, null, null, null, null, null);
54 &::-webkit-scrollbar-corner {
55 @include background(null, transparent, null, null, null);
59 @include font-family("Roboto");
60 @include background(null, $theme-bg-color, null, null, null);
63 @include wh-value(100px, auto);
66 @include background(null, $theme-bg-color !important, null, null, null);
72 text-decoration: none;
76 @include line-height(normal);
78 @include padding-percentage-value(0.2em, 0.6em, 0.2em, 0.6em);
83 @include box-shadow(0, 0, 0, 0, transparent);
88 @include box-shadow(0, 0, 0, 0, transparent !important);
93 &.btn-outline-primary:hover,
94 &.btn-outline-warning:hover {
98 &:not(:disabled):not(.disabled):active {
100 @include background(null, $primary, null, null, null);
101 border-color: $primary;
113 @include padding-percentage-value(
115 $customnavbar-padding-x,
117 $customnavbar-padding-x
121 @include roundedCorners(4);
122 @include font(null, 12px, null);
131 @include font(null, 1.2rem, 700);
133 @include line-height(1.25);
142 @include margin-value-percentage(5px, auto, auto, auto);
151 @include font(null, 10px, null);
155 @include flexbox(table, null, null, null, null, null);
156 @include wh-value(100%, 50px);
157 @include border(all, 1, dashed, $secondary);
160 @include padding-value(5, 5, 5, 5);
161 @include flexbox(table-cell, null, null, null, null, null);
162 vertical-align: middle;
165 @include font(null, 16px, null);
169 opacity: 1 !important;
174 @include background(null, $gray-400 !important, null, null, null);
182 @include border(top, 3, solid, $primary);
183 @include roundedCorners(3);
185 @include padding-value(15, 15, 15, 15);
188 table-cell-default-editor select-editor select {
189 @include wh-value(null, calc(2rem + 8px) !important);
190 @include padding-value(0, 10, 0, 10);
193 min-height: 400px !important;
195 .table-layout-fixed {
197 word-wrap: break-word;
199 .border-radius-default {
200 @include roundedCorners(3);
202 /** Model Popup-Design **/
203 .modal-body-custom-height {
207 /** Hide input clear icon in IE */
209 @include flexbox(none, null, null, null, null, null);
211 /** Overwrite the tooltip z-index */
215 /** Popover Header **/
218 @include background(null, $theme-bg-color, null, null, null);
220 /** Vim Show running instance Details **/
228 /****************************************************************************/
229 /************************** Smart table custom design ***********************/
230 /****************************************************************************/
232 @include font(null, 15px, null);
235 @include wh-value(null, auto);
237 &.dataTables_empty td {
240 ng2-smart-table-title {
242 @include font(null, 12px, null);
245 color: $gray-700 !important;
246 @include flexbox(block, null, null, null, null, null);
247 text-decoration: none;
249 content: "\f0dc" !important;
250 @include font-family("Font Awesome 5 Free");
253 @include wh-value(0, 0);
256 content: "\f0de" !important;
257 @include font-family("Font Awesome 5 Free");
262 content: "\f0dd" !important;
263 @include font-family("Font Awesome 5 Free");
268 text-decoration: none !important;
271 transform: none !important;
277 @include flexbox(inline-block, null, null, null, null, null);
278 @include wh-value(0, 0);
279 @include border(all, 0, solid, transparent !important);
280 margin-bottom: 0 !important;
287 ng2-smart-table-cell {
288 word-break: break-word;
289 table-cell-view-mode {
290 @include font(null, 12px, null);
292 @include font(null, 20px, null);
293 @include flexbox(inline-block, null, null, null, null, null);
294 @include wh-value(100px, 0);
301 @include wh-value(null, calc(2rem + 2px) !important);
302 @include font(null, 12px, null);
308 @include padding-value(2, 10, 2, 10);
309 vertical-align: middle !important;
313 background: none !important;
317 default-table-filter {
319 select.form-control {
320 @include flexbox(inline-block, null, null, null, null, null);
321 @include wh-value(null, calc(1.5rem + 2px) !important);
322 vertical-align: middle;
324 url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E")
325 no-repeat right 0.75rem center;
326 background-size: 8px 10px;
327 @include border(all, 1, solid, $gray-200);
328 @include roundedCorners(2);
329 -webkit-appearance: none;
330 -moz-appearance: none;
339 @include roundedCorners(4);
344 @include position_value(relative, null, null, null, null);
347 @include position_value(relative, -26px, null, null, 100%);
349 @include font("Font Awesome 5 Free", 10px, null);
350 @include padding-value(0, 0, 0, 2);
355 ng2-smart-table-pager {
356 @include flexbox(null, null, row-reverse, null, null, null);
357 @include padding-value(5, 20, 5, 20);
358 .ng2-smart-pagination {
359 .ng2-smart-page-item {
360 @include font(null, 10px, null);
363 text-decoration: none;
366 .ng2-smart-page-link {
367 @include font(null, 12px !important, null);
370 vertical-align: middle;
372 @include border(all, 1, solid, $primary !important);
374 @include background(null, $primary !important, null, null, null);
379 span.ng2-smart-page-link.page-link {
381 @include background(null, $primary !important, null, null, null);
382 @include border(all, 1, solid, $primary !important);
388 /****************************************************************************/
389 /*********************** Button styles under list class *********************/
390 /****************************************************************************/
393 button.btn.btn-primary {
394 @include padding-value(2, 8, 2, 8);
399 @include box-shadow(0, 0, 0, 0, transparent);
401 button.btn.btn-primary {
403 @include background(null, $white, null, null, null);
404 &:not(.active:hover) {
405 @include background(null, $white, null, null, null);
409 @include background(null, $white, null, null, null);
413 @include background(null, $primary !important, null, null, null);
415 @include background(null, $primary, null, null, null);
420 /****************************************************************************/
421 /*********************** List Action Dropdown section ***********************/
422 /****************************************************************************/
423 .list-action-dropdown {
424 @include border(all, 1, solid, $primary);
425 @include padding-value(0, 0, 0, 0);
426 button.btn.btn-primary {
427 @include background(null, transparent, null, null, null);
428 @include padding-value(8, 8, 8, 8);
429 @include roundedCorners(0);
432 @include background(null, $primary, null, null, null);
436 @include border(bottom, 1, solid, $primary);
440 /****************************************************************************/
441 /*********************** Custom tabel design in topology ********************/
442 /****************************************************************************/
445 @include font(null, null, bold);
450 @include padding-value(5, 7, 5, 7);
451 @include font(null, 10px, null);
452 @include line-height(15px);
455 /****************************************************************************/
456 /************************** Ng select custom design *************************/
457 /****************************************************************************/
459 &.is-invalid .ng-select-container {
460 @include border(all, 1, solid, $red);
462 .ng-select-container {
463 @include border(all, 1, solid, $gray-200);
464 .ng-value-container .ng-placeholder {
469 /****************************************************************************/
470 /******************** Custom nav section for default status *****************/
471 /****************************************************************************/
472 .list-utilites-actions {
473 @include flexbox(flex, null, row, null, center, null);
474 nav.custom-items-config {
475 @include position_value(relative, null, null, null, null);
476 @include roundedCorners(3);
478 @include font(null, 13px, 600);
479 @include flexbox(inline-block, null, null, null, null, null);
480 @include position_value(relative, null, null, null, null);
481 text-decoration: none;
483 @include margin-value(0, 0, 0, 10);
485 @include margin-value(0, 0, 0, 0);
488 @include font(null, 14px, null);
489 @include margin-value(0, 5, 0, 0);
494 /****************************************************************************/
495 /************************* File upload custom design ************************/
496 /****************************************************************************/
499 @include roundedCorners(4);
500 @include border(all, 1, solid, $primary);
502 @include margin-value(0, 0, 0, 0);
503 text-overflow: ellipsis;
508 @include background(null, $primary, null, null, null);
511 /****************************************************************************/
512 /************************* Notifier Container Design ************************/
513 /****************************************************************************/
514 .notifier__container {
516 @include margin-value(0, 0, 0, 0);
519 /***************************************************************************/
520 /************************* Topology Common Design **************************/
521 /****************************************************************************/
525 @include font(null, 12px, null);
528 @include wh-value(30px, 25px);
534 @include font(null, 10px, null);
541 @include border(all, 1, solid, $primary);
546 @include padding-value(3.2, 8, 3.2, 8);
552 @include padding-value(4.8, 4.8, 4.8, 4.8);
553 @include margin-value(0, 0, 5, 0);
554 @include background(null, $gray-200, null, null, null);
555 @include flexbox(flex, null, null, null, center, null);
557 .span-overflow-text {
558 @include wh-value(90%, null);
561 text-overflow: ellipsis;
562 @include line-height(25px);
569 @include font(null, 15px, null);
575 -webkit-user-select: none;
576 -moz-user-select: none;
577 -ms-user-select: none;
578 -o-user-select: none;
582 opacity: 0.7 !important;
586 opacity: 0.7 !important;
596 pointer-events: none;
601 pointer-events: none;
608 @include border(all, 1, solid, $primary);
610 @include padding-value(0, 5, 0, 5);
611 @include font(null, 15px, null);
615 @include wh-value(55%, null);
618 @include wh-value(25%, null);
623 @include wh-value(36px, 36px);
625 @include margin-value(0, 10, 10, 0);
629 border-color: $primary;
632 color: $white !important;
633 @include background(null, $primary !important, null, null, null);
637 @include flexbox(flex, flex-end, row, center, center, null);
640 .ns-topology-sidebar-container,
641 .vnf-topology-sidebar-container,
642 .ns-instance-topology-sidebar-container {
643 @include position_value(absolute !important, 0px, null, null, 0px);
645 @include wh-value(27%, null);
646 @include background(null, $white, null, null, null);
647 @include border(all, 1, solid, $gray-300);
649 @include background(null, $modalheader-gray, null, null, null);
650 @include padding-value(5, 10, 5, 10);
651 @include border(bottom, 1, solid, $gray-300);
652 @include flexbox(flex, space-between, null, center, center, null);
658 @include padding-value(10, 5, 10, 5);
661 .ng-sidebar__content {
663 @include position_value(absolute, 45%, null, null, 0px);
664 @include background(null, $primary, null, null, null);
667 @include flexbox(inline-block, null, null, null, null, null);
668 @include position_value(relative, null, null, null, null);
669 animation: push 0.5s infinite linear;
688 /****************************************************************************/
689 /************************** MEDIA QUERIES ***********************************/
690 /****************************************************************************/
691 @media (max-width: map-get($grid-breakpoints, md)) {
693 @include flexbox(block, null, null, null, null, null);