fixed avatars with legacy browsers. grrrr.

This commit is contained in:
nek0 2015-04-16 05:02:05 +02:00
parent 54063ef6a1
commit 5daedf202f
4 changed files with 19 additions and 25 deletions

View file

@ -29,13 +29,7 @@ article#func.article {
width: 100%;
height: 100%;
overflow: hidden;
}
.article a img {
position: relative;
top: -7.75em;
text-align: left;
z-index: 0;
background-size: 100%;
}
.article a p {
@ -188,10 +182,6 @@ input[type] {
height: 7em;
line-height: 7em;
}
.article a img {
top: -5.45em;
}
}
@keyframes shake {

View file

@ -13,10 +13,12 @@ $if null beverages
$forall (Entity uId user) <- users
<article .article>
<a href=@{SelectR uId}>
<p>#{userIdent user}
$if userAvatar user /= Nothing
<img src=@{GetAvatarR $ fromJust $ userAvatar user}>
$if userAvatar user /= Nothing
<a href=@{SelectR uId} style="background-image: url(@{GetAvatarR $ fromJust $ userAvatar user})">
<p>#{userIdent user}
$else
<a href=@{SelectR uId}>
<p>#{userIdent user}
<article .article #func>
<a href=@{ReactivateR}>

View file

@ -19,8 +19,9 @@ $if null beverages
$forall (Entity bId bev) <- beverages
<article .article>
<a href=@{BuyR uId bId}>
<p>
#{beverageIdent bev}
$if beverageAvatar bev /= Nothing
<img src=@{GetAvatarR $ fromJust $ beverageAvatar bev}>
$if beverageAvatar bev /= Nothing
<a href=@{BuyR uId bId} style="background-image: url(@{GetAvatarR $ fromJust $ beverageAvatar bev})">
<p>#{beverageIdent bev}
$else
<a href=@{BuyR uId bId}>
<p>#{beverageIdent bev}

View file

@ -4,8 +4,9 @@ $doctype 5
$forall (Entity bId bev) <- beverages
<article .article>
<a href=@{BuyCashR bId}>
<p>
#{beverageIdent bev}
$if beverageAvatar bev /= Nothing
<img src=@{GetAvatarR $ fromJust $ beverageAvatar bev}>
$if beverageAvatar bev /= Nothing
<a href=@{BuyCashR bId} style="background-image: url(@{GetAvatarR $ fromJust $ beverageAvatar bev})">
<p>#{beverageIdent bev}
$else
<a href=@{BuyCashR bId}>
<p>#{beverageIdent bev}