change docs home

This commit is contained in:
MunifTanjim 2017-12-29 23:12:13 +06:00
parent 2f8838a635
commit bc9254dc86
No known key found for this signature in database
GPG key ID: 9FA86B9EC363F224
8 changed files with 29 additions and 7 deletions

View file

@ -3,8 +3,3 @@ title: Docs
menu: main
weight: -240
---
* [Components](/docs/components)
* [Content](/docs/content)
* [Layout](/docs/layout)
* [Utilities](/docs/utilities)

View file

@ -1,3 +1,4 @@
---
title: Components
description: PaperCSS Components
---

View file

@ -1,3 +1,4 @@
---
title: Content
description: PaperCSS Content
---

View file

@ -1,3 +1,4 @@
---
title: Layout
description: PaperCSS Layout
---

View file

@ -1,3 +1,4 @@
---
title: Utilities
description: PaperCSS Utilities
---

View file

@ -6,9 +6,25 @@
{{ .Content }}
<div class='row flex-spaces'>
{{ range .Sections }}
<div class='collapsible full-width'>
<input id='collapsible-section-{{ .Title | urlize }}' type='checkbox' name='collapsible-section' checked>
<label for="collapsible-section-{{ .Title | urlize }}">{{ .Title }}</label>
<div class='collapsible-body'>
<div class='row'>
{{ range .Pages }}
{{ .Render "li" }}
{{ end }}
</div>
</div>
</div>
{{ end }}
{{ range .Pages }}
{{ .Render "li" }}
{{ end }}
</div>
</div>

View file

@ -1,9 +1,12 @@
<div class='sm-12 md-4 col sidebar'>
{{ range .Site.Sections }}
<div class='paper'>
<h3 class='sidebar-title' style='text-align:center'>
<a href='/docs'>PaperCSS Documentation</a>
</h3>
<div class='row'>
{{ range .Sections }}
<div class='collapsible'>
<div class='collapsible full-width'>
<input id='collapsible-{{ .Title | urlize }}' type='radio' name='collapsible'>
<label for="collapsible-{{ .Title | urlize }}">{{ .Title }}</label>
<div class="collapsible-body">

View file

@ -37,6 +37,10 @@ img.no-responsive {
.demo-title:hover + .to-top {
opacity: 0
}
.sidebar .collapsible {
.sidebar-title a {
color: inherit;
background: none;
}
.collapsible.full-width {
width: 100%;
}