365 lines
7.8 KiB
CSS
365 lines
7.8 KiB
CSS
/* Asset catalog actions: page utilities and actions on the current selection. */
|
|
.assets-page {
|
|
--asset-action-surface: #fff;
|
|
--asset-action-text: #334155;
|
|
--asset-action-muted: #64748b;
|
|
--asset-action-border: #e2e8f0;
|
|
--asset-action-tint: #f5f7ff;
|
|
}
|
|
|
|
.assets-page .asset-page-heading {
|
|
position: relative;
|
|
z-index: 120;
|
|
}
|
|
|
|
.asset-page-actions,
|
|
.asset-selection-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.assets-page .asset-action-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
min-height: 2.5rem;
|
|
padding: 0.5625rem 0.875rem;
|
|
border: 1px solid var(--asset-action-border);
|
|
border-radius: 0.625rem;
|
|
background: var(--asset-action-surface);
|
|
color: var(--asset-action-text);
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
line-height: 1.25;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
touch-action: manipulation;
|
|
transition: border-color 0.15s, background-color 0.15s, color 0.15s;
|
|
}
|
|
|
|
.asset-action-button .material-symbols-outlined,
|
|
.asset-menu-item .material-symbols-outlined {
|
|
flex-shrink: 0;
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
.assets-page .asset-action-button:hover:not(:disabled) {
|
|
border-color: #b8c4e8;
|
|
background: var(--asset-action-tint);
|
|
color: #3755c3;
|
|
}
|
|
|
|
.assets-page .asset-action-primary {
|
|
border-color: #3755c3;
|
|
background: #3755c3;
|
|
color: #fff;
|
|
box-shadow: 0 2px 4px rgb(55 85 195 / 0.12);
|
|
}
|
|
|
|
.assets-page .asset-action-primary:hover:not(:disabled) {
|
|
border-color: #2848b7;
|
|
background: #2848b7;
|
|
color: #fff;
|
|
}
|
|
|
|
.asset-action-button:focus-visible,
|
|
.asset-menu-item:focus-visible,
|
|
.asset-selection-clear:focus-visible {
|
|
outline: 2px solid #3755c3;
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.assets-page .asset-action-button:disabled,
|
|
.assets-page .asset-menu-item:disabled {
|
|
color: #94a3b8;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.asset-action-menu {
|
|
position: relative;
|
|
}
|
|
|
|
.asset-action-menu > summary {
|
|
list-style: none;
|
|
}
|
|
|
|
.asset-action-menu > summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.asset-action-menu[open] > summary {
|
|
border-color: #b8c4e8;
|
|
color: #3755c3;
|
|
background: var(--asset-action-tint);
|
|
}
|
|
|
|
.asset-menu-chevron {
|
|
transition: transform 0.15s;
|
|
}
|
|
|
|
.asset-action-menu[open] .asset-menu-chevron {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.asset-menu-panel {
|
|
position: absolute;
|
|
top: calc(100% + 0.5rem);
|
|
right: 0;
|
|
z-index: 150;
|
|
width: 19rem;
|
|
max-width: calc(100vw - 2rem);
|
|
max-height: min(28rem, calc(100dvh - 12rem));
|
|
overflow-y: auto;
|
|
padding: 0.375rem;
|
|
border: 1px solid var(--asset-action-border);
|
|
border-radius: 0.875rem;
|
|
background: var(--asset-action-surface);
|
|
box-shadow: 0 12px 36px rgb(15 23 42 / 0.12), 0 2px 6px rgb(15 23 42 / 0.04);
|
|
text-align: left;
|
|
}
|
|
|
|
.assets-page .asset-menu-label {
|
|
margin: 0;
|
|
padding: 0.625rem 0.75rem 0.375rem;
|
|
color: var(--asset-action-muted);
|
|
font-size: 0.6875rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.assets-page .asset-menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
width: 100%;
|
|
min-height: 2.75rem;
|
|
padding: 0.625rem 0.75rem;
|
|
border: 0;
|
|
border-radius: 0.5rem;
|
|
background: transparent;
|
|
color: var(--asset-action-text);
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.asset-menu-item small,
|
|
.asset-export-action small {
|
|
display: block;
|
|
margin-top: 0.1875rem;
|
|
color: var(--asset-action-muted);
|
|
font-size: 0.6875rem;
|
|
font-weight: 400;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.asset-menu-item:hover:not(:disabled) {
|
|
background: var(--asset-action-tint);
|
|
}
|
|
|
|
.asset-menu-item:disabled small {
|
|
color: inherit;
|
|
}
|
|
|
|
.assets-page .asset-menu-danger {
|
|
color: #c2413b;
|
|
}
|
|
|
|
.asset-menu-danger:hover:not(:disabled) {
|
|
background: #fff5f4;
|
|
}
|
|
|
|
.asset-menu-divider {
|
|
margin-top: 0.375rem !important;
|
|
padding-top: 0.375rem;
|
|
border-top: 1px solid var(--asset-action-border);
|
|
}
|
|
|
|
.asset-selection-toolbar {
|
|
position: relative;
|
|
z-index: 110;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-shrink: 0;
|
|
gap: 1rem;
|
|
margin-bottom: 0.75rem;
|
|
padding: 0.75rem 0.875rem;
|
|
border: 1px solid var(--asset-action-border);
|
|
border-radius: 0.75rem;
|
|
background: var(--asset-action-surface);
|
|
transition: background-color 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.asset-selection-toolbar[data-has-selection="true"] {
|
|
border-color: #cdd6f6;
|
|
background: var(--asset-action-tint);
|
|
}
|
|
|
|
.asset-selection-info {
|
|
display: grid;
|
|
grid-template-columns: auto auto;
|
|
align-items: center;
|
|
justify-content: start;
|
|
gap: 0.3125rem 0.75rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
.asset-selection-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: var(--asset-action-text);
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.asset-selection-count {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 1.625rem;
|
|
height: 1.625rem;
|
|
padding: 0 0.3125rem;
|
|
border-radius: 0.4375rem;
|
|
background: #f1f5f9;
|
|
color: #64748b;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
[data-has-selection="true"] .asset-selection-count {
|
|
background: #3755c3;
|
|
color: #fff;
|
|
}
|
|
|
|
.asset-selection-hint {
|
|
grid-column: 1 / -1;
|
|
grid-row: 2;
|
|
color: var(--asset-action-muted);
|
|
font-size: 0.6875rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.asset-selection-clear {
|
|
color: #3755c3;
|
|
font-size: 0.75rem;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
.asset-selection-clear:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.assets-page .asset-export-action {
|
|
justify-content: flex-start;
|
|
min-height: 3rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.assets-page .asset-action-proposal:not(:disabled) {
|
|
border-color: #c2cdf1;
|
|
color: #3755c3;
|
|
}
|
|
|
|
.assets-page .asset-export-action:disabled small {
|
|
color: #94a3b8;
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.asset-selection-toolbar {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.assets-page .asset-page-actions {
|
|
flex-wrap: wrap;
|
|
width: 100%;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.assets-page .asset-page-actions > button,
|
|
.assets-page .asset-page-actions > details {
|
|
flex: 1 1 auto;
|
|
width: auto;
|
|
}
|
|
|
|
.assets-page .asset-page-actions > details > summary {
|
|
width: 100%;
|
|
}
|
|
|
|
.assets-page .asset-page-actions > .asset-action-primary {
|
|
flex: 1 0 100%;
|
|
order: -1;
|
|
}
|
|
|
|
.assets-page .asset-action-button {
|
|
min-height: 2.75rem;
|
|
}
|
|
|
|
.assets-page .asset-page-actions .asset-menu-panel {
|
|
right: 0;
|
|
}
|
|
|
|
.assets-page .asset-filter-bar {
|
|
grid-template-columns: minmax(7rem, 0.35fr) minmax(0, 1fr);
|
|
}
|
|
|
|
.assets-page .asset-filter-bar .compact-filter-search {
|
|
grid-column: auto;
|
|
grid-row: auto;
|
|
}
|
|
|
|
.asset-selection-toolbar {
|
|
align-items: stretch;
|
|
gap: 0.625rem;
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.asset-selection-info {
|
|
padding-right: 3rem;
|
|
}
|
|
|
|
.asset-selection-actions {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
width: 100%;
|
|
}
|
|
|
|
.assets-page .asset-export-action {
|
|
gap: 0.375rem;
|
|
padding: 0.625rem;
|
|
font-size: 0.75rem;
|
|
white-space: normal;
|
|
}
|
|
|
|
.asset-selection-menu {
|
|
position: absolute;
|
|
top: 0.75rem;
|
|
right: 0.75rem;
|
|
}
|
|
|
|
.assets-page .asset-selection-menu > summary {
|
|
min-width: 2.75rem;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.asset-selection-menu > summary > span:last-child {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.dark .assets-page {
|
|
--asset-action-surface: #172033;
|
|
--asset-action-text: #e2e8f0;
|
|
--asset-action-muted: #94a3b8;
|
|
--asset-action-border: #334155;
|
|
--asset-action-tint: #1e293b;
|
|
}
|