Use utility classes

This commit is contained in:
Oliver Davies 2017-07-11 18:56:05 +01:00
parent 2d11d2efc6
commit 0692d8ff00
6 changed files with 14 additions and 12 deletions

View file

@ -1,3 +1,6 @@
@each $value in 'left' 'center' 'right' @each $value in 'left' 'center' 'right'
.text-#{$value} .text-#{$value}
text-align: #{$value} text-align: #{$value}
.text-light
color: #777

View file

@ -7,11 +7,9 @@
+clearfix +clearfix
.experience-item-website .experience-item-website
display: inline-block
margin-bottom: 2px margin-bottom: 2px
.experience-item-role .experience-item-role
color: $gray-light
margin-bottom: .625rem margin-bottom: .625rem
.experience-item-logo .experience-item-logo

View file

@ -6,9 +6,6 @@
+clearfix +clearfix
margin-bottom: 10px margin-bottom: 10px
&__role
color: #777
&__image &__image
height: 75px height: 75px
margin: 0 0 10px 10px margin: 0 0 10px 10px

View file

@ -1,4 +1,4 @@
{% set title_tag = title_tag|default('h1') %} {% set title_tag = title_tag ?: 'h1' %}
<{{ title_tag }}>{{ page.title }}</{{ title_tag }}> <{{ title_tag }}>{{ page.title }}</{{ title_tag }}>
<p class="posted">{{ page.date|date('jS F Y') }}</p> <p class="posted text-light">{{ page.date|date('jS F Y') }}</p>

View file

@ -23,12 +23,12 @@ redirect:
<h2>{{ company.name }}</h2> <h2>{{ company.name }}</h2>
{% if company.url -%} {% if company.url -%}
<a class="experience-item-website" href="{{ company.url }}"> <a class="experience-item-website display-inline-block" href="{{ company.url }}">
{{- company.url -}} {{- company.url -}}
</a> </a>
{%- endif %} {%- endif %}
<div class="experience-item-role"> <div class="experience-item-role text-light">
{{- experience.role }} {{- experience.role }}
from from
{{ experience.start }} {{ experience.start }}

View file

@ -74,12 +74,16 @@ use: [posts]
<h2 class="testimonial__name">{{ testimonial.name }}</h2> <h2 class="testimonial__name">{{ testimonial.name }}</h2>
{% if testimonial.image %} {% if testimonial.image %}
<img class="testimonial__image pull-right img-circle" src="{{ site.url }}/assets/images/testimonials/{{ testimonial.image }}" alt="{{ testimonial.name }}"/> <img
class="testimonial__image pull-right img-circle"
src="{{ site.url }}/assets/images/testimonials/{{ testimonial.image }}"
alt="{{ testimonial.name }}"
/>
{% endif %} {% endif %}
{% if testimonial.role %} {% if testimonial.role %}
<div class="testimonial__role"> <div class="testimonial__role text-light">
{{ testimonial.role|markdown}} {{ testimonial.role|markdown }}
</div> </div>
{% endif %} {% endif %}