eabab39210
Mark AutoTrader listings as 'not wanted' on both search results and detail pages. Includes the unlisted signing / auto-update pipeline (web-ext + dist/updates.json polled by Firefox). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
134 lines
2.7 KiB
CSS
134 lines
2.7 KiB
CSS
/* AutoTrader Marker — injected styles */
|
|
|
|
.atm-card {
|
|
position: relative !important;
|
|
}
|
|
|
|
.atm-btn {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 8px;
|
|
z-index: 9999;
|
|
padding: 6px 10px;
|
|
font: 600 12px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
|
|
color: #fff;
|
|
background: rgba(30, 30, 30, 0.82);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-radius: 999px;
|
|
cursor: pointer;
|
|
backdrop-filter: blur(4px);
|
|
-webkit-backdrop-filter: blur(4px);
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
|
|
transition: background-color 120ms ease, transform 80ms ease;
|
|
}
|
|
|
|
.atm-btn:hover {
|
|
background: rgba(200, 30, 30, 0.9);
|
|
}
|
|
|
|
.atm-btn[aria-pressed="true"] {
|
|
background: rgba(40, 120, 60, 0.9);
|
|
}
|
|
|
|
.atm-btn:active {
|
|
transform: scale(0.97);
|
|
}
|
|
|
|
/* Dismissed cards: faded + strikethrough in default mode */
|
|
.atm-card.atm-dismissed {
|
|
opacity: 0.32;
|
|
filter: grayscale(0.6);
|
|
transition: opacity 150ms ease, filter 150ms ease;
|
|
}
|
|
|
|
.atm-card.atm-dismissed:hover {
|
|
opacity: 0.7;
|
|
filter: grayscale(0.3);
|
|
}
|
|
|
|
.atm-card.atm-dismissed::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
border: 2px dashed rgba(200, 30, 30, 0.6);
|
|
border-radius: 8px;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Hide mode: fully collapse dismissed cards */
|
|
html.atm-hide-dismissed .atm-card.atm-dismissed {
|
|
display: none !important;
|
|
}
|
|
|
|
/* --- Detail page: floating action button --- */
|
|
|
|
.atm-fab {
|
|
position: fixed;
|
|
right: 20px;
|
|
bottom: 20px;
|
|
z-index: 2147483647;
|
|
padding: 12px 18px;
|
|
font: 600 14px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
|
|
color: #fff;
|
|
background: #c41e1e;
|
|
border: none;
|
|
border-radius: 999px;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
|
|
transition: background-color 120ms ease, transform 80ms ease;
|
|
}
|
|
|
|
.atm-fab:hover {
|
|
background: #a61919;
|
|
}
|
|
|
|
.atm-fab.atm-fab-dismissed {
|
|
background: #2f8547;
|
|
}
|
|
|
|
.atm-fab.atm-fab-dismissed:hover {
|
|
background: #276e3a;
|
|
}
|
|
|
|
.atm-fab:active {
|
|
transform: scale(0.97);
|
|
}
|
|
|
|
/* --- Detail page: top banner when already dismissed --- */
|
|
|
|
.atm-banner {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 2147483646;
|
|
display: none;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 10px 16px;
|
|
font: 600 13px/1.3 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
|
|
color: #fff;
|
|
background: #c41e1e;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.atm-banner.atm-banner-visible {
|
|
display: flex;
|
|
}
|
|
|
|
.atm-banner-undo {
|
|
padding: 4px 10px;
|
|
font: inherit;
|
|
color: #fff;
|
|
background: transparent;
|
|
border: 1px solid rgba(255, 255, 255, 0.6);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.atm-banner-undo:hover {
|
|
background: rgba(255, 255, 255, 0.15);
|
|
}
|