Skip to content

Commit

Permalink
fix(calendar): adjust calendar width for blazor suite
Browse files Browse the repository at this point in the history
  • Loading branch information
TeyaVes authored and joneff committed Sep 16, 2019
1 parent 95e7ffc commit 9e28dfb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/bootstrap/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,8 @@ $calendar-header-padding-x-sm: ($calendar-header-padding-y / 2) !default;
$calendar-header-padding-y-sm: $calendar-header-padding-x-sm !default;
$calendar-header-border-width: 1px !default;

$calendar-header-min-width: 280px !default;

$calendar-content-padding-x: $calendar-header-padding-x !default;
$calendar-content-padding-y: $calendar-header-padding-y !default;

Expand Down
2 changes: 2 additions & 0 deletions packages/default/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,8 @@ $calendar-header-padding-x-sm: ($calendar-header-padding-y / 2) !default;
$calendar-header-padding-y-sm: $calendar-header-padding-x-sm !default;
$calendar-header-border-width: 1px !default;

$calendar-header-min-width: 280px !default;

$calendar-content-padding-x: $calendar-header-padding-x !default;
$calendar-content-padding-y: $calendar-header-padding-y !default;

Expand Down
4 changes: 4 additions & 0 deletions packages/default/scss/calendar/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@
.k-button { @extend .k-button-flat; }
}

> .k-calendar-header {
min-width: $calendar-header-min-width;
}

// Footer
.k-footer,
Expand All @@ -144,6 +147,7 @@
position: relative;
z-index: 1;
overflow: hidden;
margin: auto;
}
&.k-week-number .k-calendar-view {
width: (8 * $calendar-cell-size);
Expand Down
2 changes: 2 additions & 0 deletions packages/material/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,8 @@ $calendar-header-padding-x-sm: 0 !default;
$calendar-header-padding-y-sm: $calendar-header-padding-y !default;
$calendar-header-border-width: 0 !default;

$calendar-header-min-width: 300px !default;

$calendar-content-padding-x: $calendar-header-padding-x !default;
$calendar-content-padding-y: $calendar-header-padding-y !default;

Expand Down

0 comments on commit 9e28dfb

Please sign in to comment.