added progress indicator container

This commit is contained in:
Massimo Scagliola 2024-04-02 16:56:43 +02:00
parent 52b9d66cc9
commit 3db42dbd47
2 changed files with 15 additions and 3 deletions

View File

@ -42,7 +42,7 @@
}
&-content {
margin-top: 30px;
// margin-top: 10px;
text-align: justify;
h2 {
text-align: center;
@ -223,6 +223,16 @@
}
}
#progress-bar-container {
height: .9rem;
position: sticky;
top: 0;
background-color: $light-background;
.dark-theme & {
background-color: $dark-background;
}
}
#progress-bar {
--scrollAmount: 0%;
background-color: $light-color-secondary;
@ -231,6 +241,6 @@
}
width: var(--scrollAmount);
height: .5rem;
top: .2rem;
position: sticky;
top: 0;
}

View File

@ -28,7 +28,9 @@
<img src="/{{ . }}" class="post-cover" />
{{ end }}
<div id="progress-bar"></div>
<div id="progress-bar-container">
<div id="progress-bar"></div>
</div>
<div class="post-content story">
{{ .Content }}