Polaroids are now always spread out in mobile versions (as the default does on PC too)
This commit is contained in:
parent
7cf224cef6
commit
13ea8c1d8b
@ -445,23 +445,24 @@ input:checked + .slider:before {
|
|||||||
/* BEGIN polaroid-group */
|
/* BEGIN polaroid-group */
|
||||||
a.polaroid {
|
a.polaroid {
|
||||||
/*Size by calculating image size*/
|
/*Size by calculating image size*/
|
||||||
width: auto !important;
|
width: 60vw !important;
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
|
max-height: 50vw !important;/*expermtal*/
|
||||||
|
left: 0px !important;
|
||||||
|
top: 0px !important;
|
||||||
|
position:static !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Size image for mobile so screen is not getting */
|
.leftpola {
|
||||||
a.polaroid img {
|
-webkit-transform: rotate(-15deg) !important;
|
||||||
-webkit-transform: scale(0.7); /* Saf3.1+, Chrome */
|
-moz-transform: rotate(-15deg) !important;
|
||||||
-moz-transform: scale(0.7); /* FF3.5+ */
|
transform: rotate(-15deg) !important;
|
||||||
-ms-transform: scale(0.7); /* IE9 */
|
|
||||||
-o-transform: scale(0.7); /* Opera 10.5+ */
|
|
||||||
transform: scale(0.7);
|
|
||||||
/* IE6–IE9 */
|
|
||||||
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.9999619230641713, M12=-0.008726535498373935, M21=0.008726535498373935, M22=0.9999619230641713,SizingMethod='auto expand');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a.polaroid h5 {
|
.rightpola {
|
||||||
display: none !important; /*No image text on mobile - too small space*/
|
-webkit-transform: rotate(15deg) !important;
|
||||||
|
-moz-transform: rotate(15deg) !important;
|
||||||
|
transform: rotate(15deg) !important;
|
||||||
}
|
}
|
||||||
/* END polaroid-group */
|
/* END polaroid-group */
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
data-at-800="{{ image.generate_thumbnail("x800") }}"
|
data-at-800="{{ image.generate_thumbnail("x800") }}"
|
||||||
data-at-1366="{{ image.generate_thumbnail("x1366") }}"
|
data-at-1366="{{ image.generate_thumbnail("x1366") }}"
|
||||||
data-at-1920="{{ image.generate_thumbnail("x1920") }}"
|
data-at-1920="{{ image.generate_thumbnail("x1920") }}"
|
||||||
class="polaroid"
|
class="polaroid {% if (loop.index%2 == 1) %}rightpola{% else %}leftpola{% endif %}"
|
||||||
style="{% if w %}width:{{ w }};{% endif %}{% if h %}height: {{ h }};{% endif %}{% if custpos %}position:absolute;{% endif %}left: {{ x }}; top: {{ y }}; z-index: {{ z }}; -webkit-transform: rotate({{ angle }}deg); -moz-transform: rotate({{ angle }}deg); transform: rotate({{ angle }}deg);">
|
style="{% if w %}width:{{ w }};{% endif %}{% if h %}height: {{ h }};{% endif %}{% if custpos %}position:absolute;{% endif %}left: {{ x }}; top: {{ y }}; z-index: {{ z }}; -webkit-transform: rotate({{ angle }}deg); -moz-transform: rotate({{ angle }}deg); transform: rotate({{ angle }}deg);">
|
||||||
{% if caption %}
|
{% if caption %}
|
||||||
<img class="lazy" src="" data-original="{{ image.generate_thumbnail("x450") }}" alt="{{ caption }}">
|
<img class="lazy" src="" data-original="{{ image.generate_thumbnail("x450") }}" alt="{{ caption }}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user