1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-16 09:33:13 +02: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"> <article class="hentry format-image">
<a class="photoPost" href="{{ post.url }}"> <a class="photo-link" href="{{ post.url }}">
<figure class="hmedia"> <figure class="hmedia">
{% picture {{ post.image }} %} {% picture {{ post.image }} %}

View File

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

View File

@ -58,14 +58,6 @@
&:hover:before { &:hover:before {
color: @link-color 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: 1px solid rgba(158, 170, 178, .6);
border-radius: 2px; border-radius: 2px;
.box-shadow(0 1px 4px rgba(0, 0, 0, 0.1)); .box-shadow(0 1px 4px rgba(0, 0, 0, 0.1));
.transition(); .transition;
.page-single & { margin-bottom: @line-height-computed*2; }
@media @breakpoint2 { @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"); .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; display: block;
&:hover { &:hover {