-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* chore(deps): bump sass [KHCP-13755] * fix(src): sass @import to @use [KHCP-13755] * fix(docs): sass @import to @use [KHCP-13755] * fix(mixins): minor tweak [KHCP-13755]
- Loading branch information
Showing
23 changed files
with
125 additions
and
81 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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,24 +1,9 @@ | ||
@import "@/styles/mixins/inputs"; | ||
@import "@/styles/mixins/label"; | ||
@import "@/styles/mixins/input-select"; | ||
@import "@/styles/mixins/cards"; | ||
@import "@/styles/mixins/badges"; | ||
@import "@/styles/mixins/loaders"; | ||
@import "@/styles/mixins/buttons"; | ||
@import "@/styles/mixins/tables"; | ||
|
||
/* Common mixins for all components */ | ||
|
||
@mixin truncate($lines: 0) { | ||
// if lines is 0, truncate with ellipsis, otherwise truncate with line clamp | ||
@if $lines == 0 { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} @else { | ||
-webkit-box-orient: vertical; | ||
display: -webkit-box; | ||
-webkit-line-clamp: $lines; | ||
overflow: hidden; | ||
} | ||
} | ||
@forward "@/styles/mixins/inputs"; | ||
@forward "@/styles/mixins/label"; | ||
@forward "@/styles/mixins/input-select"; | ||
@forward "@/styles/mixins/cards"; | ||
@forward "@/styles/mixins/badges"; | ||
@forward "@/styles/mixins/loaders"; | ||
@forward "@/styles/mixins/buttons"; | ||
@forward "@/styles/mixins/tables"; | ||
@forward "@/styles/mixins/common"; |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "vars"; | ||
@use "vars" as *; | ||
|
||
/* | ||
Kongponents Transitions | ||
|
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,3 @@ | ||
@forward "@kong/design-tokens/tokens/scss/variables"; | ||
@forward "./mixins"; | ||
@forward "./vars"; |
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@use "@kong/design-tokens/tokens/scss/variables" as *; | ||
|
||
/* Cards mixins */ | ||
|
||
@mixin cardDefaults { | ||
|
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,25 @@ | ||
@use "@kong/design-tokens/tokens/scss/variables" as *; | ||
|
||
/* Common mixins for all components */ | ||
|
||
@mixin truncate($lines: 0) { | ||
// if lines is 0, truncate with ellipsis, otherwise truncate with line clamp | ||
@if $lines == 0 { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} @else { | ||
-webkit-box-orient: vertical; | ||
display: -webkit-box; | ||
-webkit-line-clamp: $lines; | ||
overflow: hidden; | ||
} | ||
} | ||
|
||
@mixin defaultButtonReset { | ||
background-color: var(--kui-color-background-transparent, $kui-color-background-transparent); | ||
border: none; | ||
color: inherit; | ||
cursor: pointer; | ||
padding: var(--kui-space-0, $kui-space-0); | ||
} |
Oops, something went wrong.