Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: extract split-button styles as a separate module
- Loading branch information
Showing
32 changed files
with
184 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@import "../core/_index.scss"; | ||
|
||
|
||
// Dependencies | ||
@import "../button/_index.scss"; | ||
@import "../menu/_index.scss"; | ||
|
||
|
||
// Component | ||
@import "_variables.scss"; | ||
@import "_layout.scss"; | ||
@import "_theme.scss"; |
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 @@ | ||
@import "~@progress/kendo-theme-default/scss/split-button/_layout.scss"; |
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 @@ | ||
@import "~@progress/kendo-theme-default/scss/split-button/_theme.scss"; |
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,19 @@ | ||
// Split-button | ||
|
||
/// Focus shadow of the split button. | ||
/// @group split-button | ||
$kendo-split-button-focus-shadow: $kendo-button-focus-shadow !default; | ||
|
||
/// Horizontal padding of the arrow button. | ||
/// @group split-button | ||
$kendo-split-button-arrow-padding-x: $kendo-button-padding-y !default; | ||
$kendo-split-button-arrow-padding-x-sm: $kendo-button-padding-y-sm !default; | ||
$kendo-split-button-arrow-padding-x-md: $kendo-button-padding-y-md !default; | ||
$kendo-split-button-arrow-padding-x-lg: $kendo-button-padding-y-lg !default; | ||
|
||
/// Vertical padding of the arrow button. | ||
/// @group split-button | ||
$kendo-split-button-arrow-padding-y: $kendo-button-padding-y !default; | ||
$kendo-split-button-arrow-padding-y-sm: $kendo-button-padding-y-sm !default; | ||
$kendo-split-button-arrow-padding-y-md: $kendo-button-padding-y-md !default; | ||
$kendo-split-button-arrow-padding-y-lg: $kendo-button-padding-y-lg !default; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@import "../core/_index.scss"; | ||
|
||
|
||
// Dependencies | ||
@import "../button/_index.scss"; | ||
@import "../menu/_index.scss"; | ||
|
||
|
||
// Component | ||
@import "_variables.scss"; | ||
@import "_layout.scss"; | ||
@import "_theme.scss"; |
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 @@ | ||
@import "~@progress/kendo-theme-default/scss/split-button/_layout.scss"; |
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 @@ | ||
@import "~@progress/kendo-theme-default/scss/split-button/_theme.scss"; |
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,19 @@ | ||
// Split-button | ||
|
||
/// Focus shadow of the split button. | ||
/// @group split-button | ||
$kendo-split-button-focus-shadow: $kendo-button-focus-shadow !default; | ||
|
||
/// Horizontal padding of the arrow button. | ||
/// @group split-button | ||
$kendo-split-button-arrow-padding-x: $kendo-button-padding-y !default; | ||
$kendo-split-button-arrow-padding-x-sm: $kendo-button-padding-y-sm !default; | ||
$kendo-split-button-arrow-padding-x-md: $kendo-button-padding-y-md !default; | ||
$kendo-split-button-arrow-padding-x-lg: $kendo-button-padding-y-lg !default; | ||
|
||
/// Vertical padding of the arrow button. | ||
/// @group split-button | ||
$kendo-split-button-arrow-padding-y: $kendo-button-padding-y !default; | ||
$kendo-split-button-arrow-padding-y-sm: $kendo-button-padding-y-sm !default; | ||
$kendo-split-button-arrow-padding-y-md: $kendo-button-padding-y-md !default; | ||
$kendo-split-button-arrow-padding-y-lg: $kendo-button-padding-y-lg !default; |
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
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 @@ | ||
@import "../core/_index.scss"; | ||
|
||
|
||
// Dependencies | ||
@import "../button/_index.scss"; | ||
@import "../menu/_index.scss"; | ||
|
||
|
||
// Component | ||
@import "_variables.scss"; | ||
@import "_layout.scss"; | ||
@import "_theme.scss"; |
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,40 @@ | ||
@include exports("split-button/layout") { | ||
|
||
|
||
// Split button arrow | ||
.k-split-button .k-split-button-arrow { | ||
padding: $kendo-split-button-arrow-padding-y $kendo-split-button-arrow-padding-x; | ||
width: auto; | ||
aspect-ratio: auto; | ||
flex: none; | ||
|
||
&.k-button-sm { | ||
padding: $kendo-split-button-arrow-padding-y-sm $kendo-split-button-arrow-padding-x-sm; | ||
} | ||
|
||
&.k-button-md { | ||
padding: $kendo-split-button-arrow-padding-y-md $kendo-split-button-arrow-padding-x-md; | ||
} | ||
|
||
&.k-button-lg { | ||
padding: $kendo-split-button-arrow-padding-y-lg $kendo-split-button-arrow-padding-x-lg; | ||
} | ||
|
||
.k-button-icon { | ||
min-width: 0; | ||
} | ||
} | ||
|
||
|
||
} | ||
|
||
|
||
@include exports("split-button/layout/legacy") { | ||
|
||
.k-ie .k-split-button { | ||
.k-button { | ||
@include border-radius( 0 ); | ||
} | ||
} | ||
|
||
} |
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,9 @@ | ||
@include exports("split-button/theme") { | ||
|
||
// Split button | ||
.k-split-button:focus, | ||
.k-split-button.k-focus { | ||
@include box-shadow( $kendo-split-button-focus-shadow ); | ||
} | ||
|
||
} |
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,19 @@ | ||
// Split-button | ||
|
||
/// Focus shadow of the split button. | ||
/// @group split-button | ||
$kendo-split-button-focus-shadow: $kendo-button-focus-shadow !default; | ||
|
||
/// Horizontal padding of the arrow button. | ||
/// @group split-button | ||
$kendo-split-button-arrow-padding-x: $kendo-button-padding-y !default; | ||
$kendo-split-button-arrow-padding-x-sm: $kendo-button-padding-y-sm !default; | ||
$kendo-split-button-arrow-padding-x-md: $kendo-button-padding-y-md !default; | ||
$kendo-split-button-arrow-padding-x-lg: $kendo-button-padding-y-lg !default; | ||
|
||
/// Vertical padding of the arrow button. | ||
/// @group split-button | ||
$kendo-split-button-arrow-padding-y: $kendo-button-padding-y !default; | ||
$kendo-split-button-arrow-padding-y-sm: $kendo-button-padding-y-sm !default; | ||
$kendo-split-button-arrow-padding-y-md: $kendo-button-padding-y-md !default; | ||
$kendo-split-button-arrow-padding-y-lg: $kendo-button-padding-y-lg !default; |
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
Oops, something went wrong.