This is how I envision the layout for a full-screen desktop or laptop.
https://i.sstatic.net/7SAPW.png
For medium/smaller devices, my goal is to collapse the right sidebar below the search input area and before the content section.
Smaller Devices (Sidebar collapse)
https://i.sstatic.net/gk8a7.png
I believe utilizing Bootstrap's order
classes can help achieve this design change, but I am unsure about the exact grid layout structure (container, rows, columns) required.
The issue with the current code is that there is a large empty space below the search area on extra-large screens. I aim to have the content area fill this space directly after the search bar.
https://i.sstatic.net/rDag7.png
Here is a complete working example you can copy and paste:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="ie=edge" http-equiv="X-UA-Compatible">
<link href="css/bootstrap.css" rel="stylesheet">
<title>Page Title Here</title>;
<style>
html, body {
height: 100%;
}
div {
border: 1px solid #9fcdff;
}
header {
border: 1px solid #9fcdff;
}
main {
height: 100%;
}
footer div {
border: 1px solid #ff63ba;
padding: 20px;
margin: 0;
}
</style>
</head>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-light bg-light">
<button class="navbar-toggler mr-2" id="nav-button"
type="button"><i class="fas fa-bars"></i></button>
<div class="ml-auto ml-md-0"></div>
<a class="navbar-brand">Website</a>
<i class="ml-md-auto fas fa-cog"></i>
</nav>
</header>
<div class="container-fluid">
<div class="row">
<div class="col-lg-4 col-xl-3 d-none d-lg-block" id="sidebar">
<ul>
<li>Sidebar</li>
</ul>
</div>
<div class="col">
<div class="row">
<div class="col-12 col-xl-9 order-xl-0" id="search-stuff">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="#">Home</a>
</li>
<li class="breadcrumb-item active" aria-current="page">Library</li>
</ol>
</nav>
<form>
<div class="form-group">
<input class="form-control" type="search" placeholder="Search...">
</div>
</form>
</div>
<div class="col-12 col-xl-3 order-xl-1" id="cards-stuff">
<div class="card">
<img class="d-none d-xl-block card-img-top" src="data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%22286%22%20height%3D%22180%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20286%20180%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%23holder_17257b364f9%20text%20%7B%20fill%3Argba(255%2C255%2C255%2C.75)%3Bfont-weight%3Anormal%3Bfont-family%3AHelvetica%2C%20monospace%3Bfont-size%3A14pt%20%7D%20%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22holder_17257b364f9%22%3E%3Crect%20width%3D%22286%22%20height%3D%22180%22%20fill%3D%22%23777%22%3E%3C%2Frect%3E%3Cg%3E%3Ctext%20x%3D%22107.1953125%22%20y%3D%2296.3%22%3E286x180%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make
up the bulk of the card's content.
</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card">
<img class="d-none d-xl-block card-img-top" src="data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%22286%22%20height%3D%22180%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20286%20180%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%23holder_17257b364f9%20text%20%7B%20fill%3Argb...