From 3ab3a9d09955772ec56ddadbba49954b4edd6a3e Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Tue, 6 Nov 2018 18:52:37 +0800 Subject: Update the Docs completely --- docs/src/layout/navbar.pug | 82 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 docs/src/layout/navbar.pug (limited to 'docs/src/layout/navbar.pug') diff --git a/docs/src/layout/navbar.pug b/docs/src/layout/navbar.pug new file mode 100644 index 0000000..45417aa --- /dev/null +++ b/docs/src/layout/navbar.pug @@ -0,0 +1,82 @@ +extends ../_layout/_docs-layout.pug + +block variables + - var slug = 'navbar' + - var parent = 'layout' + - var title = 'Navbar - Layout - Spectre.css CSS Framework' + - var description = 'Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.' + +block docs-content + +docs-heading('navbar', 'Navbar') + include ../_layout/_ad-g.pug + + p Navbar is a layout container that appears in the header of apps and websites. + + .docs-demo.columns + .column + .navbar + .navbar-section + a.navbar-brand.text-bold.mr-2(href="#navbar") SPECTRE.CSS + a.btn.btn-link(href="#navbar") Docs + a.btn.btn-link(href="https://github.com/picturepan2/spectre") GitHub + .navbar-section + .input-group.input-inline + input.form-input(type="text" placeholder="search") + button.btn.btn-primary.input-group-btn Search + + p + | The navbar component can include logo brand, nav links and buttons, search box or any combination of those elements. + | Each section with the #[code navbar-section] class will be evenly distributed in the container. + + pre.code(data-lang='HTML') + code + :highlight(lang="html") + + + p + | You can use #[code navbar-center] class to have a centered section. + + .docs-demo.columns + .column.col-12 + .navbar + .navbar-section + a.btn.btn-link(href="#navbar") Docs + a.btn.btn-link(href="#navbar") Examples + .navbar-center + img(src="../img/spectre-logo.svg" alt="Spectre.css") + .navbar-section + a.btn.btn-link(href="https://twitter.com/spectrecss") Twitter + a.btn.btn-link(href="https://github.com/picturepan2/spectre") GitHub + + pre.code(data-lang='HTML') + code + :highlight(lang="html") + + + include ../_layout/_ad-c.pug + + include ../_layout/_footer.pug \ No newline at end of file -- cgit v1.3.1-26-gb76a