Commit c29d11f7 authored by Nick's avatar Nick

fix: scroll anchor preventing text selection

parent 1419e961
...@@ -247,7 +247,7 @@ export default { ...@@ -247,7 +247,7 @@ export default {
upBtnShown: false, upBtnShown: false,
scrollOpts: { scrollOpts: {
duration: 1500, duration: 1500,
offset: -75, offset: 0,
easing: 'easeInOutCubic' easing: 'easeInOutCubic'
}, },
scrollStyle: { scrollStyle: {
...@@ -309,6 +309,12 @@ export default { ...@@ -309,6 +309,12 @@ export default {
mounted () { mounted () {
Prism.highlightAllUnder(this.$refs.container) Prism.highlightAllUnder(this.$refs.container)
this.navShown = this.$vuetify.breakpoint.smAndUp this.navShown = this.$vuetify.breakpoint.smAndUp
this.$nextTick(() => {
if (window.location.hash && window.location.hash.length > 1) {
this.$vuetify.goTo(window.location.hash, this.scrollOpts)
}
})
}, },
methods: { methods: {
goHome () { goHome () {
......
...@@ -25,16 +25,6 @@ ...@@ -25,16 +25,6 @@
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
position: relative; position: relative;
&:before {
display: block;
content: " ";
width: 1px;
margin-top: -75px;
height: 75px;
visibility: hidden;
z-index: -1;
}
&:first-child { &:first-child {
padding-top: 0; padding-top: 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment