minor improvements (links, colors); add favicon
This commit is contained in:
parent
e8318fc7a0
commit
18553b7377
11 changed files with 23 additions and 7042 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,160 +0,0 @@
|
|||
html,body {
|
||||
font-family: $base-font-family;
|
||||
font-size: $base-font-size;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.navbar-default {
|
||||
border-color: transparent;
|
||||
background-color: transparent;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.mt50 {
|
||||
margin-top: 50px;
|
||||
}
|
||||
.mt20 {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.mt10 {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.mt25 {
|
||||
margin-top: 10;
|
||||
@include media-query($on-palm) {
|
||||
margin-top: 25px;
|
||||
}
|
||||
}
|
||||
|
||||
.p10 {
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.p20 {
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-weight: 900;
|
||||
font-size: 1.85em;
|
||||
padding: 10px;
|
||||
margin-left: 15px !important;
|
||||
@media screen and (max-width: $on-palm) {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
}
|
||||
.post-meta {
|
||||
color: $grey-color;
|
||||
}
|
||||
|
||||
.panel {
|
||||
margin-bottom: 2em;
|
||||
border: none;
|
||||
box-shadow: 0 0 1px rgba(0,0,0,.4);
|
||||
transition: all 0.3s ease;
|
||||
&:hover, &:focus, &:active {
|
||||
box-shadow:
|
||||
0px 1px 0px #ccc,
|
||||
0px 2px 0px #c9c9c9,
|
||||
0px 3px 0px #bbb,
|
||||
0px 4px 0px #b9b9b9,
|
||||
0px 6px 0px rgba(0,0,0,.1),
|
||||
0px 1px 0px rgba(0,0,0,.3),
|
||||
0px 3px 0px rgba(0,0,0,.2),
|
||||
0px 5px 0px rgba(0,0,0,.25),
|
||||
0 7px 7px rgba(0,0,0,.1),
|
||||
0 8px 7px rgba(0,0,0,.1),
|
||||
0 9px 9px rgba(0,0,0,.1),
|
||||
0 10px 10px rgba(0,0,0,.15),
|
||||
0 15px 15px rgba(0,0,0,.16),
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
footer {
|
||||
border-top: 1px solid $grey-color-light;
|
||||
}
|
||||
|
||||
.social {
|
||||
list-style: none;
|
||||
display: inline;
|
||||
margin-left: 10px;
|
||||
padding: 4px 3px;
|
||||
font-size: 1.4em;
|
||||
}
|
||||
.social:hover {
|
||||
opacity: 0.7;
|
||||
}
|
||||
.social img {
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
.quora img{
|
||||
width: 17px;
|
||||
}
|
||||
|
||||
.facebook img {
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
.recent ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.recent {
|
||||
padding: 10px;
|
||||
border: 1px solid $grey-color-light;
|
||||
}
|
||||
|
||||
.post-img img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.pack {
|
||||
|
||||
|
||||
display: -webkit-inline-flex;
|
||||
display: -ms-inline-flexbox;
|
||||
display: inline-flex;
|
||||
flex-wrap: wrap;
|
||||
-webkit-flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.card {
|
||||
float: none;
|
||||
|
||||
}
|
||||
|
||||
.post-title {
|
||||
line-height: 2;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.index-anchor {
|
||||
text-decoration: none;
|
||||
color: $text-color;
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
color: $text-color;
|
||||
}
|
||||
}
|
||||
|
||||
article.post {
|
||||
margin-bottom: 5em;
|
||||
}
|
|
@ -1,6 +1,8 @@
|
|||
// Litera 4.5.0
|
||||
// Bootswatch
|
||||
|
||||
$grid-gutter-width: 15px;
|
||||
|
||||
//
|
||||
// Color system
|
||||
//
|
||||
|
@ -17,7 +19,7 @@ $gray-800: #343a40 !default;
|
|||
$gray-900: #212529 !default;
|
||||
$black: #000 !default;
|
||||
|
||||
$blue: #4582EC !default;
|
||||
$blue: #4566BB !default;
|
||||
$indigo: #6610f2 !default;
|
||||
$purple: #6f42c1 !default;
|
||||
$pink: #e83e8c !default;
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Import partials from `sass_dir` (defaults to `_sass`)
|
||||
@import
|
||||
"litera",
|
||||
"litera-soft",
|
||||
"../../../node_modules/bootstrap/scss/bootstrap",
|
||||
"bootswatch",
|
||||
"custom",
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{{ if .Site.Params.favicon }}
|
||||
<link rel="icon" href="{{ .Site.BaseURL }}img/{{ .Site.Params.favicon }}">
|
||||
{{ end }}
|
||||
|
||||
<title>{{ .Title}}{{if .IsPage}} - {{.Site.Title}}{{ end }}</title>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="home">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 mt-3 mb-3">
|
||||
<div class="col-md-12">
|
||||
<div class="card mt-3 mb-3">
|
||||
<div class="card-header">
|
||||
<h2 class="card-title">{{ .Title }}</h2>
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
<div class="col-md-12">
|
||||
<ul class="pagination">
|
||||
{{ with .NextPage }}
|
||||
<li class="page-item page-link">
|
||||
<a class="next" href="{{ .Permalink }}">« {{ .Title }}</a></li>
|
||||
<li class="page-item">
|
||||
<a class="next page-link" href="{{ .Permalink }}">« {{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
{{ with .PrevPage }}
|
||||
<li class="page-item">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="col-md-4">
|
||||
<div class="card mb-3">
|
||||
<a href="{{ .Permalink }}" class="index-anchor">
|
||||
<a href="{{ .Permalink }}" class="index-anchor text-decoration-none">
|
||||
{{ if .Params.img }}
|
||||
<img width="100%"
|
||||
src="{{ .Site.BaseURL }}img/{{ .Params.img }}" alt="{{ .Title }}">
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
{{ with .Site.Params.copyright }}
|
||||
<div class="col-md-4 text-left">
|
||||
<span class="fa fa-copyright"></span>
|
||||
<a target="_blank" href="{{.link}}">{{ .name }}</a>
|
||||
<a target="_blank" class="text-decoration-none"
|
||||
href="{{.link}}">{{ .name }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
{{ if gt .Paginator.TotalPages 1 }}
|
||||
<ul class="pagination">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<li><a href="{{ .Paginator.Prev.URL }}">« Prev</a></li>
|
||||
<li><a href="{{ .Paginator.Prev.URL }}"
|
||||
class="text-decoration-none">« Prev</a></li>
|
||||
{{ else }}
|
||||
<li><span>« Prev</span></li>
|
||||
{{ end }}
|
||||
|
@ -15,12 +16,14 @@
|
|||
{{ if eq .PageNumber ($scratch.Get "current") }}
|
||||
<li class="active"><span><em>{{ .PageNumber }}</em></span></li>
|
||||
{{ else }}
|
||||
<li><a href="{{ .URL }}">{{ .PageNumber }}</a></li>
|
||||
<li><a href="{{ .URL }}"
|
||||
class="page-link">{{ .PageNumber }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Paginator.HasNext }}
|
||||
<li><a href="{{ .Paginator.Next.URL }}">Next »</a></li>
|
||||
<li><a href="{{ .Paginator.Next.URL }}"
|
||||
class="page-link">Next »</a></li>
|
||||
{{ else }}
|
||||
<li><span >Next »</span></li>
|
||||
{{ end }}
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
{{ range .Param $taxo }}
|
||||
{{ $name := . }}
|
||||
{{ with $.Site.GetPage (printf "/%s/%s" $taxo ($name | urlize)) }}
|
||||
<li><a href="{{ .Permalink }}">{{ $name }}</a></li>
|
||||
<li><a href="{{ .Permalink }}"
|
||||
class="text-decoration-none">{{ $name }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
@ -37,7 +38,8 @@
|
|||
<ul class="list-inline">
|
||||
{{ range first 3 (where .Site.RegularPages "Section" "posts") }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
<a href="{{ .Permalink }}"
|
||||
class="text-decoration-none">{{ .Title }}</a>
|
||||
<small> {{ .Date.Format (i18n "dateFormat") }}</small>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue