mirror of
https://github.com/friendica/friendica
synced 2024-12-23 17:20:16 +00:00
vier mobile: prefixed transition in css, mobile-related javascript only on mobile
This commit is contained in:
parent
54460bdf35
commit
c81f63a5b3
2 changed files with 22 additions and 9 deletions
|
@ -108,6 +108,9 @@ aside {
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
left: -100%;
|
left: -100%;
|
||||||
|
-webkit-transition: left 0.5s;
|
||||||
|
-moz-transition: left 0.5s;
|
||||||
|
-o-transition: left 0.5s;
|
||||||
transition: left 0.5s;
|
transition: left 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,19 +87,29 @@ function cmtBbClose(id) {
|
||||||
$("#comment-edit-bb-" + id).hide();
|
$("#comment-edit-bb-" + id).hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
|
||||||
$(".mobile-aside-toggle a").click(function(e){
|
|
||||||
e.preventDefault();
|
|
||||||
$("aside").toggleClass("show");
|
|
||||||
});
|
|
||||||
$(".tabs").click(function(e){
|
|
||||||
$(this).toggleClass("show");
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
EOT;
|
EOT;
|
||||||
|
|
||||||
|
|
||||||
|
if ($a->is_mobile || $a->is_tablet){
|
||||||
|
$a->page['htmlhead'] .= <<< EOT
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$(".mobile-aside-toggle a").click(function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
$("aside").toggleClass("show");
|
||||||
|
});
|
||||||
|
$(".tabs").click(function(e){
|
||||||
|
$(this).toggleClass("show");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
EOT;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Hide the left menu bar
|
// Hide the left menu bar
|
||||||
if (($a->page['aside'] == "") AND in_array($a->argv[0], array("community", "events", "help", "manage", "notifications",
|
if (($a->page['aside'] == "") AND in_array($a->argv[0], array("community", "events", "help", "manage", "notifications",
|
||||||
"probe", "webfinger", "login", "invite", "credits")))
|
"probe", "webfinger", "login", "invite", "credits")))
|
||||||
|
|
Loading…
Reference in a new issue