Skip to content

Commit

Permalink
modified footer responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
somrat committed Apr 5, 2020
1 parent ed7020a commit 54e266a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
13 changes: 13 additions & 0 deletions assets/scss/templates/_otherspage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,17 @@
color: $primary-color;
}
}
}

.tag-list{
a{
display: block;
padding: 5px 10px;
background: $light;
color: $text-color;
&:hover{
background-color: $primary-color;
color: $white;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -819,3 +819,12 @@ link:focus,
color: #ffbc3b; }
.filter-controls li:hover {
color: #ffbc3b; }

.tag-list a {
display: block;
padding: 5px 10px;
background: #f8f9fe;
color: #5c5c77; }
.tag-list a:hover {
background-color: #ffbc3b;
color: #fff; }
4 changes: 2 additions & 2 deletions layouts/partials/blog-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ <h4 class="mb-4">{{ i18n "categories" }}</h4>
<h4 class="mb-4">{{ i18n "tags" }}</h4>
{{- if isset .Site.Taxonomies "tags" }}
{{- if not (eq (len .Site.Taxonomies.tags) 0) }}
<ul class="list-inline">
<ul class="list-inline tag-list">
{{- range $name, $items := .Site.Taxonomies.tags }}
<li class="list-inline-item mb-2"><a class="px-3 py-2 d-block bg-light" href="{{ `tags/` | relLangURL }}{{ $name | urlize | lower }}">{{ $name | humanize }}</a></li>
<li class="list-inline-item mb-2"><a href="{{ `tags/` | relLangURL }}{{ $name | urlize | lower }}">{{ $name | humanize }}</a></li>
{{- end }}
</ul>
{{- end }}
Expand Down
8 changes: 4 additions & 4 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h3 class="text-white">{{ i18n "subscribe_newsletter" }}</h3>
</ul>
</div>
<!-- company -->
<div class="col-lg-2 col-md-3 col-sm-4 col-6 mb-5 mb-md-0">
<div class="col-lg-2 col-sm-4 col-6 mb-5 mb-md-0">
<h4 class="text-white mb-5 text-uppercase">{{ i18n "company" }}</h4>
<ul class="list-unstyled">
{{ range .Site.Menus.main }}
Expand All @@ -48,7 +48,7 @@ <h4 class="text-white mb-5 text-uppercase">{{ i18n "company" }}</h4>
</ul>
</div>
<!-- links -->
<div class="col-lg-2 col-md-3 col-sm-4 col-6 mb-5 mb-md-0">
<div class="col-lg-2 col-sm-4 col-6 mb-5 mb-md-0">
<h4 class="text-white mb-5 text-uppercase">{{ i18n "links" }}</h4>
<ul class="list-unstyled">
{{ range .Site.Menus.footer }}
Expand All @@ -57,7 +57,7 @@ <h4 class="text-white mb-5 text-uppercase">{{ i18n "links" }}</h4>
</ul>
</div>
<!-- support -->
<div class="col-lg-2 col-md-3 col-sm-4 col-6 mb-5 mb-md-0">
<div class="col-lg-2 col-sm-4 col-6 mb-5 mb-md-0">
<h4 class="text-white mb-5 text-uppercase">{{ i18n "courses" }}</h4>
<ul class="list-unstyled">
{{ range first 5 (where .Site.RegularPages "Type" "course")}}
Expand All @@ -66,7 +66,7 @@ <h4 class="text-white mb-5 text-uppercase">{{ i18n "courses" }}</h4>
</ul>
</div>
<!-- support -->
<div class="col-lg-2 col-md-3 col-sm-4 col-6 mb-5 mb-md-0">
<div class="col-lg-2 col-sm-4 col-6 mb-5 mb-md-0">
<h4 class="text-white mb-5 text-uppercase">{{ i18n "new_notice" }}</h4>
<ul class="list-unstyled">
{{ range first 3 (where .Site.RegularPages "Type" "notice")}}
Expand Down

0 comments on commit 54e266a

Please sign in to comment.