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
267
website/src/styles/_overlays.scss
Normal file
267
website/src/styles/_overlays.scss
Normal file
|
|
@ -0,0 +1,267 @@
|
|||
.screenshot-viewer-root {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 110;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
||||
.screenshot-viewer-backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgba(2, 3, 9, 0.64);
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
|
||||
.screenshot-viewer {
|
||||
position: relative;
|
||||
display: grid;
|
||||
width: min(1120px, calc(100vw - 32px));
|
||||
max-height: calc(100vh - 48px);
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-4);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-xl);
|
||||
background: rgba(16, 20, 38, 0.96);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.screenshot-viewer header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.screenshot-viewer-button {
|
||||
flex: 0 0 40px;
|
||||
}
|
||||
|
||||
.screenshot-viewer img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
max-height: calc(100vh - 170px);
|
||||
justify-self: center;
|
||||
border-radius: var(--radius-md);
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.drawer[aria-hidden="true"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.drawer-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 40;
|
||||
background: rgba(2, 3, 9, 0.42);
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
.drawer-panel {
|
||||
position: fixed;
|
||||
inset: 0 0 0 auto;
|
||||
z-index: 50;
|
||||
width: min(720px, 94vw);
|
||||
min-width: 360px;
|
||||
max-width: 94vw;
|
||||
overflow: auto;
|
||||
border-left: 1px solid var(--color-border);
|
||||
background: rgba(7, 9, 19, 0.96);
|
||||
box-shadow: var(--shadow-lg);
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
||||
.drawer-content {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-height: 100%;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.drawer-resize-handle {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: -18px;
|
||||
width: 14px;
|
||||
height: 72px;
|
||||
border-radius: var(--radius-pill);
|
||||
cursor: ew-resize;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.drawer-resize-handle::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 5px;
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: var(--gradient-brand);
|
||||
opacity: 0.72;
|
||||
}
|
||||
|
||||
body.is-resizing-drawer,
|
||||
body.is-resizing-drawer * {
|
||||
cursor: ew-resize !important;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.drawer-panel > .drawer-content > header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-4);
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
.drawer-toolbox-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2);
|
||||
margin-top: var(--space-3);
|
||||
}
|
||||
|
||||
.drawer-action-button {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.drawer-action-button:disabled {
|
||||
color: var(--color-text-disabled);
|
||||
cursor: not-allowed;
|
||||
opacity: 0.56;
|
||||
}
|
||||
|
||||
.drawer-close-button {
|
||||
flex: 0 0 40px;
|
||||
}
|
||||
|
||||
.drawer-panel .modules {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.confirm-modal-root {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 100;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
||||
.tool-add-modal-root {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 130;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
||||
.confirm-backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgba(2, 3, 9, 0.62);
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
|
||||
.confirm-modal {
|
||||
position: relative;
|
||||
width: min(520px, calc(100vw - 32px));
|
||||
max-height: calc(100vh - 48px);
|
||||
overflow: auto;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-xl);
|
||||
background: rgba(16, 20, 38, 0.96);
|
||||
box-shadow: var(--shadow-lg);
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
||||
.confirm-modal h2 {
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
.confirm-modal p {
|
||||
margin-bottom: var(--space-6);
|
||||
}
|
||||
|
||||
.confirm-modal footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.tool-add-modal {
|
||||
width: min(560px, calc(100vw - 32px));
|
||||
}
|
||||
|
||||
.tool-add-modal header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-4);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.tool-add-modal h2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.tool-add-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.tool-add-card {
|
||||
display: grid;
|
||||
height: 98px;
|
||||
min-width: 0;
|
||||
align-content: center;
|
||||
justify-items: center;
|
||||
gap: 8px;
|
||||
padding: var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(21, 26, 48, 0.72);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tool-add-card span:last-child {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tool-add-card .module-icon {
|
||||
flex: 0 0 34px;
|
||||
}
|
||||
|
||||
.tool-add-card:hover {
|
||||
border-color: var(--color-border-hover);
|
||||
background: var(--color-bg-hover);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.toolbox-create-modal form,
|
||||
.toolbox-link-modal form {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.toolbox-create-modal .field,
|
||||
.toolbox-link-modal .field {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.confirm-danger {
|
||||
border-color: rgba(251, 113, 133, 0.34);
|
||||
background: var(--color-danger);
|
||||
color: #fff;
|
||||
font-weight: 700;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue