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);
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, 10px, 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;
178 @include background(null, $gray-400 !important, null, null, null);
186 @include border(top, 3, solid, $primary);
187 @include roundedCorners(3);
189 @include padding-value(15, 15, 15, 15);
192 table-cell-default-editor select-editor select {
193 @include wh-value(null, calc(2rem + 8px) !important);
194 @include padding-value(0, 10, 0, 10);
196 .edit-packages .CodeMirror {
197 min-height: 400px !important;
199 .new-vim .CodeMirror {
200 @include border(all, 1, solid, #eee !important);
202 .table-layout-fixed {
204 word-wrap: break-word;
206 .border-radius-default {
207 @include roundedCorners(3);
209 /** Model Popup-Design **/
210 .modal-body-custom-height {
214 /** Hide input clear icon in IE */
216 @include flexbox(none, null, null, null, null, null);
218 /** Overwrite the tooltip z-index */
222 /** Popover Header **/
225 @include background(null, $theme-bg-color, null, null, null);
227 /** Vim Show running instance Details **/
235 /****************************************************************************/
236 /************************** Smart table custom design ***********************/
237 /****************************************************************************/
239 @include font(null, 15px, null);
242 @include wh-value(null, auto);
244 &.dataTables_empty td {
247 ng2-smart-table-title {
249 @include font(null, 12px, null);
252 color: $gray-700 !important;
253 @include flexbox(block, null, null, null, null, null);
254 text-decoration: none;
256 content: "\f0dc" !important;
257 @include font-family("Font Awesome 5 Free");
260 @include wh-value(0, 0);
263 content: "\f0de" !important;
264 @include font-family("Font Awesome 5 Free");
269 content: "\f0dd" !important;
270 @include font-family("Font Awesome 5 Free");
275 text-decoration: none !important;
278 transform: none !important;
284 @include flexbox(inline-block, null, null, null, null, null);
285 @include wh-value(0, 0);
286 @include border(all, 0, solid, transparent !important);
287 margin-bottom: 0 !important;
294 ng2-smart-table-cell {
295 word-break: break-word;
296 table-cell-view-mode {
297 @include font(null, 12px, null);
299 @include font(null, 20px, null);
300 @include flexbox(inline-block, null, null, null, null, null);
301 @include wh-value(100px, 0);
308 @include wh-value(null, calc(2rem + 2px) !important);
309 @include font(null, 12px, null);
315 @include padding-value(2, 10, 2, 10);
316 vertical-align: middle !important;
320 background: none !important;
324 default-table-filter {
326 select.form-control {
327 @include flexbox(inline-block, null, null, null, null, null);
328 @include wh-value(null, calc(1.5rem + 2px) !important);
329 vertical-align: middle;
331 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")
332 no-repeat right 0.75rem center;
333 background-size: 8px 10px;
334 @include border(all, 1, solid, $gray-200);
335 @include roundedCorners(2);
336 -webkit-appearance: none;
337 -moz-appearance: none;
346 @include roundedCorners(4);
351 @include position_value(relative, null, null, null, null);
354 @include position_value(relative, -26px, null, null, 100%);
356 @include font("Font Awesome 5 Free", 10px, null);
357 @include padding-value(0, 0, 0, 2);
362 ng2-smart-table-pager {
363 @include flexbox(null, null, row-reverse, null, null, null);
364 @include padding-value(5, 20, 5, 20);
365 .ng2-smart-pagination {
366 .ng2-smart-page-item {
367 @include font(null, 10px, null);
370 text-decoration: none;
373 .ng2-smart-page-link {
374 @include font(null, 12px !important, null);
377 vertical-align: middle;
379 @include border(all, 1, solid, $primary !important);
381 @include background(null, $primary !important, null, null, null);
386 span.ng2-smart-page-link.page-link {
388 @include background(null, $primary !important, null, null, null);
389 @include border(all, 1, solid, $primary !important);
395 /****************************************************************************/
396 /*********************** Button styles under list class *********************/
397 /****************************************************************************/
400 button.btn.btn-primary {
401 @include padding-value(2, 8, 2, 8);
406 @include box-shadow(0, 0, 0, 0, transparent);
408 button.btn.btn-primary {
410 @include background(null, $white, null, null, null);
411 &:not(.active:hover) {
412 @include background(null, $white, null, null, null);
416 @include background(null, $white, null, null, null);
420 @include background(null, $primary !important, null, null, null);
422 @include background(null, $primary, null, null, null);
427 /****************************************************************************/
428 /*********************** List Action Dropdown section ***********************/
429 /****************************************************************************/
430 .list-action-dropdown {
431 @include border(all, 1, solid, $primary);
432 @include padding-value(0, 0, 0, 0);
433 button.btn.btn-primary {
434 @include background(null, transparent, null, null, null);
435 @include padding-value(8, 8, 8, 8);
436 @include roundedCorners(0);
439 @include background(null, $primary, null, null, null);
443 @include border(bottom, 1, solid, $primary);
447 /****************************************************************************/
448 /*********************** Custom tabel design in topology ********************/
449 /****************************************************************************/
452 @include font(null, null, bold);
457 @include padding-value(5, 7, 5, 7);
458 @include font(null, 10px, null);
459 @include line-height(15px);
462 /****************************************************************************/
463 /************************** Ng select custom design *************************/
464 /****************************************************************************/
466 &.is-invalid .ng-select-container {
467 @include border(all, 1, solid, $red);
469 .ng-select-container {
470 @include border(all, 1, solid, $gray-200);
471 .ng-value-container .ng-placeholder {
476 /****************************************************************************/
477 /******************** Custom nav section for default status *****************/
478 /****************************************************************************/
479 .list-utilites-actions {
480 @include flexbox(flex, null, row, null, center, null);
481 nav.custom-items-config {
482 @include position_value(relative, null, null, null, null);
483 @include roundedCorners(3);
485 @include font(null, 13px, 600);
486 @include flexbox(inline-block, null, null, null, null, null);
487 @include position_value(relative, null, null, null, null);
488 text-decoration: none;
490 @include margin-value(0, 0, 0, 10);
492 @include margin-value(0, 0, 0, 0);
495 @include font(null, 14px, null);
496 @include margin-value(0, 5, 0, 0);
501 /****************************************************************************/
502 /************************* File upload custom design ************************/
503 /****************************************************************************/
506 @include roundedCorners(4);
507 @include border(all, 1, solid, $primary);
509 @include margin-value(0, 0, 0, 0);
510 text-overflow: ellipsis;
515 @include background(null, $primary, null, null, null);
518 /****************************************************************************/
519 /************************* Notifier Container Design ************************/
520 /****************************************************************************/
521 .notifier__container {
523 @include margin-value(0, 0, 0, 0);
526 /***************************************************************************/
527 /************************* Topology Common Design **************************/
528 /****************************************************************************/
532 @include font(null, 12px, null);
535 @include wh-value(30px, 25px);
541 @include font(null, 10px, null);
548 @include border(all, 1, solid, $primary);
553 @include padding-value(3.2, 8, 3.2, 8);
559 @include padding-value(4.8, 4.8, 4.8, 4.8);
560 @include margin-value(0, 0, 5, 0);
561 @include background(null, $gray-200, null, null, null);
562 @include flexbox(flex, null, null, null, center, null);
564 .span-overflow-text {
565 @include wh-value(90%, null);
568 text-overflow: ellipsis;
569 @include line-height(25px);
576 @include font(null, 15px, null);
582 -webkit-user-select: none;
583 -moz-user-select: none;
584 -ms-user-select: none;
585 -o-user-select: none;
589 opacity: 0.7 !important;
593 opacity: 0.7 !important;
603 pointer-events: none;
608 pointer-events: none;
615 @include border(all, 1, solid, $primary);
617 @include padding-value(0, 5, 0, 5);
618 @include font(null, 15px, null);
622 @include wh-value(55%, null);
625 @include wh-value(25%, null);
630 @include wh-value(36px, 36px);
632 @include margin-value(0, 10, 10, 0);
636 border-color: $primary;
639 color: $white !important;
640 @include background(null, $primary !important, null, null, null);
644 @include flexbox(flex, flex-end, row, center, center, null);
647 .ns-topology-sidebar-container,
648 .vnf-topology-sidebar-container,
649 .ns-instance-topology-sidebar-container {
650 @include position_value(absolute !important, 0px, null, null, 0px);
652 @include wh-value(27%, null);
653 @include background(null, $white, null, null, null);
654 @include border(all, 1, solid, $gray-300);
656 @include background(null, $modalheader-gray, null, null, null);
657 @include padding-value(5, 10, 5, 10);
658 @include border(bottom, 1, solid, $gray-300);
659 @include flexbox(flex, space-between, null, center, center, null);
665 @include padding-value(10, 5, 10, 5);
668 .ng-sidebar__content {
670 @include position_value(absolute, 45%, null, null, 0px);
671 @include background(null, $primary, null, null, null);
674 @include flexbox(inline-block, null, null, null, null, null);
675 @include position_value(relative, null, null, null, null);
676 animation: push 0.5s infinite linear;
695 /****************************************************************************/
696 /************************** MEDIA QUERIES ***********************************/
697 /****************************************************************************/
698 @media (max-width: map-get($grid-breakpoints, md)) {
700 @include flexbox(block, null, null, null, null, null);
707 text-transform: capitalize;