Split toolbox Sass partials
This commit is contained in:
parent
b221257616
commit
c312b9ed91
19 changed files with 6490 additions and 6419 deletions
99
website/src/styles/toolboxes/_drawing.scss
Normal file
99
website/src/styles/toolboxes/_drawing.scss
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
// Rôle : gère le calque de dessin, son panneau et ses contrôles superposés.
|
||||
@use "../mixins";
|
||||
|
||||
.drawing-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.drawing-overlay.is-active {
|
||||
cursor: crosshair;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.drawing-overlay.is-erase {
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
.drawing-controls-panel {
|
||||
position: absolute;
|
||||
right: 50%;
|
||||
bottom: 10px;
|
||||
z-index: 6;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
width: max-content;
|
||||
max-width: calc(100% - 20px);
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(10, 13, 28, 0.94);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateX(50%);
|
||||
}
|
||||
|
||||
.drawing-controls-panel:not(.is-open) {
|
||||
width: auto;
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
.drawing-controls-panel .drawing-storage-switch {
|
||||
display: inline-grid;
|
||||
grid-template-columns: 16px 30px;
|
||||
grid-template-rows: 1fr;
|
||||
width: fit-content;
|
||||
min-width: 64px;
|
||||
min-height: 34px;
|
||||
gap: 7px;
|
||||
justify-items: initial;
|
||||
padding: 0 7px 0 10px;
|
||||
}
|
||||
|
||||
.drawing-controls-panel .drawing-storage-switch .ui-icon {
|
||||
justify-self: initial;
|
||||
}
|
||||
|
||||
.drawing-controls-panel .drawing-storage-switch i {
|
||||
width: 30px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.drawing-controls-panel .notepad-color-menu {
|
||||
top: auto;
|
||||
bottom: calc(100% + 8px);
|
||||
right: auto;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 4px);
|
||||
}
|
||||
|
||||
.drawing-controls-panel .notepad-color-dropdown:hover .notepad-color-menu,
|
||||
.drawing-controls-panel .notepad-color-dropdown:focus-within .notepad-color-menu,
|
||||
.drawing-controls-panel .notepad-color-dropdown.is-open .notepad-color-menu {
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
|
||||
.drawing-controls-panel .notepad-color-menu::after {
|
||||
top: 100%;
|
||||
right: 0;
|
||||
bottom: auto;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.drawing-controls-panel .notepad-color-menu::before {
|
||||
top: 100%;
|
||||
right: auto;
|
||||
left: calc(50% - 7px);
|
||||
bottom: auto;
|
||||
border-top: 7px solid rgba(10, 13, 28, 0.99);
|
||||
border-right: 7px solid transparent;
|
||||
border-bottom: 0;
|
||||
border-left: 7px solid transparent;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue