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 &::-webkit-scrollbar {
45 @include wh-value(10px, null);
47 &::-webkit-scrollbar-thumb {
48 background-clip: content-box;
49 @include border(all, 3, solid, transparent);
50 @include roundedCorners(7);
51 @include box-shadow(0, 0, 0, 10px, rgba($black, 0.8), inset);
53 &::-webkit-scrollbar-button {
54 @include wh-value(0, 0);
55 @include flexbox(none, null, null, null, null, null);
57 &::-webkit-scrollbar-corner {
58 @include background(null, transparent, null, null, null);
62 @include font-family("Roboto");
63 @include background(null, $theme-bg-color, null, null, null);
66 @include wh-value(100px, auto);
69 @include background(null, $theme-bg-color !important, null, null, null);
75 text-decoration: none;
83 @include line-height(normal);
85 @include padding-percentage-value(0.2em, 0.6em, 0.2em, 0.6em);
90 @include box-shadow(0, 0, 0, 0, transparent);
95 @include box-shadow(0, 0, 0, 0, transparent !important);
100 &.btn-outline-primary:hover,
101 &.btn-outline-warning:hover {
105 &:not(:disabled):not(.disabled):active {
107 @include background(null, $primary, null, null, null);
108 border-color: $primary;
120 @include padding-percentage-value(
122 $customnavbar-padding-x,
124 $customnavbar-padding-x
128 @include roundedCorners(4);
129 @include font(null, 12px, null);
135 @include font(null, 1.2rem, 700);
137 @include line-height(1.25);
146 @include margin-value-percentage(5px, auto, auto, auto);
155 @include font(null, 11px, null);
159 @include flexbox(table, null, null, null, null, null);
160 @include wh-value(100%, 50px);
161 @include border(all, 1, dashed, $secondary);
164 @include padding-value(5, 5, 5, 5);
165 @include flexbox(table-cell, null, null, null, null, null);
166 vertical-align: middle;
169 @include font(null, 16px, null);
173 opacity: 1 !important;
181 @include background(null, $gray-400 !important, null, null, null);
187 @include roundedCorners(4);
188 margin-bottom: 0.25rem;
189 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);
191 @include background(null, $primary !important, null, null, null);
198 .seconds-btn-group .active {
200 @include background(null, $primary !important, null, null, null);
202 @include border(all, 2, dashed, $primary);
203 @include padding-value(5, 5, 5, 5);
209 tbody th i.active-icon {
220 @include border(top, 3, solid, $primary);
221 @include roundedCorners(3);
223 @include padding-value(15, 15, 15, 15);
226 table-cell-default-editor select-editor select {
227 @include wh-value(null, calc(2rem + 8px) !important);
228 @include padding-value(0, 10, 0, 10);
230 .edit-packages .CodeMirror {
231 min-height: 400px !important;
233 .new-vim .CodeMirror {
234 @include border(all, 1, solid, #eee !important);
236 .table-layout-fixed {
238 word-wrap: break-word;
240 .border-radius-default {
241 @include roundedCorners(3);
243 /** Model Popup-Design **/
244 .modal-body-custom-height {
248 /** Hide input clear icon in IE */
250 @include flexbox(none, null, null, null, null, null);
252 /** Overwrite the tooltip z-index */
256 /** Popover Header **/
259 @include background(null, $theme-bg-color, null, null, null);
261 /** Vim Show running instance Details **/
269 .resources-chart-popover {
270 max-width: 60% !important;
271 width: 600px !important;
272 @include font-family("Roboto");
278 /****************************************************************************/
279 /************************** Smart table custom design ***********************/
280 /****************************************************************************/
282 @include font(null, 15px, null);
285 @include wh-value(null, auto);
287 &.dataTables_empty td {
290 ng2-smart-table-title {
292 @include font(null, 12px, null);
295 color: $gray-700 !important;
296 @include flexbox(block, null, null, null, null, null);
297 text-decoration: none;
299 content: "\f0dc" !important;
300 @include font-family("Font Awesome 5 Free");
303 @include wh-value(0, 0);
306 content: "\f0de" !important;
307 @include font-family("Font Awesome 5 Free");
312 content: "\f0dd" !important;
313 @include font-family("Font Awesome 5 Free");
318 text-decoration: none !important;
321 transform: none !important;
327 @include flexbox(inline-block, null, null, null, null, null);
328 @include wh-value(0, 0);
329 @include border(all, 0, solid, transparent !important);
330 margin-bottom: 0 !important;
337 ng2-smart-table-cell {
338 word-break: break-word;
339 table-cell-view-mode {
340 @include font(null, 12px, null);
342 @include font(null, 20px, null);
343 @include flexbox(inline-block, null, null, null, null, null);
344 @include wh-value(100px, 0);
351 @include wh-value(null, calc(2rem + 2px) !important);
352 @include font(null, 12px, null);
358 @include padding-value(2, 10, 2, 10);
359 vertical-align: middle !important;
363 background: none !important;
367 default-table-filter {
369 select.form-control {
370 @include flexbox(inline-block, null, null, null, null, null);
371 @include wh-value(null, calc(1.5rem + 2px) !important);
372 vertical-align: middle;
374 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")
375 no-repeat right 0.75rem center;
376 background-size: 8px 10px;
377 @include border(all, 1, solid, $gray-200);
378 @include roundedCorners(2);
379 -webkit-appearance: none;
380 -moz-appearance: none;
389 @include roundedCorners(4);
394 @include position_value(relative, null, null, null, null);
397 @include position_value(relative, -26px, null, null, 100%);
399 @include font("Font Awesome 5 Free", 10px, null);
400 @include padding-value(0, 0, 0, 2);
405 ng2-smart-table-pager {
406 @include flexbox(null, null, row-reverse, null, null, null);
407 @include padding-value(5, 20, 5, 20);
408 .ng2-smart-pagination {
409 .ng2-smart-page-item {
410 @include font(null, 10px, null);
413 text-decoration: none;
416 .ng2-smart-page-link {
417 @include font(null, 12px !important, null);
420 vertical-align: middle;
422 @include border(all, 1, solid, $primary !important);
424 @include background(null, $primary !important, null, null, null);
429 span.ng2-smart-page-link.page-link {
431 @include background(null, $primary !important, null, null, null);
432 @include border(all, 1, solid, $primary !important);
438 /****************************************************************************/
439 /*********************** Button styles under list class *********************/
440 /****************************************************************************/
443 button.btn.btn-primary {
444 @include padding-value(2, 8, 2, 8);
449 @include box-shadow(0, 0, 0, 0, transparent);
451 button.btn.btn-primary {
453 @include background(null, $white, null, null, null);
454 &:not(.active:hover) {
455 @include background(null, $white, null, null, null);
459 @include background(null, $white, null, null, null);
463 @include background(null, $primary !important, null, null, null);
465 @include background(null, $primary, null, null, null);
470 /****************************************************************************/
471 /*********************** List Action Dropdown section ***********************/
472 /****************************************************************************/
473 .list-action-dropdown {
474 @include border(all, 1, solid, $primary);
475 @include padding-value(0, 0, 0, 0);
476 button.btn.btn-primary {
477 @include background(null, transparent, null, null, null);
478 @include padding-value(8, 8, 8, 8);
479 @include roundedCorners(0);
482 @include background(null, $primary, null, null, null);
486 @include border(bottom, 1, solid, $primary);
490 /****************************************************************************/
491 /*********************** Custom tabel design in topology ********************/
492 /****************************************************************************/
495 @include font(null, null, bold);
500 @include padding-value(5, 7, 5, 7);
501 @include font(null, 10px, null);
502 @include line-height(15px);
505 /****************************************************************************/
506 /************************** Ng select custom design *************************/
507 /****************************************************************************/
509 &.is-invalid .ng-select-container {
510 @include border(all, 1, solid, $red);
512 .ng-select-container {
513 @include border(all, 1, solid, $gray-200);
514 .ng-value-container .ng-placeholder {
519 /****************************************************************************/
520 /******************** Custom nav section for default status *****************/
521 /****************************************************************************/
522 .list-utilites-actions {
523 @include flexbox(flex, null, row, null, center, null);
524 nav.custom-items-config {
525 @include position_value(relative, null, null, null, null);
526 @include roundedCorners(3);
528 @include font(null, 13px, 600);
529 @include flexbox(inline-block, null, null, null, null, null);
530 @include position_value(relative, null, null, null, null);
531 text-decoration: none;
533 @include margin-value(0, 0, 0, 10);
535 @include margin-value(0, 0, 0, 0);
538 @include font(null, 14px, null);
539 @include margin-value(0, 5, 0, 0);
544 /****************************************************************************/
545 /************************* File upload custom design ************************/
546 /****************************************************************************/
549 @include roundedCorners(4);
550 @include border(all, 1, solid, $primary);
552 @include margin-value(0, 0, 0, 0);
553 text-overflow: ellipsis;
558 @include background(null, $primary, null, null, null);
561 /****************************************************************************/
562 /************************* Notifier Container Design ************************/
563 /****************************************************************************/
564 .notifier__container {
566 @include margin-value(0, 0, 0, 0);
569 /***************************************************************************/
570 /************************* Topology Common Design **************************/
571 /****************************************************************************/
575 @include font(null, 12px, null);
578 @include wh-value(30px, 25px);
584 @include font(null, 10px, null);
591 @include border(all, 1, solid, $primary);
596 @include padding-value(3.2, 8, 3.2, 8);
602 @include padding-value(4.8, 4.8, 4.8, 4.8);
603 @include margin-value(0, 0, 5, 0);
604 @include background(null, $gray-200, null, null, null);
605 @include flexbox(flex, null, null, null, center, null);
607 .span-overflow-text {
608 @include wh-value(90%, null);
611 text-overflow: ellipsis;
612 @include line-height(25px);
619 @include font(null, 15px, null);
625 -webkit-user-select: none;
626 -moz-user-select: none;
627 -ms-user-select: none;
628 -o-user-select: none;
632 opacity: 0.7 !important;
636 opacity: 0.7 !important;
646 pointer-events: none;
651 pointer-events: none;
658 @include border(all, 1, solid, $primary);
660 @include padding-value(0, 5, 0, 5);
661 @include font(null, 15px, null);
665 @include wh-value(55%, null);
668 @include wh-value(25%, null);
673 @include wh-value(36px, 36px);
675 @include margin-value(0, 10, 10, 0);
679 border-color: $primary;
682 color: $white !important;
683 @include background(null, $primary !important, null, null, null);
687 @include flexbox(flex, flex-end, row, center, center, null);
690 .ns-topology-sidebar-container,
691 .vnf-topology-sidebar-container,
692 .ns-instance-topology-sidebar-container {
693 @include position_value(absolute !important, 0px, null, null, 0px);
695 @include wh-value(27%, null);
696 @include background(null, $white, null, null, null);
697 @include border(all, 1, solid, $gray-300);
699 @include background(null, $modalheader-gray, null, null, null);
700 @include padding-value(5, 10, 5, 10);
701 @include border(bottom, 1, solid, $gray-300);
702 @include flexbox(flex, space-between, null, center, center, null);
708 @include padding-value(10, 5, 10, 5);
711 .ng-sidebar__content {
713 @include position_value(absolute, 45%, null, null, 0px);
714 @include background(null, $primary, null, null, null);
717 @include flexbox(inline-block, null, null, null, null, null);
718 @include position_value(relative, null, null, null, null);
719 animation: push 0.5s infinite linear;
737 /** Switch Design **/
739 @include position_value(relative, null, null, null, null);
740 @include flexbox(inline-block, null, null, null, null, null);
741 @include wh-value(50px, 15px);
742 @include margin-value(0, 0, 0, 0);
745 @include wh-value(0px, 0px);
746 &:checked + .slider {
747 @include background(null, $gray-400, null, null, null);
749 @include background(null, $pure-red, null, null, null);
751 animation: pulse 2s infinite;
752 -webkit-transform: translateX(26px);
753 -ms-transform: translateX(26px);
754 transform: translateX(26px);
757 @include flexbox(block, null, null, null, null, null);
760 @include flexbox(none, null, null, null, null, null);
765 @include position_value(absolute, 0, 0, 0, 0);
767 @include background(null, $gray-400, null, null, null);
768 -webkit-transition: 0.4s;
770 box-shadow: 0 0 1px $gray-400;
772 @include roundedCorners(30);
774 @include roundedCornersPercentage(50%);
778 @include position_value(absolute, null, null, -2px, 0px);
779 @include wh-value(20px, 20px);
780 @include background(null, $white, null, null, null);
782 -webkit-transition: 0.4s;
784 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
787 @include flexbox(none, null, null, null, null, null);
788 @include position_value(absolute, 50%, null, null, 35% !important);
792 @include position_value(absolute, 50%, null, null, 65%);
794 transform: translate(-50%, -50%);
795 @include font(null, 11px, bold);
798 @-webkit-keyframes pulse {
800 -webkit-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0.4);
803 -webkit-box-shadow: 0 0 0 10px rgba(204, 89, 44, 0);
806 -webkit-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0);
811 -moz-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0.4);
812 box-shadow: 0 0 0 0 rgba(204, 89, 44, 0.4);
815 -moz-box-shadow: 0 0 0 10px rgba(204, 89, 44, 0);
816 box-shadow: 0 0 0 10px rgba(204, 89, 44, 0);
819 -moz-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0);
820 box-shadow: 0 0 0 0 rgba(204, 89, 44, 0);
825 /****************************************************************************/
826 /************************** MEDIA QUERIES ***********************************/
827 /****************************************************************************/
828 @media (max-width: map-get($grid-breakpoints, md)) {
830 @include flexbox(block, null, null, null, null, null);
837 text-transform: capitalize;
840 color: $secondary !important;
843 @include flexbox(none, null, null, null, null, null);
847 @include wh-value(20%, null);
850 @include wh-value(25%, null);
855 @include roundedCorners(10);
856 @include padding-percentage-value(0.2rem, 1rem, 0.2rem, 1rem);
857 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);