1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 01:46:51 +01:00

photo post fixes

This commit is contained in:
Matthias Kretschmann 2013-11-24 18:00:20 +01:00
parent 521e73730f
commit 752cf42a18
3 changed files with 12 additions and 20 deletions

View File

@ -24,7 +24,7 @@
<article class="hentry format-image">
<a class="photoPost" href="{{ post.url }}">
<a class="photo-link" href="{{ post.url }}">
<figure class="hmedia">
{% picture {{ post.image }} %}

View File

@ -6,15 +6,13 @@ layout: base
<article class="hentry format-image">
<div class="photoPost">
<figure class="hmedia">
{% picture {{ page.image }} %}
<figcaption class="entry-title fn">{{ page.title }}</figcaption>
exif
</figure>
</div>
<figure class="hmedia">
{% picture {{ page.image }} %}
<figcaption class="entry-title fn">{{ page.title }}</figcaption>
exif
</figure>
<section class="entry-content">
{{ content }}

View File

@ -58,14 +58,6 @@
&:hover:before {
color: @link-color
}
// hide by default, show on hover or touch
opacity: 0;
.hentry:hover &,
.touch .hentry:hover & {
opacity: 1;
}
}
@ -113,7 +105,9 @@
border: 1px solid rgba(158, 170, 178, .6);
border-radius: 2px;
.box-shadow(0 1px 4px rgba(0, 0, 0, 0.1));
.transition();
.transition;
.page-single & { margin-bottom: @line-height-computed*2; }
@media @breakpoint2 {
.box-shadow(~"0 1px 4px rgba(0, 0, 0, 0.1), inset 0 0 30px rgba(0, 0, 0, 0.1), inset 0 1px 0 #fff");
@ -139,7 +133,7 @@
}
}
a.photoPost {
.photo-link {
display: block;
&:hover {