Use responsive design
This commit is contained in:
parent
412fa08533
commit
fa6c681120
3 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<link href="/css/bootstrap.css" rel="stylesheet">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="/css/bootstrap-responsive.css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
.centered { text-align:center; }
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row hidden-phone">
|
||||
{{with .Books}}
|
||||
{{range .}}
|
||||
<div class="span2">
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</ul>
|
||||
{{end}}
|
||||
{{range .In}}
|
||||
<ul class="nav nav-list">
|
||||
<ul class="nav nav-list hidden-phone">
|
||||
{{end}}
|
||||
<li {{if .Active}}class="active"{{end}}><a href="{{.Link}}">{{.Label}}</a></li>
|
||||
{{end}}
|
||||
|
|
Reference in a new issue