Skip to content

Commit

Permalink
fix: jumbotron image positioned off-screen
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviergoulet5 committed Dec 15, 2023
1 parent f3f5c96 commit b15a436
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ headline: |
subtitle: Building an open source ecosystem for <br>cloud native architectures with Enterprise Java
jumbotron_btn_class: btn btn-secondary
jumbotron_class: col-xs-24
header_wrapper_class: header-wrapper header-home-bg-img
custom_jumbotron_class: col-xs-24
custom_jumbotron: |
<p>Latest Release: Jakarta EE 10 now available</p>
Expand Down
2 changes: 1 addition & 1 deletion less/_variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
@dropdown-menu-left-panel-bg:@brand-primary;
@dropdown-menu-right-panel-bg:darken(@dropdown-menu-left-panel-bg, 10%);

@header-default-bg-img:url('images/jumbotron-home.jpg');
@header-home-bg-img:url('images/jumbotron-home.jpg');
@header-secondary-bg-img:url('images/jumbotron-secondary.jpg');

@header-row-padding-bottom:20px;
Expand Down
19 changes: 9 additions & 10 deletions less/components/jumbotron.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,17 @@
min-width: unset;
}
}
&.header-default-bg-img {
background-position: 90% 0;
&.header-home-bg-img {
background-position: 90% 0;

@media (min-width: @screen-sm-min) {
background-position: -230px 0;
}
@media (min-width: @screen-sm-min) {
background-position: -230px 0;
}

@media (min-width: 1400px) {
background-position: left center;
}

@media (min-width: 1400px) {
background-position: left center;
}
}
&.header-secondary-bg-img {
.featured-jumbotron {
min-height:300px;
padding-top: 200px;
Expand Down

0 comments on commit b15a436

Please sign in to comment.