Wrap every More row glyph in a fixed 14px box and center both custom icon wrappers and SVGs, so Tasks/Side Chat no longer ride 2px above their labels.
356 lines
6.1 KiB
CSS
356 lines
6.1 KiB
CSS
/* The start page: a centered, scrollable two-column card grid over the host
|
|
guide body. Every visual value is a host token (no hardcoded colors). */
|
|
.root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
min-height: 100%;
|
|
box-sizing: border-box;
|
|
padding: 24px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Vertical placement: auto block margins center the grid while it fits and
|
|
collapse to zero once it is taller than the pane, so scrolling still starts
|
|
at the first card. */
|
|
.rootCenter .guide {
|
|
margin-block: auto;
|
|
}
|
|
|
|
.rootTop .guide {
|
|
margin-block: 0;
|
|
}
|
|
|
|
.guide {
|
|
width: 100%;
|
|
max-width: 760px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
gap: 12px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.gridOne {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.gridTwo {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.card {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 56px;
|
|
box-sizing: border-box;
|
|
border: 1px solid var(--dsw-alias-border-l2);
|
|
border-radius: 12px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
color: var(--dsw-alias-label-primary);
|
|
transition: background 0.12s ease, border-color 0.12s ease;
|
|
}
|
|
|
|
.card:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
border-color: var(--dsw-alias-label-dimmed);
|
|
}
|
|
|
|
.cardMain {
|
|
display: flex;
|
|
flex: 1;
|
|
align-items: center;
|
|
gap: 12px;
|
|
min-width: 0;
|
|
padding: 12px 16px;
|
|
border: 0;
|
|
border-radius: inherit;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.card:has(.cardMenuButton) .cardMain {
|
|
padding-right: 44px;
|
|
}
|
|
|
|
.cardMain:focus-visible,
|
|
.cardMenuButton:focus-visible,
|
|
.moreCard:focus-visible,
|
|
.orderButton:focus-visible,
|
|
.dialogDone:focus-visible {
|
|
outline: 2px solid var(--dsw-alias-border-l4);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.cardIcon {
|
|
display: inline-flex;
|
|
flex: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
.cardText {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.cardTitle {
|
|
overflow: hidden;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.cardDesc {
|
|
overflow: hidden;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.cardMenuButton {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 8px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
padding: 0;
|
|
transform: translateY(-50%);
|
|
border: 0;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cardMenuButton:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.menuIcon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.menuIcon > span {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.menuIcon svg {
|
|
display: block;
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.moreSlot {
|
|
display: flex;
|
|
min-width: 0;
|
|
}
|
|
|
|
.moreSlot > * {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.moreCard {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
border-style: dashed;
|
|
background: transparent;
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.moreCard:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
border-color: var(--dsw-alias-label-dimmed);
|
|
}
|
|
|
|
.empty {
|
|
margin: 0;
|
|
padding: 48px 16px;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.orderList {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.orderRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 2px;
|
|
border-bottom: 1px solid var(--dsw-alias-border-l2);
|
|
}
|
|
|
|
.orderRow:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.orderRowHidden {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.orderIcon {
|
|
display: inline-flex;
|
|
flex: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
.orderText {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.orderTitle {
|
|
overflow: hidden;
|
|
font-size: 13px;
|
|
line-height: 18px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.orderDesc {
|
|
overflow: hidden;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
font-size: 11px;
|
|
line-height: 16px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.orderActions {
|
|
display: inline-flex;
|
|
flex: none;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.orderButton {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
border: 1px solid var(--dsw-alias-border-l2);
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.orderButton:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.orderButton:disabled {
|
|
opacity: 0.35;
|
|
cursor: default;
|
|
}
|
|
|
|
.rowsInput {
|
|
width: 76px;
|
|
}
|
|
|
|
.dialogRow {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 0 2px 12px;
|
|
margin-bottom: 4px;
|
|
border-bottom: 1px solid var(--dsw-alias-border-l2);
|
|
}
|
|
|
|
.dialogRowText {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.dialogRowTitle {
|
|
color: var(--dsw-alias-label-primary);
|
|
font-size: 13px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.dialogRowDesc {
|
|
color: var(--dsw-alias-label-tertiary);
|
|
font-size: 11px;
|
|
line-height: 16px;
|
|
}
|
|
|
|
.dialogDone {
|
|
min-width: 72px;
|
|
padding: 6px 14px;
|
|
border: 1px solid var(--dsw-alias-border-l2);
|
|
border-radius: 8px;
|
|
background: var(--dsw-alias-bg-layer-2);
|
|
color: var(--dsw-alias-label-primary);
|
|
font: inherit;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.dialogDone:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.card,
|
|
.cardMenuButton,
|
|
.moreCard,
|
|
.orderButton,
|
|
.dialogDone {
|
|
transition: none;
|
|
}
|
|
}
|