|
| 1 | +@use "../core/_index.scss" as *; |
| 2 | +@use "../input/_variables.scss" as *; |
| 3 | + |
| 4 | +// OTP |
| 5 | + |
| 6 | +/// The gap between the items in the OTP. |
| 7 | +/// @group one-time-password |
| 8 | +$kendo-otp-gap: k-spacing(1.5) !default; |
| 9 | +/// The gap between the items in the small OTP. |
| 10 | +/// @group one-time-password |
| 11 | +$kendo-otp-sm-gap: k-spacing(1) !default; |
| 12 | +/// The gap between the items in the medium OTP. |
| 13 | +/// @group one-time-password |
| 14 | +$kendo-otp-md-gap: $kendo-otp-gap !default; |
| 15 | +/// The gap between the items in the large OTP. |
| 16 | +/// @group one-time-password |
| 17 | +$kendo-otp-lg-gap: k-spacing(2) !default; |
| 18 | + |
| 19 | +/// The horizontal padding of the OTP separator. |
| 20 | +/// @group one-time-password |
| 21 | +$kendo-otp-separator-padding-x: $kendo-otp-gap !default; |
| 22 | +/// The horizontal padding of the small OTP separator. |
| 23 | +/// @group one-time-password |
| 24 | +$kendo-otp-sm-separator-padding-x: $kendo-otp-sm-gap !default; |
| 25 | +/// The horizontal padding of the medium OTP separator. |
| 26 | +/// @group one-time-password |
| 27 | +$kendo-otp-md-separator-padding-x: $kendo-otp-separator-padding-x !default; |
| 28 | +/// The horizontal padding of the large OTP separator. |
| 29 | +/// @group one-time-password |
| 30 | +$kendo-otp-lg-separator-padding-x: $kendo-otp-lg-gap !default; |
| 31 | + |
| 32 | +/// The horizontal padding of the OTP separator. |
| 33 | +/// @group one-time-password |
| 34 | +$kendo-otp-input-width: $kendo-input-calc-size !default; |
| 35 | +/// The horizontal padding of the small OTP separator. |
| 36 | +/// @group one-time-password |
| 37 | +$kendo-otp-sm-input-width: $kendo-input-sm-calc-size !default; |
| 38 | +/// The horizontal padding of the medium OTP separator. |
| 39 | +/// @group one-time-password |
| 40 | +$kendo-otp-md-input-width: $kendo-otp-input-width !default; |
| 41 | +/// The horizontal padding of the large OTP separator. |
| 42 | +/// @group one-time-password |
| 43 | +$kendo-otp-lg-input-width: $kendo-input-lg-calc-size !default; |
| 44 | + |
| 45 | +$kendo-otp-sizes: ( |
| 46 | + sm: ( |
| 47 | + gap: $kendo-otp-sm-gap, |
| 48 | + separator-padding-x: $kendo-otp-sm-separator-padding-x, |
| 49 | + input-width: $kendo-otp-sm-input-width |
| 50 | + ), |
| 51 | + md: ( |
| 52 | + gap: $kendo-otp-md-gap, |
| 53 | + separator-padding-x: $kendo-otp-md-separator-padding-x, |
| 54 | + input-width: $kendo-otp-md-input-width |
| 55 | + ), |
| 56 | + lg: ( |
| 57 | + gap: $kendo-otp-lg-gap, |
| 58 | + separator-padding-x: $kendo-otp-lg-separator-padding-x, |
| 59 | + input-width: $kendo-otp-lg-input-width |
| 60 | + ) |
| 61 | +) !default; |
| 62 | + |
| 63 | +@forward "@progress/kendo-theme-default/scss/otp/_variables.scss" with ( |
| 64 | + $kendo-otp-gap: $kendo-otp-gap, |
| 65 | + $kendo-otp-sm-gap: $kendo-otp-sm-gap, |
| 66 | + $kendo-otp-md-gap: $kendo-otp-md-gap, |
| 67 | + $kendo-otp-lg-gap: $kendo-otp-lg-gap, |
| 68 | + $kendo-otp-separator-padding-x: $kendo-otp-separator-padding-x, |
| 69 | + $kendo-otp-sm-separator-padding-x: $kendo-otp-sm-separator-padding-x, |
| 70 | + $kendo-otp-md-separator-padding-x: $kendo-otp-md-separator-padding-x, |
| 71 | + $kendo-otp-lg-separator-padding-x: $kendo-otp-lg-separator-padding-x, |
| 72 | + $kendo-otp-input-width: $kendo-otp-input-width, |
| 73 | + $kendo-otp-sm-input-width: $kendo-otp-sm-input-width, |
| 74 | + $kendo-otp-md-input-width: $kendo-otp-md-input-width, |
| 75 | + $kendo-otp-lg-input-width: $kendo-otp-lg-input-width, |
| 76 | + $kendo-otp-sizes: $kendo-otp-sizes |
| 77 | +); |
0 commit comments