Skip to content

Commit 100f92e

Browse files
committed
refactor(calendar): update samples styles
1 parent bfbdfc9 commit 100f92e

File tree

18 files changed

+74
-21
lines changed

18 files changed

+74
-21
lines changed

src/app/scheduling/calendar/calendar-days-view/calendar-days-view.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
min-width: 200px;
44
margin: 8px;
55
}
6+
7+
.igx-calendar {
8+
--ig-size: 2;
9+
}

src/app/scheduling/calendar/calendar-months-view/calendar-months-view.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
min-width: 200px;
44
margin: 8px;
55
}
6+
7+
.igx-calendar {
8+
--ig-size: 2;
9+
}

src/app/scheduling/calendar/calendar-rtl-sample/calendar-rtl-sample.component.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
$border-color: color($color: gray, $variant: 300);
44

55
igx-calendar {
6+
--ig-size: 2;
7+
68
border: 1px solid $border-color;
79
border-radius: 6px;
810
}

src/app/scheduling/calendar/calendar-sample-1/calendar-sample-1.component.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
margin: 8px;
55
}
66

7-
.igx-calendar{
7+
.igx-calendar {
8+
--ig-size: 2;
9+
810
box-shadow: 0 1px 3px 0 rgba(0,0,0,.26),
911
0 1px 1px 0 rgba(0,0,0,.12),
1012
0 2px 1px -1px rgba(0,0,0,.08);

src/app/scheduling/calendar/calendar-sample-2/calendar-sample-2.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
border-radius: 6px;
99
}
1010

11+
.igx-calendar {
12+
--ig-size: 2;
13+
}
14+
1115
.location-wrapper {
1216
min-width: 200px;
1317
max-width: 640px;

src/app/scheduling/calendar/calendar-sample-3/calendar-sample-3.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<igx-calendar #calendar selection="multi" (selected)="onSelection($event)" (viewDateChanged)="viewDateChanged($event)" (activeViewChanged)="activeViewChanged($event)"></igx-calendar>
44
</article>
55
</div>
6-
<div class="calendar-section" style="width: calc(100% - 324px)">
6+
<div class="calendar-section">
77
<div class="selected-data-area">
88
<div class="logContainer">
99
<div class="highlight">

src/app/scheduling/calendar/calendar-sample-3/calendar-sample-3.component.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
.igx-calendar{
1+
.igx-calendar {
2+
--ig-size: 2;
3+
24
box-shadow: 0 1px 3px 0 rgba(0,0,0,.26),
35
0 1px 1px 0 rgba(0,0,0,.12),
46
0 2px 1px -1px rgba(0,0,0,.08);
@@ -7,11 +9,12 @@
79
:host {
810
display: flex;
911
width: 100%;
12+
gap: 16px;
1013
flex-flow: row wrap;
1114
}
1215

1316
button {
14-
margin: 8px 0px;
17+
margin: 8px 0;
1518
}
1619

1720
.calendar-wrapper {
@@ -20,10 +23,10 @@
2023
}
2124

2225
.calendar-section {
23-
height: 383px;
26+
height: 336px;
2427
}
2528

26-
.selected-data-area{
29+
.selected-data-area {
2730
overflow-y: auto;
2831
max-height: 500px;
2932
width: 100%;

src/app/scheduling/calendar/calendar-sample-4/calendar-sample-4.component.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ $border-color: color($color: gray, $variant: 300);
1010
margin: 8px;
1111
}
1212

13-
.igx-calendar{
13+
.igx-calendar {
14+
--ig-size: 2;
15+
1416
border-radius: 4px;
1517
}

src/app/scheduling/calendar/calendar-sample-5/calendar-sample-5.component.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ $border-color: color($color: gray, $variant: 300);
1010
margin: 8px;
1111
}
1212

13-
.igx-calendar{
13+
.igx-calendar {
14+
--ig-size: 2;
15+
1416
border-radius: 4px;
1517
}

src/app/scheduling/calendar/calendar-sample-6/calendar-sample-6.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
0 2px 1px -1px rgba(0,0,0,.08);
88
}
99

10+
.igx-calendar {
11+
--ig-size: 2;
12+
}
13+
1014
.info {
1115
display: flex;
1216
justify-content: center;

0 commit comments

Comments
 (0)