add logo to topbar

pull/1/head
Pierre Bondoerffer 7 years ago
parent 8a56029bfe
commit e2f8c9c5da
No known key found for this signature in database
GPG Key ID: C0C7C0C5063F2236

@ -251,6 +251,9 @@ define([
]), ]),
h('div.collapse.navbar-collapse#menuCollapse', [ h('div.collapse.navbar-collapse#menuCollapse', [
h('ul.navbar-nav', [ 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('li.nav-item', [
h('a.nav-link', { href: '/what-is-cryptpad.html'}, Msg.topbar_whatIsCryptpad), h('a.nav-link', { href: '/what-is-cryptpad.html'}, Msg.topbar_whatIsCryptpad),
]), ]),

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

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

Loading…
Cancel
Save