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;
181 @include background(null, $gray-400 !important, null, null, null);
189 @include border(top, 3, solid, $primary);
190 @include roundedCorners(3);
192 @include padding-value(15, 15, 15, 15);
195 table-cell-default-editor select-editor select {
196 @include wh-value(null, calc(2rem + 8px) !important);
197 @include padding-value(0, 10, 0, 10);
199 .edit-packages .CodeMirror {
200 min-height: 400px !important;
202 .new-vim .CodeMirror {
203 @include border(all, 1, solid, #eee !important);
205 .table-layout-fixed {
207 word-wrap: break-word;
209 .border-radius-default {
210 @include roundedCorners(3);
212 /** Model Popup-Design **/
213 .modal-body-custom-height {
217 /** Hide input clear icon in IE */
219 @include flexbox(none, null, null, null, null, null);
221 /** Overwrite the tooltip z-index */
225 /** Popover Header **/
228 @include background(null, $theme-bg-color, null, null, null);
230 /** Vim Show running instance Details **/
238 /****************************************************************************/
239 /************************** Smart table custom design ***********************/
240 /****************************************************************************/
242 @include font(null, 15px, null);
245 @include wh-value(null, auto);
247 &.dataTables_empty td {
250 ng2-smart-table-title {
252 @include font(null, 12px, null);
255 color: $gray-700 !important;
256 @include flexbox(block, null, null, null, null, null);
257 text-decoration: none;
259 content: "\f0dc" !important;
260 @include font-family("Font Awesome 5 Free");
263 @include wh-value(0, 0);
266 content: "\f0de" !important;
267 @include font-family("Font Awesome 5 Free");
272 content: "\f0dd" !important;
273 @include font-family("Font Awesome 5 Free");
278 text-decoration: none !important;
281 transform: none !important;
287 @include flexbox(inline-block, null, null, null, null, null);
288 @include wh-value(0, 0);
289 @include border(all, 0, solid, transparent !important);
290 margin-bottom: 0 !important;
297 ng2-smart-table-cell {
298 word-break: break-word;
299 table-cell-view-mode {
300 @include font(null, 12px, null);
302 @include font(null, 20px, null);
303 @include flexbox(inline-block, null, null, null, null, null);
304 @include wh-value(100px, 0);
311 @include wh-value(null, calc(2rem + 2px) !important);
312 @include font(null, 12px, null);
318 @include padding-value(2, 10, 2, 10);
319 vertical-align: middle !important;
323 background: none !important;
327 default-table-filter {
329 select.form-control {
330 @include flexbox(inline-block, null, null, null, null, null);
331 @include wh-value(null, calc(1.5rem + 2px) !important);
332 vertical-align: middle;
334 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")
335 no-repeat right 0.75rem center;
336 background-size: 8px 10px;
337 @include border(all, 1, solid, $gray-200);
338 @include roundedCorners(2);
339 -webkit-appearance: none;
340 -moz-appearance: none;
349 @include roundedCorners(4);
354 @include position_value(relative, null, null, null, null);
357 @include position_value(relative, -26px, null, null, 100%);
359 @include font("Font Awesome 5 Free", 10px, null);
360 @include padding-value(0, 0, 0, 2);
365 ng2-smart-table-pager {
366 @include flexbox(null, null, row-reverse, null, null, null);
367 @include padding-value(5, 20, 5, 20);
368 .ng2-smart-pagination {
369 .ng2-smart-page-item {
370 @include font(null, 10px, null);
373 text-decoration: none;
376 .ng2-smart-page-link {
377 @include font(null, 12px !important, null);
380 vertical-align: middle;
382 @include border(all, 1, solid, $primary !important);
384 @include background(null, $primary !important, null, null, null);
389 span.ng2-smart-page-link.page-link {
391 @include background(null, $primary !important, null, null, null);
392 @include border(all, 1, solid, $primary !important);
398 /****************************************************************************/
399 /*********************** Button styles under list class *********************/
400 /****************************************************************************/
403 button.btn.btn-primary {
404 @include padding-value(2, 8, 2, 8);
409 @include box-shadow(0, 0, 0, 0, transparent);
411 button.btn.btn-primary {
413 @include background(null, $white, null, null, null);
414 &:not(.active:hover) {
415 @include background(null, $white, null, null, null);
419 @include background(null, $white, null, null, null);
423 @include background(null, $primary !important, null, null, null);
425 @include background(null, $primary, null, null, null);
430 /****************************************************************************/
431 /*********************** List Action Dropdown section ***********************/
432 /****************************************************************************/
433 .list-action-dropdown {
434 @include border(all, 1, solid, $primary);
435 @include padding-value(0, 0, 0, 0);
436 button.btn.btn-primary {
437 @include background(null, transparent, null, null, null);
438 @include padding-value(8, 8, 8, 8);
439 @include roundedCorners(0);
442 @include background(null, $primary, null, null, null);
446 @include border(bottom, 1, solid, $primary);
450 /****************************************************************************/
451 /*********************** Custom tabel design in topology ********************/
452 /****************************************************************************/
455 @include font(null, null, bold);
460 @include padding-value(5, 7, 5, 7);
461 @include font(null, 10px, null);
462 @include line-height(15px);
465 /****************************************************************************/
466 /************************** Ng select custom design *************************/
467 /****************************************************************************/
469 &.is-invalid .ng-select-container {
470 @include border(all, 1, solid, $red);
472 .ng-select-container {
473 @include border(all, 1, solid, $gray-200);
474 .ng-value-container .ng-placeholder {
479 /****************************************************************************/
480 /******************** Custom nav section for default status *****************/
481 /****************************************************************************/
482 .list-utilites-actions {
483 @include flexbox(flex, null, row, null, center, null);
484 nav.custom-items-config {
485 @include position_value(relative, null, null, null, null);
486 @include roundedCorners(3);
488 @include font(null, 13px, 600);
489 @include flexbox(inline-block, null, null, null, null, null);
490 @include position_value(relative, null, null, null, null);
491 text-decoration: none;
493 @include margin-value(0, 0, 0, 10);
495 @include margin-value(0, 0, 0, 0);
498 @include font(null, 14px, null);
499 @include margin-value(0, 5, 0, 0);
504 /****************************************************************************/
505 /************************* File upload custom design ************************/
506 /****************************************************************************/
509 @include roundedCorners(4);
510 @include border(all, 1, solid, $primary);
512 @include margin-value(0, 0, 0, 0);
513 text-overflow: ellipsis;
518 @include background(null, $primary, null, null, null);
521 /****************************************************************************/
522 /************************* Notifier Container Design ************************/
523 /****************************************************************************/
524 .notifier__container {
526 @include margin-value(0, 0, 0, 0);
529 /***************************************************************************/
530 /************************* Topology Common Design **************************/
531 /****************************************************************************/
535 @include font(null, 12px, null);
538 @include wh-value(30px, 25px);
544 @include font(null, 10px, null);
551 @include border(all, 1, solid, $primary);
556 @include padding-value(3.2, 8, 3.2, 8);
562 @include padding-value(4.8, 4.8, 4.8, 4.8);
563 @include margin-value(0, 0, 5, 0);
564 @include background(null, $gray-200, null, null, null);
565 @include flexbox(flex, null, null, null, center, null);
567 .span-overflow-text {
568 @include wh-value(90%, null);
571 text-overflow: ellipsis;
572 @include line-height(25px);
579 @include font(null, 15px, null);
585 -webkit-user-select: none;
586 -moz-user-select: none;
587 -ms-user-select: none;
588 -o-user-select: none;
592 opacity: 0.7 !important;
596 opacity: 0.7 !important;
606 pointer-events: none;
611 pointer-events: none;
618 @include border(all, 1, solid, $primary);
620 @include padding-value(0, 5, 0, 5);
621 @include font(null, 15px, null);
625 @include wh-value(55%, null);
628 @include wh-value(25%, null);
633 @include wh-value(36px, 36px);
635 @include margin-value(0, 10, 10, 0);
639 border-color: $primary;
642 color: $white !important;
643 @include background(null, $primary !important, null, null, null);
647 @include flexbox(flex, flex-end, row, center, center, null);
650 .ns-topology-sidebar-container,
651 .vnf-topology-sidebar-container,
652 .ns-instance-topology-sidebar-container {
653 @include position_value(absolute !important, 0px, null, null, 0px);
655 @include wh-value(27%, null);
656 @include background(null, $white, null, null, null);
657 @include border(all, 1, solid, $gray-300);
659 @include background(null, $modalheader-gray, null, null, null);
660 @include padding-value(5, 10, 5, 10);
661 @include border(bottom, 1, solid, $gray-300);
662 @include flexbox(flex, space-between, null, center, center, null);
668 @include padding-value(10, 5, 10, 5);
671 .ng-sidebar__content {
673 @include position_value(absolute, 45%, null, null, 0px);
674 @include background(null, $primary, null, null, null);
677 @include flexbox(inline-block, null, null, null, null, null);
678 @include position_value(relative, null, null, null, null);
679 animation: push 0.5s infinite linear;
698 /****************************************************************************/
699 /************************** MEDIA QUERIES ***********************************/
700 /****************************************************************************/
701 @media (max-width: map-get($grid-breakpoints, md)) {
703 @include flexbox(block, null, null, null, null, null);
710 text-transform: capitalize;