Merge pull request #87 from Banzobotic/fix-clickable-edges

Fix clicking edges of clickable elements
This commit is contained in:
Prospector
2023-10-11 14:04:10 -07:00
committed by GitHub

View File

@@ -231,9 +231,30 @@ a,
transition: opacity 0.5s ease-in-out, filter 0.2s ease-in-out, scale 0.05s ease-in-out,
outline 0.2s ease-in-out;
position: relative;
&:not(.markdown-body a) {
pointer-events: none;
}
&:active:not(&:disabled) {
scale: 0.95;
}
&:not(.markdown-body a)::before {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
pointer-events: all;
border-radius: inherit;
}
&:active::before {
scale: 1.1;
}
}
.button-base {