Interim commit.
[yaffs-website] / vendor / geedmo / yamm3 / demo / jade / index.jade
1 doctype
2 html(lang='en')
3   head
4     meta(charset='utf-8')
5     meta(http-equiv='X-UA-Compatible', content='IE=edge')
6     meta(name='viewport', content='width=device-width, initial-scale=1.0')
7     meta(name='description', content='Yet another megamenu for Bootstrap 3')
8     meta(name='author', content='@geedmo')
9     title Yamm!3 Megamenu for Bootstrap3
10
11     // Bootstrap and demo CSS 
12     link(href='demo/components/bootstrap/dist/css/bootstrap.min.css', rel='stylesheet')
13     link(href='demo/components/bootstrap/dist/css/bootstrap-theme.min.css', rel='stylesheet')
14     link(href='demo/css/demo.css', rel='stylesheet')
15
16     // Yamm styles
17     link(href='yamm/yamm.css', rel='stylesheet')
18
19     // HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries 
20     //if lt IE 9
21       script(src='https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js')
22       script(src='https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js')
23
24   body
25
26     include navbar-fixed
27
28     .jumbotron.intro
29
30       .container
31
32         h1.page-header Hello, Yamm 3!
33         p
34           | This is
35           i Yet another megamenu 
36           | for Bootstrap 3 from Twitter. Lightweight and pure CSS megamenu that uses the standard navbar markup and the fluid grid system classes from Bootstrap 3. Work for fixed and responsive layout and has the facility to include (almost) any Bootstrap elements.
37         p This project is currently hosted on Github and is the sequel to Bootstrap2 Yamm 
38           small: sup: a.text-muted(href="http://geedmo.github.com/yamm", title="Yamm for Bootstrap 2", target="_blank")
39             em.glyphicon.glyphicon-new-window
40         br
41         p
42           a.btn.btn-default.btn-lg(href='https://github.com/geedmo/yamm3') View on Github
43           |  
44           a.btn.btn-primary.btn-lg(href='https://github.com/geedmo/yamm3/archive/master.zip') Download
45
46     .container
47       .row
48         .col-md-4
49           p.lead Markup
50           :markdown
51             1. Reuse navbar markup and add class `.yamm` at the top.
52
53             2. Then add your markup into the `.dropdown-menu`
54
55             3. Optionally use `.yamm-content` to wrap content with padding.
56         
57         .col-md-8
58           pre.prettyprint
59             | <nav class="navbar yamm navbar-default " role="navigation">
60             | ...
61             |      <ul class="nav navbar-nav">
62             |        <li class="dropdown">
63             |          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>
64             |          <ul class="dropdown-menu">
65             |            <li>
66             |                <div class="yamm-content">
67             |                   <div class="row"> 
68             |                     ...
69             |            </li>
70             |          </ul>
71             |        </li>
72             |      </ul>
73             | ...
74             | </nav>
75
76     .jumbotron
77       .container
78         p.lead Grid Example
79         include navbar-grid
80     .container
81       .row
82         .col-md-4
83           p.lead Width
84           :markdown
85             By default every mega-dropdown will take the content size so is possible to use add `.yamm-fw` to `.dropdown` to expand it fullwidth
86
87             Yamm works better with fullwidth menus.
88
89         .col-md-8
90           pre.prettyprint
91             | <nav class="navbar yamm navbar-default " role="navigation">
92             | ...
93             |      <ul class="nav navbar-nav">
94             |        <li class="dropdown yamm-fw">
95             |              ...
96             |        </li>
97             |      </ul>
98             | ...
99             | </nav>
100
101     .jumbotron
102       .container
103         p.lead More components
104         include navbar-more
105
106     .container
107       .row
108         .col-md-4
109           p.lead JavaScript
110           :markdown
111             This code will prevent unexpected menu close when using some components (like accordion, forms, etc)
112
113         .col-md-8
114           pre.prettyprint
115             | $(document).on('click', '.yamm .dropdown-menu', function(e) {
116             |   e.stopPropagation()
117             | })
118
119       footer
120           hr
121           .row
122             .col-sm-4
123               p
124                 | MIT © Geedmo 2014
125             .col-sm-8
126               .social
127                 ul.list-inline.text-right
128                   li
129                     iframe.github-btn(src='http://ghbtns.com/github-btn.html?user=geedmo&repo=yamm3&type=watch&count=true', allowtransparency='true', frameborder='0', scrolling='0', width='100px', height='20px')
130                   li
131                     iframe.github-btn(src='http://ghbtns.com/github-btn.html?user=geedmo&repo=yamm3&type=fork&count=true', allowtransparency='true', frameborder='0', scrolling='0', width='98px', height='20px')
132                   li
133                     a.twitter-share-button(href='https://twitter.com/share', data-lang='en') Tweet
134
135
136     // /container 
137
138     // Bootstrap core JavaScript
139     script(src='demo/components/jquery/dist/jquery.js')
140     script(src='demo/components/bootstrap/dist/js/bootstrap.min.js')
141     script(src='https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?lang=css')
142
143     script.
144       $(function() {
145         window.prettyPrint && prettyPrint()
146         $(document).on('click', '.yamm .dropdown-menu', function(e) {
147           e.stopPropagation()
148         })
149       })
150     // tweet and share :)
151     script
152       | !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");