Skip to content

Commit

Permalink
layout fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shipow authored and pixelastic committed Aug 20, 2018
1 parent 3a39b03 commit d7f11d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/src/_layouts/homepage.pug
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ block content
.max-w-md.m-auto.text-center.px-2
img.mt-3.mb-1(src="assets/docsearch-logo.svg", alt="DocSearch logo" width=480)
.text-2.text-nova.mb-3 The best search experience for docs, integrates in minutes, for free
.text-5.text-telluric.mb-3 Providing search for 900+ docs, and counting
.text-5.text-telluric.mb-3 Providing search for 900+ docs, and counting.
a.c-button.c-button-primary(href="#join-docsearch-program") Join the Program

.bg-moon.px-2
Expand All @@ -23,7 +23,7 @@ block content
.glide__track(data-glide-el="track")
.glide__slides
.glide__slide
img(src="assets/logos/babel.png", alt="DocSearch + Babel", width=60)
img(src="assets/logos/babel.jpg", alt="DocSearch + Babel", width=60)
.glide__slide
img(src="assets/logos/bootstrap.jpg", alt="DocSearch + Bootstrap", width=60)
.glide__slide
Expand Down
10 changes: 5 additions & 5 deletions docs/src/_layouts/two-columns.pug
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ block nav
path(d="M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z")

block content
.bgtb-moon-white-pure.px-2
.bgtb-moon-white-pure
.md_flex.max-w-lg.m-auto
.navigation-sidebar.hidden.absolute.z-90.-m-2.md_m-0.w-100.md_static.bg-white.md_bg-transparent.md_w-25.md_block.md_border-0.text-center.md_text-left
.navigation-sidebar.hidden.absolute.z-90.md_static.bg-white.md_bg-transparent.w-100.md_w-25.md_block.md_border-0.text-center.md_text-left.md_pl-2
// Adding subsections from markdown
.sticky.pin-t.h-100vh.overflow-y-auto.pt-4.md_pt-3.lg_pt-4
.sticky.pin-t.h-100vh.overflow-y-auto.pt-4.md_pt-3.lg_pt-4.w-full
each category in sidebar
.category.text-nebula.poppins.uppercase.mb-1.text-2.md_text-1=category.title
ul.list-reset.pb-1.text-1.mb-1.md_ml-0x
Expand All @@ -36,12 +36,12 @@ block content
li
a.block.py-0x.text-telluric(href=`${page.url}#${heading.anchor}`)=heading.title

.documentation-content.text-1.pt-2.md_pt-3.lg_pt-4.max-w-md.pb-4.md_pl-2
.documentation-content.text-1.pt-2.md_pt-3.lg_pt-4.pb-4.px-2.w_100.md_w-75
.block.md_hidden.mb-1
a(href=site.url) DocSearch
span  > 
a(href=`${site.url}/what-is-docsearch.html`) Documentation
.text-5.lg_text-6.uppercase.tracking-poppins.text-solstice.bold.mb-2=current.title
.text-5.lg_text-7.uppercase.tracking-poppins.text-solstice.bold.mb-2=current.title
!=current.content
// Include the apply form
if current.includeForm
Expand Down
3 changes: 2 additions & 1 deletion docs/src/_styles/docs.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* Content converted form markdown */
.documentation-content {
/* max-width: 700px; */
/* Paragraphs */
p {
@apply .leading-2 my-1;
Expand Down Expand Up @@ -32,7 +33,7 @@
}

.navigation-sidebar{
min-width: 180px;
min-width: 200px;
}

body.navigation-menu-open {
Expand Down

0 comments on commit d7f11d8

Please sign in to comment.