Increase top spacing of focused anchor, fix "skip to main content" preventing clicking on nav items on mobile

This commit is contained in:
daudix
2024-06-06 23:19:04 +03:00
parent 8c1eb3bdc7
commit 2f3102e251
2 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,7 @@ body {
// and flash it with primary color when jumping to it // and flash it with primary color when jumping to it
:target:not(#main) { :target:not(#main) {
animation: var(--transition-long) 1s highlight-in-out; animation: var(--transition-long) 1s highlight-in-out;
scroll-margin-top: 15vh; scroll-margin-top: 20vh;
color: var(--primary-color); color: var(--primary-color);
text-shadow: var(--primary-color-alpha) 0 0 4px, var(--primary-color) 0 0 12px; text-shadow: var(--primary-color-alpha) 0 0 4px, var(--primary-color) 0 0 12px;

View File

@ -85,6 +85,7 @@
transition-duration: var(--transition); transition-duration: var(--transition);
transition-property: transform, opacity; transition-property: transform, opacity;
background: var(--bg-color), var(--primary-color); background: var(--bg-color), var(--primary-color);
pointer-events: none;
&:focus { &:focus {
transform: translateY(0); transform: translateY(0);