Skip to content

Commit e8b059e

Browse files
committed
Fix menu for mobile devices.
1 parent c727ff3 commit e8b059e

File tree

2 files changed

+204
-169
lines changed

2 files changed

+204
-169
lines changed

_layouts/bootstrap.html

Lines changed: 160 additions & 160 deletions
Original file line numberDiff line numberDiff line change
@@ -1,211 +1,211 @@
11
<!doctype html>
2-
<html><head>
3-
<title>
4-
{% if page.title %}
5-
{{ page.title }}
6-
{% else %}
7-
Codeception
8-
{% endif %}
9-
</title>
10-
<meta name="viewport" content="width=device-width, initial-scale=1">
11-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
12-
<link href="http://fonts.googleapis.com/css?family=Philosopher&amp;subset=latin" rel="stylesheet" type="text/css">
13-
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
14-
<link rel="stylesheet" href="/css/codeception.css">
15-
<link rel="stylesheet" href="/css/contributors.css">
16-
<link rel="stylesheet" type="text/css" media="screen" href="/css/syntax.css">
17-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js" type="text/javascript"></script>
18-
<script src="/js/jquery.toc.min.js" type="text/javascript" charset="utf-8"></script>
19-
<script src="/js/contributors.js" type="text/javascript" charset="utf-8"></script>
20-
21-
<link title="Codeception Blog" type="application/rss+xml" rel="alternate" href="/rss.xml">
22-
<link rel="shortcut icon" href="/images/favicon.png">
23-
<link rel="author" href="https://plus.google.com/+Codeception">
2+
<html>
3+
<head>
4+
<title>
5+
{% if page.title %}
6+
{{ page.title }}
7+
{% else %}
8+
Codeception
9+
{% endif %}
10+
</title>
11+
<meta name="viewport" content="width=device-width, initial-scale=1">
12+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
13+
<link href="http://fonts.googleapis.com/css?family=Philosopher&amp;subset=latin" rel="stylesheet" type="text/css">
14+
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
15+
<link rel="stylesheet" href="/css/codeception.css">
16+
<link rel="stylesheet" href="/css/contributors.css">
17+
<link rel="stylesheet" type="text/css" media="screen" href="/css/syntax.css">
18+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js" type="text/javascript"></script>
19+
<script src="/js/jquery.toc.min.js" type="text/javascript" charset="utf-8"></script>
20+
<script src="/js/contributors.js" type="text/javascript" charset="utf-8"></script>
21+
22+
<link title="Codeception Blog" type="application/rss+xml" rel="alternate" href="/rss.xml">
23+
<link rel="shortcut icon" href="/images/favicon.png">
24+
<link rel="author" href="https://plus.google.com/+Codeception">
2425
</head>
25-
2626
<body>{% capture guides %}{% include guides.html %}{% endcapture %}
2727
{% capture modules %}{% include modules.html %}{% endcapture %}
2828
{% capture reference %}{% include reference.html %}{% endcapture %}
29-
30-
3129
<nav class="navbar nav-custom navbar-inverse">
32-
33-
34-
<div class="navbar-header">
35-
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
36-
<span class="sr-only">Toggle navigation</span>
37-
<span class="icon-bar"></span>
38-
<span class="icon-bar"></span>
39-
<span class="icon-bar"></span>
40-
</button>
41-
<a href="/" class="navbar-brand"><img src="/images/toplogo.png" alt="codeception" /></a>
42-
</div>
43-
44-
<div class="navbar-inner">
45-
46-
<div class="follow nav pull-right navbar-text">
47-
<a href="https://twitter.com/codeception" class="twitter-follow-button" data-show-count="false" data-lang="en" data-size="large">Follow @Codeception</a>
48-
<script>!function (d, s, id) {
49-
var js, fjs = d.getElementsByTagName(s)[0];
50-
if (!d.getElementById(id)) {
51-
js = d.createElement(s);
52-
js.id = id;
53-
js.src = "//platform.twitter.com/widgets.js";
54-
fjs.parentNode.insertBefore(js, fjs);
55-
}
56-
}(document, "script", "twitter-wjs");</script>
57-
</div>
58-
59-
60-
<ul class="nav navbar-nav navbar-collapse">
61-
<li>
62-
<a href="/quickstart">Quickstart</a>
63-
</li>
64-
<li>
65-
</li><li class="dropdown">
66-
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> Guides
67-
<b class="caret"></b>
68-
</a>
69-
<ul class="dropdown-menu">
70-
{{ guides }}
71-
</ul>
30+
<div class="navbar-header">
31+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
32+
<span class="sr-only">Toggle navigation</span>
33+
<span class="icon-bar"></span>
34+
<span class="icon-bar"></span>
35+
<span class="icon-bar"></span>
36+
</button>
37+
<a href="/" class="navbar-brand"><img src="/images/toplogo.png" alt="codeception"/></a>
38+
</div>
39+
<div class="navbar-inner">
40+
<div class="follow nav pull-right navbar-text">
41+
<a href="https://twitter.com/codeception" class="twitter-follow-button" data-show-count="false"
42+
data-lang="en" data-size="large">Follow @Codeception</a>
43+
<script>!function (d, s, id) {
44+
var js, fjs = d.getElementsByTagName(s)[0];
45+
if (!d.getElementById(id)) {
46+
js = d.createElement(s);
47+
js.id = id;
48+
js.src = "//platform.twitter.com/widgets.js";
49+
fjs.parentNode.insertBefore(js, fjs);
50+
}
51+
}(document, "script", "twitter-wjs");</script>
52+
</div>
53+
<ul class="nav navbar-nav navbar-collapse collapse menu">
54+
<li>
55+
<a href="/quickstart">Quickstart</a>
56+
</li>
57+
<li>
7258
</li>
7359
<li class="dropdown">
74-
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> Modules
75-
<b class="caret"></b>
76-
</a>
77-
<ul class="dropdown-menu dropdown-modules">
78-
{{ modules }}
79-
</ul>
80-
</li>
81-
60+
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> Guides
61+
<b class="caret"></b>
62+
</a>
63+
<ul class="dropdown-menu">
64+
{{ guides }}
65+
</ul>
66+
</li>
8267
<li class="dropdown">
83-
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> Reference
84-
<b class="caret"></b>
85-
</a>
86-
<ul class="dropdown-menu">
87-
{{ reference }}
88-
</ul>
89-
90-
68+
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> Modules
69+
<b class="caret"></b>
70+
</a>
71+
<ul class="dropdown-menu dropdown-modules">
72+
{{ modules }}
73+
</ul>
74+
</li>
75+
<li class="dropdown">
76+
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> Reference
77+
<b class="caret"></b>
78+
</a>
79+
<ul class="dropdown-menu">
80+
{{ reference }}
81+
</ul>
9182
</li>
92-
9383
<li>
94-
<a href="/video">Video</a>
84+
<a href="/video">Video</a>
9585
</li>
9686
<li>
97-
<a href="/blog">Blog</a>
87+
<a href="/blog">Blog</a>
9888
</li>
9989
<li class="dropdown">
100-
<a class="dropdown-toggle" data-toggle="dropdown" href="http://phptest.club/category/codeception"> Community
101-
<b class="caret"></b>
102-
</a>
103-
<ul class="dropdown-menu">
104-
<li><a href="http://phptest.club/category/codeception">Community Forum</a></li>
105-
<li><a href="http://automated-testing.info/category/codeception">Russian Community</a></li>
106-
<li><a href="http://stackoverflow.com/questions/tagged/codeception">StackOverflow</a></li>
107-
</ul>
108-
109-
90+
<a class="dropdown-toggle" data-toggle="dropdown" href="http://phptest.club/category/codeception">
91+
Community
92+
<b class="caret"></b>
93+
</a>
94+
<ul class="dropdown-menu">
95+
<li><a href="http://phptest.club/category/codeception">Community Forum</a></li>
96+
<li><a href="http://automated-testing.info/category/codeception">Russian Community</a></li>
97+
<li><a href="http://stackoverflow.com/questions/tagged/codeception">StackOverflow</a></li>
98+
</ul>
11099
</li>
111-
112-
<li>
113-
<a href="/credits">Credits</a>
100+
<li>
101+
<a href="/credits">Credits</a>
114102
</li>
115103
<li>
116-
<a href="/install">Install</a>
104+
<a href="/install">Install</a>
117105
</li>
118106
<li>
119-
<a href="/addons">Addons</a>
120-
</li>
107+
<a href="/addons">Addons</a>
108+
</li>
121109
<li>
122-
<a href="/changelog">Changelog</a>
123-
</li>
124-
125-
</ul>
126-
</div>
127-
</div>
110+
<a href="/changelog">Changelog</a>
111+
</li>
112+
</ul>
113+
</div>
114+
</div>
128115
</nav>
116+
<div class="container">
117+
{{ content }}
118+
</div>
119+
<div id="footer">
129120
<div class="container">
130-
{{ content }}
131-
</div>
132-
133-
134-
<div id="footer">
135-
<div class="container">
136121
<div class="row">
137-
<div class="col-sm-4 col-lg-4">
138-
<h3>Credits</h3>
139-
<p>
140-
Codeception is a BDD-styled PHP testing framework, created by <a href="https://twitter.com/davert" target="_blank">Michael Bodnarchuk @davert</a>.
141-
within <a href="http://codegyre.com">Codegyre Developers Team</a>. Logo by <a href="https://twitter.com/adnanblog">Mr. Adnan</a>. OpenSource <strong>MIT Licensed</strong>.
142-
</p>
122+
<div class="col-sm-4 col-lg-4">
123+
<h3>Credits</h3>
143124

144-
<div>
125+
<p>
126+
Codeception is a BDD-styled PHP testing framework, created by <a href="https://twitter.com/davert"
127+
target="_blank">Michael Bodnarchuk
128+
@davert</a>.
129+
within <a href="http://codegyre.com">Codegyre Developers Team</a>. Logo by <a
130+
href="https://twitter.com/adnanblog">Mr. Adnan</a>. OpenSource <strong>MIT Licensed</strong>.
131+
</p>
145132

146-
<a href="https://github.com/codeception/codeception" class="pull-left">
147-
<img src="/images/github.png">
148-
</a>
133+
<div>
149134

150-
<a href="https://twitter.com/codeception" class="pull-left">
151-
<img src="/images/twitter.png">
152-
</a>
135+
<a href="https://github.com/codeception/codeception" class="pull-left">
136+
<img src="/images/github.png">
137+
</a>
153138

154-
<a href="http://www.facebook.com/pages/Codeception/288959711204412" class="pull-left">
155-
<img src="/images/facebook.png">
156-
</a>
139+
<a href="https://twitter.com/codeception" class="pull-left">
140+
<img src="/images/twitter.png">
141+
</a>
157142

158-
<a href="https://plus.google.com/b/108429499160233541695/108429499160233541695/posts" class="pull-left">
159-
<img src="/images/gplus.png">
160-
</a>
143+
<a href="http://www.facebook.com/pages/Codeception/288959711204412" class="pull-left">
144+
<img src="/images/facebook.png">
145+
</a>
161146

162-
</div>
147+
<a href="https://plus.google.com/b/108429499160233541695/108429499160233541695/posts"
148+
class="pull-left">
149+
<img src="/images/gplus.png">
150+
</a>
163151

164-
<div style="clear: both;">
165-
<h4>Sponsored by</h4>
166-
<a href="http://2amigos.us/">
167-
<img src="/images/2amigos.png" alt="Sponsored by 2AmigOS web development and consultancy in Miami" title="Sponsored by 2AmigOS web development and consultancy in Miami">
168-
</a>
169-
</div>
170-
152+
</div>
171153

154+
<div style="clear: both;">
155+
<h4>Sponsored by</h4>
156+
<a href="http://2amigos.us/">
157+
<img src="/images/2amigos.png"
158+
alt="Sponsored by 2AmigOS web development and consultancy in Miami"
159+
title="Sponsored by 2AmigOS web development and consultancy in Miami">
160+
</a>
161+
</div>
172162

173163

174-
</div>
164+
</div>
175165

176-
<div class="col-sm-8 col-lg-8">
177-
<h3>Thanks to all our contributors</h3>
178-
<div id="contributors"></div>
166+
<div class="col-sm-8 col-lg-8">
167+
<h3>Thanks to all our contributors</h3>
179168

169+
<div id="contributors"></div>
170+
171+
</div>
180172
</div>
181-
</div>
182-
</div>
183173
</div>
174+
</div>
184175
<div id="copyright">
185-
© 2011&ndash;<span data-toggle="tooltip" alt="" title="YOU BROKE MY PHP! FIX IT ASAP!">&lt;?= date('Y') ?&gt;</span>
186-
<!-- You broke my PHP, man! -->
187-
</div>
176+
© 2011&ndash;<span data-toggle="tooltip" alt="" title="YOU BROKE MY PHP! FIX IT ASAP!">&lt;?= date('Y') ?&gt;</span>
177+
<!-- You broke my PHP, man! -->
178+
</div>
188179

189180

190-
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
191-
<script type="text/javascript">
181+
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
182+
<script type="text/javascript">
192183

193184
var _gaq = _gaq || [];
194185
_gaq.push(['_setAccount', 'UA-1899308-9']);
195186
_gaq.push(['_trackPageview']);
196187

197-
(function() {
198-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
199-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
200-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
188+
(function () {
189+
var ga = document.createElement('script');
190+
ga.type = 'text/javascript';
191+
ga.async = true;
192+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
193+
var s = document.getElementsByTagName('script')[0];
194+
s.parentNode.insertBefore(ga, s);
201195
})();
202196

203-
</script>
197+
</script>
204198

205-
<div id="bugira_widget" style="position: fixed; right: 10px; bottom: 0px;"></div>
206-
<script type="text/javascript">var __bugira_config = {"api_key":"dste248173q7"};
207-
(function() {var w = document.createElement('script'); w.type = 'text/javascript'; w.async = true; w.src = 'http://bugiracdn.appspot.com/bugira-widget.js';(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(w);})();</script>
199+
<div id="bugira_widget" style="position: fixed; right: 10px; bottom: 0px;"></div>
200+
<script type="text/javascript">var __bugira_config = {"api_key": "dste248173q7"};
201+
(function () {
202+
var w = document.createElement('script');
203+
w.type = 'text/javascript';
204+
w.async = true;
205+
w.src = 'http://bugiracdn.appspot.com/bugira-widget.js';
206+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(w);
207+
})();</script>
208208

209-
210209

211-
</body></html>
210+
</body>
211+
</html>

0 commit comments

Comments
 (0)