Fix up inconsistencies

Fix style inconsistencies
This commit is contained in:
Raymond Wanyoike 2016-11-07 10:09:32 +03:00
commit 99c13a39c7
6 changed files with 37 additions and 28 deletions

View file

@ -5,19 +5,34 @@ body {
font-size: 18px; font-size: 18px;
} }
h1, h2, h3, h4, h5, h6 { h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Helvetica Neue', 'Helvetica', 'Roboto', 'Arial', sans-serif; font-family: 'Helvetica Neue', 'Helvetica', 'Roboto', 'Arial', sans-serif;
font-weight: normal; font-weight: normal;
} }
a:focus, a:hover {
color: #ff9800;
}
.container { .container {
max-width: 970px; max-width: 970px;
} }
.pagination > li > a,
.pagination > li > span {
color: #333;
}
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus,
a:focus,
a:hover {
color: #ff9800;
}
.header { .header {
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
padding-top: 20px; padding-top: 20px;
@ -33,12 +48,12 @@ a:focus, a:hover {
padding: 20px 0; padding: 20px 0;
} }
.header img, .header ul { .header img,
.header ul {
margin-bottom: 20px; margin-bottom: 20px;
} }
.header h1 { .header h1 {
font-size: 2.0em;
font-weight: bold; font-weight: bold;
margin-top: 0; margin-top: 0;
} }
@ -51,31 +66,27 @@ a:focus, a:hover {
margin-top: 0; margin-top: 0;
} }
.page-header h1 { .teaser h3 {
font-size: 2.8em;
}
.teaser h2 {
font-size: 1em;;
line-height: 1.42857143; /* WTF */
margin: 0 0 30px; margin: 0 0 30px;
font-weight: bold;
} }
.teaser p { .teaser p {
margin: 0; margin: 0;
} }
.teaser-header div { .teaser header div {
margin-bottom: 10px; margin-bottom: 10px;
} }
.teaser-date { .article blockquote,
font-family: 'Helvetica Neue', 'Helvetica', 'Roboto', 'Arial', sans-serif; .article ul,
margin: 0 0 30px; .article ol,
.article .highlight {
margin: 30px 0;
} }
.section-heading { .article blockquote p:first-child,
font-weight: normal; .article blockquote ul:first-child,
margin-top: 40px; .article blockquote ol:first-child {
margin-top: 0;
} }

View file

@ -38,6 +38,5 @@
{{ article.content }} {{ article.content }}
</div> </div>
</div> </div>
<hr>
{% include 'include/comments.html' %} {% include 'include/comments.html' %}
{% endblock %} {% endblock %}

View file

@ -6,7 +6,6 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge"> <meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}&mdash; {{ SITENAME }}{% endblock %}</title> <title>{% block title %}&mdash; {{ SITENAME }}{% endblock %}</title>
<link rel="canonical" href="{{ SITEURL }}/{{ output_file }}"> <link rel="canonical" href="{{ SITEURL }}/{{ output_file }}">

View file

@ -1,4 +1,5 @@
{% if DISQUS_SITENAME %} {% if DISQUS_SITENAME %}
<hr>
<div id="disqus_thread"></div> <div id="disqus_thread"></div>
<script> <script>
var disqus_config = function () { var disqus_config = function () {

View file

@ -1,15 +1,12 @@
{% if DEFAULT_PAGINATION %} {% if DEFAULT_PAGINATION %}
<hr>
<ul class="pagination"> <ul class="pagination">
{% if articles_page.has_previous() %} {% if articles_page.has_previous() %}
<li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">&laquo;</a></li> <li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">&laquo;</a></li>
{% else %}
<li class="disabled"><span>&laquo;<span></li>
{% endif %} {% endif %}
<li><span>{{ articles_page.number }} of {{ articles_paginator.num_pages }}</span></li> <li><span>{{ articles_page.number }} of {{ articles_paginator.num_pages }}</span></li>
{% if articles_page.has_next() %} {% if articles_page.has_next() %}
<li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">&raquo;</a></li> <li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">&raquo;</a></li>
{% else %}
<li class="disabled"><span>&raquo;<span></li>
{% endif %} {% endif %}
</ul> </ul>
{% endif %} {% endif %}

View file

@ -30,7 +30,9 @@ All Articles
</div> </div>
</div> </div>
</div> </div>
{% if not loop.last %}
<hr> <hr>
{% endif %}
{% endfor %} {% endfor %}
{% include 'include/pagination.html' %} {% include 'include/pagination.html' %}
{% endblock %} {% endblock %}