Fix multi-line padded bg

This commit is contained in:
arne 2022-02-26 14:04:23 +01:00
commit 7c3a4fbaf0

View file

@ -55,11 +55,14 @@ a {
color: $highlight;
text-decoration: none;
position: relative;
padding: .1em 0;
transition: background .2s ease-in, box-shadow .2s ease-in;
// multi-line padded background
box-decoration-break: clone;
background: $highlight-1;
box-shadow: .3em 0 0 $highlight-1,
-.3em 0 0 $highlight-1;
padding: .1em 0;
transition: background .2s ease-in, box-shadow .2s ease-in;
&:hover {
background: $highlight-2;
@ -181,9 +184,12 @@ footer {
a {
color: #888;
// multi-line padded background
background: #88888822;
box-shadow: .3em 0 0 #88888822,
-.3em 0 0 #88888822;
box-decoration-break: clone;
&:hover {
background: #88888844;