All checks were successful
à l'import des monstres depuis foundry : on garde la structure originelle utilisée sur foundry également
141 lines
2.5 KiB
SCSS
141 lines
2.5 KiB
SCSS
.picker {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.6rem;
|
|
}
|
|
|
|
.linked-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
background: #3a1c24;
|
|
color: #fda4af;
|
|
border-radius: 999px;
|
|
font-size: 0.82rem;
|
|
overflow: hidden;
|
|
|
|
.chip-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
padding: 0.25rem 0.6rem;
|
|
background: transparent;
|
|
border: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
|
|
&:hover { color: #fecdd3; }
|
|
}
|
|
|
|
.chip-qty {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
border-left: 1px solid #2a2a3d;
|
|
|
|
.chip-step {
|
|
width: 1.4rem;
|
|
padding: 0.25rem 0;
|
|
background: transparent;
|
|
border: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
font-size: 0.95rem;
|
|
line-height: 1;
|
|
opacity: 0.8;
|
|
&:hover { opacity: 1; background: #2a2a3d; color: #fecdd3; }
|
|
}
|
|
|
|
.chip-count {
|
|
min-width: 1.6rem;
|
|
text-align: center;
|
|
font-variant-numeric: tabular-nums;
|
|
opacity: 0.9;
|
|
}
|
|
}
|
|
|
|
.chip-remove {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0.25rem 0.5rem;
|
|
background: transparent;
|
|
border: none;
|
|
border-left: 1px solid #2a2a3d;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
opacity: 0.7;
|
|
|
|
&:hover { opacity: 1; color: #fca5a5; background: #2a2a3d; }
|
|
}
|
|
}
|
|
|
|
.search-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
background: #1a1a2e;
|
|
border: 1px solid #2a2a3d;
|
|
color: white;
|
|
padding: 0.65rem 0.9rem;
|
|
border-radius: 6px;
|
|
font-size: 0.88rem;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
border-color: #6c63ff;
|
|
}
|
|
|
|
&::placeholder { color: #6b7280; }
|
|
}
|
|
|
|
.suggestions {
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
left: 0;
|
|
right: 0;
|
|
list-style: none;
|
|
padding: 0.25rem 0;
|
|
margin: 0;
|
|
background: #1a1a2e;
|
|
border: 1px solid #2a2a3d;
|
|
border-radius: 6px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
max-height: 280px;
|
|
overflow-y: auto;
|
|
z-index: 10;
|
|
|
|
li {
|
|
padding: 0.55rem 0.9rem;
|
|
color: #d1d5db;
|
|
font-size: 0.88rem;
|
|
cursor: pointer;
|
|
|
|
&:hover { background: #20203a; color: white; }
|
|
}
|
|
}
|
|
|
|
.empty-hint {
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
left: 0;
|
|
right: 0;
|
|
padding: 0.55rem 0.9rem;
|
|
margin: 0;
|
|
background: #1a1a2e;
|
|
border: 1px solid #2a2a3d;
|
|
border-radius: 6px;
|
|
color: #6b7280;
|
|
font-size: 0.82rem;
|
|
font-style: italic;
|
|
z-index: 10;
|
|
}
|