-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(default): add otp component styles
- Loading branch information
Showing
5 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Dependencies | ||
@use "../core/_index.scss" as *; | ||
@use "../input/_index.scss" as *; | ||
|
||
// Component | ||
@forward "./_variables.scss"; | ||
@use "./_layout.scss" as *; | ||
@use "./_theme.scss" as *; | ||
|
||
// Expose | ||
@mixin kendo-otp--styles() { | ||
@include import-once( "otp" ) { | ||
@include core-styles(); | ||
@include kendo-input--styles(); | ||
@include kendo-otp--layout(); | ||
@include kendo-otp--theme(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@use "sass:map"; | ||
@use "../core/_index.scss" as *; | ||
|
||
@mixin kendo-otp--layout-base() { | ||
|
||
// OTP | ||
.k-otp { | ||
display: flex; | ||
align-items: center; | ||
flex-direction: row; | ||
gap: k-spacing(1); | ||
|
||
.k-otp-input { | ||
min-width: 1em; | ||
justify-content: center; | ||
|
||
.k-input-inner { | ||
text-align: center; | ||
} | ||
} | ||
|
||
.k-otp-separator { | ||
padding-inline: k-spacing(1); | ||
} | ||
}; | ||
|
||
} | ||
|
||
@mixin kendo-otp--layout() { | ||
@include kendo-otp--layout-base(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@use "sass:map"; | ||
|
||
@mixin kendo-otp--theme-base() { | ||
|
||
// OTP | ||
.k-otp {}; | ||
|
||
} | ||
|
||
@mixin kendo-otp--theme() { | ||
@include kendo-otp--theme-base(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@use "sass:map"; | ||
|
||
// OTP |