1
+ .digit-form-card {
2
+ width : 100% ;
3
+ max-width : 100% ;
4
+ height : fit-content ;
5
+ background-color : theme (digitv2.lightTheme.paper-primary );
6
+ display : flex ;
7
+ flex-direction : column ;
8
+
9
+ .digit-form-card-header {
10
+ @apply flex-col ;
11
+ display : flex !important ;
12
+ gap : theme (digitv2.spacers.spacer4 );
13
+
14
+ & .with-shadow {
15
+ box-shadow : theme (digitv2.spacers.spacer0 ) 0.063rem 0.125rem theme (digitv2.spacers.spacer0 ) #00000026 ;
16
+ }
17
+
18
+ @media (min-width : 48rem ) {
19
+ padding : theme (digitv2.spacers.spacer6 );
20
+ padding-bottom : theme (digitv2.spacers.spacer0 );
21
+
22
+ & .with-shadow {
23
+ padding-bottom : theme (digitv2.spacers.spacer6 );
24
+ }
25
+ }
26
+
27
+ @media (min-width : 30.063rem ) and (max-width : 47.938rem ) {
28
+ padding : theme (digitv2.spacers.spacer5 );
29
+ padding-bottom : theme (digitv2.spacers.spacer0 );
30
+
31
+ & .with-shadow {
32
+ padding-bottom : theme (digitv2.spacers.spacer5 );
33
+ }
34
+ }
35
+
36
+ @media (max-width : 30rem ) {
37
+ padding : theme (digitv2.spacers.spacer4 );
38
+ padding-bottom : theme (digitv2.spacers.spacer0 );
39
+
40
+ & .with-shadow {
41
+ padding-bottom : theme (digitv2.spacers.spacer4 );
42
+ }
43
+ }
44
+
45
+ }
46
+
47
+ .digit-form-card-content {
48
+ @extend .typography.body-s ;
49
+ position : relative ;
50
+ font-family : theme (digitv2.fontFamily.sans );
51
+ font-style : theme (digitv2.fontStyle.normal );
52
+ font-weight : theme (digitv2.fontWeight.regular );
53
+ line-height : theme (digitv2.lineHeight.lineheight2 );
54
+
55
+ @media (max-aspect-ratio : 9 / 16 ) {
56
+ /* Media query for mobile */
57
+ font-size : theme (digitv2.fontSize.body-s.mobile );
58
+ }
59
+
60
+ @media (min-aspect-ratio : 9 / 16 ) and (max-aspect-ratio : 3 / 4 ) {
61
+ /* Media query for tablets */
62
+ font-size : theme (digitv2.fontSize.body-s.tablet );
63
+ }
64
+
65
+ @media (min-aspect-ratio : 3 / 4 ) {
66
+ /* Media query for desktop */
67
+ font-size : theme (digitv2.fontSize.body-s.desktop );
68
+ }
69
+ @apply overflow-hidden overflow-y-auto flex-col ;
70
+ display : flex ;
71
+ flex : 1 ;
72
+ color : theme (digitv2.lightTheme.text-primary );
73
+
74
+ & .inline {
75
+ flex-direction : row ;
76
+ }
77
+
78
+ @media (min-width : 48rem ) {
79
+ gap : theme (digitv2.spacers.spacer6 );
80
+ padding : theme (digitv2.spacers.spacer6 ) theme (digitv2.spacers.spacer6 ) theme (digitv2.spacers.spacer0 ) theme (digitv2.spacers.spacer6 );
81
+
82
+ & .with-shadow ,
83
+ & .without-footer {
84
+ padding : theme (digitv2.spacers.spacer6 );
85
+ }
86
+
87
+ }
88
+
89
+ @media (min-width : 30.063rem ) and (max-width : 47.938rem ) {
90
+ gap : theme (digitv2.spacers.spacer5 );
91
+ padding : theme (digitv2.spacers.spacer5 ) theme (digitv2.spacers.spacer5 ) theme (digitv2.spacers.spacer0 ) theme (digitv2.spacers.spacer5 );
92
+
93
+ & .with-shadow ,
94
+ & .without-footer {
95
+ padding : theme (digitv2.spacers.spacer5 );
96
+ }
97
+
98
+ }
99
+
100
+ @media (max-width : 30rem ) {
101
+ gap : theme (digitv2.spacers.spacer4 );
102
+ padding : theme (digitv2.spacers.spacer4 ) theme (digitv2.spacers.spacer4 ) theme (digitv2.spacers.spacer0 ) theme (digitv2.spacers.spacer4 );
103
+
104
+ & .with-shadow ,
105
+ & .without-footer {
106
+ padding : theme (digitv2.spacers.spacer4 );
107
+ }
108
+ }
109
+
110
+ .digit-label-field-pair {
111
+ margin-bottom : unset ;
112
+ }
113
+
114
+ .digit-radio-options-wrap {
115
+ margin-bottom : unset ;
116
+ }
117
+ }
118
+
119
+ .digit-form-card-footer {
120
+ @apply flex-wrap ;
121
+ display : flex ;
122
+ gap : theme (digitv2.spacers.spacer4 );
123
+
124
+ & .with-shadow {
125
+ box-shadow : theme (digitv2.spacers.spacer0 ) -0.063rem 0.125rem theme (digitv2.spacers.spacer0 ) #00000026 ;
126
+ }
127
+
128
+ @media (min-width : 48rem ) {
129
+ padding : theme (digitv2.spacers.spacer6 );
130
+ }
131
+
132
+ @media (min-width : 30.063rem ) and (max-width : 47.938rem ) {
133
+ @apply w-full ;
134
+ padding : theme (digitv2.spacers.spacer5 );
135
+ }
136
+
137
+ @media (max-width : 30rem ) {
138
+ @apply flex-col ;
139
+ padding : theme (digitv2.spacers.spacer4 );
140
+ }
141
+
142
+
143
+ .digit-form-card-buttons {
144
+ margin-left : auto ;
145
+ display : flex ;
146
+ gap : theme (digitv2.spacers.spacer4 );
147
+ @apply max-w-full flex-wrap ;
148
+
149
+ @media (min-width : 30.063rem ) and (max-width : 47.938rem ) {
150
+ @apply w-full ;
151
+
152
+ button {
153
+ flex : 1 ;
154
+ }
155
+ }
156
+
157
+ @media (max-width : 30rem ) {
158
+ @apply flex-col ;
159
+ margin : theme (digitv2.spacers.spacer0 );
160
+
161
+ button {
162
+ width : 100% ;
163
+ }
164
+ }
165
+
166
+ & .equal-buttons {
167
+ width : 100% ;
168
+
169
+ @media (min-width : 30.063rem ) {
170
+
171
+ button {
172
+ flex : 1 ;
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
178
+
179
+ .vertical-formcard-divider {
180
+ position : absolute ;
181
+
182
+ @media (max-aspect-ratio : 9 / 16 ) {
183
+ /* Media query for mobile */
184
+ top : theme (digitv2.spacers.spacer4 );
185
+ height : calc (100% - 2rem );
186
+ }
187
+
188
+ @media (min-aspect-ratio : 9 / 16 ) and (max-aspect-ratio : 3 / 4 ) {
189
+ /* Media query for tablets */
190
+ top : theme (digitv2.spacers.spacer5 );
191
+ height : calc (100% - 2.5rem );
192
+ }
193
+
194
+ @media (min-aspect-ratio : 3 / 4 ) {
195
+ /* Media query for desktop */
196
+ top : theme (digitv2.spacers.spacer6 );
197
+ height : calc (100% - 3rem );
198
+ }
199
+ border : 0.063rem solid theme (digitv2.lightTheme.generic-divider );
200
+ z-index : 1 ;
201
+ }
202
+ }
0 commit comments