Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
fix: add metadata grid section
Browse files Browse the repository at this point in the history
Add section for metadata row to grid
Rename `reference-page` to `document-page`
Add style for `no-sidebar`

fix #335
  • Loading branch information
Schalk Neethling committed Dec 7, 2020
1 parent 56e3beb commit 07099c3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions sass/grid/_reference.scss → sass/grid/_document.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
}
}

.reference-page {
.document-page {
.page-header,
.titlebar-container,
.breadcrumbs-locale-container,
.page-content-container,
.metadata,
.page-footer {
grid-column: 1/2;

Expand Down Expand Up @@ -51,10 +52,14 @@
grid-template-columns: 100%;
}

.page-footer {
.metadata {
grid-row: 6/7;
}

.page-footer {
grid-row: 7/8;
}

@media #{$mq-large-desktop-and-up} {
.titlebar-container {
grid-row: 2/3;
Expand All @@ -71,11 +76,20 @@
margin: 0 auto;
max-width: $max-width-default;
width: 100%;

&.no-sidebar {
grid-template-columns: 100%;
grid-template-rows: 1fr;
}
}

.page-footer {
.metadata {
grid-row: 5/6;
}

.page-footer {
grid-row: 6/7;
}
}

/* The toc, sidebar, and main elements are
Expand Down
2 changes: 1 addition & 1 deletion sass/mdn-minimalist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@

@import "./utils/utils";

@import "./grid/reference";
@import "./grid/document";
@import "./grid/standard";

0 comments on commit 07099c3

Please sign in to comment.