mirror of
https://github.com/picocss/pico.git
synced 2025-04-26 03:06:14 -04:00
chore(nav): Optimize selectors
This commit is contained in:
parent
77cdcc6e4a
commit
afda3f529b
13 changed files with 17 additions and 36 deletions
|
@ -1843,19 +1843,14 @@ nav li {
|
|||
nav li > * {
|
||||
--spacing: 0;
|
||||
}
|
||||
nav a,
|
||||
nav [role=link] {
|
||||
nav :where(a, [role="link"]) {
|
||||
display: inline-block;
|
||||
margin: calc(var(--nav-link-spacing-vertical) * -1) calc(var(--nav-link-spacing-horizontal) * -1);
|
||||
padding: var(--nav-link-spacing-vertical) var(--nav-link-spacing-horizontal);
|
||||
border-radius: var(--border-radius);
|
||||
text-decoration: none;
|
||||
}
|
||||
nav a[aria-current], nav a:hover, nav a:active, nav a:focus,
|
||||
nav [role=link][aria-current],
|
||||
nav [role=link]:hover,
|
||||
nav [role=link]:active,
|
||||
nav [role=link]:focus {
|
||||
nav :where(a, [role="link"]):is([aria-current], :hover, :active, :focus) {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue