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 **/
21 @import "../../assets/scss/mixins/mixin";
22 @import "../../assets/scss/variable";
23 $customnavbar-padding-x: math.div($spacer, 0.5) !default;
27 button[type="submit"]:focus,
28 .sidebar-body button[type="button"]:focus {
29 @include box-shadow(0, 0, 0, 0.2rem, lighten($primary, 50%) !important);
32 @include box-shadow(0, 0, 0, 0.2rem, lighten($danger, 30%) !important);
38 .modal-body-custom-height,
40 .CodeMirror-vscrollbar,
42 .runninginstances .popover-body,
43 .resources-chart-popover .popover-body,
44 .ng-dropdown-panel .scroll-host {
45 &::-webkit-scrollbar {
46 @include wh-value(10px, null);
48 &::-webkit-scrollbar-thumb {
49 background-clip: content-box;
50 @include border(all, 3, solid, transparent);
51 @include roundedCorners(7);
52 @include box-shadow(0, 0, 0, 10px, rgba($black, 0.8), inset);
54 &::-webkit-scrollbar-button {
55 @include wh-value(0, 0);
56 @include flexbox(none, null, null, null, null, null);
58 &::-webkit-scrollbar-corner {
59 @include background(null, transparent, null, null, null);
63 @include font-family("Roboto");
64 @include background(null, $theme-bg-color, null, null, null);
67 @include wh-value(100px, auto);
70 @include background(null, $theme-bg-color !important, null, null, null);
76 text-decoration: none;
84 @include line-height(normal);
86 @include padding-percentage-value(0.2em, 0.6em, 0.2em, 0.6em);
91 @include box-shadow(0, 0, 0, 0, transparent);
96 @include box-shadow(0, 0, 0, 0, transparent !important);
101 &.btn-outline-primary:hover,
102 &.btn-outline-warning:hover {
106 &:not(:disabled):not(.disabled):active {
108 @include background(null, $primary, null, null, null);
109 border-color: $primary;
121 @include padding-percentage-value(
123 $customnavbar-padding-x,
125 $customnavbar-padding-x
129 @include roundedCorners(4);
130 @include font(null, 12px, null);
136 @include font(null, 1.2rem, 700);
138 @include line-height(1.25);
147 @include margin-value-percentage(5px, auto, auto, auto);
156 @include font(null, 11px, null);
160 @include flexbox(table, null, null, null, null, null);
161 @include wh-value(100%, 50px);
162 @include border(all, 1, dashed, $secondary);
165 @include padding-value(5, 5, 5, 5);
166 @include flexbox(table-cell, null, null, null, null, null);
167 vertical-align: middle;
170 @include font(null, 16px, null);
174 opacity: 1 !important;
182 @include background(null, $gray-400 !important, null, null, null);
188 @include roundedCorners(4);
189 margin-bottom: 0.25rem;
190 box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
192 @include background(null, $primary !important, null, null, null);
199 .seconds-btn-group .active {
201 @include background(null, $primary !important, null, null, null);
203 @include border(all, 2, dashed, $primary);
204 @include padding-value(5, 5, 5, 5);
210 tbody th i.active-icon {
221 @include border(top, 3, solid, $primary);
222 @include roundedCorners(3);
224 @include padding-value(15, 15, 15, 15);
227 table-cell-default-editor select-editor select {
228 @include wh-value(null, calc(2rem + 8px) !important);
229 @include padding-value(0, 10, 0, 10);
231 .edit-packages .CodeMirror {
232 min-height: 400px !important;
234 .new-vim .CodeMirror {
235 @include border(all, 1, solid, #eee !important);
237 .table-layout-fixed {
239 word-wrap: break-word;
241 .border-radius-default {
242 @include roundedCorners(3);
244 /** Model Popup-Design **/
245 .modal-body-custom-height {
249 /** Hide input clear icon in IE */
251 @include flexbox(none, null, null, null, null, null);
253 /** Overwrite the tooltip z-index */
257 /** Popover Header **/
260 @include background(null, $theme-bg-color, null, null, null);
262 /** Vim Show running instance Details **/
270 .resources-chart-popover {
271 max-width: 60% !important;
272 width: 600px !important;
273 @include font-family("Roboto");
279 /****************************************************************************/
280 /************************** Smart table custom design ***********************/
281 /****************************************************************************/
283 @include font(null, 15px, null);
286 @include wh-value(null, auto);
288 &.dataTables_empty td {
291 ng2-smart-table-title {
293 @include font(null, 12px, null);
296 color: $gray-700 !important;
297 @include flexbox(block, null, null, null, null, null);
298 text-decoration: none;
300 content: "\f0dc" !important;
301 @include font-family("Font Awesome 5 Free");
304 @include wh-value(0, 0);
307 content: "\f0de" !important;
308 @include font-family("Font Awesome 5 Free");
313 content: "\f0dd" !important;
314 @include font-family("Font Awesome 5 Free");
319 text-decoration: none !important;
322 transform: none !important;
328 @include flexbox(inline-block, null, null, null, null, null);
329 @include wh-value(0, 0);
330 @include border(all, 0, solid, transparent !important);
331 margin-bottom: 0 !important;
338 ng2-smart-table-cell {
339 word-break: break-word;
340 table-cell-view-mode {
341 @include font(null, 12px, null);
343 @include font(null, 20px, null);
344 @include flexbox(inline-block, null, null, null, null, null);
345 @include wh-value(100px, 0);
352 @include wh-value(null, calc(2rem + 2px) !important);
353 @include font(null, 12px, null);
359 @include padding-value(2, 10, 2, 10);
360 vertical-align: middle !important;
364 background: none !important;
368 default-table-filter {
370 select.form-control {
371 @include flexbox(inline-block, null, null, null, null, null);
372 @include wh-value(null, calc(1.5rem + 2px) !important);
373 vertical-align: middle;
375 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")
376 no-repeat right 0.75rem center;
377 background-size: 8px 10px;
378 @include border(all, 1, solid, $gray-200);
379 @include roundedCorners(2);
380 -webkit-appearance: none;
381 -moz-appearance: none;
390 @include roundedCorners(4);
395 @include position_value(relative, null, null, null, null);
398 @include position_value(relative, -26px, null, null, 100%);
400 @include font("Font Awesome 5 Free", 10px, null);
401 @include padding-value(0, 0, 0, 2);
406 ng2-smart-table-pager {
407 @include flexbox(null, null, row-reverse, null, null, null);
408 @include padding-value(5, 20, 5, 20);
409 .ng2-smart-pagination {
410 .ng2-smart-page-item {
411 @include font(null, 10px, null);
414 text-decoration: none;
417 .ng2-smart-page-link {
418 @include font(null, 12px !important, null);
421 vertical-align: middle;
423 @include border(all, 1, solid, $primary !important);
425 @include background(null, $primary !important, null, null, null);
430 span.ng2-smart-page-link.page-link {
432 @include background(null, $primary !important, null, null, null);
433 @include border(all, 1, solid, $primary !important);
439 /****************************************************************************/
440 /*********************** Button styles under list class *********************/
441 /****************************************************************************/
444 button.btn.btn-primary {
445 @include padding-value(2, 8, 2, 8);
450 @include box-shadow(0, 0, 0, 0, transparent);
452 button.btn.btn-primary {
454 @include background(null, $white, null, null, null);
455 &:not(.active:hover) {
456 @include background(null, $white, null, null, null);
460 @include background(null, $white, null, null, null);
464 @include background(null, $primary !important, null, null, null);
466 @include background(null, $primary, null, null, null);
471 /****************************************************************************/
472 /*********************** List Action Dropdown section ***********************/
473 /****************************************************************************/
474 .list-action-dropdown {
475 @include border(all, 1, solid, $primary);
476 @include padding-value(0, 0, 0, 0);
477 button.btn.btn-primary {
478 @include background(null, transparent, null, null, null);
479 @include padding-value(8, 8, 8, 8);
480 @include roundedCorners(0);
483 @include background(null, $primary, null, null, null);
487 @include border(bottom, 1, solid, $primary);
491 /****************************************************************************/
492 /*********************** Custom tabel design in topology ********************/
493 /****************************************************************************/
496 @include font(null, null, bold);
501 @include padding-value(5, 7, 5, 7);
502 @include font(null, 10px, null);
503 @include line-height(15px);
506 /****************************************************************************/
507 /************************** Ng select custom design *************************/
508 /****************************************************************************/
510 &.is-invalid .ng-select-container {
511 @include border(all, 1, solid, $red);
513 .ng-select-container {
514 @include border(all, 1, solid, $gray-200);
515 .ng-value-container .ng-placeholder {
520 .ng-dropdown-panel .scroll-host {
523 .ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
524 text-overflow: unset;
527 /****************************************************************************/
528 /******************** Custom nav section for default status *****************/
529 /****************************************************************************/
530 .list-utilites-actions {
531 @include flexbox(flex, null, row, null, center, null);
532 nav.custom-items-config {
533 @include position_value(relative, null, null, null, null);
534 @include roundedCorners(3);
536 @include font(null, 13px, 600);
537 @include flexbox(inline-block, null, null, null, null, null);
538 @include position_value(relative, null, null, null, null);
539 text-decoration: none;
541 @include margin-value(0, 0, 0, 10);
543 @include margin-value(0, 0, 0, 0);
546 @include font(null, 14px, null);
547 @include margin-value(0, 5, 0, 0);
552 /****************************************************************************/
553 /************************* File upload custom design ************************/
554 /****************************************************************************/
557 @include roundedCorners(4);
558 @include border(all, 1, solid, $primary);
560 @include margin-value(0, 0, 0, 0);
561 text-overflow: ellipsis;
566 @include background(null, $primary, null, null, null);
569 /****************************************************************************/
570 /************************* Notifier Container Design ************************/
571 /****************************************************************************/
572 .notifier__container {
574 @include margin-value(0, 0, 0, 0);
577 /***************************************************************************/
578 /************************* Topology Common Design **************************/
579 /****************************************************************************/
583 @include font(null, 12px, null);
586 @include wh-value(30px, 25px);
592 @include font(null, 10px, null);
599 @include border(all, 1, solid, $primary);
604 @include padding-value(3.2, 8, 3.2, 8);
610 @include padding-value(4.8, 4.8, 4.8, 4.8);
611 @include margin-value(0, 0, 5, 0);
612 @include background(null, $gray-200, null, null, null);
613 @include flexbox(flex, null, null, null, center, null);
615 .span-overflow-text {
616 @include wh-value(90%, null);
619 text-overflow: ellipsis;
620 @include line-height(25px);
627 @include font(null, 15px, null);
633 -webkit-user-select: none;
634 -moz-user-select: none;
635 -ms-user-select: none;
636 -o-user-select: none;
640 opacity: 0.7 !important;
644 opacity: 0.7 !important;
654 pointer-events: none;
659 pointer-events: none;
666 @include border(all, 1, solid, $primary);
668 @include padding-value(0, 5, 0, 5);
669 @include font(null, 15px, null);
673 @include wh-value(55%, null);
676 @include wh-value(25%, null);
681 @include wh-value(36px, 36px);
683 @include margin-value(0, 10, 10, 0);
687 border-color: $primary;
690 color: $white !important;
691 @include background(null, $primary !important, null, null, null);
695 @include flexbox(flex, flex-end, row, center, center, null);
698 .ns-topology-sidebar-container,
699 .vnf-topology-sidebar-container,
700 .ns-instance-topology-sidebar-container {
701 @include position_value(absolute !important, 0px, null, null, 0px);
703 @include wh-value(27%, null);
704 @include background(null, $white, null, null, null);
705 @include border(all, 1, solid, $gray-300);
707 @include background(null, $modalheader-gray, null, null, null);
708 @include padding-value(5, 10, 5, 10);
709 @include border(bottom, 1, solid, $gray-300);
710 @include flexbox(flex, space-between, null, center, center, null);
716 @include padding-value(10, 5, 10, 5);
719 .ng-sidebar__content {
721 @include position_value(absolute, 45%, null, null, 0px);
722 @include background(null, $primary, null, null, null);
725 @include flexbox(inline-block, null, null, null, null, null);
726 @include position_value(relative, null, null, null, null);
727 animation: push 0.5s infinite linear;
745 /** Switch Design **/
747 @include position_value(relative, null, null, null, null);
748 @include flexbox(inline-block, null, null, null, null, null);
749 @include wh-value(50px, 15px);
750 @include margin-value(0, 0, 0, 0);
753 @include wh-value(0px, 0px);
754 &:checked + .slider {
755 @include background(null, $gray-400, null, null, null);
757 @include background(null, $pure-red, null, null, null);
759 animation: pulse 2s infinite;
760 -webkit-transform: translateX(26px);
761 -ms-transform: translateX(26px);
762 transform: translateX(26px);
765 @include flexbox(block, null, null, null, null, null);
768 @include flexbox(none, null, null, null, null, null);
773 @include position_value(absolute, 0, 0, 0, 0);
775 @include background(null, $gray-400, null, null, null);
776 -webkit-transition: 0.4s;
778 box-shadow: 0 0 1px $gray-400;
780 @include roundedCorners(30);
782 @include roundedCornersPercentage(50%);
786 @include position_value(absolute, null, null, -2px, 0px);
787 @include wh-value(20px, 20px);
788 @include background(null, $white, null, null, null);
790 -webkit-transition: 0.4s;
792 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
795 @include flexbox(none, null, null, null, null, null);
796 @include position_value(absolute, 50%, null, null, 35% !important);
800 @include position_value(absolute, 50%, null, null, 65%);
802 transform: translate(-50%, -50%);
803 @include font(null, 11px, bold);
806 @-webkit-keyframes pulse {
808 -webkit-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0.4);
811 -webkit-box-shadow: 0 0 0 10px rgba(204, 89, 44, 0);
814 -webkit-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0);
819 -moz-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0.4);
820 box-shadow: 0 0 0 0 rgba(204, 89, 44, 0.4);
823 -moz-box-shadow: 0 0 0 10px rgba(204, 89, 44, 0);
824 box-shadow: 0 0 0 10px rgba(204, 89, 44, 0);
827 -moz-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0);
828 box-shadow: 0 0 0 0 rgba(204, 89, 44, 0);
833 /****************************************************************************/
834 /************************** MEDIA QUERIES ***********************************/
835 /****************************************************************************/
836 @media (max-width: map-get($grid-breakpoints, md)) {
838 @include flexbox(block, null, null, null, null, null);
845 text-transform: capitalize;
848 color: $secondary !important;
851 @include flexbox(none, null, null, null, null, null);
855 @include wh-value(20%, null);
858 @include wh-value(25%, null);
863 @include roundedCorners(10);
864 @include padding-percentage-value(0.2rem, 1rem, 0.2rem, 1rem);
865 box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
870 /****************************************************************************/
871 /************************** HEALING STYLE ***********************************/
872 /****************************************************************************/