Skip to content

docs: footer, sticky header and sidebar #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 31, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@
</div>
<!-- container -->

<footer class="footer">
<div class="container-fluid">
<div class="row">
<div id="footerContent" class="col-sm-12">
Free and open source under the
<a href="https://github.com/mysql-net/MySqlConnector/blob/master/LICENSE">MIT License</a>
</div>
</div>
</div>
</footer>

<!-- js -->
<script type="text/javascript" src="vendor/jquery/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="vendor/bootstrap/js/bootstrap.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<body>

<nav class="navbar navbar-default">
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="col-xs-8 navbar-mysqlc-logo">
<a href="">
Expand Down
2 changes: 1 addition & 1 deletion docs/layouts/partials/menu.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ $cur := . }}
<div class="col-md-3">
<div class="list-group" id="navigation">
<div class="list-group" id="navigation" data-spy="affix" data-offset-top="0">

{{ range $i, $el := .Site.Menus.main }}
<a class="list-group-item{{ if or ($cur.IsMenuCurrent "main" .) ($cur.HasMenuCurrent "main" .) (and (eq $i 0) ($cur.IsHome)) }} active{{ end }}" href="{{ if .HasChildren }}#nav-{{ $i }}{{ else }}{{ .URL }}{{ end }}" data-parent="#navigation"{{ if .HasChildren }} data-toggle="collapse"{{end}}>
Expand Down
72 changes: 64 additions & 8 deletions docs/static/css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
html {
position: relative;
min-height: 100%;
}

body {
padding-top: 70px;
margin-bottom: 40px;
}

#navigation {
margin-top: 20px;
}
Expand All @@ -7,17 +17,17 @@
margin-right: 5px;
}

.navbar-mysqlc-logo{
.navbar-mysqlc-logo {
padding: 10px 0 0 15px;
}

.navbar-mysqlc-logo a{
.navbar-mysqlc-logo a {
color: #777;
font-size: 18px;
padding: 0 12px 0 0;
}

.navbar-mysqlc-logo a:hover{
.navbar-mysqlc-logo a:hover {
text-decoration: none;
}

Expand All @@ -35,6 +45,31 @@
border-radius: 0;
}

@media (max-width: 991px) {
.affix {
position: static;
}
}

@media (min-width: 992px) {
.affix {
top: 70px;
position: fixed;
}
}

@media only screen and (min-width : 992px) {
#navigation{
width: 212px;
}
}

@media only screen and (min-width : 1200px) {
#navigation{
width: 262px;
}
}

.submenu a:hover, .submenu a:active,
.submenu a.active, .submenu a.active:hover, .submenu a.active:active {
background: #44b5f6;
Expand All @@ -48,17 +83,38 @@
}

#prevNext {
margin-top: 20px;
margin: 20px 0;
}

pre{
pre {
padding: 0;
}

h1{
h1 {
margin-bottom: 20px;
}

h2{
h2 {
margin-bottom: 20px;
}
}

.footer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 40px;
background-color: #f5f5f5;
border: 1px solid #e7e7e7;
border-width: 1px 0 0 0;
}

#footerContent {
color: #777;
padding: 10px;
text-align: center;
}

#footerContent a {
color: #777;
}