diff --git a/css/src/mobile.css b/css/src/mobile.css index f7504320c..d55eb1b89 100644 --- a/css/src/mobile.css +++ b/css/src/mobile.css @@ -280,7 +280,7 @@ border-left: none; } - .right-small a { + .right-small a, .left-small a { color: white; } @@ -352,14 +352,14 @@ padding: 0; } - a, button, .button, input, textarea, select { + a, button, .button, input, textarea, select, .reveal-modal { -webkit-box-shadow: none !important; -moz-box-shadow: none !important; box-shadow: none !important; -webkit-tap-highlight-color:rgba(0,0,0,0); } - .modal.fade, .reveal-modal-bg { + .modal.fade { opacity: 1; } @@ -373,6 +373,19 @@ .button.secondary:hover, button.secondary:hover { background: #008CC1; color: #fff; + } + + .move-right .close-menu { + cursor: pointer; + box-shadow: none; + display: block; + position: absolute; + background: rgba(255,255,255,.2); + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 1002; } /*******************************************/ @@ -426,6 +439,20 @@ margin-top: 10px; } + .reveal-modal { + border: none; + } + + .reveal-modal-bg { + position: absolute; + height: 0; + width: 0; + background: none; + display: none; + top: 0; + left: 0; + } + /* notifications */ .dr-notification { diff --git a/index.html b/index.html index 12ce5e95b..68403923e 100644 --- a/index.html +++ b/index.html @@ -30,8 +30,8 @@ + ng-swipe-left="closeMenu()" + ng-swipe-right="openMenu()">
Loading... @@ -85,7 +85,8 @@
diff --git a/js/controllers/index.js b/js/controllers/index.js index 6362fa1f6..3f4e85eac 100644 --- a/js/controllers/index.js +++ b/js/controllers/index.js @@ -23,8 +23,12 @@ angular.module('copayApp.controllers').controller('IndexController', function($s }); }; - $scope.swipe = function(invert) { - go.swipe(invert); + $scope.openMenu = function() { + go.swipe(true); + }; + + $scope.closeMenu = function() { + go.swipe(); }; }); diff --git a/js/controllers/sidebar.js b/js/controllers/sidebar.js index cf074753f..f6b9ab372 100644 --- a/js/controllers/sidebar.js +++ b/js/controllers/sidebar.js @@ -117,4 +117,8 @@ angular.module('copayApp.controllers').controller('SidebarController', function( }); $scope.wallets = _.sortBy(ret, 'name'); }; + + $scope.openMenu = function() { + go.swipe(true); + }; }); diff --git a/views/settings.html b/views/settings.html index 13cc014a8..a1a411a2a 100644 --- a/views/settings.html +++ b/views/settings.html @@ -67,7 +67,7 @@
- Log level shows information on the console. This is useful to find bugs and to help users. 'debug' is the most verbose level while 'fatal' only shows unexpected errors + Log level shows information on the console. This is useful to find bugs and to help users. 'debug' is the most verbose level while 'fatal' only shows unexpected errors