Browse Source

use logo in toolbar

master
Pierre Bondoerffer 3 years ago
parent
commit
f6d45d05f6
No known key found for this signature in database GPG Key ID: C0C7C0C5063F2236
3 changed files with 13 additions and 7 deletions
  1. 1
      customize.dist/images/logo_white.svg
  2. 13
      customize.dist/src/less/toolbar.less
  3. 6
      www/common/toolbar2.js

1
customize.dist/images/logo_white.svg
File diff suppressed because it is too large
View File

13
customize.dist/src/less/toolbar.less

@ -815,13 +815,16 @@ body .cryptpad-toolbar {
}
a.cryptpad-logo {
cursor: pointer;
font-size: 1em;
height: auto;
padding: 0px 5px;
display: inline-flex;
text-decoration: none;
height: auto;
padding: 10px;
// hack because of whiteboard and poll
color: white !important;
img {
cursor: pointer;
height: 100%;
width: 100%;
}
}
}
.cryptpad-user {

6
www/common/toolbar2.js

@ -625,8 +625,10 @@ define([
var $aTag = $('<a>', {
href: "/drive/",
title: Messages.header_logoTitle,
'class': "cryptpad-logo fa fa-hdd-o"
});
'class': "cryptpad-logo"
}).append($('<img>', {
src: '/customize/images/logo_white.svg'
}));
var onClick = function (e) {
e.preventDefault();
if (e.ctrlKey) {

Loading…
Cancel
Save