@bytebrand/fe-ui-core-autobahn 1.0.211 → 1.0.213
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cards/CarCard.tsx +51 -13
- package/cards/CarRow.tsx +5 -1
- package/cards/cardParts.tsx +11 -1
- package/constants/app.ts +11 -1
- package/constants/core.ts +12 -1
- package/locales/de/autobahn.json +11 -1
- package/locales/en/autobahn.json +11 -1
- package/package.json +30 -30
- package/theme/md3.css +135 -185
- package/ui/Stars.tsx +36 -18
- package/vdp/VdpModules.tsx +135 -621
- package/vdp/index.ts +6 -3
- package/vdp/types.ts +20 -10
package/cards/CarCard.tsx
CHANGED
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
GalleryActivityPill,
|
|
39
39
|
cardSpec,
|
|
40
40
|
PaymentMode,
|
|
41
|
+
startPaymentMode,
|
|
41
42
|
callDealerSalesPhone,
|
|
42
43
|
DEALER_SALES_PHONE,
|
|
43
44
|
} from './cardParts';
|
|
@@ -98,6 +99,11 @@ export interface CarCardProps {
|
|
|
98
99
|
* (still onOpenRateAdjust).
|
|
99
100
|
*/
|
|
100
101
|
onShowFinancingDetails?: (car: AutobahnCar, mode: PaymentMode) => void;
|
|
102
|
+
/**
|
|
103
|
+
* Tab the price block opens on (default Finanzierung) — e.g. the SRP's leasing-only results
|
|
104
|
+
* open every card on Leasing. Ignored for a car without a lease rate (it has no Leasing tab).
|
|
105
|
+
*/
|
|
106
|
+
initialMode?: PaymentMode;
|
|
101
107
|
}
|
|
102
108
|
|
|
103
109
|
const CarCard: React.FunctionComponent<CarCardProps> = ({
|
|
@@ -113,8 +119,9 @@ const CarCard: React.FunctionComponent<CarCardProps> = ({
|
|
|
113
119
|
onCall,
|
|
114
120
|
onOpenRateAdjust,
|
|
115
121
|
onShowFinancingDetails,
|
|
122
|
+
initialMode,
|
|
116
123
|
}) => {
|
|
117
|
-
const [mode, setMode] = useState<PaymentMode>(
|
|
124
|
+
const [mode, setMode] = useState<PaymentMode>(() => startPaymentMode(car, initialMode));
|
|
118
125
|
const [photoIndex, setPhotoIndex] = useState(0);
|
|
119
126
|
const [viewerOpen, setViewerOpen] = useState(false);
|
|
120
127
|
const mediaRef = useRef<HTMLDivElement | null>(null);
|
|
@@ -157,6 +164,8 @@ const CarCard: React.FunctionComponent<CarCardProps> = ({
|
|
|
157
164
|
// active that's already 3, so NEU is dropped rather than causing a 4th to overflow.
|
|
158
165
|
const activeDealChips = [showDrop || showSave, showPct, !!car.zeroDown].filter(Boolean).length;
|
|
159
166
|
const showNeu = asGoodAsNew && car.isNew && activeDealChips < 3;
|
|
167
|
+
// tabs the price block can switch to (PriceTabs shows Leasing only when the car has a lease rate)
|
|
168
|
+
const paymentModes: PaymentMode[] = car.lease != null ? ['financing', 'leasing', 'buy'] : ['financing', 'buy'];
|
|
160
169
|
return (
|
|
161
170
|
<article
|
|
162
171
|
className="mcard mcard--interactive cc-card"
|
|
@@ -279,21 +288,50 @@ const CarCard: React.FunctionComponent<CarCardProps> = ({
|
|
|
279
288
|
<div className="cc-price" style={{ marginTop: 0, borderTop: '1px solid var(--md-outline-variant)' }}>
|
|
280
289
|
<PriceTabs car={car} mode={mode} onModeChange={setMode} t={t} />
|
|
281
290
|
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 8, marginTop: 10 }}>
|
|
282
|
-
|
|
291
|
+
{/* every tab's hero stacked in one grid cell (.cc-hero-stack), only the active one
|
|
292
|
+
visible, bottom-aligned — Kaufen's struck list price sits on its own line above
|
|
293
|
+
the price, so without this the row (and the card) grew/shrank by that line on
|
|
294
|
+
every tab switch. Same trick as .cc-terms-stack below. */}
|
|
295
|
+
<div className="cc-hero-stack">
|
|
296
|
+
{paymentModes.map((m) => (
|
|
297
|
+
<div
|
|
298
|
+
key={m}
|
|
299
|
+
className={'cc-hero-slot' + (m === mode ? '' : ' cc-hero-slot--hidden')}
|
|
300
|
+
aria-hidden={m === mode ? undefined : true}
|
|
301
|
+
>
|
|
302
|
+
<PriceHero car={car} mode={m} t={t} alwaysShowUnit />
|
|
303
|
+
</div>
|
|
304
|
+
))}
|
|
305
|
+
</div>
|
|
283
306
|
<PriceEvalCol car={car} t={t} />
|
|
284
307
|
</div>
|
|
285
308
|
{/* same fallback CardCtaRow already uses below: pages that haven't wired a real
|
|
286
|
-
"Rate anpassen" sheet yet still get a working "Details" link (opens the car).
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
309
|
+
"Rate anpassen" sheet yet still get a working "Details" link (opens the car).
|
|
310
|
+
Every tab's terms line is rendered into the same grid cell (.cc-terms-stack) and
|
|
311
|
+
only the active one is visible — the cell is as tall as the tallest line, so the
|
|
312
|
+
card keeps one height across Finanzierung/Leasing/Kaufen (Leasing's longer line
|
|
313
|
+
wraps to 2 lines on narrow phones). No change to the visible line itself. */}
|
|
314
|
+
<div className="cc-terms-stack">
|
|
315
|
+
{paymentModes.map((m) => (
|
|
316
|
+
<div
|
|
317
|
+
key={m}
|
|
318
|
+
className={'cc-terms-slot' + (m === mode ? '' : ' cc-terms-slot--hidden')}
|
|
319
|
+
aria-hidden={m === mode ? undefined : true}
|
|
320
|
+
>
|
|
321
|
+
<PriceTerms
|
|
322
|
+
car={car}
|
|
323
|
+
mode={m}
|
|
324
|
+
onOpenRateAdjust={onOpenRateAdjust || (() => onOpen(car))}
|
|
325
|
+
onShowDetails={onShowFinancingDetails ? () => onShowFinancingDetails(car, m) : undefined}
|
|
326
|
+
t={t}
|
|
327
|
+
/>
|
|
328
|
+
{/* ADV-405/407 Kreditkosten-Hinweis under the financing/leasing conditions line. Inside the
|
|
329
|
+
slot, so the stack keeps one height across the tabs (no jump on Kaufen); hidden slots
|
|
330
|
+
are visibility:hidden + aria-hidden like their terms line. */}
|
|
331
|
+
{m !== 'buy' && <CreditCostNotice t={t} size="small" cls="cc-ccn" />}
|
|
332
|
+
</div>
|
|
333
|
+
))}
|
|
334
|
+
</div>
|
|
297
335
|
</div>
|
|
298
336
|
{/* Mobile-only row (CardCtaRow itself carries the show-mobile class) — always
|
|
299
337
|
rendered, with real fallbacks the page can override once it wires its own
|
package/cards/CarRow.tsx
CHANGED
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
ZeroDownChip,
|
|
42
42
|
fmtKm,
|
|
43
43
|
PaymentMode,
|
|
44
|
+
startPaymentMode,
|
|
44
45
|
ratingTone,
|
|
45
46
|
} from './cardParts';
|
|
46
47
|
import { AutobahnCar } from './types';
|
|
@@ -80,6 +81,8 @@ export interface CarRowProps {
|
|
|
80
81
|
* links render as plain text (see PricePaths' own fallback).
|
|
81
82
|
*/
|
|
82
83
|
onShowFinancingDetails?: (car: AutobahnCar, mode: PaymentMode) => void;
|
|
84
|
+
/** Tab the mobile price tabs open on — see CarCard's identically-named prop. */
|
|
85
|
+
initialMode?: PaymentMode;
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
const CarRow: React.FunctionComponent<CarRowProps> = ({
|
|
@@ -92,8 +95,9 @@ const CarRow: React.FunctionComponent<CarRowProps> = ({
|
|
|
92
95
|
t,
|
|
93
96
|
adminAction,
|
|
94
97
|
onShowFinancingDetails,
|
|
98
|
+
initialMode,
|
|
95
99
|
}) => {
|
|
96
|
-
const [mode, setMode] = useState<PaymentMode>(
|
|
100
|
+
const [mode, setMode] = useState<PaymentMode>(() => startPaymentMode(car, initialMode));
|
|
97
101
|
const [photoIndex, setPhotoIndex] = useState(0);
|
|
98
102
|
const mediaRef = useRef<HTMLDivElement | null>(null);
|
|
99
103
|
// always call the LATEST onMediaEnter without re-arming the observer on every render (the
|
package/cards/cardParts.tsx
CHANGED
|
@@ -521,6 +521,11 @@ export const PriceEvalCol: React.FunctionComponent<{ car: AutobahnCar; t: Transl
|
|
|
521
521
|
|
|
522
522
|
export type PaymentMode = 'financing' | 'leasing' | 'buy';
|
|
523
523
|
|
|
524
|
+
/** The tab a card opens on: the requested one (default Finanzierung), but never Leasing for a car
|
|
525
|
+
* without a lease rate — PriceTabs has no Leasing tab for it. */
|
|
526
|
+
export const startPaymentMode = (car: AutobahnCar, requested?: PaymentMode): PaymentMode =>
|
|
527
|
+
requested === 'leasing' && car.lease == null ? 'financing' : requested || 'financing';
|
|
528
|
+
|
|
524
529
|
export interface PriceTabsProps {
|
|
525
530
|
car: AutobahnCar;
|
|
526
531
|
mode: PaymentMode;
|
|
@@ -755,7 +760,12 @@ export const PriceTerms: React.FunctionComponent<{
|
|
|
755
760
|
onShowDetails?: () => void;
|
|
756
761
|
t: TranslationFunction;
|
|
757
762
|
}> = ({ car, mode, onOpenRateAdjust, onShowDetails, t }) => {
|
|
758
|
-
|
|
763
|
+
// Kaufen (buy): a cash purchase has no financing terms/details link — used to `return null`
|
|
764
|
+
// here, which collapsed .cc-terms to 0 height on that tab while Financing/Leasing rendered a
|
|
765
|
+
// real line, jumping the price row (and everything below it: rating pill, CTA row) up/down on
|
|
766
|
+
// every tab switch. Render an empty, still-present .cc-terms div instead — same fix as the VDP
|
|
767
|
+
// FinanceCalculator's .fin-cond (md3.css), which reserves its line's height the same way.
|
|
768
|
+
if (mode === 'buy') return <div className="cc-terms" />;
|
|
759
769
|
const finFirstInstallment =
|
|
760
770
|
car.finFirstInstallment != null ? car.finFirstInstallment.toLocaleString('de-DE') : _finFirstInstallment;
|
|
761
771
|
const finMonths = car.finMonths ?? _finMonths;
|
package/constants/app.ts
CHANGED
|
@@ -40,7 +40,17 @@ export const LOCAL_STORAGE_KEY = {
|
|
|
40
40
|
i18n_KEY: 'i18nLanguage'
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
// ADV-284: evaluated at import time — with site storage blocked, reading localStorage throws a
|
|
44
|
+
// SecurityError that took down the whole bundle. Blocked storage behaves like "nothing saved".
|
|
45
|
+
const readStoredLang = (): string | null => {
|
|
46
|
+
try {
|
|
47
|
+
return localStorage.getItem(LOCAL_STORAGE_KEY.i18n_KEY);
|
|
48
|
+
} catch (e) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const DEFAULT_LANG: string = typeof window !== 'undefined' ? readStoredLang() : 'de';
|
|
44
54
|
|
|
45
55
|
// Default support contact phone
|
|
46
56
|
export const CONTACT_PHONE: string = '+498004030182';
|
package/constants/core.ts
CHANGED
|
@@ -35,7 +35,18 @@ export const LOCAL_STORAGE_KEY = {
|
|
|
35
35
|
i18n_KEY: 'i18nLanguage'
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
// ADV-284: evaluated at import time — with site storage blocked, merely reading
|
|
39
|
+
// window.localStorage throws a SecurityError, which took down the whole bundle (landing
|
|
40
|
+
// page never rendered). Treat blocked storage like "no language saved".
|
|
41
|
+
const readStoredLang = (): string | null => {
|
|
42
|
+
try {
|
|
43
|
+
return typeof window !== 'undefined' ? window.localStorage.getItem(LOCAL_STORAGE_KEY.i18n_KEY) : null;
|
|
44
|
+
} catch (e) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const DEFAULT_LANG: string = readStoredLang() ?? 'de';
|
|
39
50
|
|
|
40
51
|
export const ROW_STYLES = {
|
|
41
52
|
marginBottom: 10
|
package/locales/de/autobahn.json
CHANGED
|
@@ -143,7 +143,17 @@
|
|
|
143
143
|
"title": "Das sagen unsere Kunden",
|
|
144
144
|
"ratingCount": "{{count}} Bewertung",
|
|
145
145
|
"ratingCount_plural": "{{count}} Bewertungen",
|
|
146
|
-
"teaserCount": "{{count}} Google-Bewertungen"
|
|
146
|
+
"teaserCount": "{{count}} Google-Bewertungen",
|
|
147
|
+
"sourceReview": "{{portal}}-Bewertung",
|
|
148
|
+
"sources": {
|
|
149
|
+
"open": "So entsteht unsere Bewertung",
|
|
150
|
+
"title": "So entsteht unsere Bewertung",
|
|
151
|
+
"intro": "Unsere Bewertung ist der Durchschnitt aller Bewertungen, die Kund:innen auf {{portals}} über auto.de abgegeben haben. Jede Plattform zählt dabei mit ihrer Anzahl an Bewertungen.",
|
|
152
|
+
"and": "und",
|
|
153
|
+
"allOn": "Alle Bewertungen auf {{portal}}",
|
|
154
|
+
"total": "Gesamtbewertung",
|
|
155
|
+
"weighted": "gewichteter Durchschnitt"
|
|
156
|
+
}
|
|
147
157
|
},
|
|
148
158
|
"enquiry": {
|
|
149
159
|
"personalConsultation": "Persönliche Beratung",
|
package/locales/en/autobahn.json
CHANGED
|
@@ -143,7 +143,17 @@
|
|
|
143
143
|
"title": "What our customers say",
|
|
144
144
|
"ratingCount": "{{count}} rating",
|
|
145
145
|
"ratingCount_plural": "{{count}} ratings",
|
|
146
|
-
"teaserCount": "{{count}} Google reviews"
|
|
146
|
+
"teaserCount": "{{count}} Google reviews",
|
|
147
|
+
"sourceReview": "{{portal}} review",
|
|
148
|
+
"sources": {
|
|
149
|
+
"open": "How our rating is calculated",
|
|
150
|
+
"title": "How our rating is calculated",
|
|
151
|
+
"intro": "Our rating is the average of all reviews customers have left for auto.de on {{portals}}. Each platform counts with its number of reviews.",
|
|
152
|
+
"and": "and",
|
|
153
|
+
"allOn": "All reviews on {{portal}}",
|
|
154
|
+
"total": "Overall rating",
|
|
155
|
+
"weighted": "weighted average"
|
|
156
|
+
}
|
|
147
157
|
},
|
|
148
158
|
"enquiry": {
|
|
149
159
|
"personalConsultation": "Personal consultation",
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bytebrand/fe-ui-core-autobahn",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
|
|
5
|
-
"main": "index.ts",
|
|
6
|
-
"license": "UNLICENSED",
|
|
7
|
-
"peerDependencies": {
|
|
8
|
-
"react": "^18.0.0",
|
|
9
|
-
"react-dom": "^18.0.0"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@bytebrand/car-schema-selectors": "^2.0.7",
|
|
13
|
-
"@bytebrand/fe-financing": "^5.14.
|
|
14
|
-
"classnames": "2.2.6",
|
|
15
|
-
"clsx": "^2.1.1",
|
|
16
|
-
"d3-format": "1.4.5",
|
|
17
|
-
"js-cookie": "^2.2.0",
|
|
18
|
-
"lodash": "^4.17.21",
|
|
19
|
-
"lucide-react": "^0.288.0",
|
|
20
|
-
"mobx-react": "^7.6.0",
|
|
21
|
-
"moment": "^2.29.1",
|
|
22
|
-
"qs": "^6.6.0",
|
|
23
|
-
"react-device-detect": "^2.1.2",
|
|
24
|
-
"react-grid-system": "^5.0.2",
|
|
25
|
-
"react-lazyload": "^3.2.0",
|
|
26
|
-
"react-scroll": "^1.9.3",
|
|
27
|
-
"react-slick": "^0.29.0",
|
|
28
|
-
"slick-carousel": "1.8.1"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@bytebrand/fe-ui-core-autobahn",
|
|
3
|
+
"version": "1.0.213",
|
|
4
|
+
"description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
|
|
5
|
+
"main": "index.ts",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"peerDependencies": {
|
|
8
|
+
"react": "^18.0.0",
|
|
9
|
+
"react-dom": "^18.0.0"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@bytebrand/car-schema-selectors": "^2.0.7",
|
|
13
|
+
"@bytebrand/fe-financing": "^5.14.30",
|
|
14
|
+
"classnames": "2.2.6",
|
|
15
|
+
"clsx": "^2.1.1",
|
|
16
|
+
"d3-format": "1.4.5",
|
|
17
|
+
"js-cookie": "^2.2.0",
|
|
18
|
+
"lodash": "^4.17.21",
|
|
19
|
+
"lucide-react": "^0.288.0",
|
|
20
|
+
"mobx-react": "^7.6.0",
|
|
21
|
+
"moment": "^2.29.1",
|
|
22
|
+
"qs": "^6.6.0",
|
|
23
|
+
"react-device-detect": "^2.1.2",
|
|
24
|
+
"react-grid-system": "^5.0.2",
|
|
25
|
+
"react-lazyload": "^3.2.0",
|
|
26
|
+
"react-scroll": "^1.9.3",
|
|
27
|
+
"react-slick": "^0.29.0",
|
|
28
|
+
"slick-carousel": "1.8.1"
|
|
29
|
+
}
|
|
30
|
+
}
|
package/theme/md3.css
CHANGED
|
@@ -10105,7 +10105,8 @@ line-height: 31px;
|
|
|
10105
10105
|
z-index: 71;
|
|
10106
10106
|
background: var(--md-surface);
|
|
10107
10107
|
border-radius: var(--md-r-xl) var(--md-r-xl) 0 0;
|
|
10108
|
-
|
|
10108
|
+
/* % of the fixed containing block, not vh/dvh: on iOS vh is the toolbars-collapsed height, and Chrome on iOS does not shrink dvh while its toolbars are shown either, so a 92vh/92dvh bottom sheet grew under the address bar and hid its own header (title, download, close). The fixed box itself always matches the visible area. */
|
|
10109
|
+
max-height: 92%;
|
|
10109
10110
|
display: flex;
|
|
10110
10111
|
flex-direction: column;
|
|
10111
10112
|
box-shadow: 0 -8px 30px rgba(16, 22, 42, 0.22);
|
|
@@ -12237,7 +12238,6 @@ color: #005CFF;
|
|
|
12237
12238
|
.md3 .hiw-section,
|
|
12238
12239
|
.md3 #vdp-kontakt,
|
|
12239
12240
|
.md3 #vdp-bewertungen,
|
|
12240
|
-
.md3 #vdp-preis,
|
|
12241
12241
|
.md3 .vdp-similar {
|
|
12242
12242
|
margin-top: 14px !important;
|
|
12243
12243
|
}
|
|
@@ -12250,187 +12250,6 @@ color: #005CFF;
|
|
|
12250
12250
|
border: 1px solid #D4DDE7;
|
|
12251
12251
|
box-shadow: none;
|
|
12252
12252
|
}
|
|
12253
|
-
.md3 #vdp-preis {
|
|
12254
|
-
padding: 0 !important;
|
|
12255
|
-
border: 1px solid #D4DDE7;
|
|
12256
|
-
box-shadow: none;
|
|
12257
|
-
}
|
|
12258
|
-
.md3 #vdp-preis h2 {
|
|
12259
|
-
padding: 22px 22px 0 !important;
|
|
12260
|
-
margin-top: 0;
|
|
12261
|
-
margin-bottom: 11px !important;
|
|
12262
|
-
font-family: Arial, Helvetica, Arimo, sans-serif;
|
|
12263
|
-
font-style: normal;
|
|
12264
|
-
font-weight: 700;
|
|
12265
|
-
font-size: 24px;
|
|
12266
|
-
line-height: 29px;
|
|
12267
|
-
color: #1d2a38;
|
|
12268
|
-
}
|
|
12269
|
-
.md3 #vdp-preis .fin-eval-bar {
|
|
12270
|
-
height: 9px;
|
|
12271
|
-
}
|
|
12272
|
-
.md3 #vdp-preis .fin-eval-seg:first-child {
|
|
12273
|
-
border-radius: 4px 0 0 4px;
|
|
12274
|
-
}
|
|
12275
|
-
.md3 #vdp-preis .fin-eval-seg:last-of-type {
|
|
12276
|
-
border-radius: 0 4px 4px 0;
|
|
12277
|
-
}
|
|
12278
|
-
.md3 #vdp-preis > div:first-of-type {
|
|
12279
|
-
padding-left: 22px;
|
|
12280
|
-
padding-right: 22px;
|
|
12281
|
-
}
|
|
12282
|
-
.md3 #vdp-preis > div:last-child {
|
|
12283
|
-
margin-top: 24px !important;
|
|
12284
|
-
}
|
|
12285
|
-
.md3 .fin-criteria-card {
|
|
12286
|
-
padding: 0 !important;
|
|
12287
|
-
margin: 0 10px;
|
|
12288
|
-
}
|
|
12289
|
-
.md3 .fin-criteria-card > button {
|
|
12290
|
-
padding: 13px 13px 25px 13px !important;
|
|
12291
|
-
}
|
|
12292
|
-
.md3 #vdp-preis .fin-criteria-card > button .md-title-sm {
|
|
12293
|
-
font-family: Arial, Helvetica, Arimo, sans-serif;
|
|
12294
|
-
font-style: normal;
|
|
12295
|
-
font-weight: 700;
|
|
12296
|
-
font-size: 13px !important;
|
|
12297
|
-
line-height: 18px;
|
|
12298
|
-
color: #1d2a38;
|
|
12299
|
-
}
|
|
12300
|
-
.md3 .fin-criteria-card > button > svg:last-child {
|
|
12301
|
-
stroke-width: 2.6px !important;
|
|
12302
|
-
}
|
|
12303
|
-
.md3 .fin-criteria-card > button > svg:last-child path {
|
|
12304
|
-
stroke-width: 2.6px !important;
|
|
12305
|
-
}
|
|
12306
|
-
.md3 .fin-criteria-card .fin-criteria-grid {
|
|
12307
|
-
padding: 0 10px 20px 13px !important;
|
|
12308
|
-
column-gap: 10px !important;
|
|
12309
|
-
row-gap: 14px !important;
|
|
12310
|
-
}
|
|
12311
|
-
.md3 .fin-criteria-card .fin-criteria-icon-grid {
|
|
12312
|
-
padding-top: 13px !important;
|
|
12313
|
-
}
|
|
12314
|
-
.md3 .fin-criteria-card .fin-criteria-grid svg {
|
|
12315
|
-
width: 28px;
|
|
12316
|
-
height: 28px;
|
|
12317
|
-
}
|
|
12318
|
-
.md3 .fin-criteria-card .fin-criteria-grid > div {
|
|
12319
|
-
gap: 3px !important;
|
|
12320
|
-
}
|
|
12321
|
-
.md3 .fin-criteria-card .fin-criteria-grid > div.fin-criteria-tier-row {
|
|
12322
|
-
gap: 12px !important;
|
|
12323
|
-
}
|
|
12324
|
-
.md3 .fin-criteria-card .fin-criteria-grid svg[viewBox="0 0 21 21"] {
|
|
12325
|
-
width: 21px;
|
|
12326
|
-
height: 21px;
|
|
12327
|
-
}
|
|
12328
|
-
.md3 #vdp-preis .fin-criteria-card .md-label-sm {
|
|
12329
|
-
font-family: Arial, Helvetica, Arimo, sans-serif;
|
|
12330
|
-
font-style: normal;
|
|
12331
|
-
font-weight: 400;
|
|
12332
|
-
font-size: 10.3px;
|
|
12333
|
-
line-height: 14px;
|
|
12334
|
-
color: #5b6b7f;
|
|
12335
|
-
}
|
|
12336
|
-
.md3 #vdp-preis .fin-criteria-card .md-title-sm {
|
|
12337
|
-
font-family: Arial, Helvetica, Arimo, sans-serif;
|
|
12338
|
-
font-style: normal;
|
|
12339
|
-
font-weight: 700;
|
|
12340
|
-
font-size: 10.3px !important;
|
|
12341
|
-
line-height: 14px;
|
|
12342
|
-
color: #1d2a38;
|
|
12343
|
-
}
|
|
12344
|
-
.md3 .fin-criteria-note {
|
|
12345
|
-
margin: 0;
|
|
12346
|
-
padding: 0 13px 20px;
|
|
12347
|
-
font-family: Arial, Helvetica, Arimo, sans-serif;
|
|
12348
|
-
font-style: normal;
|
|
12349
|
-
font-weight: 400;
|
|
12350
|
-
font-size: 10px;
|
|
12351
|
-
line-height: 14px;
|
|
12352
|
-
color: #5b6b7f;
|
|
12353
|
-
}
|
|
12354
|
-
.md3 .fin-criteria-divider {
|
|
12355
|
-
width: 310px;
|
|
12356
|
-
height: 1px;
|
|
12357
|
-
background: #e6ecf3;
|
|
12358
|
-
margin: 0 auto;
|
|
12359
|
-
}
|
|
12360
|
-
.md3 #vdp-preis > div:last-child > button {
|
|
12361
|
-
font-family: Arial, Helvetica, Arimo, sans-serif;
|
|
12362
|
-
font-style: normal;
|
|
12363
|
-
font-weight: 700 !important;
|
|
12364
|
-
font-size: 13px !important;
|
|
12365
|
-
line-height: 18px;
|
|
12366
|
-
color: #005cff !important;
|
|
12367
|
-
padding-left: 22px !important;
|
|
12368
|
-
padding-right: 22px !important;
|
|
12369
|
-
}
|
|
12370
|
-
.md3 #vdp-preis > div:last-child > button .lucide {
|
|
12371
|
-
width: 18px;
|
|
12372
|
-
height: 18px;
|
|
12373
|
-
margin-left: auto;
|
|
12374
|
-
stroke-width: 2.6px !important;
|
|
12375
|
-
}
|
|
12376
|
-
.md3 #vdp-preis > div:last-child > button .lucide path {
|
|
12377
|
-
stroke-width: 2.6px !important;
|
|
12378
|
-
}
|
|
12379
|
-
.md3 #vdp-preis .fin-eval-thumb {
|
|
12380
|
-
width: 26px;
|
|
12381
|
-
height: 26px;
|
|
12382
|
-
background: #ffffff;
|
|
12383
|
-
border-width: 2px;
|
|
12384
|
-
border-radius: 13px;
|
|
12385
|
-
}
|
|
12386
|
-
.md3 #vdp-preis .fin-eval-thumb--good {
|
|
12387
|
-
border-color: #66b84d !important;
|
|
12388
|
-
}
|
|
12389
|
-
.md3 #vdp-preis .md-label-sm {
|
|
12390
|
-
font-family: Arial, Helvetica, Arimo, sans-serif;
|
|
12391
|
-
font-style: normal;
|
|
12392
|
-
font-weight: 400;
|
|
12393
|
-
font-size: 11.5px;
|
|
12394
|
-
line-height: 15px;
|
|
12395
|
-
color: #5b6b7f;
|
|
12396
|
-
}
|
|
12397
|
-
.md3 .fin-eval-good-badge {
|
|
12398
|
-
margin-top: 25px !important;
|
|
12399
|
-
height: 56px;
|
|
12400
|
-
width: 100%;
|
|
12401
|
-
box-sizing: border-box;
|
|
12402
|
-
background: #dff3e5 !important;
|
|
12403
|
-
border: 1px solid #a9e0b9;
|
|
12404
|
-
border-radius: 12px !important;
|
|
12405
|
-
padding-left: 22px !important;
|
|
12406
|
-
padding-right: 22px !important;
|
|
12407
|
-
}
|
|
12408
|
-
.md3 .fin-eval-good-badge svg {
|
|
12409
|
-
width: 18px;
|
|
12410
|
-
height: 18px;
|
|
12411
|
-
stroke: #66b84d;
|
|
12412
|
-
}
|
|
12413
|
-
.md3 .fin-eval-good-badge span {
|
|
12414
|
-
font-family: Arial, Helvetica, Arimo, sans-serif;
|
|
12415
|
-
font-style: normal;
|
|
12416
|
-
font-weight: 700 !important;
|
|
12417
|
-
font-size: 13px !important;
|
|
12418
|
-
line-height: 18px;
|
|
12419
|
-
color: #66b84d !important;
|
|
12420
|
-
}
|
|
12421
|
-
.md3 #vdp-preis > p {
|
|
12422
|
-
margin-top: 0;
|
|
12423
|
-
padding-top: 0;
|
|
12424
|
-
padding-left: 22px;
|
|
12425
|
-
padding-right: 22px;
|
|
12426
|
-
margin-bottom: 10px !important;
|
|
12427
|
-
font-family: Arial, Helvetica, Arimo, sans-serif;
|
|
12428
|
-
font-style: normal;
|
|
12429
|
-
font-weight: 400;
|
|
12430
|
-
font-size: 13px;
|
|
12431
|
-
line-height: 18px;
|
|
12432
|
-
color: #5b6b7f;
|
|
12433
|
-
}
|
|
12434
12253
|
.md3 #vdp-bewertungen > div:first-child {
|
|
12435
12254
|
gap: 26px !important;
|
|
12436
12255
|
margin-bottom: 28px !important;
|
|
@@ -14263,7 +14082,8 @@ color: #005CFF;
|
|
|
14263
14082
|
flex-direction: column;
|
|
14264
14083
|
width: 100%;
|
|
14265
14084
|
max-width: 560px;
|
|
14266
|
-
|
|
14085
|
+
/* % of the scrim (fixed, inset 0, 16px padding) instead of calc(100vh - 32px): see the iOS note on the mobile .mmodal below */
|
|
14086
|
+
max-height: 100%;
|
|
14267
14087
|
background: var(--md-sc-lowest, #fff);
|
|
14268
14088
|
color: var(--md-on-surface);
|
|
14269
14089
|
border-radius: var(--md-r-lg);
|
|
@@ -14409,7 +14229,8 @@ color: #005CFF;
|
|
|
14409
14229
|
}
|
|
14410
14230
|
.md3 .mmodal {
|
|
14411
14231
|
max-width: 100%;
|
|
14412
|
-
|
|
14232
|
+
/* % of the fixed containing block, not vh/dvh: on iOS vh is the toolbars-collapsed height, and Chrome on iOS does not shrink dvh while its toolbars are shown either, so a 92vh/92dvh bottom sheet grew under the address bar and hid its own header (title, download, close). The fixed box itself always matches the visible area. */
|
|
14233
|
+
max-height: 92%;
|
|
14413
14234
|
border-radius: var(--md-r-lg) var(--md-r-lg) 0 0;
|
|
14414
14235
|
border-bottom: 0;
|
|
14415
14236
|
animation: mmodal-sheet-up 0.25s ease-out;
|
|
@@ -15855,3 +15676,132 @@ color: #005CFF;
|
|
|
15855
15676
|
.md3 .ckf.ckf--flow .ckf-sep {
|
|
15856
15677
|
display: inline;
|
|
15857
15678
|
}
|
|
15679
|
+
|
|
15680
|
+
/* ---------------------------------------------------------------------------
|
|
15681
|
+
Site rating sources: the "ⓘ" after the rating (homepage reviews badge, VDP reviews header)
|
|
15682
|
+
→ popup with each portal's rating + a link to all reviews there; and the portal + date
|
|
15683
|
+
caption under a review, linked to that review on its portal.
|
|
15684
|
+
--------------------------------------------------------------------------- */
|
|
15685
|
+
.md3 .rating-info-btn {
|
|
15686
|
+
flex: none;
|
|
15687
|
+
display: inline-flex;
|
|
15688
|
+
align-items: center;
|
|
15689
|
+
justify-content: center;
|
|
15690
|
+
width: 32px;
|
|
15691
|
+
height: 32px;
|
|
15692
|
+
margin: -6px 0;
|
|
15693
|
+
padding: 0;
|
|
15694
|
+
border: 0;
|
|
15695
|
+
border-radius: var(--md-r-full);
|
|
15696
|
+
background: transparent;
|
|
15697
|
+
cursor: pointer;
|
|
15698
|
+
}
|
|
15699
|
+
.md3 .rating-info-btn:hover {
|
|
15700
|
+
background: var(--md-sc-high);
|
|
15701
|
+
}
|
|
15702
|
+
.md3 .rating-info-btn:focus-visible {
|
|
15703
|
+
outline: 2px solid var(--md-primary);
|
|
15704
|
+
outline-offset: 1px;
|
|
15705
|
+
}
|
|
15706
|
+
.md3 .review-source {
|
|
15707
|
+
color: inherit;
|
|
15708
|
+
text-decoration: none;
|
|
15709
|
+
}
|
|
15710
|
+
.md3 a.review-source:hover {
|
|
15711
|
+
color: var(--md-primary);
|
|
15712
|
+
text-decoration: underline;
|
|
15713
|
+
}
|
|
15714
|
+
.md3 .review-card-source {
|
|
15715
|
+
display: block;
|
|
15716
|
+
margin-top: auto;
|
|
15717
|
+
padding-top: 10px;
|
|
15718
|
+
color: var(--md-on-surface-variant);
|
|
15719
|
+
}
|
|
15720
|
+
.md3 .rating-sources-list {
|
|
15721
|
+
display: flex;
|
|
15722
|
+
flex-direction: column;
|
|
15723
|
+
gap: 10px;
|
|
15724
|
+
margin: 0;
|
|
15725
|
+
padding: 0;
|
|
15726
|
+
list-style: none;
|
|
15727
|
+
}
|
|
15728
|
+
.md3 .rating-sources-row {
|
|
15729
|
+
display: grid;
|
|
15730
|
+
/* the name/count column keeps its own width; the link wraps in what is left on a phone */
|
|
15731
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
15732
|
+
grid-template-areas: "name score" "count link";
|
|
15733
|
+
align-items: center;
|
|
15734
|
+
gap: 6px 12px;
|
|
15735
|
+
padding: 14px 16px;
|
|
15736
|
+
border-radius: var(--md-r-md);
|
|
15737
|
+
background: var(--md-sc-low);
|
|
15738
|
+
color: var(--md-on-surface);
|
|
15739
|
+
}
|
|
15740
|
+
.md3 .rating-sources-row--total {
|
|
15741
|
+
background: var(--md-good-container);
|
|
15742
|
+
color: var(--md-on-good-container);
|
|
15743
|
+
}
|
|
15744
|
+
.md3 .rating-sources-name {
|
|
15745
|
+
grid-area: name;
|
|
15746
|
+
font-weight: 700;
|
|
15747
|
+
font-size: 16px;
|
|
15748
|
+
line-height: 20px;
|
|
15749
|
+
}
|
|
15750
|
+
.md3 .rating-sources-score {
|
|
15751
|
+
grid-area: score;
|
|
15752
|
+
justify-self: end;
|
|
15753
|
+
display: inline-flex;
|
|
15754
|
+
align-items: center;
|
|
15755
|
+
gap: 8px;
|
|
15756
|
+
font-size: 16px;
|
|
15757
|
+
}
|
|
15758
|
+
.md3 .rating-sources-count {
|
|
15759
|
+
grid-area: count;
|
|
15760
|
+
white-space: nowrap;
|
|
15761
|
+
font-size: 13px;
|
|
15762
|
+
line-height: 18px;
|
|
15763
|
+
opacity: 0.85;
|
|
15764
|
+
}
|
|
15765
|
+
.md3 .rating-sources-link,
|
|
15766
|
+
.md3 .rating-sources-note {
|
|
15767
|
+
grid-area: link;
|
|
15768
|
+
justify-self: end;
|
|
15769
|
+
text-align: right;
|
|
15770
|
+
font-size: 13px;
|
|
15771
|
+
line-height: 18px;
|
|
15772
|
+
}
|
|
15773
|
+
.md3 .rating-sources-link {
|
|
15774
|
+
display: inline-flex;
|
|
15775
|
+
align-items: center;
|
|
15776
|
+
gap: 4px;
|
|
15777
|
+
color: var(--md-primary);
|
|
15778
|
+
font-weight: 600;
|
|
15779
|
+
text-decoration: none;
|
|
15780
|
+
}
|
|
15781
|
+
.md3 .rating-sources-link:hover {
|
|
15782
|
+
text-decoration: underline;
|
|
15783
|
+
}
|
|
15784
|
+
@media (max-width: 600px) {
|
|
15785
|
+
/* the caption under the text needs one more line than the 160px mobile frame */
|
|
15786
|
+
.md3 #vdp-bewertungen .review-card {
|
|
15787
|
+
height: auto;
|
|
15788
|
+
min-height: 160px;
|
|
15789
|
+
}
|
|
15790
|
+
.md3 #vdp-bewertungen .review-card-source {
|
|
15791
|
+
font-family: Arial, Helvetica, Arimo, sans-serif;
|
|
15792
|
+
font-size: 12px;
|
|
15793
|
+
line-height: 16px;
|
|
15794
|
+
color: #5b6b7f;
|
|
15795
|
+
}
|
|
15796
|
+
}
|
|
15797
|
+
/* VDP review cards above the phone breakpoint: reviews of any length come in — long ones end in
|
|
15798
|
+
"…" after 6 lines (the linked caption opens the full review); phones keep their 4 lines */
|
|
15799
|
+
@media (min-width: 601px) {
|
|
15800
|
+
.md3 #vdp-bewertungen .review-card-text {
|
|
15801
|
+
overflow: hidden;
|
|
15802
|
+
display: -webkit-box;
|
|
15803
|
+
-webkit-line-clamp: 6;
|
|
15804
|
+
line-clamp: 6;
|
|
15805
|
+
-webkit-box-orient: vertical;
|
|
15806
|
+
}
|
|
15807
|
+
}
|