Skip to content

Commit e4fd8c0

Browse files
committed
Move custom docs gutter to new class
1 parent e4d342d commit e4fd8c0

File tree

8 files changed

+10
-16
lines changed

8 files changed

+10
-16
lines changed

site/assets/scss/_layout.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
.bd-layout {
1+
.bd-gutter {
22
--bs-gutter-x: #{$bd-gutter-x};
3+
}
4+
5+
.bd-layout {
36

47
@include media-breakpoint-up(lg) {
58
display: grid;

site/assets/scss/_masthead.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@
5555
padding: .8rem 2rem;
5656
}
5757

58-
.bd-masthead-followup,
59-
.bd-masthead .container-xxl {
60-
--bs-gutter-x: #{$bd-gutter-x};
61-
}
62-
6358
.masthead-followup-icon {
6459
padding: 1rem;
6560
background-color: currentColor;

site/assets/scss/_navbar.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
background-image: linear-gradient(to bottom, rgba(var(--bd-violet-rgb), 1), rgba(var(--bd-violet-rgb), .95));
55
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15), inset 0 -1px 0 rgba(0, 0, 0, .15);
66

7-
.container-xxl {
8-
--bs-gutter-x: #{$bd-gutter-x};
9-
}
10-
117
.navbar-toggler {
128
padding: 0;
139
border: 0;

site/layouts/_default/docs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ define "main" }}
2-
<div class="container-xxl mt-3 my-md-4 bd-layout">
2+
<div class="container-xxl bd-gutter mt-3 my-md-4 bd-layout">
33
<aside class="bd-sidebar">
44
<div class="offcanvas-lg offcanvas-start" id="bdSidebar" aria-labelledby="bdSidebarOffcanvasLabel">
55
<div class="offcanvas-header border-bottom">

site/layouts/_default/single.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ define "main" }}
22
<header class="py-5 border-bottom">
3-
<div class="container pt-md-1 pb-md-4">
3+
<div class="container-xxl bd-gutter pt-md-1 pb-md-4">
44
<div class="row">
55
<div class="col-xl-8">
66
<h1 class="bd-title mt-0">{{ .Title | markdownify }}</h1>
@@ -25,7 +25,7 @@ <h1 class="bd-title mt-0">{{ .Title | markdownify }}</h1>
2525
</header>
2626

2727
<main class="bd-content order-1 py-5" id="content">
28-
<div class="container">
28+
<div class="container-xxl bd-gutter">
2929
{{ .Content }}
3030

3131
{{ if eq .Title "Examples" }}

site/layouts/partials/docs-navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<header class="navbar navbar-expand-lg navbar-dark bd-navbar sticky-top">
2-
<nav class="container-xxl flex-wrap flex-lg-nowrap" aria-label="Main navigation">
2+
<nav class="container-xxl bd-gutter flex-wrap flex-lg-nowrap" aria-label="Main navigation">
33
{{- if eq .Layout "docs" }}
44
<button class="navbar-toggler p-1" type="button" data-bs-toggle="offcanvas" data-bs-target="#bdSidebar" aria-controls="bdSidebar" aria-expanded="false" aria-label="Toggle docs navigation">
55
{{ partial "icons/hamburger.svg" (dict "class" "bi" "width" "24" "height" "24") }}

site/layouts/partials/home/masthead-followup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="container-xxl masthead-followup">
1+
<div class="container-xxl bd-gutter masthead-followup">
22
<div class="col-lg-7 mx-auto pb-3 mb-3 mb-md-5 text-md-center">
33
<div class="masthead-followup-icon d-inline-block mb-3" style="color: var(--bs-indigo);">
44
<svg class="bi fs-1"><use xlink:href="#code"></use></svg>

site/layouts/partials/home/masthead.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="bd-masthead mb-3" id="content">
2-
<div class="container-xxl">
2+
<div class="container-xxl bd-gutter">
33
<div class="col-md-8 mx-auto text-center">
44
<a class="d-block d-sm-inline-block py-2 px-3 mb-4 text-dark text-decoration-none rounded-3 masthead-notice" href="https://blog.getbootstrap.com/2021/08/04/bootstrap-5-1-0/">
55
<strong>New in v5.1:</strong> CSS Grid, offcanvas navbars, improved utilities, and more!

0 commit comments

Comments
 (0)