Change navigation bar

- move all navbar styles to infopages.less as they should be the same
for all pages
pull/1/head
David Benqué 4 years ago
parent 52e20ea4aa
commit ecbd463cbc

@ -137,7 +137,9 @@ define([
}); });
return h('nav.navbar.navbar-expand-lg', return h('nav.navbar.navbar-expand-lg',
h('a.navbar-brand', { href: '/index.html'}), h('a.navbar-brand', { href: '/index.html'}, [
h('img', { src: '/customize/CryptPad_logo.svg?', 'aria-hidden': true}), 'CryptPad'
]),
button, button,
h('div.collapse.navbar-collapse.justify-content-end#menuCollapse', [ h('div.collapse.navbar-collapse.justify-content-end#menuCollapse', [
h('a.nav-item.nav-link', { href: 'https://blog.cryptpad.fr/'}, Msg.blog), h('a.nav-item.nav-link', { href: 'https://blog.cryptpad.fr/'}, Msg.blog),

@ -22,8 +22,8 @@ body {
// Basic setup for info pages, this should be used at the global level // Basic setup for info pages, this should be used at the global level
background-color: @colortheme_info-background; background-color: @colortheme_info-background;
a { a {
color: @cryptpad_color_blue; color: @colortheme_logo-2;
&:visited { color: darken(@cryptpad_color_blue, 5%); } &:visited { color: darken(@colortheme_logo-2, 5%); }
} }
a:hover { a:hover {
opacity: 1; opacity: 1;
@ -155,14 +155,18 @@ body {
// navigation top bar // navigation top bar
.navbar { .navbar {
background: #fff; width: 100%;
color: @colortheme_logo-2;
.navbar-brand { .navbar-brand {
display: block; display: block;
background-image: url(/customize/CryptPad_logo_color.svg);
background-repeat: no-repeat;
background-size: contain;
height: 50px; height: 50px;
width: 250px; width: 250px;
font-family: "IBM Plex Mono";
font-size: 1.8em;
img {
max-width: 40px;
margin-right: 10px
}
@media (max-width: 326px) { @media (max-width: 326px) {
width: 180px; width: 180px;
} }
@ -171,15 +175,18 @@ body {
a { a {
border: 2px solid transparent; border: 2px solid transparent;
white-space: nowrap; white-space: nowrap;
&:visited {
color: @colortheme_logo-2;
}
} }
.nav-link { .nav-link {
padding: 0.5em 0.7em; padding: 0.5em 0.7em;
&:hover { &:hover {
color: @cryptpad_color_light_blue; color: @cryptpad_text_col;
} }
} }
.cp-register-btn { .cp-register-btn {
border: 2px solid #4591C4; border: 2px solid @colortheme_logo-2;
display: inline-block; display: inline-block;
} }
button:focus { button:focus {
@ -187,7 +194,7 @@ body {
} }
.navbar-toggler { .navbar-toggler {
margin-top: 10px; margin-top: 10px;
color: #4591C4; color: @colortheme_logo-2;
} }
} }
@media (max-width: 1000px) { @media (max-width: 1000px) {

@ -74,35 +74,7 @@
//font-style: italic; //font-style: italic;
} }
} }
.navbar {
background: transparent;
width: 100%;
@media only screen and (max-device-width: 991px) {
margin-top: 0;
}
.navbar-brand {
background-image: url(/customize/CryptPad-white-logo.svg);
}
a {
color: #fff;
&:visited {
color: rgba(255,255,255,.9);
};
}
.nav-link {
&:hover {
color: inherit;
transform: scale(1.05);
};
}
.cp-register-btn {
border: 2px solid #fff;
}
.navbar-toggler {
margin-top: 10px;
color: #fff;
}
}
@callout-padding: 15px; @callout-padding: 15px;
a:hover { a:hover {
text-decoration: none; text-decoration: none;

Loading…
Cancel
Save