Browse Source

UI tweak

master
sipp11 10 years ago
parent
commit
17b91bb2c7
  1. 6
      archive.html
  2. 13
      css/main.scss
  3. 2
      tags.html

6
archive.html

@ -14,7 +14,7 @@ title : Archive
{% if forloop.first %} {% if forloop.first %}
<h1 id="{{this_year}}">{{this_year}}</h1> <h1 id="{{this_year}}">{{this_year}}</h1>
<h2 id ="{{this_year}}:{{this_month_num}}">{{this_month}}</h2> <h3 id ="{{this_year}}:{{this_month_num}}">{{this_month}}</h3>
<ul> <ul>
{% endif %} {% endif %}
@ -26,12 +26,12 @@ title : Archive
{% if this_year != next_year %} {% if this_year != next_year %}
</ul> </ul>
<h1 id="{{ next_year }}">{{next_year}}</h1> <h1 id="{{ next_year }}">{{next_year}}</h1>
<h2 id="{{ next_year }}:{{ next_month }}">{{next_month}}</h2> <h3 id="{{ next_year }}:{{ next_month }}">{{next_month}}</h3>
<ul> <ul>
{% else %} {% else %}
{% if this_month != next_month %} {% if this_month != next_month %}
</ul> </ul>
<h2 id="{{ next_year }}:{{ next_month }}">{{next_month}}</h2> <h3 id="{{ next_year }}:{{ next_month }}">{{next_month}}</h3>
<ul> <ul>
{% endif %} {% endif %}
{% endif %} {% endif %}

13
css/main.scss

@ -14,6 +14,7 @@ $base-line-height: 1.5;
$spacing-unit: 30px; $spacing-unit: 30px;
$text-color: #111; $text-color: #111;
$tag-color: #dcfba2;
$background-color: #fdfdfd; $background-color: #fdfdfd;
$brand-color: #2a7ae2; $brand-color: #2a7ae2;
@ -57,22 +58,22 @@ ul.tag_box>li {
display: inline-block; display: inline-block;
} }
li.label-success { span.label-success {
background-color: $grey-color; background-color: $tag-color;
} }
li.label-success a, li.label-success a:hover { span.label-success a, span.label-success a:hover {
color: rgb(255, 255, 255); color: $text-color;
text-decoration: none; text-decoration: none;
} }
li.label { span.label {
display: inline; display: inline;
padding: 0.2em 0.6em 0.3em; padding: 0.2em 0.6em 0.3em;
font-size: 75%; font-size: 75%;
font-weight: 700; font-weight: 700;
line-height: 1; line-height: 1;
color: rgb(255, 255, 255); color: $text-color;
text-align: center; text-align: center;
white-space: nowrap; white-space: nowrap;
vertical-align: baseline; vertical-align: baseline;

2
tags.html

@ -6,7 +6,7 @@ title: Tags
<ul class="tag_box inline"> <ul class="tag_box inline">
{% if site.tags.first[0] != null %}{% comment %} If tags exist {% endcomment %} {% if site.tags.first[0] != null %}{% comment %} If tags exist {% endcomment %}
{% for tag in site.tags %}{% comment %} add an element like the following for each tag item {% endcomment %} {% for tag in site.tags %}{% comment %} add an element like the following for each tag item {% endcomment %}
<li class="label label-success"><a href="#{{ tag[0] }}">{{ tag[0] }}{% comment %} This is just the tag name {% endcomment %} <li><a href="#{{ tag[0] }}"><span class="label label-success">{{ tag[0] }}</span> {% comment %} This is just the tag name {% endcomment %}
<span>{{ tag[1].size }}</span>{% comment %} This counts the number of posts in a given tag {% endcomment %} <span>{{ tag[1].size }}</span>{% comment %} This counts the number of posts in a given tag {% endcomment %}
</a></li> </a></li>
{% endfor %} {% endfor %}

Loading…
Cancel
Save