mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-21 10:53:33 +08:00
fix: clear lingering touch highlights on header buttons
This commit is contained in:
parent
0df1b3a071
commit
8f49a1f44b
@ -33,6 +33,24 @@
|
||||
color: var(--r-text-secondary);
|
||||
}
|
||||
|
||||
:is(
|
||||
.layout-header__menu-toggle,
|
||||
.override-button__layout,
|
||||
.layout-header__account
|
||||
) {
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--r-theme-primary-color);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
@media (hover: none) {
|
||||
// 抽屉关闭会将焦点交还给触发按钮,触屏浏览器也可能保留 :hover。
|
||||
&:is(:hover, :focus):not(:active, :focus-visible, :disabled, .is-open) {
|
||||
background-color: var(--n-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__account {
|
||||
block-size: 40px;
|
||||
margin-inline-start: 8px;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user