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

github.com/nurlansu/hugo-sustain.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Davenport <caleb@calebdavenport.com>2018-03-24 02:53:34 +0300
committerCaleb Davenport <caleb@calebdavenport.com>2018-03-24 02:53:34 +0300
commitb0f0390a0a24b405fef40c5b3a5db36c41d1ba1d (patch)
tree77048e93b19a907357c762ec2f4bd4d8e0f18736
parentd88e0927e2b0d7d7e2a12690960e2e3fed72f5dd (diff)
Fixed sizing issues
Fix social media links not being centered Navbar now collapses when under a certain size
-rw-r--r--layouts/partials/header.html7
-rwxr-xr-xstatic/css/main.css3
2 files changed, 8 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 3545d96..fac9bd1 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -2,8 +2,13 @@
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="{{ .Site.BaseURL }}"><i class="fa fa-home"></i></a>
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
</div>
- <div id="navbar">
+ <div class="navbar-collapse collapse" id="navbar">
<ul class="nav navbar-nav navbar-right">
{{ if .Site.Menus.main }}
{{ range sort .Site.Menus.main }}
diff --git a/static/css/main.css b/static/css/main.css
index c7c3fee..1e18ab0 100755
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -131,6 +131,7 @@ html, body {
display: block;
margin: 0 auto;
margin-top: 40px;
+ padding: 0px;
width: 100%;
text-align: center;
animation: fade 1s ease 1s both;
@@ -190,4 +191,4 @@ div.footer{
height: 50px;
padding-bottom: 15px;
-}*/ \ No newline at end of file
+}*/