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 .resources-chart-popover .popover-body {
42 &::-webkit-scrollbar {
43 @include wh-value(10px, null);
45 &::-webkit-scrollbar-thumb {
46 background-clip: content-box;
47 @include border(all, 3, solid, transparent);
48 @include roundedCorners(7);
49 @include box-shadow(0, 0, 0, 10px, rgba($black, 0.8), inset);
51 &::-webkit-scrollbar-button {
52 @include wh-value(0, 0);
53 @include flexbox(none, null, null, null, null, null);
55 &::-webkit-scrollbar-corner {
56 @include background(null, transparent, null, null, null);
60 @include font-family("Roboto");
61 @include background(null, $theme-bg-color, null, null, null);
64 @include wh-value(100px, auto);
67 @include background(null, $theme-bg-color !important, null, null, null);
73 text-decoration: none;
81 @include line-height(normal);
83 @include padding-percentage-value(0.2em, 0.6em, 0.2em, 0.6em);
88 @include box-shadow(0, 0, 0, 0, transparent);
93 @include box-shadow(0, 0, 0, 0, transparent !important);
98 &.btn-outline-primary:hover,
99 &.btn-outline-warning:hover {
103 &:not(:disabled):not(.disabled):active {
105 @include background(null, $primary, null, null, null);
106 border-color: $primary;
118 @include padding-percentage-value(
120 $customnavbar-padding-x,
122 $customnavbar-padding-x
126 @include roundedCorners(4);
127 @include font(null, 12px, null);
133 @include font(null, 1.2rem, 700);
135 @include line-height(1.25);
144 @include margin-value-percentage(5px, auto, auto, auto);
153 @include font(null, 11px, null);
157 @include flexbox(table, null, null, null, null, null);
158 @include wh-value(100%, 50px);
159 @include border(all, 1, dashed, $secondary);
162 @include padding-value(5, 5, 5, 5);
163 @include flexbox(table-cell, null, null, null, null, null);
164 vertical-align: middle;
167 @include font(null, 16px, null);
171 opacity: 1 !important;
179 @include background(null, $gray-400 !important, null, null, null);
185 @include roundedCorners(4);
186 margin-bottom: 0.25rem;
187 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);
189 @include background(null, $primary !important, null, null, null);
196 .seconds-btn-group .active {
198 @include background(null, $primary !important, null, null, null);
200 @include border(all, 2, dashed, $primary);
201 @include padding-value(5, 5, 5, 5);
207 tbody th i.active-icon {
218 @include border(top, 3, solid, $primary);
219 @include roundedCorners(3);
221 @include padding-value(15, 15, 15, 15);
224 table-cell-default-editor select-editor select {
225 @include wh-value(null, calc(2rem + 8px) !important);
226 @include padding-value(0, 10, 0, 10);
228 .edit-packages .CodeMirror {
229 min-height: 400px !important;
231 .new-vim .CodeMirror {
232 @include border(all, 1, solid, #eee !important);
234 .table-layout-fixed {
236 word-wrap: break-word;
238 .border-radius-default {
239 @include roundedCorners(3);
241 /** Model Popup-Design **/
242 .modal-body-custom-height {
246 /** Hide input clear icon in IE */
248 @include flexbox(none, null, null, null, null, null);
250 /** Overwrite the tooltip z-index */
254 /** Popover Header **/
257 @include background(null, $theme-bg-color, null, null, null);
259 /** Vim Show running instance Details **/
267 .resources-chart-popover {
268 max-width: 60% !important;
269 @include font-family("Roboto");
275 /****************************************************************************/
276 /************************** Smart table custom design ***********************/
277 /****************************************************************************/
279 @include font(null, 15px, null);
282 @include wh-value(null, auto);
284 &.dataTables_empty td {
287 ng2-smart-table-title {
289 @include font(null, 12px, null);
292 color: $gray-700 !important;
293 @include flexbox(block, null, null, null, null, null);
294 text-decoration: none;
296 content: "\f0dc" !important;
297 @include font-family("Font Awesome 5 Free");
300 @include wh-value(0, 0);
303 content: "\f0de" !important;
304 @include font-family("Font Awesome 5 Free");
309 content: "\f0dd" !important;
310 @include font-family("Font Awesome 5 Free");
315 text-decoration: none !important;
318 transform: none !important;
324 @include flexbox(inline-block, null, null, null, null, null);
325 @include wh-value(0, 0);
326 @include border(all, 0, solid, transparent !important);
327 margin-bottom: 0 !important;
334 ng2-smart-table-cell {
335 word-break: break-word;
336 table-cell-view-mode {
337 @include font(null, 12px, null);
339 @include font(null, 20px, null);
340 @include flexbox(inline-block, null, null, null, null, null);
341 @include wh-value(100px, 0);
348 @include wh-value(null, calc(2rem + 2px) !important);
349 @include font(null, 12px, null);
355 @include padding-value(2, 10, 2, 10);
356 vertical-align: middle !important;
360 background: none !important;
364 default-table-filter {
366 select.form-control {
367 @include flexbox(inline-block, null, null, null, null, null);
368 @include wh-value(null, calc(1.5rem + 2px) !important);
369 vertical-align: middle;
371 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")
372 no-repeat right 0.75rem center;
373 background-size: 8px 10px;
374 @include border(all, 1, solid, $gray-200);
375 @include roundedCorners(2);
376 -webkit-appearance: none;
377 -moz-appearance: none;
386 @include roundedCorners(4);
391 @include position_value(relative, null, null, null, null);
394 @include position_value(relative, -26px, null, null, 100%);
396 @include font("Font Awesome 5 Free", 10px, null);
397 @include padding-value(0, 0, 0, 2);
402 ng2-smart-table-pager {
403 @include flexbox(null, null, row-reverse, null, null, null);
404 @include padding-value(5, 20, 5, 20);
405 .ng2-smart-pagination {
406 .ng2-smart-page-item {
407 @include font(null, 10px, null);
410 text-decoration: none;
413 .ng2-smart-page-link {
414 @include font(null, 12px !important, null);
417 vertical-align: middle;
419 @include border(all, 1, solid, $primary !important);
421 @include background(null, $primary !important, null, null, null);
426 span.ng2-smart-page-link.page-link {
428 @include background(null, $primary !important, null, null, null);
429 @include border(all, 1, solid, $primary !important);
435 /****************************************************************************/
436 /*********************** Button styles under list class *********************/
437 /****************************************************************************/
440 button.btn.btn-primary {
441 @include padding-value(2, 8, 2, 8);
446 @include box-shadow(0, 0, 0, 0, transparent);
448 button.btn.btn-primary {
450 @include background(null, $white, null, null, null);
451 &:not(.active:hover) {
452 @include background(null, $white, null, null, null);
456 @include background(null, $white, null, null, null);
460 @include background(null, $primary !important, null, null, null);
462 @include background(null, $primary, null, null, null);
467 /****************************************************************************/
468 /*********************** List Action Dropdown section ***********************/
469 /****************************************************************************/
470 .list-action-dropdown {
471 @include border(all, 1, solid, $primary);
472 @include padding-value(0, 0, 0, 0);
473 button.btn.btn-primary {
474 @include background(null, transparent, null, null, null);
475 @include padding-value(8, 8, 8, 8);
476 @include roundedCorners(0);
479 @include background(null, $primary, null, null, null);
483 @include border(bottom, 1, solid, $primary);
487 /****************************************************************************/
488 /*********************** Custom tabel design in topology ********************/
489 /****************************************************************************/
492 @include font(null, null, bold);
497 @include padding-value(5, 7, 5, 7);
498 @include font(null, 10px, null);
499 @include line-height(15px);
502 /****************************************************************************/
503 /************************** Ng select custom design *************************/
504 /****************************************************************************/
506 &.is-invalid .ng-select-container {
507 @include border(all, 1, solid, $red);
509 .ng-select-container {
510 @include border(all, 1, solid, $gray-200);
511 .ng-value-container .ng-placeholder {
516 /****************************************************************************/
517 /******************** Custom nav section for default status *****************/
518 /****************************************************************************/
519 .list-utilites-actions {
520 @include flexbox(flex, null, row, null, center, null);
521 nav.custom-items-config {
522 @include position_value(relative, null, null, null, null);
523 @include roundedCorners(3);
525 @include font(null, 13px, 600);
526 @include flexbox(inline-block, null, null, null, null, null);
527 @include position_value(relative, null, null, null, null);
528 text-decoration: none;
530 @include margin-value(0, 0, 0, 10);
532 @include margin-value(0, 0, 0, 0);
535 @include font(null, 14px, null);
536 @include margin-value(0, 5, 0, 0);
541 /****************************************************************************/
542 /************************* File upload custom design ************************/
543 /****************************************************************************/
546 @include roundedCorners(4);
547 @include border(all, 1, solid, $primary);
549 @include margin-value(0, 0, 0, 0);
550 text-overflow: ellipsis;
555 @include background(null, $primary, null, null, null);
558 /****************************************************************************/
559 /************************* Notifier Container Design ************************/
560 /****************************************************************************/
561 .notifier__container {
563 @include margin-value(0, 0, 0, 0);
566 /***************************************************************************/
567 /************************* Topology Common Design **************************/
568 /****************************************************************************/
572 @include font(null, 12px, null);
575 @include wh-value(30px, 25px);
581 @include font(null, 10px, null);
588 @include border(all, 1, solid, $primary);
593 @include padding-value(3.2, 8, 3.2, 8);
599 @include padding-value(4.8, 4.8, 4.8, 4.8);
600 @include margin-value(0, 0, 5, 0);
601 @include background(null, $gray-200, null, null, null);
602 @include flexbox(flex, null, null, null, center, null);
604 .span-overflow-text {
605 @include wh-value(90%, null);
608 text-overflow: ellipsis;
609 @include line-height(25px);
616 @include font(null, 15px, null);
622 -webkit-user-select: none;
623 -moz-user-select: none;
624 -ms-user-select: none;
625 -o-user-select: none;
629 opacity: 0.7 !important;
633 opacity: 0.7 !important;
643 pointer-events: none;
648 pointer-events: none;
655 @include border(all, 1, solid, $primary);
657 @include padding-value(0, 5, 0, 5);
658 @include font(null, 15px, null);
662 @include wh-value(55%, null);
665 @include wh-value(25%, null);
670 @include wh-value(36px, 36px);
672 @include margin-value(0, 10, 10, 0);
676 border-color: $primary;
679 color: $white !important;
680 @include background(null, $primary !important, null, null, null);
684 @include flexbox(flex, flex-end, row, center, center, null);
687 .ns-topology-sidebar-container,
688 .vnf-topology-sidebar-container,
689 .ns-instance-topology-sidebar-container {
690 @include position_value(absolute !important, 0px, null, null, 0px);
692 @include wh-value(27%, null);
693 @include background(null, $white, null, null, null);
694 @include border(all, 1, solid, $gray-300);
696 @include background(null, $modalheader-gray, null, null, null);
697 @include padding-value(5, 10, 5, 10);
698 @include border(bottom, 1, solid, $gray-300);
699 @include flexbox(flex, space-between, null, center, center, null);
705 @include padding-value(10, 5, 10, 5);
708 .ng-sidebar__content {
710 @include position_value(absolute, 45%, null, null, 0px);
711 @include background(null, $primary, null, null, null);
714 @include flexbox(inline-block, null, null, null, null, null);
715 @include position_value(relative, null, null, null, null);
716 animation: push 0.5s infinite linear;
734 /** Switch Design **/
736 @include position_value(relative, null, null, null, null);
737 @include flexbox(inline-block, null, null, null, null, null);
738 @include wh-value(50px, 15px);
739 @include margin-value(0, 0, 0, 0);
742 @include wh-value(0px, 0px);
743 &:checked + .slider {
744 @include background(null, $gray-400, null, null, null);
746 @include background(null, $pure-red, null, null, null);
748 animation: pulse 2s infinite;
749 -webkit-transform: translateX(26px);
750 -ms-transform: translateX(26px);
751 transform: translateX(26px);
754 @include flexbox(block, null, null, null, null, null);
757 @include flexbox(none, null, null, null, null, null);
762 @include position_value(absolute, 0, 0, 0, 0);
764 @include background(null, $gray-400, null, null, null);
765 -webkit-transition: 0.4s;
767 box-shadow: 0 0 1px $gray-400;
769 @include roundedCorners(30);
771 @include roundedCornersPercentage(50%);
775 @include position_value(absolute, null, null, -2px, 0px);
776 @include wh-value(20px, 20px);
777 @include background(null, $white, null, null, null);
779 -webkit-transition: 0.4s;
781 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
784 @include flexbox(none, null, null, null, null, null);
785 @include position_value(absolute, 50%, null, null, 35% !important);
789 @include position_value(absolute, 50%, null, null, 65%);
791 transform: translate(-50%, -50%);
792 @include font(null, 11px, bold);
795 @-webkit-keyframes pulse {
797 -webkit-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0.4);
800 -webkit-box-shadow: 0 0 0 10px rgba(204, 89, 44, 0);
803 -webkit-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0);
808 -moz-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0.4);
809 box-shadow: 0 0 0 0 rgba(204, 89, 44, 0.4);
812 -moz-box-shadow: 0 0 0 10px rgba(204, 89, 44, 0);
813 box-shadow: 0 0 0 10px rgba(204, 89, 44, 0);
816 -moz-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0);
817 box-shadow: 0 0 0 0 rgba(204, 89, 44, 0);
822 /****************************************************************************/
823 /************************** MEDIA QUERIES ***********************************/
824 /****************************************************************************/
825 @media (max-width: map-get($grid-breakpoints, md)) {
827 @include flexbox(block, null, null, null, null, null);
834 text-transform: capitalize;
837 color: $secondary !important;
840 @include flexbox(none, null, null, null, null, null);
844 @include wh-value(20%, null);
847 @include wh-value(25%, null);
852 @include roundedCorners(10);
853 @include padding-percentage-value(0.2rem, 1rem, 0.2rem, 1rem);
854 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);