Skip to content

Commit 9aab61e

Browse files
committed
chore(*): update carousel sample alignment
1 parent cd6c913 commit 9aab61e

2 files changed

Lines changed: 32 additions & 11 deletions

File tree

src/app/layouts/carousel/carousel-animations-sample/carousel-animations-sample.component.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="carousel-animation-wrapper">
22
<div class="action-wrapper">
3-
<span style="margin: 0 5px 0 10px;">Current animation: </span>
4-
<span style="max-width: 100px;">
3+
<span>Current animation: </span>
4+
<span class="select-container">
55
<igx-select #select [(ngModel)]="carousel.animationType">
66
<igx-select-item *ngFor="let animation of animations" [value]="animation">
77
{{animation | titlecase}}
@@ -17,15 +17,15 @@
1717
<igx-card-header>
1818
<h4 igxCardHeaderTitle>{{slide.heading}}</h4>
1919
</igx-card-header>
20-
20+
2121
<igx-card-content>
2222
<p>{{slide.description}}</p>
2323
</igx-card-content>
24-
24+
2525
<igx-card-media>
2626
<img [src]="slide.image">
2727
</igx-card-media>
28-
28+
2929
<igx-card-actions>
3030
<a igxButton href="{{slide.link}}" target="_blank" rel="noopener" style="text-decoration: none;" igxStart>visit page</a>
3131
</igx-card-actions>
@@ -36,3 +36,4 @@ <h4 igxCardHeaderTitle>{{slide.heading}}</h4>
3636
</igx-carousel>
3737
</div>
3838
</div>
39+

src/app/layouts/carousel/carousel-animations-sample/carousel-animations-sample.component.scss

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,55 @@
55
justify-content: center;
66
height: 100%;
77
padding: 10px;
8-
8+
99
img {
1010
width: 100%;
1111
}
1212
}
13-
13+
1414
.carousel-wrapper {
1515
max-height: 600px;
1616
height: 100%;
1717
width: 90%;
1818
margin: 20px auto;
1919
}
20-
20+
2121
.action-wrapper {
2222
height: 40px;
2323
width: 70%;
2424
display: flex;
2525
align-items: baseline;
2626
margin-bottom: 1rem;
27-
margin-left: 1rem;
27+
margin-left: 5.7rem;
2828
}
29-
29+
3030
.carousel-animation-wrapper {
3131
height: 700px;
3232
margin: 16px auto;
3333
display: flex;
3434
flex-flow: column;
3535
}
36-
36+
3737
.igx-card {
3838
box-shadow: none;
3939
}
40+
41+
.select-container {
42+
margin-left: 10px;
43+
}
44+
45+
span:first-child {
46+
position: relative;
47+
bottom: 2px;
48+
}
49+
50+
igx-select {
51+
width: 150px;
52+
}
53+
54+
::ng-deep {
55+
.input.igx-input-group__input {
56+
top: 10px;
57+
left: 10px;
58+
}
59+
}

0 commit comments

Comments
 (0)