208 lines
3.1 KiB
SCSS
208 lines
3.1 KiB
SCSS
|
|
.inline-items {
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.inline-items-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
padding: 0.5rem 0;
|
||
|
|
margin-bottom: 0.75rem;
|
||
|
|
|
||
|
|
.items-count {
|
||
|
|
font-size: 0.85rem;
|
||
|
|
color: #666;
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.inline-items-grid {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 0.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.inline-item-card {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.75rem;
|
||
|
|
padding: 0.5rem 0.75rem;
|
||
|
|
border: 1px solid #e0e0e0;
|
||
|
|
border-radius: 8px;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.2s;
|
||
|
|
background: #fff;
|
||
|
|
position: relative;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
border-color: #1976d2;
|
||
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||
|
|
|
||
|
|
.delete-btn {
|
||
|
|
opacity: 1;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
&.hidden-item {
|
||
|
|
opacity: 0.6;
|
||
|
|
background: #fafafa;
|
||
|
|
}
|
||
|
|
|
||
|
|
.delete-btn {
|
||
|
|
opacity: 0;
|
||
|
|
transition: opacity 0.2s;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.inline-item-image {
|
||
|
|
width: 48px;
|
||
|
|
height: 48px;
|
||
|
|
flex-shrink: 0;
|
||
|
|
border-radius: 6px;
|
||
|
|
overflow: hidden;
|
||
|
|
background: #f5f5f5;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
position: relative;
|
||
|
|
|
||
|
|
img {
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
object-fit: cover;
|
||
|
|
}
|
||
|
|
|
||
|
|
.no-image {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
color: #ccc;
|
||
|
|
|
||
|
|
mat-icon {
|
||
|
|
font-size: 24px;
|
||
|
|
width: 24px;
|
||
|
|
height: 24px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.out-of-stock {
|
||
|
|
position: absolute;
|
||
|
|
inset: 0;
|
||
|
|
background: rgba(0, 0, 0, 0.5);
|
||
|
|
color: #fff;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
font-size: 0.5rem;
|
||
|
|
font-weight: 600;
|
||
|
|
text-transform: uppercase;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.inline-item-info {
|
||
|
|
flex: 1;
|
||
|
|
min-width: 0;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 0.15rem;
|
||
|
|
|
||
|
|
.item-name {
|
||
|
|
font-size: 0.9rem;
|
||
|
|
font-weight: 500;
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
white-space: nowrap;
|
||
|
|
color: #333;
|
||
|
|
}
|
||
|
|
|
||
|
|
.item-details {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.5rem;
|
||
|
|
font-size: 0.8rem;
|
||
|
|
|
||
|
|
.price {
|
||
|
|
font-weight: 600;
|
||
|
|
color: #1976d2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.discount {
|
||
|
|
padding: 1px 5px;
|
||
|
|
border-radius: 3px;
|
||
|
|
background: #e53935;
|
||
|
|
color: #fff;
|
||
|
|
font-size: 0.7rem;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.item-meta {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.5rem;
|
||
|
|
font-size: 0.75rem;
|
||
|
|
color: #999;
|
||
|
|
|
||
|
|
.qty {
|
||
|
|
color: #666;
|
||
|
|
}
|
||
|
|
|
||
|
|
.visibility-icon {
|
||
|
|
font-size: 16px;
|
||
|
|
width: 16px;
|
||
|
|
height: 16px;
|
||
|
|
|
||
|
|
&.visible { color: #4caf50; }
|
||
|
|
&.not-visible { color: #f44336; }
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.inline-loading {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 0.75rem;
|
||
|
|
padding: 1rem;
|
||
|
|
|
||
|
|
span {
|
||
|
|
color: #666;
|
||
|
|
font-size: 0.8rem;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.inline-empty {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
padding: 2rem 1rem;
|
||
|
|
color: #999;
|
||
|
|
|
||
|
|
mat-icon {
|
||
|
|
font-size: 36px;
|
||
|
|
width: 36px;
|
||
|
|
height: 36px;
|
||
|
|
margin-bottom: 0.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
span {
|
||
|
|
font-size: 0.85rem;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.inline-end {
|
||
|
|
text-align: center;
|
||
|
|
padding: 0.75rem;
|
||
|
|
color: #bbb;
|
||
|
|
font-size: 0.8rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.scroll-sentinel {
|
||
|
|
height: 2px;
|
||
|
|
width: 100%;
|
||
|
|
}
|