blob: d3b10b64b803db1aff12ecabe12050370dcdedc7 [file] [log] [blame]
SANDHYA.JS92379ec2025-06-13 17:29:35 +05301/*
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/variable.scss";
19@import "../../../assets/scss/mixins/mixin.scss";
20
21.text-dark {
22 color: $gray-800;
23}
24
25.font-weight-bold {
26 font-weight: 700;
27}
28
29button.bg-light {
30 background-color: $gray-200;
31 &:hover,
32 &:focus {
33 background-color: $paleblue;
34 }
35}
36
37.btn-group {
38 display: flex;
39 &.list.action {
40 justify-content: center;
41 align-items: flex-start;
42 flex-wrap: wrap;
43 .btn {
44 border-top: 2px solid $primary;
45 transition:
46 transform 0.3s ease-in-out,
47 background-color 0.3s,
48 color 0.3s;
49 &.active {
50 background-color: $theme-bg-color;
51 font-weight: bold;
52 margin: 5px 0 0;
53 transform: scale(1);
54 .circle {
55 display: flex;
56 align-items: center;
57 justify-content: center;
58 width: 40px;
59 height: 40px;
60 border-radius: 50%;
61 background-color: $primary;
62 color: white;
63 position: absolute;
64 top: 0;
65 transform: translateY(-50%);
66 }
67 b {
68 font-size: 1.2em;
69 }
70 p {
71 font-size: 1em;
72 }
73 }
74 &:not(.active) {
75 transform: scale(0.97);
76 opacity: 0.8;
77 .circle {
78 display: flex;
79 align-items: center;
80 justify-content: center;
81 width: 40px;
82 height: 40px;
83 border-radius: 50%;
84 background-color: $gray-200;
85 color: black;
86 position: absolute;
87 top: 0;
88 transform: translateY(-50%);
89 border: 1px solid $primary;
90 }
91 }
92 }
93 .collapse {
94 transition:
95 background-color 0.3s,
96 color 0.3s;
97 }
98 }
99}
100.collapse {
101 display: flex;
102 flex-direction: column;
103 align-items: center;
104 justify-content: flex-start;
105 padding: 5px;
106 background-color: $theme-bg-color;
107}
108
109.btn p {
110 margin: 0;
111 padding-top: 20px;
112}
113
114.label-value-pair,
115.label-value-pair-description {
116 display: flex;
117 justify-content: space-between;
118 margin-bottom: 10px;
119 @include padding-value(3, 10, 0, 10);
120 align-items: center;
121 gap: 8px;
122 position: relative;
123}
124
125.label,
126.label1 {
127 font-weight: bold;
128 color: #343a40;
129 white-space: nowrap;
130}
131
132.value,
133.value1 {
134 display: -webkit-box;
135 -webkit-line-clamp: 2;
136 line-clamp: 2;
137 -webkit-box-orient: vertical;
138 overflow: hidden;
139 text-overflow: ellipsis;
140 cursor: pointer;
141 max-height: 3em;
142 line-height: 1.5em;
143 position: relative;
144 margin-left: 5px;
145 color: #343a40;
146 flex: 1;
147 min-width: 0;
148 overflow: visible;
149}
150
151.custom-card {
152 @include wh-value(null, 290px);
153 @include roundedCorners(5);
154 position: relative;
155 @include border(all, 1, solid, rgba(238, 238, 238, 0.75));
156 @include box-shadow(0px, 1px, 15px, 0px, rgba(69, 90, 100, 0.1));
157 background-color: $white;
158}
159
160.d-flex {
161 display: flex;
162 flex-wrap: nowrap;
163 align-items: center;
164 gap: 2px;
165 width: 100%;
166}
167
168.search-container {
169 position: relative;
170 width: 100%;
171 max-width: 300px;
172 height: 30px;
173 display: flex;
174}
175
176.search-input {
177 width: 100%;
178 padding-right: 40px;
179 box-sizing: border-box;
180 border: 1px solid $primary;
181}
182
183.search-icon {
184 position: absolute;
185 right: 10px;
186 top: 50%;
187 transform: translateY(-50%);
188 color: $primary;
189}
190
191.sort-dropdown {
192 display: flex;
193 align-items: center;
194 position: relative;
195 flex-shrink: 0;
196 min-width: 150px;
197 max-width: 200px;
198 margin-left: 2px;
199}
200
201#sort-icon {
202 margin-right: 10px;
203 cursor: pointer;
204}
205
206#sort-options {
207 padding: 2px;
208 cursor: pointer;
209}
210
211.custom-card-header {
212 background-color: $primary;
213 @include box-shadow(0px, 1px, 15px, 0px, rgba(69, 90, 100, 0.1));
214 @include roundedCorners(5);
215 color: white;
216}
217
218.version {
219 background-color: $secondary;
220 width: 40px;
221}
222
223.short-description {
224 display: -webkit-box;
225 -webkit-line-clamp: 2;
226 -webkit-box-orient: vertical;
227 overflow: hidden;
228 text-overflow: ellipsis;
229 cursor: pointer;
230 max-height: 3em;
231 line-height: 1.5em;
232 white-space: normal;
233 line-clamp: 2;
234}
235
236/* Tooltip Styling */
237.popover-description {
238 position: absolute;
239 background-color: $primary;
240 color: white;
241 padding: 8px;
242 border-radius: 5px;
243 font-size: 12px;
244 max-width: 300px;
245 white-space: normal;
246 display: none;
247 z-index: 1000;
248}
249
250.value1:hover .popover-description {
251 display: block;
252}
253
254.card-header,
255.card-footer {
256 padding: 12px;
257 font-weight: bold;
258}
259
260.card-body {
261 padding: 0;
262 margin: 0;
263 border-top: 1px solid #ddd;
264 border-bottom: 1px solid #ddd;
265}
266
267.no-data {
268 display: flex;
269 justify-content: center;
270 align-items: center;
271 padding: 20px 0;
272 text-align: center;
273 height: 260px;
274}
275
276::ng-deep .carousel-indicators {
277 display: none;
278}
279
280/* Hide default Bootstrap background images for arrows */
281::ng-deep .carousel-control-prev-icon,
282::ng-deep .carousel-control-next-icon {
283 background-image: none;
284 display: none;
285}
286
287/* Add Font Awesome icons for Previous & Next Arrows */
288::ng-deep .carousel-control-prev::before {
289 content: "\f104";
290 font-family: "Font Awesome 5 Free";
291 font-weight: 900;
292 width: 20px;
293 height: 20px;
294 position: relative;
295 color: white;
296 right: 22px;
297 bottom: 35px;
298 background-color: $primary;
299 border-radius: 50%;
300}
301
302::ng-deep .carousel-control-next::before {
303 content: "\f105";
304 font-family: "Font Awesome 5 Free";
305 font-weight: 900;
306 position: relative;
307 left: 22px;
308 bottom: 35px;
309 width: 20px;
310 height: 20px;
311 color: white;
312 background-color: $primary;
313 border-radius: 50%;
314}