fixed avatars with legacy browsers. grrrr.
This commit is contained in:
parent
54063ef6a1
commit
5daedf202f
4 changed files with 19 additions and 25 deletions
|
@ -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 {
|
||||
|
|
|
@ -13,10 +13,12 @@ $if null beverages
|
|||
|
||||
$forall (Entity uId user) <- users
|
||||
<article .article>
|
||||
$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}
|
||||
$if userAvatar user /= Nothing
|
||||
<img src=@{GetAvatarR $ fromJust $ userAvatar user}>
|
||||
|
||||
<article .article #func>
|
||||
<a href=@{ReactivateR}>
|
||||
|
|
|
@ -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}>
|
||||
<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}
|
||||
|
|
|
@ -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}>
|
||||
<a href=@{BuyCashR bId} style="background-image: url(@{GetAvatarR $ fromJust $ beverageAvatar bev})">
|
||||
<p>#{beverageIdent bev}
|
||||
$else
|
||||
<a href=@{BuyCashR bId}>
|
||||
<p>#{beverageIdent bev}
|
||||
|
|
Loading…
Reference in a new issue