fix and improved sidebarSticky
This commit is contained in:
parent
c8da3663bd
commit
f1524dd1dc
3 changed files with 4 additions and 3 deletions
|
@ -21,6 +21,7 @@ theme = "hyde-hyde"
|
||||||
# please choose either GraphComment or Disqus
|
# please choose either GraphComment or Disqus
|
||||||
# GraphCommentId = "your-graph-comment-id"
|
# GraphCommentId = "your-graph-comment-id"
|
||||||
# layoutReverse = true
|
# layoutReverse = true
|
||||||
|
# sidebarSticky = true
|
||||||
|
|
||||||
## Social Accounts
|
## Social Accounts
|
||||||
[params.social]
|
[params.social]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
<div class="container text-center sidebar-sticky">
|
<div class="container text-center {{ if .Site.Params.sidebarSticky }}sidebar-sticky{{ end }}">
|
||||||
<div class="sidebar-about text-center">
|
<div class="sidebar-about text-center">
|
||||||
<a href="{{ .Site.BaseURL }}"><h1 class="brand">{{ .Site.Title }}</h1></a>
|
<a href="{{ .Site.BaseURL }}"><h1 class="brand">{{ .Site.Title }}</h1></a>
|
||||||
{{ with .Site.Params.authorimage }} <img src="{{.}}" alt="Author Image" class="img-circle headshot center"> {{ end }}
|
{{ with .Site.Params.authorimage }} <img src="{{.}}" alt="Author Image" class="img-circle headshot center"> {{ end }}
|
||||||
|
|
|
@ -121,7 +121,7 @@ a.sidebar-nav-item:focus {
|
||||||
.sidebar-sticky {
|
.sidebar-sticky {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 1rem;
|
right: 1rem;
|
||||||
top: 1rem;
|
bottom: 1rem;
|
||||||
left: 1rem;
|
left: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -167,7 +167,7 @@ a.sidebar-nav-item:focus {
|
||||||
display:inline;
|
display:inline;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
.badges {
|
.badges {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue