Skip to content

Commit

Permalink
Merge pull request #3485 from IgniteUI/mpopov/fix-calendar-samples
Browse files Browse the repository at this point in the history
fix calendar samples
  • Loading branch information
simeonoff authored Jun 6, 2024
2 parents bfbdfc9 + 100f92e commit 7a93778
Show file tree
Hide file tree
Showing 18 changed files with 74 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
min-width: 200px;
margin: 8px;
}

.igx-calendar {
--ig-size: 2;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
min-width: 200px;
margin: 8px;
}

.igx-calendar {
--ig-size: 2;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
$border-color: color($color: gray, $variant: 300);

igx-calendar {
--ig-size: 2;

border: 1px solid $border-color;
border-radius: 6px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
margin: 8px;
}

.igx-calendar{
.igx-calendar {
--ig-size: 2;

box-shadow: 0 1px 3px 0 rgba(0,0,0,.26),
0 1px 1px 0 rgba(0,0,0,.12),
0 2px 1px -1px rgba(0,0,0,.08);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
border-radius: 6px;
}

.igx-calendar {
--ig-size: 2;
}

.location-wrapper {
min-width: 200px;
max-width: 640px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<igx-calendar #calendar selection="multi" (selected)="onSelection($event)" (viewDateChanged)="viewDateChanged($event)" (activeViewChanged)="activeViewChanged($event)"></igx-calendar>
</article>
</div>
<div class="calendar-section" style="width: calc(100% - 324px)">
<div class="calendar-section">
<div class="selected-data-area">
<div class="logContainer">
<div class="highlight">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.igx-calendar{
.igx-calendar {
--ig-size: 2;

box-shadow: 0 1px 3px 0 rgba(0,0,0,.26),
0 1px 1px 0 rgba(0,0,0,.12),
0 2px 1px -1px rgba(0,0,0,.08);
Expand All @@ -7,11 +9,12 @@
:host {
display: flex;
width: 100%;
gap: 16px;
flex-flow: row wrap;
}

button {
margin: 8px 0px;
margin: 8px 0;
}

.calendar-wrapper {
Expand All @@ -20,10 +23,10 @@
}

.calendar-section {
height: 383px;
height: 336px;
}

.selected-data-area{
.selected-data-area {
overflow-y: auto;
max-height: 500px;
width: 100%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ $border-color: color($color: gray, $variant: 300);
margin: 8px;
}

.igx-calendar{
.igx-calendar {
--ig-size: 2;

border-radius: 4px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ $border-color: color($color: gray, $variant: 300);
margin: 8px;
}

.igx-calendar{
.igx-calendar {
--ig-size: 2;

border-radius: 4px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
0 2px 1px -1px rgba(0,0,0,.08);
}

.igx-calendar {
--ig-size: 2;
}

.info {
display: flex;
justify-content: center;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.calendar-wrapper {
--ig-size: 2;

max-width: 700px;
min-width: 200px;
margin: 8px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.calendar-wrapper {
--ig-size: 2;

max-width: 400px;
min-width: 200px;
margin: 8px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
}

.igx-calendar {
--ig-size: 2;

box-shadow: elevation(4);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
min-width: 200px;
margin: 8px;
}

:host {
igx-years-view {
--ig-size: 2;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
}

.igx-calendar {
--ig-size: 2;

border-radius: 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ igx-card {
max-width: 400px;
margin: 20px;
}

igx-month-picker {
--ig-size: 2;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.card-wrapper {
max-width: 400px;
}

igx-month-picker {
--ig-size: 2;
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
@use '../../../../variables' as *;

igx-month-picker {
max-width: 400px;
margin: 20px;
--ig-size: 2;

max-width: 400px;
}

$my-calendar-theme: calendar-theme(
$border-radius: 15px,
$content-background: #011627,
$picker-background: #011627,
$month-current-foreground: #ECAA53,
$month-hover-background: #ECAA53,
$year-current-foreground: #ECAA53,
$year-hover-foreground: #D37B08,
$navigation-color: #ECAA53,
$picker-hover-foreground: #D37B08,
$navigation-hover-color: #D37B08,
$picker-foreground: #ECAA53
$border-radius: 15px,
$content-background: #011627,
$picker-background: #011627,
$month-current-foreground: #ecaa53,
$month-hover-background: #ecaa53,
$year-current-foreground: #ecaa53,
$year-hover-background: #ecaa53,
$navigation-color: #ecaa53,
$picker-hover-foreground: #d37b08,
$navigation-hover-color: #d37b08,
$picker-foreground: #ecaa53
);

:host ::ng-deep {
Expand Down

0 comments on commit 7a93778

Please sign in to comment.