&__cta {
@extend .btn;
- width: 20%;
display: block;
+ width: 40%;
+ @media (min-width : $tablet ) {
+ width: 30%;
+ }
+ @media (min-width : $desktop ) {
+ width: 20%;
+ }
margin: 1rem auto;
text-align: center;
}
+}
+
+.artist__portrait {
+ display: block;
+ margin: 1rem auto;
+ &--left {
+ @extend .artist__portrait;
+ @media (min-width : $tablet ) {
+ max-width: 40%;
+ margin-top: 0;
+ margin-right: 1rem;
+ float: left;
+ }
+ }
+
+ &--right {
+ @extend .artist__portrait;
+ @media (min-width : $tablet ) {
+ max-width: 40%;
+ margin-top: 0;
+ margin-left: 1rem;
+ float: right;
+ }
+ }
}
\ No newline at end of file
{% endblock %}
{% block main %}
-<div class="artist-bio">
+<div class="artist__detail">
<p>
{% if artist.photo %}
- <img class="{% if artist.photo_alignment == 'left' %}image-left{% elif artist.photo_alignment == 'right' %}image-right{% else %}image-center{% endif %}" src="{{ MEDIA_URL }}/{{ artist.photo }}" />
+ <img class="artist__portrait{% if artist.photo_alignment == 'left' %}--left{% elif artist.photo_alignment == 'right' %}--right{% else %}--center{% endif %}" src="{{ MEDIA_URL }}/{{ artist.photo }}" />
{% endif %}
{{ artist.bio|safe }}
<br style="clear: both;" />