Make focus ring follow the radius

This still won't work on Safari because its outline radius doesn't inherit from border radius
Future Safari will fix this
This commit is contained in:
Lim Chee Aun 2023-03-02 21:54:05 +08:00
parent 462d299b96
commit 07edae4cc3

View file

@ -1505,15 +1505,19 @@ ul.link-list li a .icon {
margin-top: 24px;
}
.timeline:not(.flat) > li {
--item-radius: 16px;
border: 1px solid var(--divider-color);
margin: 16px 0;
background-color: var(--bg-color);
border-radius: 16px;
border-radius: var(--item-radius);
overflow: hidden;
box-shadow: 0px 1px var(--bg-blur-color);
transition: transform 0.4s var(--timing-function);
--back-transition: transform 0.4s ease-out;
}
.timeline:not(.flat) > li > a {
border-radius: var(--item-radius);
}
.timeline:not(.flat) > li:not(:has(.status-carousel)) {
transform: translate3d(0, 0, 0);
}