2025-11-02 15:48:39 -08:00
|
|
|
@import "../application/item-badges.css";
|
|
|
|
|
|
2025-11-02 00:58:11 -07:00
|
|
|
body.wardrobe-v2 {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
font-family: sans-serif;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wardrobe-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
background: #000;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 800px) {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.outfit-preview-section {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
background: #000;
|
|
|
|
|
position: relative;
|
|
|
|
|
min-height: 400px;
|
2025-11-02 23:21:17 -08:00
|
|
|
container-type: size;
|
2025-11-02 00:58:11 -07:00
|
|
|
|
2025-11-02 23:21:17 -08:00
|
|
|
/* The outfit viewer is a square filling the space, to at most 600px. */
|
2025-11-02 00:58:11 -07:00
|
|
|
outfit-viewer {
|
2025-11-02 23:21:17 -08:00
|
|
|
width: min(100cqw, 100cqh, 600px);
|
|
|
|
|
height: min(100cqw, 100cqh, 600px);
|
2025-11-02 00:58:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.no-preview-message {
|
|
|
|
|
color: white;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 2rem;
|
|
|
|
|
font-size: 1.2rem;
|
|
|
|
|
}
|
2025-11-02 01:06:27 -07:00
|
|
|
|
2025-11-11 18:07:06 -08:00
|
|
|
/* Preview controls container - groups species/color picker and pose picker */
|
|
|
|
|
.preview-controls {
|
2025-11-11 17:41:57 -08:00
|
|
|
position: absolute;
|
2025-11-11 18:07:06 -08:00
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
2025-11-11 17:41:57 -08:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
2025-11-11 18:07:06 -08:00
|
|
|
gap: 0.5rem;
|
2025-11-11 17:41:57 -08:00
|
|
|
padding: 1.5rem;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
|
|
/* Start hidden, reveal on hover or focus */
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transition: opacity 0.2s;
|
|
|
|
|
|
2025-11-11 18:07:06 -08:00
|
|
|
> * {
|
2025-11-11 17:41:57 -08:00
|
|
|
pointer-events: auto;
|
2025-11-11 18:07:06 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Pose picker button */
|
|
|
|
|
.pose-picker-button {
|
2025-12-26 22:15:57 -08:00
|
|
|
anchor-name: --pose-picker-anchor;
|
2025-11-11 18:07:06 -08:00
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
|
font-size: 0.95rem;
|
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
|
|
|
border-radius: 0.375rem;
|
|
|
|
|
background: rgba(0, 0, 0, 0.7);
|
|
|
|
|
color: white;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
backdrop-filter: blur(8px);
|
|
|
|
|
-webkit-backdrop-filter: blur(8px);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
|
|
|
|
|
.pose-emoji {
|
|
|
|
|
font-size: 1.1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pose-label {
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
min-width: 3.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.chevron {
|
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
opacity: 0.7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.8);
|
|
|
|
|
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&[popovertargetopen] {
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.8);
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Pose picker popover */
|
|
|
|
|
pose-picker-popover {
|
2025-12-26 22:15:57 -08:00
|
|
|
position: absolute;
|
|
|
|
|
position-anchor: --pose-picker-anchor;
|
|
|
|
|
margin: 0;
|
|
|
|
|
inset: auto;
|
|
|
|
|
position-area: top;
|
2025-11-11 18:07:06 -08:00
|
|
|
background: rgba(0, 0, 0, 0.9);
|
|
|
|
|
backdrop-filter: blur(12px);
|
|
|
|
|
-webkit-backdrop-filter: blur(12px);
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
padding: 1.25rem;
|
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
|
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
|
|
|
|
|
|
|
|
|
|
.pose-picker-form {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2025-11-11 17:41:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pose-picker-table {
|
|
|
|
|
border-collapse: separate;
|
|
|
|
|
border-spacing: 0.5rem;
|
|
|
|
|
|
|
|
|
|
th {
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: white;
|
|
|
|
|
padding: 0.25rem;
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
td {
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.emoji-icon {
|
|
|
|
|
font-size: 1.25rem;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
user-select: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pose-option {
|
|
|
|
|
display: block;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 60px;
|
|
|
|
|
height: 60px;
|
|
|
|
|
|
|
|
|
|
input[type="radio"] {
|
|
|
|
|
position: absolute;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
width: 0;
|
|
|
|
|
height: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pose-thumbnail {
|
|
|
|
|
width: 60px;
|
|
|
|
|
height: 60px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
overflow: hidden;
|
2025-11-11 18:07:06 -08:00
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
|
2025-11-11 17:41:57 -08:00
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
|
|
border: 2px solid transparent;
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pose-thumbnail-viewer {
|
|
|
|
|
width: 60px !important;
|
|
|
|
|
height: 60px !important;
|
|
|
|
|
transform: scale(0.8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pose-unavailable {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
opacity: 0.4;
|
|
|
|
|
|
|
|
|
|
.question-mark {
|
|
|
|
|
font-size: 2rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Selected state */
|
|
|
|
|
input[type="radio"]:checked + .pose-thumbnail {
|
|
|
|
|
border-color: #48BB78;
|
2025-11-11 18:07:06 -08:00
|
|
|
box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.4);
|
2025-11-11 17:41:57 -08:00
|
|
|
transform: scale(1.05);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Hover state (only for available poses) */
|
|
|
|
|
&.available:hover .pose-thumbnail {
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
transform: scale(1.05);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Focus state */
|
|
|
|
|
input[type="radio"]:focus + .pose-thumbnail {
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.8);
|
2025-11-11 18:07:06 -08:00
|
|
|
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
|
2025-11-11 17:41:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Unavailable state */
|
|
|
|
|
&.unavailable {
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
|
|
|
|
|
.pose-thumbnail {
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
background: rgba(128, 128, 128, 0.2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Submit button: progressive enhancement pattern */
|
|
|
|
|
.pose-submit-button {
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
|
font-size: 0.95rem;
|
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
|
|
|
border-radius: 6px;
|
2025-11-11 18:07:06 -08:00
|
|
|
background: rgba(255, 255, 255, 0.1);
|
2025-11-11 17:41:57 -08:00
|
|
|
color: white;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
2025-11-11 18:07:06 -08:00
|
|
|
background-color: rgba(255, 255, 255, 0.15);
|
2025-11-11 17:41:57 -08:00
|
|
|
border-color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.8);
|
2025-11-11 18:07:06 -08:00
|
|
|
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
|
2025-11-11 17:41:57 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* If JS is enabled, hide the submit button initially with a delay */
|
|
|
|
|
@media (scripting: enabled) {
|
|
|
|
|
.pose-submit-button {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
animation: fade-in 0.25s forwards;
|
|
|
|
|
animation-delay: 0.75s;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-11 18:07:06 -08:00
|
|
|
/* Once auto-submit is enabled, hide the submit button completely */
|
|
|
|
|
&:state(auto-loading) .pose-submit-button {
|
|
|
|
|
display: none;
|
2025-11-11 17:41:57 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-11 18:07:06 -08:00
|
|
|
/* Species/color picker */
|
2025-11-02 01:06:27 -07:00
|
|
|
species-color-picker {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2025-11-11 18:07:06 -08:00
|
|
|
gap: 0.5rem;
|
2025-11-02 01:06:27 -07:00
|
|
|
|
|
|
|
|
select {
|
|
|
|
|
padding: 0.5rem 2rem 0.5rem 0.75rem;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
|
|
|
border-radius: 0.375rem;
|
|
|
|
|
background: rgba(0, 0, 0, 0.7);
|
|
|
|
|
color: white;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
backdrop-filter: blur(8px);
|
|
|
|
|
-webkit-backdrop-filter: blur(8px);
|
|
|
|
|
appearance: none;
|
|
|
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
|
|
|
|
|
background-position: right 0.5rem center;
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 1.5em 1.5em;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.8);
|
|
|
|
|
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
option {
|
|
|
|
|
background: #2D3748;
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-11-02 01:17:06 -07:00
|
|
|
|
|
|
|
|
/* Submit button: progressive enhancement pattern */
|
|
|
|
|
/* If JS is disabled, the button is always visible */
|
|
|
|
|
/* If JS is enabled but slow to load, fade in after 0.75s */
|
|
|
|
|
/* Once the web component loads, hide the button completely */
|
|
|
|
|
input[type="submit"] {
|
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
|
|
|
border-radius: 0.375rem;
|
|
|
|
|
background: rgba(0, 0, 0, 0.7);
|
|
|
|
|
color: white;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
backdrop-filter: blur(8px);
|
|
|
|
|
-webkit-backdrop-filter: blur(8px);
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.8);
|
|
|
|
|
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* If JS is enabled, hide the submit button initially with a delay */
|
|
|
|
|
@media (scripting: enabled) {
|
|
|
|
|
input[type="submit"] {
|
|
|
|
|
position: absolute;
|
|
|
|
|
margin-left: 0.5em;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
animation: fade-in 0.25s forwards;
|
|
|
|
|
animation-delay: 0.75s;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Once auto-loading is ready, hide the submit button completely */
|
|
|
|
|
&:state(auto-loading) {
|
|
|
|
|
input[type="submit"] {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-11-02 01:06:27 -07:00
|
|
|
}
|
|
|
|
|
|
2025-11-11 18:07:06 -08:00
|
|
|
/* Show controls on hover (real hover only, not simulated touch hover) */
|
2025-11-02 01:06:27 -07:00
|
|
|
@media (hover: hover) {
|
2025-11-11 18:07:06 -08:00
|
|
|
&:hover .preview-controls {
|
2025-11-02 01:06:27 -07:00
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-11 18:07:06 -08:00
|
|
|
/* Show controls when they have focus or when popover is open */
|
|
|
|
|
&:has(.preview-controls:focus-within) .preview-controls,
|
|
|
|
|
&:has(.pose-picker-button[popovertargetopen]) .preview-controls {
|
2025-11-02 01:06:27 -07:00
|
|
|
opacity: 1;
|
|
|
|
|
}
|
2025-11-02 00:58:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.outfit-controls-section {
|
|
|
|
|
width: 400px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
padding: 2rem;
|
2025-12-26 22:28:24 -08:00
|
|
|
box-sizing: border-box;
|
2025-11-02 00:58:11 -07:00
|
|
|
overflow-y: auto;
|
|
|
|
|
box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
|
|
|
|
@media (max-width: 800px) {
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-height: 40vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
font-size: 1.75rem;
|
|
|
|
|
color: #448844;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
|
font-size: 1.25rem;
|
|
|
|
|
color: #448844;
|
|
|
|
|
margin-top: 2rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.current-selection {
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
background: #f0f0f0;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
margin: 1rem 0;
|
|
|
|
|
|
|
|
|
|
p {
|
|
|
|
|
margin: 0;
|
|
|
|
|
color: #666;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
strong {
|
|
|
|
|
color: #000;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.worn-items {
|
|
|
|
|
margin-top: 2rem;
|
|
|
|
|
|
2025-11-02 15:48:39 -08:00
|
|
|
.items-list {
|
2025-11-02 00:58:11 -07:00
|
|
|
list-style: none;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0.5rem 0;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-02 15:48:39 -08:00
|
|
|
.item-card {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.75rem;
|
|
|
|
|
padding: 0.75rem;
|
2025-11-02 00:58:11 -07:00
|
|
|
background: #f9f9f9;
|
|
|
|
|
margin-bottom: 0.5rem;
|
2025-11-02 15:48:39 -08:00
|
|
|
border-radius: 8px;
|
2025-11-02 00:58:11 -07:00
|
|
|
color: #333;
|
2025-11-02 15:48:39 -08:00
|
|
|
transition: background 0.2s, box-shadow 0.2s;
|
2025-11-02 16:44:12 -08:00
|
|
|
position: relative;
|
2025-11-02 15:48:39 -08:00
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: #f0f0f0;
|
|
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
|
|
|
}
|
2025-11-02 16:44:12 -08:00
|
|
|
|
|
|
|
|
&:hover .item-remove-button {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
2025-11-02 15:48:39 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item-thumbnail {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
width: 50px;
|
|
|
|
|
height: 50px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background: white;
|
|
|
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item-info {
|
|
|
|
|
flex: 1;
|
2025-11-02 23:04:59 -08:00
|
|
|
min-width: 0;
|
|
|
|
|
/* Allow text to truncate */
|
2025-11-02 15:48:39 -08:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item-name {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #2D3748;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item-badges {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 0.375rem;
|
|
|
|
|
flex-wrap: wrap;
|
2025-11-02 00:58:11 -07:00
|
|
|
}
|
2025-11-02 16:44:12 -08:00
|
|
|
|
|
|
|
|
.item-remove-button {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0.5rem;
|
|
|
|
|
right: 0.5rem;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
border: none;
|
|
|
|
|
background: rgba(255, 255, 255, 0.9);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
width: 1.75rem;
|
|
|
|
|
height: 1.75rem;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transition: opacity 0.2s, background 0.2s, transform 0.1s;
|
|
|
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: rgba(255, 255, 255, 1);
|
|
|
|
|
transform: scale(1.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
transform: scale(0.95);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
outline: 2px solid #448844;
|
|
|
|
|
outline-offset: 2px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-11-02 01:17:06 -07:00
|
|
|
}
|
|
|
|
|
|
2025-11-02 23:04:59 -08:00
|
|
|
.item-search-form {
|
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
|
|
|
|
|
input[type="text"] {
|
|
|
|
|
flex: 1;
|
|
|
|
|
padding: 0.75rem;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
background: white;
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
border-color: #448844;
|
|
|
|
|
box-shadow: 0 0 0 3px rgba(68, 136, 68, 0.1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input[type="submit"] {
|
|
|
|
|
padding: 0.75rem 1.5rem;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
background: #448844;
|
|
|
|
|
color: white;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: background 0.2s;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: #357535;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
transform: scale(0.98);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
box-shadow: 0 0 0 3px rgba(68, 136, 68, 0.3);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-results {
|
|
|
|
|
.search-results-header {
|
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
|
|
|
|
|
|
.back-button {
|
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
|
margin: 0 0 1rem 0;
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
background: white;
|
|
|
|
|
color: #448844;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 0.95rem;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
transition: background 0.2s, border-color 0.2s;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: #f9f9f9;
|
|
|
|
|
border-color: #448844;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
border-color: #448844;
|
|
|
|
|
box-shadow: 0 0 0 3px rgba(68, 136, 68, 0.1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-results-list {
|
|
|
|
|
list-style: none;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 1rem 0;
|
|
|
|
|
|
|
|
|
|
.item-card {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.75rem;
|
|
|
|
|
padding: 0.75rem;
|
|
|
|
|
background: #f9f9f9;
|
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
color: #333;
|
|
|
|
|
transition: background 0.2s, box-shadow 0.2s;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: #f0f0f0;
|
|
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover .item-add-button {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item-thumbnail {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
width: 50px;
|
|
|
|
|
height: 50px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background: white;
|
|
|
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item-info {
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item-name {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #2D3748;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item-badges {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 0.375rem;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item-add-button {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0.5rem;
|
|
|
|
|
right: 0.5rem;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
border: none;
|
|
|
|
|
background: rgba(68, 136, 68, 0.9);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
width: 1.75rem;
|
|
|
|
|
height: 1.75rem;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transition: opacity 0.2s, background 0.2s, transform 0.1s;
|
|
|
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: rgba(68, 136, 68, 1);
|
|
|
|
|
transform: scale(1.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
transform: scale(0.95);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
outline: 2px solid #448844;
|
|
|
|
|
outline-offset: 2px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-state {
|
|
|
|
|
padding: 2rem;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #666;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination {
|
|
|
|
|
margin: 1.5rem 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
|
|
|
|
|
a,
|
|
|
|
|
span,
|
|
|
|
|
em {
|
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
color: #448844;
|
|
|
|
|
background: white;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: #f9f9f9;
|
|
|
|
|
border-color: #448844;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.current,
|
|
|
|
|
em {
|
|
|
|
|
background: #448844;
|
|
|
|
|
color: white;
|
|
|
|
|
border-color: #448844;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.disabled {
|
|
|
|
|
color: #ccc;
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
border-color: #eee;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: white;
|
|
|
|
|
border-color: #eee;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-02 01:17:06 -07:00
|
|
|
@keyframes fade-in {
|
|
|
|
|
from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
to {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
2025-11-11 17:21:03 -08:00
|
|
|
}
|