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

github.com/LordMathis/hugo-theme-nix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLordMathis <matus@namesny.com>2020-05-16 15:29:15 +0300
committerLordMathis <matus@namesny.com>2020-05-16 15:29:15 +0300
commitff7b13959bb1b60bf5725b0907d9a093d7a86903 (patch)
tree3653ffb9a5d11108653429b619599712f769498d
parent9e42dc88f1b37580a35b266705ccc1700bc3d5b5 (diff)
Fix footer margin in mobile view
-rw-r--r--layouts/_default/list.html38
-rw-r--r--layouts/_default/single.html27
-rw-r--r--layouts/index.html41
-rw-r--r--static/css/nix.css19
4 files changed, 75 insertions, 50 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 4cedabe..2d281e0 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -9,11 +9,14 @@
<body>
{{ partial "header.html" . }}
- <div class="container wrapper">
- <div class="row">
- <div class="col-xs-12 text-center">
- <h1 id=>{{ .Title }}</h1>
+ <div class="flex-wrapper">
+ <div class="container wrapper">
+ <div class="row">
+ <div class="col-xs-12 text-center">
+ <h1 id=>{{ .Title }}</h1>
+ </div>
</div>
+<<<<<<< Updated upstream
</div>
<ul id="post-list">
{{ range .Paginator.Pages }}
@@ -26,14 +29,27 @@
<div class="post-summary"><p>{{ .Summary }}</p></div>
<div class="post-list-footer text-center">
<a href="{{ .Permalink }}">{{ i18n "read-more" }}</a>
+=======
+ <ul id="post-list">
+ {{ range .Paginator.Pages }}
+ <li>
+ <div class="post-list-item">
+ <div class="post-header">
+ <h4 class="post-link"><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
+ <h4 class="post-date">{{ .Date.Format "2006-01-02" }}</h4>
+ </div>
+ <div class="post-summary"><p>{{ .Summary }}</p></div>
+ <div class="post-list-footer text-center">
+ <a href="{{ .Permalink }}">Read More</a>
+ </div>
+>>>>>>> Stashed changes
</div>
- </div>
- </li>
- {{ end }}
- </ul>
- {{ partial "pagination" . }}
- <div class="push"></div>
+ </li>
+ {{ end }}
+ </ul>
+ {{ partial "pagination" . }}
+ </div>
+ {{ partial "footer.html" . }}
</div>
- {{ partial "footer.html" . }}
</body>
</html>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 1779dea..113b8c7 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -9,19 +9,20 @@
<body>
{{ partial "header.html" . }}
- <div class="container wrapper">
- <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
- <span class="post-date">{{ .Date.Format "2006-01-02 " }}</span>
- <div class="post-content">
- {{ .Content }}
+ <div class="flex-wrapper">
+ <div class="container wrapper">
+ <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
+ <span class="post-date">{{ .Date.Format "2006-01-02 " }}</span>
+ <div class="post-content">
+ {{ .Content }}
+ </div>
+ {{ if (isset .Params "nocomments") }}
+ {{ else }}
+ <div class="post-comments">
+ {{ template "_internal/disqus.html" . }}
+ </div>
+ {{ end }}
</div>
- {{ if (isset .Params "nocomments") }}
- {{ else }}
- <div class="post-comments">
- {{ template "_internal/disqus.html" . }}
- </div>
- {{ end }}
- <div class="push"></div>
+ {{ partial "footer.html" . }}
</div>
- {{ partial "footer.html" . }}
</body>
diff --git a/layouts/index.html b/layouts/index.html
index 903315c..0fc3f0e 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -8,31 +8,32 @@
</head>
<body>
{{ partial "header.html" . }}
- <div class="container wrapper">
- {{ with .Site.Params.ProfilePicture }}
- <div class="row">
- <div class="col-sm-3 col-centered">
- <img alt="profile-picture" class="img-responsive img-circle user-picture center-block" src="{{.}}">
+ <div class="flex-wrapper">
+ <div class="container wrapper">
+ {{ with .Site.Params.ProfilePicture }}
+ <div class="row">
+ <div class="col-sm-3 col-centered">
+ <img alt="profile-picture" class="img-responsive img-circle user-picture center-block" src="{{.}}">
+ </div>
</div>
- </div>
- {{ end }}
- <div class="row">
- <div class="col-xs-12 user-profile text-center">
- <h1 id="user-name">{{ .Site.Params.Name }}</h1>
+ {{ end }}
+ <div class="row">
+ <div class="col-xs-12 user-profile text-center">
+ <h1 id="user-name">{{ .Site.Params.Name }}</h1>
+ </div>
</div>
- </div>
- <div class="row">
- <div class="col-xs-12 user-social text-center">
- {{ partial "social.html" . }}
+ <div class="row">
+ <div class="col-xs-12 user-social text-center">
+ {{ partial "social.html" . }}
+ </div>
</div>
- </div>
- <div class="row">
- <div class="col-md-4 col-md-offset-4 user-description text-center">
- <p>{{ .Site.Params.About }}</p>
+ <div class="row">
+ <div class="col-md-4 col-md-offset-4 user-description text-center">
+ <p>{{ .Site.Params.About }}</p>
+ </div>
</div>
</div>
- <div class="push"></div>
+ {{ partial "footer.html" . }}
</div>
- {{ partial "footer.html" . }}
</body>
</html>
diff --git a/static/css/nix.css b/static/css/nix.css
index 52a0791..f60e613 100644
--- a/static/css/nix.css
+++ b/static/css/nix.css
@@ -11,13 +11,19 @@ body {
height: 100%;
font-family: 'Open Sans', sans-serif;
font-size: 1.5em;
- padding-top: 70px;
}
img {
max-width: 100%;
}
+.flex-wrapper {
+ display: flex;
+ min-height: 100vh;
+ flex-direction: column;
+ justify-content: space-between;
+ padding-top: 70px;
+}
#green-terminal {
color: #00ff00;
@@ -119,19 +125,20 @@ i {
.wrapper {
min-height: 100%;
- margin: 0 auto -50px;
+ margin: 0 auto;
}
.footer {
background-color: #F5F5F5;
- display: block;
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
width: 100%;
padding: 10px;
- height: 50px;
}
-.push {
- height: 50px;
+.footer p {
+ margin: 0 !important;
}
.col-centered{