Welcome to mirror list, hosted at ThFree Co, Russian Federation.

nav.pug « components « src « docs - github.com/picturepan2/spectre.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aa09fedecb447ba487b741f2d63e0beb75c9af8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
extends ../_layout/_docs-layout.pug

block variables
  - var slug = 'nav'
  - var parent = 'components'
  - var title = 'Nav - Components - Spectre.css CSS Framework'
  - var description = 'Spectre.css CSS Framework 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('nav', 'Nav')
    include ../_layout/_ad-g.pug

    .docs-demo.columns
      .column.col-6.col-xs-12
        ul.nav
          li.nav-item
            a(href="#nav") Elements
          li.nav-item.active
            a(href="#nav") Layout
            ul.nav
              li.nav-item
                a(href="#nav") Flexbox grid
              li.nav-item
                a(href="#nav") Responsive
              li.nav-item
                a(href="#nav") Navbar
              li.nav-item
                a(href="#nav") Empty states
          li.nav-item
            a(href="#nav") Components
          li.nav-item
            a(href="#nav") Utilities

    p
      | Add a container element with the #[code nav] class.
      | And add child elements with the #[code nav-item] class.
      | The #[code nav-item] with the #[code active] class will be highlighted.

    pre.code(data-lang='HTML')
      code
        :highlight(lang="html")
          <ul class="nav">
            <li class="nav-item">
              <a href="#">Elements</a>
            </li>
            <li class="nav-item active">
              <a href="#">Layout</a>
              <ul class="nav">
                <li class="nav-item">
                  <a href="#">Flexbox grid</a>
                </li>
                <li class="nav-item">
                  <a href="#">Responsive</a>
                </li>
                <li class="nav-item">
                  <a href="#">Navbar</a>
                </li>
                <li class="nav-item">
                  <a href="#">Empty states</a>
                </li>
              </ul>
            </li>
            <li class="nav-item">
              <a href="#">Components</a>
            </li>
            <li class="nav-item">
              <a href="#">Utilities</a>
            </li>
          </ul>

    include ../_layout/_ad-c.pug

  include ../_layout/_footer.pug