mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
[A11y] add skip-link to main content (#5087)
* [A11y] add skip-link to main content * fix contrast for skip-link * fix overlay with back-to-organizer-link * add fallback if no main-element * update nav-label
This commit is contained in:
committed by
GitHub
parent
6d0368a1bb
commit
caf291630c
@@ -69,6 +69,30 @@ html {
|
||||
}
|
||||
}
|
||||
|
||||
.on-focus-visible:focus, .on-focus-visible:focus-within {
|
||||
height: auto;
|
||||
width: auto;
|
||||
overflow: auto;
|
||||
clip: auto;
|
||||
}
|
||||
#skip-to-main {
|
||||
/* padding is needed to make focus-outline visible */
|
||||
padding: 8px;
|
||||
background-color: inherit;
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
a {
|
||||
padding: .125em .5em;
|
||||
display: inline-block;
|
||||
color: var(--pretix-link-contrast-color);
|
||||
outline-color: inherit;
|
||||
}
|
||||
a:active, a:hover, a:focus {
|
||||
color: var(--pretix-link-hover-contrast-color);
|
||||
}
|
||||
}
|
||||
|
||||
/* fixe for bootstrap using px-values for fontsize */
|
||||
.panel-title {
|
||||
font-size: ($font-size-base * 1.125);
|
||||
|
||||
Reference in New Issue
Block a user