Improve compact desktop usability and action guidance
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
This commit is contained in:
parent
0ac1a0974e
commit
0fc18cd8b9
24 changed files with 325 additions and 90 deletions
|
|
@ -427,14 +427,6 @@
|
|||
justify-self: stretch;
|
||||
}
|
||||
|
||||
.tool-add-modal {
|
||||
width: min(420px, calc(100vw - 32px));
|
||||
}
|
||||
|
||||
.tool-add-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
|
|
|
|||
|
|
@ -13,12 +13,19 @@
|
|||
font-weight: 800;
|
||||
}
|
||||
|
||||
.results-copy-button {
|
||||
.results-copy-button.nds-icon-button {
|
||||
width: 32px;
|
||||
min-width: 32px;
|
||||
min-height: 32px;
|
||||
}
|
||||
|
||||
.results-copy-button.nds-button {
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
min-height: 32px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.results-checklist-modal.nds-modal {
|
||||
width: min(560px, calc(100vw - 32px));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
// Rôle : stylise les modales de création et d'ajout d'outil.
|
||||
.tool-add-modal {
|
||||
width: min(560px, calc(100vw - 32px));
|
||||
@use "../design-system/controls";
|
||||
|
||||
.tool-add-modal.nds-modal {
|
||||
width: min(900px, calc(100vw - 32px));
|
||||
scrollbar-gutter: stable;
|
||||
@include controls.scrollbar-control;
|
||||
}
|
||||
|
||||
.tool-add-modal header {
|
||||
|
|
@ -21,30 +25,67 @@
|
|||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.tool-add-category-list,
|
||||
.tool-add-category-section {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.tool-add-category-section h3 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
margin: 0;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
.tool-add-category-section h3::after {
|
||||
height: 1px;
|
||||
flex: 1;
|
||||
background: var(--color-border);
|
||||
content: "";
|
||||
}
|
||||
|
||||
.tool-add-card {
|
||||
display: grid;
|
||||
height: 98px;
|
||||
min-height: 96px;
|
||||
min-width: 0;
|
||||
grid-template-columns: 28px minmax(0, 1fr);
|
||||
align-content: center;
|
||||
justify-items: center;
|
||||
gap: 8px;
|
||||
padding: var(--space-3);
|
||||
align-items: center;
|
||||
gap: 4px 8px;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(21, 26, 48, 0.72);
|
||||
text-align: center;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.tool-add-card span:last-child {
|
||||
.tool-add-card strong {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--color-text-primary);
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.tool-add-card > span:last-child {
|
||||
width: 100%;
|
||||
grid-column: 1 / -1;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.tool-add-card .module-icon {
|
||||
flex: 0 0 34px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
|
||||
.tool-add-card .module-icon-svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.tool-add-card:hover {
|
||||
|
|
@ -53,6 +94,18 @@
|
|||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
@media (min-width: 720px) {
|
||||
.tool-add-grid {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 900px) {
|
||||
.tool-add-grid {
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.toolbox-create-modal form,
|
||||
.toolbox-link-modal form {
|
||||
display: grid;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue