new tools modules & sass opti
All checks were successful
Deploy Sokko G / deploy (push) Successful in 6s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 6s
This commit is contained in:
parent
821e8e0a36
commit
9e275e0167
24 changed files with 3266 additions and 2372 deletions
640
website/src/styles/_toolboxes.scss
Normal file
640
website/src/styles/_toolboxes.scss
Normal file
|
|
@ -0,0 +1,640 @@
|
|||
.toolbox-head {
|
||||
position: relative;
|
||||
z-index: 30;
|
||||
overflow: visible;
|
||||
padding: var(--space-6);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-xl);
|
||||
background: rgba(16, 20, 38, 0.76);
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.toolbox-title {
|
||||
width: fit-content;
|
||||
max-width: 100%;
|
||||
padding: 3px 6px;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
.toolbox-title:focus {
|
||||
background: rgba(7, 10, 24, 0.72);
|
||||
outline: 1px solid rgba(34, 211, 238, 0.72);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.tool-add-controls {
|
||||
position: relative;
|
||||
z-index: 80;
|
||||
display: inline-flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.tool-add-modal-button {
|
||||
min-height: 40px;
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
.tool-add-quick-toggle {
|
||||
width: 42px;
|
||||
min-width: 42px;
|
||||
min-height: 40px;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
border-left: 1px solid rgba(255, 255, 255, 0.18);
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
.tool-add-quick-toggle .ui-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
transition: transform 140ms ease;
|
||||
}
|
||||
|
||||
.tool-add-quick-toggle.active .ui-icon {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.tool-quick-add {
|
||||
position: absolute;
|
||||
top: calc(100% + 8px);
|
||||
right: 0;
|
||||
z-index: 120;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
width: max-content;
|
||||
max-width: min(280px, calc(100vw - 48px));
|
||||
gap: 6px;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(12, 15, 32, 0.96);
|
||||
box-shadow: var(--shadow-lg);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: translateY(-4px);
|
||||
transition:
|
||||
opacity 140ms ease,
|
||||
transform 140ms ease;
|
||||
}
|
||||
|
||||
.tool-quick-add.is-open {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.tool-quick-add::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 18px;
|
||||
bottom: 100%;
|
||||
border-right: 7px solid transparent;
|
||||
border-bottom: 7px solid rgba(12, 15, 32, 0.96);
|
||||
border-left: 7px solid transparent;
|
||||
}
|
||||
|
||||
.tool-quick-add::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 100%;
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.tool-quick-add-button,
|
||||
.tool-add-card {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.tool-quick-add-button {
|
||||
background: rgba(21, 26, 48, 0.72);
|
||||
}
|
||||
|
||||
.modules-toolbar {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-top: var(--space-4);
|
||||
}
|
||||
|
||||
.modules {
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.modules[data-layout-cols="1"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.modules[data-layout-cols="2"] {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.module-column {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
.module {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.module.is-dragging {
|
||||
cursor: grabbing;
|
||||
opacity: 0.58;
|
||||
transform: scale(0.99);
|
||||
}
|
||||
|
||||
.module.is-drop-target {
|
||||
border-color: rgba(34, 211, 238, 0.72);
|
||||
box-shadow:
|
||||
var(--shadow-sm),
|
||||
inset 0 3px 0 rgba(34, 211, 238, 0.8);
|
||||
}
|
||||
|
||||
.module.is-drop-target.drop-after {
|
||||
box-shadow:
|
||||
var(--shadow-sm),
|
||||
inset 0 -3px 0 rgba(34, 211, 238, 0.8);
|
||||
}
|
||||
|
||||
.module header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.module header > div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.module header h2 {
|
||||
margin: 0;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.layout-switch {
|
||||
display: inline-grid;
|
||||
grid-template-columns: repeat(2, 38px);
|
||||
gap: 4px;
|
||||
padding: 4px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.48);
|
||||
}
|
||||
|
||||
.layout-switch button {
|
||||
min-height: 34px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
color: var(--color-text-muted);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.layout-switch button.active {
|
||||
background: var(--gradient-brand);
|
||||
color: white;
|
||||
box-shadow: var(--shadow-primary);
|
||||
}
|
||||
|
||||
.module-drag-handle {
|
||||
display: inline-grid;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
flex: 0 0 34px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
color: var(--color-text-muted);
|
||||
cursor: grab;
|
||||
opacity: 0.62;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.module-drag-handle .ui-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.module:hover .module-drag-handle,
|
||||
.module:focus-within .module-drag-handle {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.module-drag-handle:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.module-title {
|
||||
min-width: 80px;
|
||||
max-width: 100%;
|
||||
padding: 4px 6px;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
.module-title:focus {
|
||||
background: rgba(7, 10, 24, 0.72);
|
||||
outline: 1px solid rgba(34, 211, 238, 0.72);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.module-edit-button,
|
||||
.module-delete-button {
|
||||
flex: 0 0 40px;
|
||||
}
|
||||
|
||||
.module-edit-button {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.module-edit-button.active {
|
||||
border-color: var(--color-primary-border);
|
||||
background: var(--color-primary-soft);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.module-icon {
|
||||
display: grid;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
place-items: center;
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--gradient-brand);
|
||||
box-shadow: var(--shadow-primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.module-icon-svg {
|
||||
display: block;
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: white;
|
||||
mask-position: center;
|
||||
mask-repeat: no-repeat;
|
||||
mask-size: contain;
|
||||
-webkit-mask-position: center;
|
||||
-webkit-mask-repeat: no-repeat;
|
||||
-webkit-mask-size: contain;
|
||||
}
|
||||
|
||||
.module-icon-notepad {
|
||||
mask-image: url("/static/icons/notepad.svg");
|
||||
-webkit-mask-image: url("/static/icons/notepad.svg");
|
||||
}
|
||||
|
||||
.module-icon-checklist {
|
||||
mask-image: url("/static/icons/checklist.svg");
|
||||
-webkit-mask-image: url("/static/icons/checklist.svg");
|
||||
}
|
||||
|
||||
.module-icon-picture {
|
||||
mask-image: url("/static/icons/picture.svg");
|
||||
-webkit-mask-image: url("/static/icons/picture.svg");
|
||||
}
|
||||
|
||||
.module-icon-link {
|
||||
mask-image: url("/static/icons/link.svg");
|
||||
-webkit-mask-image: url("/static/icons/link.svg");
|
||||
}
|
||||
|
||||
.module-icon-abacus {
|
||||
mask-image: url("/static/icons/abacus.svg");
|
||||
-webkit-mask-image: url("/static/icons/abacus.svg");
|
||||
}
|
||||
|
||||
.notepad {
|
||||
display: block;
|
||||
width: calc(100% - 32px);
|
||||
min-height: 240px;
|
||||
margin: var(--space-4);
|
||||
padding: var(--space-4);
|
||||
resize: vertical;
|
||||
line-height: 1.6;
|
||||
background: rgba(5, 7, 17, 0.56);
|
||||
}
|
||||
|
||||
.inline-form,
|
||||
.field {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.inline-form {
|
||||
grid-template-columns: 1fr auto;
|
||||
}
|
||||
|
||||
.checklist-add-form {
|
||||
grid-template-columns: minmax(0, 1fr) 76px auto;
|
||||
}
|
||||
|
||||
.checklist-qty-input {
|
||||
padding-inline: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
min-height: 44px;
|
||||
padding: 0 14px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
textarea {
|
||||
padding-block: 14px;
|
||||
}
|
||||
|
||||
input::placeholder,
|
||||
textarea::placeholder {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
input:focus,
|
||||
select:focus,
|
||||
textarea:focus {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
|
||||
}
|
||||
|
||||
.checklist {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
margin: var(--space-4) 0 0;
|
||||
padding: 0 var(--space-4) var(--space-4);
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.checklist-item {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 42px;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.checklist-item-main {
|
||||
display: flex;
|
||||
min-height: 42px;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.44);
|
||||
}
|
||||
|
||||
.checklist input[type="checkbox"] {
|
||||
flex: 0 0 auto;
|
||||
width: 20px;
|
||||
min-height: 20px;
|
||||
height: 20px;
|
||||
accent-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.checklist-item.is-complete .checklist-item-main > span {
|
||||
color: var(--color-text-muted);
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.checklist-qty-controls {
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.checklist-qty-controls button {
|
||||
width: 28px;
|
||||
min-width: 28px;
|
||||
min-height: 28px;
|
||||
padding: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.checklist-qty-controls small {
|
||||
min-width: 42px;
|
||||
color: var(--color-text-secondary);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.links-add-form {
|
||||
grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1fr) auto;
|
||||
}
|
||||
|
||||
.links-list {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
margin: var(--space-4);
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.module-add-panel + .links-list,
|
||||
.module-add-panel + .checklist,
|
||||
.module-add-panel + .counters-grid {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.counters-add-form {
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
.counters-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
|
||||
gap: 10px;
|
||||
margin: var(--space-4);
|
||||
}
|
||||
|
||||
.counter-item {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent 58%),
|
||||
rgba(7, 10, 24, 0.42);
|
||||
}
|
||||
|
||||
.counter-item > div:first-child {
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.counter-item strong {
|
||||
color: var(--color-text-primary);
|
||||
font-size: 34px;
|
||||
font-weight: 900;
|
||||
line-height: 0.95;
|
||||
}
|
||||
|
||||
.counter-item span {
|
||||
overflow: hidden;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 800;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.counter-actions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.counter-actions button {
|
||||
min-width: 0;
|
||||
min-height: 34px;
|
||||
padding: 0;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.link-item {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(7, 10, 24, 0.42);
|
||||
}
|
||||
|
||||
.link-item a {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.link-item strong,
|
||||
.link-item span {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.link-item strong {
|
||||
color: var(--color-text-primary);
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.link-item span {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
.link-item > div {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.link-item button {
|
||||
width: 40px;
|
||||
min-width: 40px;
|
||||
height: 40px;
|
||||
min-height: 40px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.dropzone {
|
||||
display: grid;
|
||||
min-height: 74px;
|
||||
margin: var(--space-4);
|
||||
place-items: center;
|
||||
border: 1px dashed rgba(139, 92, 246, 0.52);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--color-primary-soft);
|
||||
color: var(--color-text-secondary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dropzone:hover {
|
||||
border-color: var(--color-accent-cyan);
|
||||
background: rgba(34, 211, 238, 0.1);
|
||||
box-shadow: 0 0 30px rgba(34, 211, 238, 0.12);
|
||||
}
|
||||
|
||||
.dropzone.is-drag-over {
|
||||
border-color: var(--color-accent-cyan);
|
||||
background: rgba(34, 211, 238, 0.14);
|
||||
box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
|
||||
}
|
||||
|
||||
.paste-target {
|
||||
min-height: 46px;
|
||||
margin: 0 var(--space-4) var(--space-4);
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.44);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.paste-target:focus {
|
||||
border-color: var(--color-primary);
|
||||
color: var(--color-text-secondary);
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
|
||||
}
|
||||
|
||||
.shots {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||||
gap: var(--space-3);
|
||||
padding: 0 var(--space-4) var(--space-4);
|
||||
}
|
||||
|
||||
.shots figure {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg);
|
||||
background: rgba(5, 7, 17, 0.38);
|
||||
}
|
||||
|
||||
.shot-preview {
|
||||
display: block;
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: var(--radius-md);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.shot-preview:hover {
|
||||
transform: none;
|
||||
box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.28);
|
||||
}
|
||||
|
||||
.shots img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 9;
|
||||
object-fit: cover;
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--color-bg-deep);
|
||||
}
|
||||
|
||||
.shot-delete-button {
|
||||
margin-top: 8px;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue