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);
192 .edit-packages .CodeMirror {
193 min-height: 400px !important;
195 .new-vim .CodeMirror {
196 @include border(all, 1, solid, #eee !important);
198 .table-layout-fixed {
200 word-wrap: break-word;
202 .border-radius-default {
203 @include roundedCorners(3);
205 /** Model Popup-Design **/
206 .modal-body-custom-height {
210 /** Hide input clear icon in IE */
212 @include flexbox(none, null, null, null, null, null);
214 /** Overwrite the tooltip z-index */
218 /** Popover Header **/
221 @include background(null, $theme-bg-color, null, null, null);
223 /** Vim Show running instance Details **/
231 /****************************************************************************/
232 /************************** Smart table custom design ***********************/
233 /****************************************************************************/
235 @include font(null, 15px, null);
238 @include wh-value(null, auto);
240 &.dataTables_empty td {
243 ng2-smart-table-title {
245 @include font(null, 12px, null);
248 color: $gray-700 !important;
249 @include flexbox(block, null, null, null, null, null);
250 text-decoration: none;
252 content: "\f0dc" !important;
253 @include font-family("Font Awesome 5 Free");
256 @include wh-value(0, 0);
259 content: "\f0de" !important;
260 @include font-family("Font Awesome 5 Free");
265 content: "\f0dd" !important;
266 @include font-family("Font Awesome 5 Free");
271 text-decoration: none !important;
274 transform: none !important;
280 @include flexbox(inline-block, null, null, null, null, null);
281 @include wh-value(0, 0);
282 @include border(all, 0, solid, transparent !important);
283 margin-bottom: 0 !important;
290 ng2-smart-table-cell {
291 word-break: break-word;
292 table-cell-view-mode {
293 @include font(null, 12px, null);
295 @include font(null, 20px, null);
296 @include flexbox(inline-block, null, null, null, null, null);
297 @include wh-value(100px, 0);
304 @include wh-value(null, calc(2rem + 2px) !important);
305 @include font(null, 12px, null);
311 @include padding-value(2, 10, 2, 10);
312 vertical-align: middle !important;
316 background: none !important;
320 default-table-filter {
322 select.form-control {
323 @include flexbox(inline-block, null, null, null, null, null);
324 @include wh-value(null, calc(1.5rem + 2px) !important);
325 vertical-align: middle;
327 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")
328 no-repeat right 0.75rem center;
329 background-size: 8px 10px;
330 @include border(all, 1, solid, $gray-200);
331 @include roundedCorners(2);
332 -webkit-appearance: none;
333 -moz-appearance: none;
342 @include roundedCorners(4);
347 @include position_value(relative, null, null, null, null);
350 @include position_value(relative, -26px, null, null, 100%);
352 @include font("Font Awesome 5 Free", 10px, null);
353 @include padding-value(0, 0, 0, 2);
358 ng2-smart-table-pager {
359 @include flexbox(null, null, row-reverse, null, null, null);
360 @include padding-value(5, 20, 5, 20);
361 .ng2-smart-pagination {
362 .ng2-smart-page-item {
363 @include font(null, 10px, null);
366 text-decoration: none;
369 .ng2-smart-page-link {
370 @include font(null, 12px !important, null);
373 vertical-align: middle;
375 @include border(all, 1, solid, $primary !important);
377 @include background(null, $primary !important, null, null, null);
382 span.ng2-smart-page-link.page-link {
384 @include background(null, $primary !important, null, null, null);
385 @include border(all, 1, solid, $primary !important);
391 /****************************************************************************/
392 /*********************** Button styles under list class *********************/
393 /****************************************************************************/
396 button.btn.btn-primary {
397 @include padding-value(2, 8, 2, 8);
402 @include box-shadow(0, 0, 0, 0, transparent);
404 button.btn.btn-primary {
406 @include background(null, $white, null, null, null);
407 &:not(.active:hover) {
408 @include background(null, $white, null, null, null);
412 @include background(null, $white, null, null, null);
416 @include background(null, $primary !important, null, null, null);
418 @include background(null, $primary, null, null, null);
423 /****************************************************************************/
424 /*********************** List Action Dropdown section ***********************/
425 /****************************************************************************/
426 .list-action-dropdown {
427 @include border(all, 1, solid, $primary);
428 @include padding-value(0, 0, 0, 0);
429 button.btn.btn-primary {
430 @include background(null, transparent, null, null, null);
431 @include padding-value(8, 8, 8, 8);
432 @include roundedCorners(0);
435 @include background(null, $primary, null, null, null);
439 @include border(bottom, 1, solid, $primary);
443 /****************************************************************************/
444 /*********************** Custom tabel design in topology ********************/
445 /****************************************************************************/
448 @include font(null, null, bold);
453 @include padding-value(5, 7, 5, 7);
454 @include font(null, 10px, null);
455 @include line-height(15px);
458 /****************************************************************************/
459 /************************** Ng select custom design *************************/
460 /****************************************************************************/
462 &.is-invalid .ng-select-container {
463 @include border(all, 1, solid, $red);
465 .ng-select-container {
466 @include border(all, 1, solid, $gray-200);
467 .ng-value-container .ng-placeholder {
472 /****************************************************************************/
473 /******************** Custom nav section for default status *****************/
474 /****************************************************************************/
475 .list-utilites-actions {
476 @include flexbox(flex, null, row, null, center, null);
477 nav.custom-items-config {
478 @include position_value(relative, null, null, null, null);
479 @include roundedCorners(3);
481 @include font(null, 13px, 600);
482 @include flexbox(inline-block, null, null, null, null, null);
483 @include position_value(relative, null, null, null, null);
484 text-decoration: none;
486 @include margin-value(0, 0, 0, 10);
488 @include margin-value(0, 0, 0, 0);
491 @include font(null, 14px, null);
492 @include margin-value(0, 5, 0, 0);
497 /****************************************************************************/
498 /************************* File upload custom design ************************/
499 /****************************************************************************/
502 @include roundedCorners(4);
503 @include border(all, 1, solid, $primary);
505 @include margin-value(0, 0, 0, 0);
506 text-overflow: ellipsis;
511 @include background(null, $primary, null, null, null);
514 /****************************************************************************/
515 /************************* Notifier Container Design ************************/
516 /****************************************************************************/
517 .notifier__container {
519 @include margin-value(0, 0, 0, 0);
522 /***************************************************************************/
523 /************************* Topology Common Design **************************/
524 /****************************************************************************/
528 @include font(null, 12px, null);
531 @include wh-value(30px, 25px);
537 @include font(null, 10px, null);
544 @include border(all, 1, solid, $primary);
549 @include padding-value(3.2, 8, 3.2, 8);
555 @include padding-value(4.8, 4.8, 4.8, 4.8);
556 @include margin-value(0, 0, 5, 0);
557 @include background(null, $gray-200, null, null, null);
558 @include flexbox(flex, null, null, null, center, null);
560 .span-overflow-text {
561 @include wh-value(90%, null);
564 text-overflow: ellipsis;
565 @include line-height(25px);
572 @include font(null, 15px, null);
578 -webkit-user-select: none;
579 -moz-user-select: none;
580 -ms-user-select: none;
581 -o-user-select: none;
585 opacity: 0.7 !important;
589 opacity: 0.7 !important;
599 pointer-events: none;
604 pointer-events: none;
611 @include border(all, 1, solid, $primary);
613 @include padding-value(0, 5, 0, 5);
614 @include font(null, 15px, null);
618 @include wh-value(55%, null);
621 @include wh-value(25%, null);
626 @include wh-value(36px, 36px);
628 @include margin-value(0, 10, 10, 0);
632 border-color: $primary;
635 color: $white !important;
636 @include background(null, $primary !important, null, null, null);
640 @include flexbox(flex, flex-end, row, center, center, null);
643 .ns-topology-sidebar-container,
644 .vnf-topology-sidebar-container,
645 .ns-instance-topology-sidebar-container {
646 @include position_value(absolute !important, 0px, null, null, 0px);
648 @include wh-value(27%, null);
649 @include background(null, $white, null, null, null);
650 @include border(all, 1, solid, $gray-300);
652 @include background(null, $modalheader-gray, null, null, null);
653 @include padding-value(5, 10, 5, 10);
654 @include border(bottom, 1, solid, $gray-300);
655 @include flexbox(flex, space-between, null, center, center, null);
661 @include padding-value(10, 5, 10, 5);
664 .ng-sidebar__content {
666 @include position_value(absolute, 45%, null, null, 0px);
667 @include background(null, $primary, null, null, null);
670 @include flexbox(inline-block, null, null, null, null, null);
671 @include position_value(relative, null, null, null, null);
672 animation: push 0.5s infinite linear;
691 /****************************************************************************/
692 /************************** MEDIA QUERIES ***********************************/
693 /****************************************************************************/
694 @media (max-width: map-get($grid-breakpoints, md)) {
696 @include flexbox(block, null, null, null, null, null);
703 text-transform: capitalize;