Skip to content
Extraits de code Groupes Projets
Valider c3c20db8 rédigé par danielgrippi's avatar danielgrippi
Parcourir les fichiers

fix arrow positioning for moz.

parent 8d2376b3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
<a href="#" class="nav-arrow left" id="forward"> <a href="#" class="nav-arrow left" id="forward">
<img src="/images/arrow-left.png" /> <div class="nav-arrow-inner">
<img src="/images/arrow-left.png" />
</div>
</a> </a>
<a href="#" class="nav-arrow right" id="back"> <a href="#" class="nav-arrow right" id="back">
<img src="/images/arrow-right.png" /> <div class="nav-arrow-inner">
<img src="/images/arrow-right.png" />
</div>
</a> </a>
...@@ -23,7 +23,7 @@ app.views.PostViewerNav = app.views.Base.extend({ ...@@ -23,7 +23,7 @@ app.views.PostViewerNav = app.views.Base.extend({
if(evt) { evt.preventDefault(); } if(evt) { evt.preventDefault(); }
var link; var link;
evt.target.tagName == "IMG" ? link = $(evt.target).closest("a") : link = $(evt.target) evt.target.tagName != "A" ? link = $(evt.target).closest("a") : link = $(evt.target)
app.router.navigate(link.attr("href").substring(1), true) app.router.navigate(link.attr("href").substring(1), true)
} }
......
...@@ -219,7 +219,8 @@ $light-grey: #999; ...@@ -219,7 +219,8 @@ $light-grey: #999;
.nav-arrow { .nav-arrow {
@include opacity(0.8); @include opacity(0.8);
@include transition(background-color, 0.3s); @include transition(background-color, 0.3s);
@include center();
display: table;
position: fixed; position: fixed;
height: 100%; height: 100%;
...@@ -228,6 +229,12 @@ $light-grey: #999; ...@@ -228,6 +229,12 @@ $light-grey: #999;
padding: 0 13px; padding: 0 13px;
background-color: rgba(0,0,0,0); background-color: rgba(0,0,0,0);
.nav-arrow-inner {
padding: 0; margin: 0;
display: table-cell;
vertical-align: middle;
}
img { img {
@include opacity(0.5); @include opacity(0.5);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter