Use utility classes
This commit is contained in:
parent
2d11d2efc6
commit
0692d8ff00
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
|
@ -74,11 +74,15 @@ 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 %}
|
||||||
|
|
Reference in a new issue