Skip to content

Commit

Permalink
fix(utils): use different border-radius for different themes
Browse files Browse the repository at this point in the history
  • Loading branch information
joneff committed Oct 18, 2021
1 parent 92814c7 commit c3991c7
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/bootstrap/scss/utils/_border.scss
@@ -1 +1,11 @@
$utils-border-radius: (
default: map-get( $spacing, 1 ),
0: 0,
sm: .2rem,
md: .25rem,
lg: .3rem,
circle: 50%,
pill: 9999px
) !default;

@import "~@progress/kendo-theme-default/scss/utils/_border.scss";
10 changes: 10 additions & 0 deletions packages/classic/scss/utils/_border.scss
@@ -1 +1,11 @@
$utils-border-radius: (
default: map-get( $spacing, 1 ),
0: 0,
sm: map-get( $spacing, 1) / 2,
md: map-get( $spacing, 1),
lg: map-get( $spacing, 1) * 1.5,
circle: 50%,
pill: 9999px
) !default;

@import "~@progress/kendo-theme-default/scss/utils/_border.scss";
5 changes: 5 additions & 0 deletions packages/default/scss/utils/_border.scss
Expand Up @@ -93,6 +93,11 @@
$_selector-suffix: if( $radius == default, "", "-#{$radius}" );

.k-#{$_selector-base}#{$_selector-suffix} {
@each $prop in $props {
#{$prop}: $value;
}
}
.\!k-#{$_selector-base}#{$_selector-suffix} {
@each $prop in $props {
#{$prop}: $value !important;
}
Expand Down
10 changes: 10 additions & 0 deletions packages/material/scss/utils/_border.scss
@@ -1 +1,11 @@
$utils-border-radius: (
default: map-get( $spacing, 1 ),
0: 0,
sm: .125rem,
md: .25rem,
lg: .375rem,
circle: 50%,
pill: 9999px
) !default;

@import "~@progress/kendo-theme-default/scss/utils/_border.scss";

0 comments on commit c3991c7

Please sign in to comment.