Skip to content
Snippets Groups Projects
Commit 66cb6352 authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

sidebars

parent 563c72dd
No related branches found
No related tags found
No related merge requests found
Pipeline #430347 passed
...@@ -132,6 +132,17 @@ hr{ ...@@ -132,6 +132,17 @@ hr{
/* * * * * * * */ /* * * * * * * */
/* * * BODY* * */ /* * * BODY* * */
/* * * * * * * */ /* * * * * * * */
.progress-bar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 5;
height: 4.5rem;
background: var(--darkerbeige) !important;
transform-origin: 0%;
}
body { body {
/* padding-top: 56px; */ /* padding-top: 56px; */
background-color: var(--ourbeige); background-color: var(--ourbeige);
...@@ -236,9 +247,8 @@ color: var(--text-primary); ...@@ -236,9 +247,8 @@ color: var(--text-primary);
.sticky-top { .sticky-top {
position: -webkit-sticky; position: -webkit-sticky;
position: sticky !important; position: sticky !important;
top: 0;
z-index: 1020; z-index: 1020;
top: 80px !important; top: 100px !important;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
.small-only{ .small-only{
...@@ -3666,4 +3676,5 @@ a{ ...@@ -3666,4 +3676,5 @@ a{
.sideitem ul{ .sideitem ul{
margin-left: 0 !important; margin-left: 0 !important;
padding-left: 10px !important; padding-left: 10px !important;
} }
\ No newline at end of file
...@@ -20,9 +20,13 @@ import { stringToSlug } from "../utils/stringToSlug.ts"; ...@@ -20,9 +20,13 @@ import { stringToSlug } from "../utils/stringToSlug.ts";
import { Villbuttonrow } from "../components/Buttons.tsx"; import { Villbuttonrow } from "../components/Buttons.tsx";
import "../utils/Highlight-functions.js"; import "../utils/Highlight-functions.js";
import "./LoadingScreen.css"; import "./LoadingScreen.css";
import { useScroll, motion } from "framer-motion";
const App = () => { const App = () => {
const { scrollYProgress } = useScroll({
offset: ["start start", "end end"],
});
window.scrollTo(0, 0); window.scrollTo(0, 0);
const [isLoading, setIsLoading] = useState(true); const [isLoading, setIsLoading] = useState(true);
...@@ -61,10 +65,13 @@ const App = () => { ...@@ -61,10 +65,13 @@ const App = () => {
) : ( ) : (
<> <>
{/* Navigation */} {/* Navigation */}
<Navbar /> <Navbar />
{/* Embed the viewer */} <motion.div
className="progress-bar"
style={{ scaleX: scrollYProgress }}
/>
{/* Header and PageContent */} {/* Header and PageContent */}
<Routes> <Routes>
...@@ -74,6 +81,7 @@ const App = () => { ...@@ -74,6 +81,7 @@ const App = () => {
path={path} path={path}
element={ element={
<> <>
<Header /> <Header />
{/* Page content */} {/* Page content */}
<div className="container-fluid"> <div className="container-fluid">
......
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