mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-23 01:30:01 +01:00
fix image layout styles
This commit is contained in:
parent
f315200c5b
commit
b1632beea8
@ -89,7 +89,7 @@
|
||||
@media $screen-sm
|
||||
border-radius: $border-radius-base
|
||||
|
||||
&:not(.featured .hentry__teaser)
|
||||
.hentry.format-photo &
|
||||
@extend .breakoutviewport
|
||||
|
||||
.hentry__teaser--link
|
||||
@ -113,10 +113,6 @@
|
||||
h3
|
||||
@extend .h4
|
||||
|
||||
img:not(.hentry__teaser img)
|
||||
@extend .media-frame
|
||||
margin-bottom: ($spacer/2)
|
||||
|
||||
p:last-child
|
||||
margin-bottom: 0
|
||||
|
||||
|
@ -109,4 +109,7 @@
|
||||
<!-- Google Authorship -->
|
||||
<link href="https://plus.google.com/+MatthiasKretschmann" rel="author"/>
|
||||
|
||||
<!-- https://cloudinary.com/documentation/responsive_images#automating_responsive_images_with_client_hints -->
|
||||
<meta http-equiv="Accept-CH" content="DPR, Viewport-Width, Width">
|
||||
|
||||
</head>
|
||||
|
@ -1,17 +1,17 @@
|
||||
{% case include.size %}
|
||||
|
||||
{% when 'phototeaser' %}
|
||||
{% assign pictureSize = 'w_940,h_700,c_fill,q_auto:best' %}
|
||||
{% assign pictureSizeRetina = 'w_1880,h_1400,c_fill,q_auto:best' %}
|
||||
{% assign pictureSize = 'w_940,h_700,c_fill,q_auto:good,f_auto' %}
|
||||
{% assign pictureSizeRetina = 'w_1880,h_1400,c_fill,q_auto:good,f_auto' %}
|
||||
{% when 'photothumb' %}
|
||||
{% assign pictureSize = 'w_190,h_190,c_thumb,q_auto:best' %}
|
||||
{% assign pictureSizeRetina = 'w_380,h_380,c_thumb,q_auto:best' %}
|
||||
{% assign pictureSize = 'w_190,h_190,c_thumb,q_auto:good,f_auto' %}
|
||||
{% assign pictureSizeRetina = 'w_380,h_380,c_thumb,q_auto:good,f_auto' %}
|
||||
{% when 'featured' %}
|
||||
{% assign pictureSize = 'w_275,h_100,c_fill' %}
|
||||
{% assign pictureSizeRetina = 'w_550,h_200,c_fill,q_auto:best' %}
|
||||
{% assign pictureSize = 'w_275,h_100,c_fill,q_auto:good,f_auto' %}
|
||||
{% assign pictureSizeRetina = 'w_550,h_200,c_fill,q_auto:good,f_auto' %}
|
||||
{% else %}
|
||||
{% assign pictureSize = 'w_940,q_auto:best' %}
|
||||
{% assign pictureSizeRetina = 'w_1880,q_auto:best' %}
|
||||
{% assign pictureSize = 'w_940,q_auto:best,f_auto' %}
|
||||
{% assign pictureSizeRetina = 'w_1880,q_auto:best,f_auto' %}
|
||||
{% endcase %}
|
||||
|
||||
{% if include.file %}
|
||||
|
Loading…
Reference in New Issue
Block a user