Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions assets/css/v2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@

/* vars for the primary grid setup */
--grid-sidebar: 24rem;
--grid-sidebar-gutter: 3rem;
--grid-content: minmax(34rem, 50rem);
--grid-content-mobile: minmax(20rem, 50rem);
--grid-side-callout: minmax(18rem, 26rem);
Expand Down Expand Up @@ -353,9 +354,8 @@ nav {
.content-layout {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: var(--breadcrumb-max-height) 1fr;
grid-template-rows: 1fr;
z-index: 1;
margin-top: 2rem;
}

.docs-container {
Expand Down Expand Up @@ -427,6 +427,7 @@ nav {

@media (min-width: 88em) {
.base-layout {
--grid-column-gutter: 4.5rem;
display: grid;
grid-template-rows: repeat(2, auto);
column-gap: var(--grid-column-gutter);
Expand All @@ -435,6 +436,7 @@ nav {

.text-content {
grid-template-columns: var(--grid-content) var(--grid-side-callout);
grid-template-rows: 70px auto;
column-gap: var(--grid-column-gutter);
}

Expand All @@ -445,12 +447,19 @@ nav {
.main-layout {
display: grid;
grid-template-columns: var(--sidebar-width) 1fr;
column-gap: var(--grid-column-gutter);
column-gap: var(--grid-sidebar-gutter);
}

.content-layout {
display: grid;
grid-template-columns: var(--grid-content) var(--grid-side-callout);
grid-template-columns: 1fr minmax(
auto,
calc(
var(--grid-content) +
var(--grid-side-callout) +
var(--grid-column-gutter)
)
) 1fr;
column-gap: var(--grid-column-gutter);
}

Expand All @@ -472,6 +481,11 @@ nav {
}
}

/* Handles different flow-gap of list page */
.list-page.text-content {
grid-template-rows: calc(70px + var(--flow-gap)) auto;
}

.api {
margin: 2rem 0 2rem 2rem;
width: 100%;
Expand Down
14 changes: 7 additions & 7 deletions layouts/_default/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
</div>

<section class="content-layout">
<section class="breadcrumb-layout" data-mf="true" style="display: none;">
{{ if not .IsHome }}
{{ if not (in .Params.display_breadcrumb "false" ) }}
{{ partial "breadcrumb" .}}
{{ end }}
{{ end }}
</section>
<div class="text-content">
<section class="breadcrumb-layout" data-mf="true" style="display: none;">
{{ if not .IsHome }}
{{ if not (in .Params.display_breadcrumb "false" ) }}
{{ partial "breadcrumb" .}}
{{ end }}
{{ end }}
</section>
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ if eq .Page.Draft true }}{{ partial "draft-badge.html" . }}{{ end }}
Expand Down
14 changes: 7 additions & 7 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
</div>

<section class="content-layout" data-mf="true" style="display: none">
<section class="breadcrumb-layout">
{{ if not .IsHome }}
{{ if not (in .Params.display_breadcrumb "false" ) }}
{{ partial "breadcrumb" .}}
{{ end }}
{{ end }}
</section>
<div class="text-content list-page">
<section class="breadcrumb-layout">
{{ if not .IsHome }}
{{ if not (in .Params.display_breadcrumb "false" ) }}
{{ partial "breadcrumb" .}}
{{ end }}
{{ end }}
</section>
<h1>{{ .Title }}</h1>
{{ .Content }}

Expand Down
Loading