Skip to content

Commit

Permalink
[BUGFIX] Use percentage for top content carousel width (#376)
Browse files Browse the repository at this point in the history
The carousel width for the top-content carousel is calculated via css-calc. When using 'vw' for the calculation the results are not correct sometimes. In this case we can just use a percentage, because the top-content is always 100% window width.
  • Loading branch information
hputzek authored and Anna Färber committed Jan 10, 2018
1 parent 5c918ec commit c150ca8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
// Align caption with content
.top-content {
.carousel-caption {
left: calc(~'(100vw - (@{container-large-desktop} - @{grid-gutter-width})) / 2');
left: calc(~'(100% - (@{container-large-desktop} - @{grid-gutter-width})) / 2');
width: 45%;
}
}
Expand Down

0 comments on commit c150ca8

Please sign in to comment.