File size: 2,391 Bytes
f5696cb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | /* RULE: Export is the ribbon's one primary; its shared overlay keeps quiet choices and explicit focus rings.
WHY: C7 and DESIGN.md sections 2 through 4 require brand hierarchy without native button chrome.
Use [data-ribbon="export"] because control() is shared by every ribbon action and needs no new className. */
.sheet-ribbon-tabs-actions [data-ribbon="export"] {
border: 0;
background: transparent;
font: inherit;
color: inherit;
border: 1px solid var(--lp-primary);
background: var(--lp-primary);
color: var(--lp-surface);
font-size: var(--lp-fs-xs);
/* The border replaces one pixel of the inherited padding on each side; height stays shared. */
padding: 0 4px;
}
.sheet-ribbon-tabs-actions [data-ribbon="export"]:hover:not(:disabled),
.sheet-ribbon-tabs-actions [data-ribbon="export"][aria-expanded="true"]:not(:disabled) {
border-color: var(--lp-primary-hover);
background: var(--lp-primary-hover);
color: var(--lp-surface);
}
.sheet-ribbon-tabs-actions [data-ribbon="export"]:disabled {
border-color: transparent;
background: transparent;
color: var(--lp-muted);
cursor: not-allowed;
}
.sheet-ribbon-tabs-actions [data-ribbon="export"]:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 2px;
}
.sheet-ribbon-tabs-actions [data-ribbon="export"] .sheet-ribbon-label,
.sheet-ribbon-tabs-actions [data-ribbon="export"] .sheet-ribbon-icon {
color: inherit;
}
[data-overlay-kind="sheet-export"].sheet-ribbon-pop-portal {
gap: 4px;
padding: 4px;
}
[data-overlay-kind="sheet-export"] .sheet-ribbon-item {
border: 0;
background: transparent;
font: inherit;
color: inherit;
font-size: var(--lp-fs-xs);
color: var(--lp-ink);
padding: 4px 8px;
}
[data-overlay-kind="sheet-export"] .sheet-ribbon-item:hover {
background: var(--lp-surface-2);
}
[data-overlay-kind="sheet-export"] .sheet-ribbon-item.is-on {
background: var(--lp-blue-tint);
}
[data-overlay-kind="sheet-export"] .sheet-ribbon-item:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 2px;
}
[data-overlay-kind="sheet-export"] .sheet-ribbon-export-caption {
padding: 4px 8px;
border-bottom: 1px solid var(--lp-line);
font-size: var(--lp-fs-2xs);
color: var(--lp-muted);
}
[data-overlay-kind="sheet-export"] .sheet-ribbon-export-separator {
border-top: 1px solid var(--lp-line);
margin: 4px 0;
}
|