style: add headings to dropdown menues
This commit is contained in:
1 parent
27e5eb6e33
commit
a8456ba42f
4 files changed
+39
No files matched your search
@@ -371,6 +371,7 @@
|
||||
</button>
|
||||
{#if themeOpen}
|
||||
<div class="theme-dropdown" role="menu">
|
||||
<div class="theme-heading">Appearance</div>
|
||||
{#each ([['light', 'Light'], ['dark', 'Dark'], ['allBlack', 'AllBlack'], ['auto', 'Auto']] as const) as [m, label]}
|
||||
<button
|
||||
class="theme-option"
|
||||
@@ -630,6 +631,18 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.theme-heading {
|
||||
padding: 0.45rem 0.75rem 0.3rem;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--color-text);
|
||||
font-family: var(--font-sans);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.theme-option {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -91,6 +91,7 @@
|
||||
{#if open && displayed.length > 0}
|
||||
<!-- svelte-ignore a11y_mouse_events_have_key_events -->
|
||||
<div class="history-dropdown">
|
||||
<div class="history-heading">{verb} history</div>
|
||||
<div class="history-list" role="menu" tabindex="-1" onmouseleave={() => (hoverIndex = -1)}>
|
||||
{#each displayed as entry, i}
|
||||
<button
|
||||
@@ -176,6 +177,18 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.history-heading {
|
||||
padding: 0.4rem 0.6rem 0.3rem;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--color-text);
|
||||
font-family: var(--font-sans);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.history-list {
|
||||
max-height: 320px;
|
||||
overflow-y: auto;
|
||||
|
||||
@@ -173,6 +173,7 @@
|
||||
</div>
|
||||
{#if olMenuOpen}
|
||||
<div class="ol-dropdown" role="menu">
|
||||
<div class="ol-section-label">Numbering</div>
|
||||
{#each ORDERED_LIST_TYPES as t}
|
||||
<button
|
||||
class="ol-option"
|
||||
@@ -306,6 +307,17 @@
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.ol-section-label {
|
||||
padding: 0.4rem 0.6rem 0.2rem;
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--color-text);
|
||||
font-family: var(--font-sans);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.ol-option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -726,6 +726,7 @@
|
||||
</div>
|
||||
{#if sizeOpen}
|
||||
<div class="size-dropdown">
|
||||
<div class="lh-section-label">Font size</div>
|
||||
{#each FONT_SIZES as size}
|
||||
<button
|
||||
class="size-option"
|
||||
|
||||
Reference in new issue
Block a user