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;
80 @include line-height(normal);
82 @include padding-percentage-value(0.2em, 0.6em, 0.2em, 0.6em);
87 @include box-shadow(0, 0, 0, 0, transparent);
92 @include box-shadow(0, 0, 0, 0, transparent !important);
97 &.btn-outline-primary:hover,
98 &.btn-outline-warning:hover {
102 &:not(:disabled):not(.disabled):active {
104 @include background(null, $primary, null, null, null);
105 border-color: $primary;
117 @include padding-percentage-value(
119 $customnavbar-padding-x,
121 $customnavbar-padding-x
125 @include roundedCorners(4);
126 @include font(null, 12px, null);
132 @include font(null, 1.2rem, 700);
134 @include line-height(1.25);
143 @include margin-value-percentage(5px, auto, auto, auto);
152 @include font(null, 10px, null);
156 @include flexbox(table, null, null, null, null, null);
157 @include wh-value(100%, 50px);
158 @include border(all, 1, dashed, $secondary);
161 @include padding-value(5, 5, 5, 5);
162 @include flexbox(table-cell, null, null, null, null, null);
163 vertical-align: middle;
166 @include font(null, 16px, null);
170 opacity: 1 !important;
178 @include background(null, $gray-400 !important, null, null, null);
184 @include roundedCorners(4);
185 margin-bottom: 0.25rem;
186 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);
188 @include background(null, $primary !important, null, null, null);
195 .seconds-btn-group .active {
197 @include background(null, $primary !important, null, null, null);
199 @include border(all, 2, dashed, $primary);
200 @include padding-value(5, 5, 5, 5);
206 tbody th i.active-icon {
217 @include border(top, 3, solid, $primary);
218 @include roundedCorners(3);
220 @include padding-value(15, 15, 15, 15);
223 table-cell-default-editor select-editor select {
224 @include wh-value(null, calc(2rem + 8px) !important);
225 @include padding-value(0, 10, 0, 10);
227 .edit-packages .CodeMirror {
228 min-height: 400px !important;
230 .new-vim .CodeMirror {
231 @include border(all, 1, solid, #eee !important);
233 .table-layout-fixed {
235 word-wrap: break-word;
237 .border-radius-default {
238 @include roundedCorners(3);
240 /** Model Popup-Design **/
241 .modal-body-custom-height {
245 /** Hide input clear icon in IE */
247 @include flexbox(none, null, null, null, null, null);
249 /** Overwrite the tooltip z-index */
253 /** Popover Header **/
256 @include background(null, $theme-bg-color, null, null, null);
258 /** Vim Show running instance Details **/
266 /****************************************************************************/
267 /************************** Smart table custom design ***********************/
268 /****************************************************************************/
270 @include font(null, 15px, null);
273 @include wh-value(null, auto);
275 &.dataTables_empty td {
278 ng2-smart-table-title {
280 @include font(null, 12px, null);
283 color: $gray-700 !important;
284 @include flexbox(block, null, null, null, null, null);
285 text-decoration: none;
287 content: "\f0dc" !important;
288 @include font-family("Font Awesome 5 Free");
291 @include wh-value(0, 0);
294 content: "\f0de" !important;
295 @include font-family("Font Awesome 5 Free");
300 content: "\f0dd" !important;
301 @include font-family("Font Awesome 5 Free");
306 text-decoration: none !important;
309 transform: none !important;
315 @include flexbox(inline-block, null, null, null, null, null);
316 @include wh-value(0, 0);
317 @include border(all, 0, solid, transparent !important);
318 margin-bottom: 0 !important;
325 ng2-smart-table-cell {
326 word-break: break-word;
327 table-cell-view-mode {
328 @include font(null, 12px, null);
330 @include font(null, 20px, null);
331 @include flexbox(inline-block, null, null, null, null, null);
332 @include wh-value(100px, 0);
339 @include wh-value(null, calc(2rem + 2px) !important);
340 @include font(null, 12px, null);
346 @include padding-value(2, 10, 2, 10);
347 vertical-align: middle !important;
351 background: none !important;
355 default-table-filter {
357 select.form-control {
358 @include flexbox(inline-block, null, null, null, null, null);
359 @include wh-value(null, calc(1.5rem + 2px) !important);
360 vertical-align: middle;
362 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")
363 no-repeat right 0.75rem center;
364 background-size: 8px 10px;
365 @include border(all, 1, solid, $gray-200);
366 @include roundedCorners(2);
367 -webkit-appearance: none;
368 -moz-appearance: none;
377 @include roundedCorners(4);
382 @include position_value(relative, null, null, null, null);
385 @include position_value(relative, -26px, null, null, 100%);
387 @include font("Font Awesome 5 Free", 10px, null);
388 @include padding-value(0, 0, 0, 2);
393 ng2-smart-table-pager {
394 @include flexbox(null, null, row-reverse, null, null, null);
395 @include padding-value(5, 20, 5, 20);
396 .ng2-smart-pagination {
397 .ng2-smart-page-item {
398 @include font(null, 10px, null);
401 text-decoration: none;
404 .ng2-smart-page-link {
405 @include font(null, 12px !important, null);
408 vertical-align: middle;
410 @include border(all, 1, solid, $primary !important);
412 @include background(null, $primary !important, null, null, null);
417 span.ng2-smart-page-link.page-link {
419 @include background(null, $primary !important, null, null, null);
420 @include border(all, 1, solid, $primary !important);
426 /****************************************************************************/
427 /*********************** Button styles under list class *********************/
428 /****************************************************************************/
431 button.btn.btn-primary {
432 @include padding-value(2, 8, 2, 8);
437 @include box-shadow(0, 0, 0, 0, transparent);
439 button.btn.btn-primary {
441 @include background(null, $white, null, null, null);
442 &:not(.active:hover) {
443 @include background(null, $white, null, null, null);
447 @include background(null, $white, null, null, null);
451 @include background(null, $primary !important, null, null, null);
453 @include background(null, $primary, null, null, null);
458 /****************************************************************************/
459 /*********************** List Action Dropdown section ***********************/
460 /****************************************************************************/
461 .list-action-dropdown {
462 @include border(all, 1, solid, $primary);
463 @include padding-value(0, 0, 0, 0);
464 button.btn.btn-primary {
465 @include background(null, transparent, null, null, null);
466 @include padding-value(8, 8, 8, 8);
467 @include roundedCorners(0);
470 @include background(null, $primary, null, null, null);
474 @include border(bottom, 1, solid, $primary);
478 /****************************************************************************/
479 /*********************** Custom tabel design in topology ********************/
480 /****************************************************************************/
483 @include font(null, null, bold);
488 @include padding-value(5, 7, 5, 7);
489 @include font(null, 10px, null);
490 @include line-height(15px);
493 /****************************************************************************/
494 /************************** Ng select custom design *************************/
495 /****************************************************************************/
497 &.is-invalid .ng-select-container {
498 @include border(all, 1, solid, $red);
500 .ng-select-container {
501 @include border(all, 1, solid, $gray-200);
502 .ng-value-container .ng-placeholder {
507 /****************************************************************************/
508 /******************** Custom nav section for default status *****************/
509 /****************************************************************************/
510 .list-utilites-actions {
511 @include flexbox(flex, null, row, null, center, null);
512 nav.custom-items-config {
513 @include position_value(relative, null, null, null, null);
514 @include roundedCorners(3);
516 @include font(null, 13px, 600);
517 @include flexbox(inline-block, null, null, null, null, null);
518 @include position_value(relative, null, null, null, null);
519 text-decoration: none;
521 @include margin-value(0, 0, 0, 10);
523 @include margin-value(0, 0, 0, 0);
526 @include font(null, 14px, null);
527 @include margin-value(0, 5, 0, 0);
532 /****************************************************************************/
533 /************************* File upload custom design ************************/
534 /****************************************************************************/
537 @include roundedCorners(4);
538 @include border(all, 1, solid, $primary);
540 @include margin-value(0, 0, 0, 0);
541 text-overflow: ellipsis;
546 @include background(null, $primary, null, null, null);
549 /****************************************************************************/
550 /************************* Notifier Container Design ************************/
551 /****************************************************************************/
552 .notifier__container {
554 @include margin-value(0, 0, 0, 0);
557 /***************************************************************************/
558 /************************* Topology Common Design **************************/
559 /****************************************************************************/
563 @include font(null, 12px, null);
566 @include wh-value(30px, 25px);
572 @include font(null, 10px, null);
579 @include border(all, 1, solid, $primary);
584 @include padding-value(3.2, 8, 3.2, 8);
590 @include padding-value(4.8, 4.8, 4.8, 4.8);
591 @include margin-value(0, 0, 5, 0);
592 @include background(null, $gray-200, null, null, null);
593 @include flexbox(flex, null, null, null, center, null);
595 .span-overflow-text {
596 @include wh-value(90%, null);
599 text-overflow: ellipsis;
600 @include line-height(25px);
607 @include font(null, 15px, null);
613 -webkit-user-select: none;
614 -moz-user-select: none;
615 -ms-user-select: none;
616 -o-user-select: none;
620 opacity: 0.7 !important;
624 opacity: 0.7 !important;
634 pointer-events: none;
639 pointer-events: none;
646 @include border(all, 1, solid, $primary);
648 @include padding-value(0, 5, 0, 5);
649 @include font(null, 15px, null);
653 @include wh-value(55%, null);
656 @include wh-value(25%, null);
661 @include wh-value(36px, 36px);
663 @include margin-value(0, 10, 10, 0);
667 border-color: $primary;
670 color: $white !important;
671 @include background(null, $primary !important, null, null, null);
675 @include flexbox(flex, flex-end, row, center, center, null);
678 .ns-topology-sidebar-container,
679 .vnf-topology-sidebar-container,
680 .ns-instance-topology-sidebar-container {
681 @include position_value(absolute !important, 0px, null, null, 0px);
683 @include wh-value(27%, null);
684 @include background(null, $white, null, null, null);
685 @include border(all, 1, solid, $gray-300);
687 @include background(null, $modalheader-gray, null, null, null);
688 @include padding-value(5, 10, 5, 10);
689 @include border(bottom, 1, solid, $gray-300);
690 @include flexbox(flex, space-between, null, center, center, null);
696 @include padding-value(10, 5, 10, 5);
699 .ng-sidebar__content {
701 @include position_value(absolute, 45%, null, null, 0px);
702 @include background(null, $primary, null, null, null);
705 @include flexbox(inline-block, null, null, null, null, null);
706 @include position_value(relative, null, null, null, null);
707 animation: push 0.5s infinite linear;
725 /** Switch Design **/
727 @include position_value(relative, null, null, null, null);
728 @include flexbox(inline-block, null, null, null, null, null);
729 @include wh-value(50px, 15px);
730 @include margin-value(0, 0, 0, 0);
733 @include wh-value(0px, 0px);
734 &:checked + .slider {
735 @include background(null, $gray-400, null, null, null);
737 @include background(null, $pure-red, null, null, null);
739 animation: pulse 2s infinite;
740 -webkit-transform: translateX(26px);
741 -ms-transform: translateX(26px);
742 transform: translateX(26px);
745 @include flexbox(block, null, null, null, null, null);
748 @include flexbox(none, null, null, null, null, null);
753 @include position_value(absolute, 0, 0, 0, 0);
755 @include background(null, $gray-400, null, null, null);
756 -webkit-transition: 0.4s;
758 box-shadow: 0 0 1px $gray-400;
760 @include roundedCorners(30);
762 @include roundedCornersPercentage(50%);
766 @include position_value(absolute, null, null, -2px, 0px);
767 @include wh-value(20px, 20px);
768 @include background(null, $white, null, null, null);
770 -webkit-transition: 0.4s;
772 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
775 @include flexbox(none, null, null, null, null, null);
776 @include position_value(absolute, 50%, null, null, 35% !important);
780 @include position_value(absolute, 50%, null, null, 65%);
782 transform: translate(-50%, -50%);
783 @include font(null, 11px, bold);
786 @-webkit-keyframes pulse {
788 -webkit-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0.4);
791 -webkit-box-shadow: 0 0 0 10px rgba(204, 89, 44, 0);
794 -webkit-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0);
799 -moz-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0.4);
800 box-shadow: 0 0 0 0 rgba(204, 89, 44, 0.4);
803 -moz-box-shadow: 0 0 0 10px rgba(204, 89, 44, 0);
804 box-shadow: 0 0 0 10px rgba(204, 89, 44, 0);
807 -moz-box-shadow: 0 0 0 0 rgba(204, 89, 44, 0);
808 box-shadow: 0 0 0 0 rgba(204, 89, 44, 0);
813 /****************************************************************************/
814 /************************** MEDIA QUERIES ***********************************/
815 /****************************************************************************/
816 @media (max-width: map-get($grid-breakpoints, md)) {
818 @include flexbox(block, null, null, null, null, null);
825 text-transform: capitalize;
828 color: $secondary !important;
831 @include flexbox(none, null, null, null, null, null);
835 @include wh-value(20%, null);
838 @include wh-value(25%, null);
843 @include roundedCorners(10);
844 @include padding-percentage-value(0.2rem, 1rem, 0.2rem, 1rem);
845 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);