1
0
mirror of https://github.com/jenil/chota.git synced 2023-08-10 21:13:07 +03:00

Alias .current with aria-current=page

This commit is contained in:
Rémy F 2020-10-19 00:01:06 +02:00
parent 281e9561f1
commit 0cc8c28806
4 changed files with 7 additions and 1 deletions

3
dist/chota.css vendored
View File

@ -716,6 +716,7 @@ button:disabled:hover {
padding: 1rem 2rem;
color: var(--color-darkGrey);
}
.nav [aria-current="page"]:not(.button),
.nav .active:not(.button) {
color: #000; /* fallback */
color: var(--color-primary);
@ -763,11 +764,13 @@ button:disabled:hover {
border-bottom: 2px solid var(--color-lightGrey);
text-align: center;
}
.tabs > a[aria-current="page"],
.tabs > a.active,
.tabs > a:hover {
opacity: 1;
border-bottom: 2px solid var(--color-darkGrey);
}
.tabs > a[aria-current="page"],
.tabs > a.active {
border-color: var(--color-primary);
}

2
dist/chota.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -53,6 +53,7 @@
color: var(--color-darkGrey);
}
.nav [aria-current="page"]:not(.button),
.nav .active:not(.button) {
color: #000; /* fallback */
color: var(--color-primary);

View File

@ -15,12 +15,14 @@
text-align: center;
}
.tabs > a[aria-current="page"],
.tabs > a.active,
.tabs > a:hover {
opacity: 1;
border-bottom: 2px solid var(--color-darkGrey);
}
.tabs > a[aria-current="page"],
.tabs > a.active {
border-color: var(--color-primary);
}