Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 05500de6 authored by Plumtree3D's avatar Plumtree3D
Browse files

fix navbar

parent 9ad831ad
No related branches found
No related tags found
1 merge request!16Resolve "fix: navbar"
Pipeline #21923 failed
...@@ -49,7 +49,7 @@ const config = { ...@@ -49,7 +49,7 @@ const config = {
respectPrefersColorScheme: false, respectPrefersColorScheme: false,
}, },
navbar: { navbar: {
hideOnScroll: true, hideOnScroll: false,
logo: { logo: {
alt: 'Lydra Logo', alt: 'Lydra Logo',
src: 'img/logo_lydra.svg', src: 'img/logo_lydra.svg',
...@@ -58,7 +58,8 @@ const config = { ...@@ -58,7 +58,8 @@ const config = {
{ {
to: '/', to: '/',
label: 'Home', label: 'Home',
position: 'right' position: 'right',
activeBaseRegex: '^/$'
}, },
{ {
type: 'dropdown', type: 'dropdown',
...@@ -112,6 +113,7 @@ const config = { ...@@ -112,6 +113,7 @@ const config = {
{ {
label: 'L\'équipe', label: 'L\'équipe',
to: '/#team', to: '/#team',
activeBasePath: '/#'
}, },
{ {
label: 'Nos inspirations', label: 'Nos inspirations',
......
...@@ -31,7 +31,7 @@ export default function TestimoniesCarousel() { ...@@ -31,7 +31,7 @@ export default function TestimoniesCarousel() {
accessibility: true, accessibility: true,
nextArrow: <SampleNextArrow />, nextArrow: <SampleNextArrow />,
prevArrow: <SamplePrevArrow />, prevArrow: <SamplePrevArrow />,
infinite: false, infinite: true,
autoplay: true, autoplay: true,
dots: true, dots: true,
speed: 500, speed: 500,
......
...@@ -41,8 +41,6 @@ ...@@ -41,8 +41,6 @@
/* For readability concerns, you should choose a lighter palette in dark mode. */ /* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] { [data-theme='dark'] {
--ifm-navbar-background-color: transparent;
--ifm-color-primary: #f15a22; --ifm-color-primary: #f15a22;
--ifm-color-primary-dark: #e94a0f; --ifm-color-primary-dark: #e94a0f;
--ifm-color-primary-darker: #dc460e; --ifm-color-primary-darker: #dc460e;
......
...@@ -6,7 +6,8 @@ import { ...@@ -6,7 +6,8 @@ import {
useNavbarMobileSidebar, useNavbarMobileSidebar,
} from '@docusaurus/theme-common/internal'; } from '@docusaurus/theme-common/internal';
import NavbarMobileSidebar from '@theme/Navbar/MobileSidebar'; import NavbarMobileSidebar from '@theme/Navbar/MobileSidebar';
import styles from './styles.module.css';
function NavbarBackdrop(props) { function NavbarBackdrop(props) {
...@@ -19,6 +20,7 @@ function NavbarBackdrop(props) { ...@@ -19,6 +20,7 @@ function NavbarBackdrop(props) {
); );
} }
export default function NavbarLayout({children}) { export default function NavbarLayout({children}) {
const { const {
navbar: {hideOnScroll, style}, navbar: {hideOnScroll, style},
} = useThemeConfig(); } = useThemeConfig();
......
.navbarHideable {
transition: var(--ifm-transition-fast) ease;
}
.navbarHidden {
background-color: var(--ifm-background-surface-color);
box-shadow: var(--ifm-navbar-shadow)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment