Skip to content

Commit fc88eef

Browse files
authored
style updates for docs index page (#313)
1 parent 9172ffb commit fc88eef

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

preview-src/docs-ndl.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
:page-role: hub
44
:page-theme: docs
55
:page-hide-nav-title: true
6+
:page-disablefeedback: true
67
:!page-show-home-link:
78
:!toc:
89
:page-toclevels: -1

src/css/docs-ndl.css

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ body.docs-ndl .nav-menu .nav-item > a > strong {
152152
/* toolbar */
153153

154154
body.docs-ndl.hub .toolbar {
155-
visibility: hidden;
155+
/* visibility: hidden; */
156+
display: none;
156157
}
157158

158159
body.docs-ndl.explainer .toolbar {
@@ -200,9 +201,8 @@ body.docs-ndl .doc .flex-column {
200201
}
201202

202203
body.docs-ndl .doc > .sect-header > h1.page:first-child {
203-
margin-top: 0;
204-
/* font-size: var(--font-size-h1); */
205-
margin-bottom: 1.5rem;
204+
margin: var(--docs-ndl-spacer) 0;
205+
line-height: 1;
206206
}
207207

208208
body.docs-ndl.hub .doc div:not(.display) h2 {
@@ -415,10 +415,11 @@ body.docs-ndl #preamble + .sect1 {
415415

416416
/* sections */
417417

418-
body.docs-ndl.hub .sect1,
418+
body.docs-ndl.hub .sect1:not(.banner),
419419
body.docs-ndl.explainer .sect1 {
420420
display: flex;
421421
flex-wrap: wrap;
422+
margin-top: var(--docs-ndl-spacer);
422423
}
423424

424425
body.docs-ndl .paragraph.caption {
@@ -489,7 +490,7 @@ body.docs-ndl.explainer .banner .sectionbody {
489490
}
490491

491492
body.docs-ndl .banner .sectionbody > div.openblock {
492-
flex: 0 0 50%;
493+
flex: 0 0 65%;
493494
}
494495

495496
body.docs-ndl .banner .sectionbody > div.icon {
@@ -727,7 +728,7 @@ body.docs-ndl .cards .sect2 .icon,
727728
body.docs-ndl .widget .icon {
728729
padding: 0;
729730
margin: 0;
730-
width: 100%;
731+
display: flex;
731732
}
732733

733734
body.docs-ndl .cards .sect2 .icon,
@@ -745,7 +746,7 @@ body.docs-ndl .cards .sect2 .icon p {
745746
}
746747

747748
body.docs-ndl .cards .sect2 .icon p div.labels {
748-
display: flex;
749+
display: none;
749750
flex-direction: row;
750751
gap: 0.25rem;
751752
height: min-content;
@@ -791,7 +792,7 @@ body.docs-ndl .lists .sect2 .icon img path {
791792

792793
body.docs-ndl .cards .sect2 h3,
793794
body.docs-ndl .lists .sect2 h3 {
794-
/* flex-grow: 1; */
795+
display: flex;
795796
order: 2;
796797
margin: 0;
797798
font-weight: var(--font-weight-semibold);
@@ -819,14 +820,10 @@ body.docs-ndl .cards .sect2 .paragraph:not(.icon) {
819820
/* flex-grow: 1; */
820821
}
821822

822-
body.docs-ndl .cards .sect2.selectable .paragraph.link:not(.display) {
823+
body.docs-ndl .cards .sect2.selectable .paragraph.link {
823824
display: none;
824825
}
825826

826-
body.docs-ndl .cards .sect2.selectable .paragraph.link.display {
827-
display: flex;
828-
}
829-
830827
body.docs-ndl .cards.selectable .sect2 .paragraph.link,
831828
body.docs-ndl .cards:not(.selectable) .sect2 .paragraph.link {
832829
box-sizing: border-box;

src/css/nav.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ html.is-clipped--nav {
155155
width: 100%;
156156
line-height: var(--nav-line-height);
157157
position: relative;
158+
}
159+
160+
.nav-panel-manu.has-feedback .nav-menu {
158161
margin-bottom: calc(var(--feedback-height) + 1rem);
159162
}
160163

src/css/vars.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@
301301
--doc-line-height: 1.8;
302302
--doc-margin: 0 auto;
303303
--doc-margin--desktop: 0 2rem;
304+
--docs-ndl-spacer: 1.5rem;
304305

305306
/* headers */
306307
--doc-font-size-h1: var(--font-size-h2);

src/partials/nav-ndl.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66

7-
<div class="nav-panel-menu is-active" data-panel="menu">
7+
<div class="nav-panel-menu is-active{{#unless page.attributes.disablefeedback}} has-feedback{{/unless}}" data-panel="menu">
88
<nav class="nav-menu">
99

1010
{{!-- add link back to home --}}

0 commit comments

Comments
 (0)