Skip to content

Commit

Permalink
fix: Anchoring FINALLY works
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-psi committed Jul 26, 2023
1 parent c08f323 commit 94c4bd9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 101 deletions.
90 changes: 0 additions & 90 deletions internal/build/web/index.html

This file was deleted.

8 changes: 3 additions & 5 deletions internal/build/web/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,9 @@
this.loading = LoadingStatus.Error;
}

if (w.location.hash) {
this.$nextTick(() => {
w.location.replace(w.location.hash);
});
}
this.$nextTick(() => {
window.location.hash && window.location.replace(window.location.hash);
});
},

updateFilteredList() {
Expand Down
16 changes: 10 additions & 6 deletions internal/build/web/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
body {
margin: 0.75rem auto;
max-width: 42rem;
opacity: 0;
}

:not(:defined) {
visibility: hidden;
}

@media only screen and (max-width: 767px) {
Expand All @@ -44,11 +47,6 @@ body {
}
}


body.ready {
opacity: 1;
}

header {
margin: 1rem auto;

Expand Down Expand Up @@ -136,6 +134,12 @@ header p {
padding: 0.5rem 0.5rem;
}

.sources__item:target {
background-color: rgba(255, 55, 95, 0.25);
border-radius: 0.5rem;
transition: background-color .5s;
}

@media (min-width: 1024px) {
.sources__item {
padding-left: 1.5rem;
Expand Down

0 comments on commit 94c4bd9

Please sign in to comment.