mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
172 lines
3.3 KiB
Plaintext
172 lines
3.3 KiB
Plaintext
@import '../../tokens.less';
|
|
|
|
.listingsTable {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
|
|
&__strike {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: -2px;
|
|
right: -2px;
|
|
top: 50%;
|
|
height: 2px;
|
|
background: currentColor;
|
|
transform: rotate(-45deg);
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
&__row {
|
|
display: grid;
|
|
grid-template-columns: 56px 1fr 140px 200px 120px 110px auto;
|
|
align-items: center;
|
|
gap: @space-3;
|
|
padding: 8px 12px;
|
|
background: @color-elevated;
|
|
border: 1px solid @color-border;
|
|
border-radius: @radius-chip;
|
|
cursor: pointer;
|
|
transition: background @transition-fast;
|
|
|
|
&:hover {
|
|
background: #252525;
|
|
}
|
|
|
|
&--inactive {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
&__thumb {
|
|
width: 56px;
|
|
height: 40px;
|
|
flex-shrink: 0;
|
|
border-radius: @radius-chip;
|
|
overflow: hidden;
|
|
|
|
img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
&__title {
|
|
font-weight: 600;
|
|
font-size: @text-sm;
|
|
color: @color-text;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__price {
|
|
font-size: @text-sm;
|
|
font-weight: 600;
|
|
color: @color-success;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 4px;
|
|
white-space: nowrap;
|
|
text-align: right;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
&__address {
|
|
font-size: @text-xs;
|
|
color: @color-muted;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__meta {
|
|
font-size: @text-xs;
|
|
color: @color-muted;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__date {
|
|
font-size: @text-xs;
|
|
color: @color-faint;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
&__star {
|
|
width: 30px;
|
|
height: 30px;
|
|
background: rgba(0,0,0,0.28);
|
|
border: 1px solid rgba(255,255,255,0.12);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
transition: background @transition-fast, border-color @transition-fast, transform @transition-fast;
|
|
flex-shrink: 0;
|
|
|
|
&:hover {
|
|
background: rgba(0,0,0,0.48);
|
|
border-color: rgba(255,255,255,0.22);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px rgba(224,74,56,0.35);
|
|
}
|
|
|
|
svg {
|
|
color: @color-accent;
|
|
font-size: 15px;
|
|
}
|
|
}
|
|
|
|
&__empty {
|
|
color: @color-faint;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
grid-template-columns: 56px 1fr 120px auto;
|
|
|
|
.listingsTable__row__address,
|
|
.listingsTable__row__meta,
|
|
.listingsTable__row__date {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
grid-template-columns: 56px 1fr auto;
|
|
|
|
.listingsTable__row__price {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|