Toolbar fixes

- correct notification and maintenance icons on small screens
- add CrytpPad logo to the top of user menu
master
David Benqué 3 years ago
parent 72c2fc0daa
commit cdb1bc83f2

@ -442,6 +442,7 @@
screen and (max-height: 500px) { screen and (max-height: 500px) {
flex-wrap: wrap; flex-wrap: wrap;
height: @toolbar_line-height; height: @toolbar_line-height;
// XXX DB TODO: scale down icon logo on small screens
.cp-pad-not-pinned { .cp-pad-not-pinned {
line-height: 32px; line-height: 32px;
flex: unset; flex: unset;
@ -509,6 +510,9 @@
//transform: scale(0.5); //transform: scale(0.5);
.cp-toolbar-link-logo { .cp-toolbar-link-logo {
padding: 5px; padding: 5px;
span {
font-size: 24px;
}
} }
} }
.cp-toolbar-user { .cp-toolbar-user {
@ -517,16 +521,20 @@
height: @toolbar_line-height; height: @toolbar_line-height;
width: @toolbar_line-height; width: @toolbar_line-height;
margin-left: 0; margin-left: 0;
padding: 0px;
button { button {
height: @toolbar_line-height; height: @toolbar_line-height;
width: @toolbar_line-height; width: @toolbar_line-height;
font-size: 15px; font-size: 15px;
margin-top: -1px; margin-top: -1px;
.cp-dropdown-button-title { &::before {
transform: scale(0.5); padding-top: 1px;
bottom: -5px;
right: -5px;
} }
// .cp-dropdown-button-title {
// transform: scale(0.5);
// bottom: -5px;
// right: -5px;
// }
} }
} }
.cp-toolbar-user-dropdown { .cp-toolbar-user-dropdown {
@ -799,6 +807,8 @@
text-decoration: none; text-decoration: none;
height: auto; height: auto;
padding: 10px; padding: 10px;
color: @toolbar-bg-color;
color: var(--toolbar-bg-color);
span { span {
font-size: 45px; font-size: 45px;
@ -884,6 +894,19 @@
} }
} }
} }
.cp-user-menu-logo {
text-align: left;
font-family: "IBM Plex Mono";
color: @cryptpad_color_grey_500;
font-size: 1.5em;
padding: 5px;
img {
width: 25px;
}
.cp-user-menu-logo-text {
margin-left: 10px;
}
}
p.cp-toolbar-account { p.cp-toolbar-account {
&> span { &> span {
font-weight: bold; font-weight: bold;

@ -1685,6 +1685,14 @@ define([
var $userName = $('<span>'); var $userName = $('<span>');
var options = []; var options = [];
options.push({
tag: 'div',
attributes: {'class': 'cp-user-menu-logo'},
content: h('span', [
h('img', {src: '/customize/CryptPad_logo_grey.svg',alt: 'CryptPad logo',}),
h('span.cp-user-menu-logo-text', "CryptPad")
]),
});
if (config.displayNameCls) { if (config.displayNameCls) {
var $userAdminContent = $('<p>'); var $userAdminContent = $('<p>');
if (accountName) { if (accountName) {

Loading…
Cancel
Save