@egovernments/digit-ui-components-css 0.0.2-beta.19 → 0.0.2-beta.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@egovernments/digit-ui-components-css",
3
- "version": "0.0.2-beta.19",
3
+ "version": "0.0.2-beta.20",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "Jagankumar <jagan.kumar@egovernments.org>",
@@ -0,0 +1,108 @@
1
+ .digit-tag-wrapper {
2
+
3
+ border-radius: theme(digitv2.spacers.spacer1);
4
+ padding: theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer3);
5
+ gap: 0.625rem;
6
+ display: flex;
7
+ align-items: center;
8
+ width: fit-content;
9
+ justify-content: center;
10
+
11
+ &.left {
12
+ justify-content: flex-start;
13
+ }
14
+
15
+ &.right {
16
+ justify-content: flex-end;
17
+ }
18
+
19
+ svg {
20
+ flex-shrink: 0;
21
+ }
22
+
23
+ &.success {
24
+ background-color: theme(digitv2.lightTheme.alert-successbg);
25
+
26
+ .digit-tag-text {
27
+ color: theme(digitv2.lightTheme.alert-success);
28
+ }
29
+ }
30
+
31
+ &.error {
32
+ background-color: theme(digitv2.lightTheme.alert-errorbg);
33
+
34
+ .digit-tag-text {
35
+ color: theme(digitv2.lightTheme.alert-error);
36
+ }
37
+ }
38
+
39
+ &.warning {
40
+ background-color: theme(digitv2.lightTheme.alert-warning-bg);
41
+
42
+ .digit-tag-text {
43
+ color: theme(digitv2.lightTheme.alert-warning);
44
+ }
45
+ }
46
+
47
+ &.monochrome {
48
+ background-color: theme(digitv2.lightTheme.paper-secondary);
49
+
50
+ .digit-tag-text {
51
+ color: theme(digitv2.lightTheme.primary-2);
52
+ }
53
+ }
54
+
55
+
56
+ &.stroke {
57
+ &.success {
58
+ border: 0.031rem solid theme(digitv2.lightTheme.alert-success);
59
+ }
60
+
61
+ &.error {
62
+ border: 0.031rem solid theme(digitv2.lightTheme.alert-error);
63
+ }
64
+
65
+ &.warning {
66
+ border: 0.031rem solid theme(digitv2.lightTheme.alert-warning);
67
+ }
68
+
69
+ &.monochrome {
70
+ border: 0.031rem solid theme(digitv2.lightTheme.primary-2);
71
+ }
72
+ }
73
+
74
+ .digit-tag-customIcon {
75
+ width: theme(digitv2.spacers.spacer4);
76
+ height: theme(digitv2.spacers.spacer4);
77
+ }
78
+
79
+ .digit-tag-text {
80
+ @extend .typography.body-s;
81
+ font-family: theme(digitv2.fontFamily.sans);
82
+ font-style: theme(digitv2.fontStyle.normal);
83
+ font-weight: theme(digitv2.fontWeight.regular);
84
+ line-height: theme(digitv2.lineHeight.lineheight2);
85
+
86
+ @media (max-aspect-ratio: 9/16) {
87
+ /* Media query for mobile */
88
+ font-size: theme(digitv2.fontSize.body-s.mobile);
89
+ }
90
+
91
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
92
+ /* Media query for tablets */
93
+ font-size: theme(digitv2.fontSize.body-s.tablet);
94
+ }
95
+
96
+ @media (min-aspect-ratio: 3/4) {
97
+ /* Media query for desktop */
98
+ font-size: theme(digitv2.fontSize.body-s.desktop);
99
+ }
100
+ }
101
+
102
+ &.cp {
103
+ &:hover {
104
+ box-shadow: 0rem 0.063rem 0.188rem 0.063rem #00000026;
105
+ box-shadow: 0rem 0.063rem 0.125rem 0rem #0000004D;
106
+ }
107
+ }
108
+ }
@@ -38,6 +38,7 @@
38
38
  @import url("./components/sidebarV2.scss");
39
39
  @import url("./components/mobilesidebarV2.scss");
40
40
  @import url("./components/tooltipwrapperV2.scss");
41
+ @import url("./components/tagV2.scss");
41
42
 
42
43
  /* pages */
43
44
  @import url("./pages/employee/index.scss");