mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
ui: Keyboard accessibility focus highlights (#180)
* Focus indication for mailbox message list * Add focus for monitor message list
This commit is contained in:
@@ -98,9 +98,14 @@
|
||||
border-width: 1px;
|
||||
border-style: none solid solid solid;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
padding: 5px 8px;
|
||||
}
|
||||
|
||||
.message-list-entry:focus {
|
||||
background-color: var(--focused-bg-color) !important;
|
||||
}
|
||||
|
||||
.message-list-entry.selected {
|
||||
background-color: var(--selected-color);
|
||||
}
|
||||
@@ -109,6 +114,10 @@
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.message-list-entry:focus .subject {
|
||||
color: var(--focused-color);
|
||||
}
|
||||
|
||||
.message-list-entry .subject {
|
||||
color: var(--high-color);
|
||||
}
|
||||
@@ -117,6 +126,12 @@
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.message-list-entry:focus .from,
|
||||
.message-list-entry:focus .date {
|
||||
color: var(--focused-color);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.message-list-entry .from,
|
||||
.message-list-entry .date {
|
||||
color: var(--low-color);
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
--border-color: #ddd;
|
||||
--placeholder-color: #9f9f9f;
|
||||
--selected-color: #eee;
|
||||
--focused-color: #fff;
|
||||
--focused-bg-color: #337ab7;
|
||||
}
|
||||
|
||||
html, body, div, span, applet, object, iframe,
|
||||
@@ -352,3 +354,9 @@ h3 {
|
||||
background-color: var(--selected-color);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.monitor tr:focus {
|
||||
color: var(--focused-color);
|
||||
background-color: var(--focused-bg-color);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user