Skip to content

Commit 7cc1481

Browse files
Anil KommareddiCopilot
andcommitted
Fix hero slider: break out to full viewport width
The Swiper slider was constrained inside Bootstrap's .container div. Added CSS to break out to full 100vw: width: 100vw; position: relative; left: 50%; transform: translateX(-50%) This restores the original full-bleed hero appearance and makes the transparent logo visible against the dark slider background. Also suppressed the legacy .rs-p-wp-fix <p> tag and zero-ed the wpb_content_element margin-bottom for the slider wrapper. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 742bc41 commit 7cc1481

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

index.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,24 @@ <h2 class="ore-slide-title">ORE is Always Evolving</h2>
256256
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css">
257257
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
258258
<style>
259-
.ore-hero-slider { width:100%; height:650px; max-height:65vh; }
259+
.ore-hero-slider {
260+
/* Break out of Bootstrap container to full viewport width */
261+
width: 100vw;
262+
position: relative;
263+
left: 50%;
264+
transform: translateX(-50%);
265+
height: 650px;
266+
max-height: 65vh;
267+
/* Prevent scrollbar on overflow during transition */
268+
overflow: hidden;
269+
}
270+
/* Remove gutters from the row/column wrapping the slider */
271+
.wpb_revslider_element.wpb_content_element {
272+
margin-bottom: 0 !important;
273+
}
274+
.wpb_revslider_element > p.rs-p-wp-fix {
275+
display: none;
276+
}
260277
.ore-hero-slider .swiper-slide {
261278
background-size:cover; background-position:center; background-repeat:no-repeat;
262279
position:relative; display:flex; align-items:center;

0 commit comments

Comments
 (0)