Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit 7fb74fb

Browse files
committed
fix(carousel): center image when smaller than available space
1 parent a660d2b commit 7fb74fb

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/assets/sass/components/focus.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
.oldie &,
3939
.ie9 & {
4040
width: 1%;
41-
a {height: 69px;}
41+
a {
42+
height: 69px;
43+
}
4244
}
4345

4446
a {
@@ -120,7 +122,8 @@
120122
}
121123
}
122124
}
123-
} // End of media queries
125+
}
126+
// End of media queries
124127

125128
.tab-focus.carousel {
126129
margin-bottom: 55px !important;
@@ -133,6 +136,10 @@
133136
padding: 0 30px !important;
134137
}
135138

139+
.col-sm-7 {
140+
text-align: center;
141+
}
142+
136143
.carousel-indicators {
137144
top: auto !important;
138145
bottom: -35px !important;

src/materials/03-content/05-teaser/05-carousel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<div class="carousel-inner">
3131
<div class="item active">
3232
<h3>Entwicklungspolitik 1</h3>
33-
<p>
33+
<p class="text-center">
3434
<img class="carousel-img" src="http://placehold.it/588x331" alt="image description">
3535
</p>
3636
<div class="spacer"></div>

0 commit comments

Comments
 (0)