UX: sidebar focus styles, remove hover for touch (#17713)

This commit is contained in:
Kris 2022-07-28 13:04:00 -04:00 committed by GitHub
parent 53d861414d
commit 391c687afb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 12 deletions

View File

@ -3,16 +3,23 @@
.sidebar-more-section-links-details-summary { .sidebar-more-section-links-details-summary {
padding: 0.35em 0.5em; padding: 0.35em 0.5em;
color: var(--tertiary); color: var(--primary-high);
font-size: var(--font-down-1); font-size: var(--font-down-1);
transition: background-color 0.25s; transition: background-color 0.25s;
display: flex;
align-items: center;
list-style: none;
.d-icon {
margin-left: auto;
color: var(--primary-medium);
}
&:focus,
&:hover { &:hover {
background: var(--d-sidebar-highlight-color); background: var(--d-sidebar-highlight-color);
} }
list-style: none;
&::before { &::before {
display: none; display: none;
} }

View File

@ -3,11 +3,15 @@
.sidebar-section-header-button, .sidebar-section-header-button,
.sidebar-section-header-caret, .sidebar-section-header-caret,
.sidebar-section-header-dropdown { .sidebar-section-header-dropdown {
.discourse-no-touch & {
opacity: 0; opacity: 0;
transition: opacity 0.25s; transition: opacity 0.25s;
transition-delay: 0.5s; transition-delay: 0.5s;
} }
}
.discourse-no-touch & {
&:focus-within,
&:hover { &:hover {
.sidebar-section-header-button, .sidebar-section-header-button,
.sidebar-section-header-caret, .sidebar-section-header-caret,
@ -18,3 +22,4 @@
} }
} }
} }
}

View File

@ -16,3 +16,8 @@
margin-right: 0; margin-right: 0;
padding-left: 0.25em; padding-left: 0.25em;
} }
.sidebar-more-section-links-details
.sidebar-more-section-links-details-summary {
font-size: var(--font-0);
}