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;
|
||||
width: 80%;
|
||||
left: -100%;
|
||||
-webkit-transition: left 0.5s;
|
||||
-moz-transition: left 0.5s;
|
||||
-o-transition: left 0.5s;
|
||||
transition: left 0.5s;
|
||||
}
|
||||
|
||||
|
|
|
@ -87,7 +87,16 @@ function cmtBbClose(id) {
|
|||
$("#comment-edit-bb-" + id).hide();
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
</script>
|
||||
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");
|
||||
|
@ -95,10 +104,11 @@ $(document).ready(function() {
|
|||
$(".tabs").click(function(e){
|
||||
$(this).toggleClass("show");
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
EOT;
|
||||
}
|
||||
|
||||
|
||||
// Hide the left menu bar
|
||||
if (($a->page['aside'] == "") AND in_array($a->argv[0], array("community", "events", "help", "manage", "notifications",
|
||||
|
|
Loading…
Reference in a new issue