File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,20 @@ const generateScaling = () => {
9
9
let allClasses = fileHeader ;
10
10
11
11
const scaleTypeKey = [ 'regular' , 'functional' , 'expressive' ] ;
12
+ const inputCustomVars = {
13
+ regular : {
14
+ labelScale : 0.65 ,
15
+ focusOpacity : 1
16
+ } ,
17
+ functional : {
18
+ labelScale : 1 ,
19
+ focusOpacity : 0
20
+ } ,
21
+ expressive : {
22
+ labelScale : 0.55 ,
23
+ focusOpacity : 1
24
+ }
25
+ } ;
12
26
13
27
for ( const scale of scaleTypeKey ) {
14
28
allClasses += `
@@ -32,6 +46,9 @@ const generateScaling = () => {
32
46
\t--db-spacing-responsive-lg: #{$db-spacing-responsive-${ scale } -mobile-l};
33
47
\t--db-spacing-responsive-xl: #{$db-spacing-responsive-${ scale } -mobile-xl};
34
48
49
+ \t--db-input-label-scale: ${ inputCustomVars [ scale ] . labelScale } ;
50
+ \t--db-input-focus-opacity: ${ inputCustomVars [ scale ] . focusOpacity } ;
51
+
35
52
\t@media only screen and (min-width: $db-screens-md) {
36
53
\t\t--db-spacing-responsive-xs: #{$db-spacing-responsive-${ scale } -tablet-xs};
37
54
\t\t--db-spacing-responsive-sm: #{$db-spacing-responsive-${ scale } -tablet-s};
You can’t perform that action at this time.
0 commit comments