From ce44a8d3515fe330c0e07a9f1d6b7414796d5802 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 23 Jun 2017 18:02:36 +0200 Subject: [PATCH] Fix the backup button in anonymous drive --- customize.dist/src/less/toolbar.less | 8 ++++++++ customize.dist/toolbar.css | 8 ++++++++ www/drive/main.js | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/customize.dist/src/less/toolbar.less b/customize.dist/src/less/toolbar.less index 8882cab21..376cfc8bd 100644 --- a/customize.dist/src/less/toolbar.less +++ b/customize.dist/src/less/toolbar.less @@ -768,6 +768,14 @@ body { } } } + .cryptpad-backup { + margin: 0; + border-radius: 0; + background: transparent; + &:hover { + background-color: rgba(0,0,0,0.2); + } + } } } .cryptpad-toolbar-leftside { diff --git a/customize.dist/toolbar.css b/customize.dist/toolbar.css index 2b41b5009..7ac73423d 100644 --- a/customize.dist/toolbar.css +++ b/customize.dist/toolbar.css @@ -1290,6 +1290,14 @@ body.app-file .cryptpad-toolbar .dropdown-bar-content p .accountData { .cryptpad-toolbar-top .cryptpad-user .cryptpad-user-dropdown button span .fa { margin-left: 3px; } +.cryptpad-toolbar-top .cryptpad-user .cryptpad-backup { + margin: 0; + border-radius: 0; + background: transparent; +} +.cryptpad-toolbar-top .cryptpad-user .cryptpad-backup:hover { + background-color: rgba(0, 0, 0, 0.2); +} .cryptpad-toolbar-leftside { height: 32px; float: left; diff --git a/www/drive/main.js b/www/drive/main.js index 33109e1dc..8908e3a8c 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -2753,7 +2753,7 @@ define([ if (!APP.loggedIn) { $hist.hide(); } if (!readOnly && !APP.loggedIn) { - var $backupButton = Cryptpad.createButton('', true).removeClass('fa').removeClass('fa-question'); + var $backupButton = Cryptpad.createButton('', true).removeClass('fa').removeClass('fa-question').addClass('cryptpad-backup'); $backupButton.append($backupIcon.clone().css('marginRight', '0px')); $backupButton.attr('title', Messages.fm_backup_title); $backupButton.on('click', function() {