add logo to topbar

This commit is contained in:
Pierre Bondoerffer 2017-08-02 12:37:56 +02:00
parent 8a56029bfe
commit e2f8c9c5da
No known key found for this signature in database
GPG key ID: C0C7C0C5063F2236
3 changed files with 18 additions and 0 deletions

View file

@ -251,6 +251,9 @@ define([
]),
h('div.collapse.navbar-collapse#menuCollapse', [
h('ul.navbar-nav', [
h('a.cp-logo', { href: '/' }, [
h('img', { src: '/customize/cryptpad-new-logo-colors-logoonly.png?' + urlArgs })
]),
h('li.nav-item', [
h('a.nav-link', { href: '/what-is-cryptpad.html'}, Msg.topbar_whatIsCryptpad),
]),

View file

@ -120,10 +120,22 @@
-webkit-user-select: none;
-ms-user-select: none;
.navbar-nav {
display: flex;
align-items: center;
}
a {
font-weight: 500;
padding: 0.6em;
.infopages_link()
}
.cp-logo {
img {
height: @infopages_infobar-height / 2;
}
margin-right: 0.5em;
}
}
}

View file

@ -88,6 +88,9 @@
font-size: 1.6rem;
}
}
a.cp-logo {
display: none;
}
}
@callout-padding: 15px;
a:hover {