| SANDHYA.JS | 4a7a542 | 2021-05-15 15:35:22 +0530 | [diff] [blame] | 1 | /* |
| 2 | Copyright 2020 TATA ELXSI |
| 3 | |
| 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 |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 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. |
| 15 | |
| 16 | Author: SANDHYA JS (sandhya.j@tataelxsi.co.in) |
| 17 | */ |
| 18 | @import "../../../assets/scss/mixins/mixin"; |
| 19 | @import "../../../assets/scss/variable"; |
| 20 | .chartData-card { |
| 21 | word-wrap: break-word; |
| 22 | @include box-shadow(0px, 1px, 15px, 0px, rgba(69, 90, 100, 0.1)); |
| 23 | @include transition(all, 0.2s, null, null); |
| 24 | @include roundedCorners(5); |
| 25 | @include border(all, 1, solid, rgba(238, 238, 238, 0.75)); |
| 26 | color: $white; |
| 27 | .card-body { |
| 28 | @include padding-value(5, 5, 5, 10); |
| 29 | } |
| SANDHYA.JS | 0e9c0a4 | 2022-04-04 18:44:53 +0530 | [diff] [blame] | 30 | .no-data { |
| 31 | margin-bottom: 2.5rem; |
| 32 | margin-top: -1.5rem; |
| 33 | } |
| SANDHYA.JS | 4a7a542 | 2021-05-15 15:35:22 +0530 | [diff] [blame] | 34 | } |
| 35 | .switch { |
| 36 | @include position_value(relative, null, null, null, null); |
| 37 | @include flexbox(inline-block, null, null, null, null, null); |
| 38 | @include wh-value(70px, 20px); |
| 39 | @include margin-value(0, 0, 0, 0); |
| 40 | input { |
| 41 | opacity: 0; |
| 42 | @include wh-value(0px, 0px); |
| 43 | &:checked + .slider { |
| 44 | @include background(null, $gray-400, null, null, null); |
| 45 | &:before { |
| 46 | @include background(null, $primary, null, null, null); |
| 47 | left: 22px; |
| 48 | -webkit-transform: translateX(26px); |
| 49 | -ms-transform: translateX(26px); |
| 50 | transform: translateX(26px); |
| 51 | } |
| 52 | .on { |
| 53 | @include flexbox(block, null, null, null, null, null); |
| 54 | } |
| 55 | .off { |
| 56 | @include flexbox(none, null, null, null, null, null); |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | .slider { |
| 61 | @include position_value(absolute, 0, 0, 0, 0); |
| 62 | cursor: pointer; |
| 63 | @include background(null, $gray-400, null, null, null); |
| 64 | -webkit-transition: 0.4s; |
| 65 | transition: 0.4s; |
| 66 | box-shadow: 0 0 1px $gray-400; |
| 67 | &.round { |
| 68 | @include roundedCorners(30); |
| 69 | &:before { |
| 70 | @include roundedCornersPercentage(50%); |
| 71 | } |
| 72 | } |
| 73 | &:before { |
| 74 | @include position_value(absolute, null, null, -2px, 0px); |
| 75 | @include wh-value(25px, 25px); |
| 76 | @include background(null, $primary, null, null, null); |
| 77 | content: ""; |
| 78 | -webkit-transition: 0.4s; |
| 79 | transition: 0.4s; |
| 80 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); |
| 81 | } |
| 82 | .on { |
| 83 | @include flexbox(none, null, null, null, null, null); |
| 84 | @include position_value(absolute, 50%, null, null, 35% !important); |
| 85 | } |
| 86 | .on, |
| 87 | .off { |
| 88 | @include position_value(absolute, 50%, null, null, 55%); |
| 89 | color: $primary; |
| 90 | transform: translate(-50%, -50%); |
| 91 | @include font(null, 10px, bold); |
| 92 | } |
| 93 | } |
| 94 | } |