Updated some Experience styling
This commit is contained in:
parent
32bfc1b6ac
commit
3ebe691f4c
|
@ -1,17 +1,30 @@
|
||||||
.experience
|
.experience
|
||||||
+clearfix
|
+clearfix
|
||||||
|
margin-bottom: $padding-large-vertical * 2
|
||||||
|
position: relative
|
||||||
|
|
||||||
.experience__logo
|
h2
|
||||||
@extend .pull-right
|
margin-top: 0
|
||||||
margin: 0 0 10px 10px
|
|
||||||
max-width: 25%
|
|
||||||
|
|
||||||
@include breakpoint($screen-sm-min)
|
@include breakpoint(max-width $screen-tablet)
|
||||||
max-width: 20%
|
font-size: 1.5em
|
||||||
|
|
||||||
@include breakpoint($screen-md-min)
|
.experience__website
|
||||||
max-width: 15%
|
display: inline-block
|
||||||
|
margin-bottom: 2px
|
||||||
|
|
||||||
.experience__role
|
.experience__role
|
||||||
font-style: italic
|
font-style: italic
|
||||||
margin-bottom: 10px
|
margin-bottom: 10px
|
||||||
|
|
||||||
|
.experience--with-logo
|
||||||
|
.experience__logo
|
||||||
|
@extend .pull-right
|
||||||
|
margin: 3px 0 20px 20px
|
||||||
|
max-width: 25%
|
||||||
|
|
||||||
|
@include breakpoint($screen-sm-min)
|
||||||
|
max-width: 20%
|
||||||
|
|
||||||
|
@include breakpoint($screen-md-min)
|
||||||
|
max-width: 15%
|
||||||
|
|
|
@ -77,11 +77,11 @@ experiences:
|
||||||
{% for experience in page.experiences %}
|
{% for experience in page.experiences %}
|
||||||
{% set company = site.companies[experience.company] %}
|
{% set company = site.companies[experience.company] %}
|
||||||
|
|
||||||
<div class="experience">
|
<div class="experience {{ company.logo ? 'experience--with-logo' : 'experience--no-logo' }}">
|
||||||
<h2 class="experience__title">{{ company.title }}</h2>
|
<h2 class="experience__title">{{ company.title }}</h2>
|
||||||
|
|
||||||
{% if company.website %}
|
{% if company.website %}
|
||||||
<a href="">{{ company.website }}</a>
|
<a href="{{ company.website }}" class="experience__website">{{ company.website }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if company.logo %}
|
{% if company.logo %}
|
||||||
|
|
Loading…
Reference in a new issue