File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
themes/osi/template-parts Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
33 * Template for displaying a board member in a side-by-side layout:
4- * Left column (header) is 30% wide and sticky; right column is 70% wide.
4+ * - Left column (header) is 30% width, sticky under the site header.
5+ * - Right column (main content) is 70% width, scrolls normally.
6+ * - The wrapper spans 100% of the browser width.
57 *
68 * @package osi
79 */
2931</article>
3032
3133<style>
32- /*
33- The container for both columns:
34- - We use flex to lay out the left and right columns.
35- - We leave some gap if needed.
36- */
34+ /* Make the wrapper fill the entire screen width */
3735.board-member-wrapper {
36+ width: 100%;
37+ max-width: none;
38+ margin: 0;
39+ padding: 0;
3840 display: flex;
39- align-items: flex-start; /* So columns align at the top */
40- gap: 0; /* adjust as desired */
41+ align-items: flex-start; /* top-align columns */
4142}
4243
4344/* LEFT COLUMN: 30% width, sticky under the site header */
4445.board-member-header {
4546 position: sticky;
46- top: 120px; /* match this to your site header height so there's no overlap */
47+ top: 120px; /* adjust to your site header height */
4748 width: 30%;
48- flex-shrink: 0; /* prevents the left column from shrinking */
49+ flex-shrink: 0; /* don't let the left column shrink */
50+ background-color: #fff; /* optional if you need a background */
51+ padding: 20px;
4952 box-sizing: border-box;
5053}
5154
You can’t perform that action at this time.
0 commit comments