@postnord/pn-marketweb-components 1.0.48 → 1.0.49-beta1
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/cjs/loader.cjs.js +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +10 -3
- package/cjs/pn-find-price.cjs.entry.js +49 -71
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-product-card_3.cjs.entry.js +3 -3
- package/collection/components/widgets/pn-find-price/data.js +27 -32
- package/collection/components/widgets/pn-find-price/find-price.stories.js +1 -1
- package/collection/components/widgets/pn-find-price/img/large-package.svg +9 -0
- package/collection/components/widgets/pn-find-price/img/medium-package.svg +9 -0
- package/collection/components/widgets/pn-find-price/img/postnord-person1.svg +52 -0
- package/collection/components/widgets/pn-find-price/img/small-package.svg +23 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-result.js +75 -9
- package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +5 -5
- package/collection/components/widgets/pn-find-price/pn-find-price.css +43 -36
- package/collection/components/widgets/pn-find-price/pn-find-price.js +35 -53
- package/collection/components/widgets/pn-product-card/pn-product-card-info.css +2 -2
- package/collection/components/widgets/pn-product-card/pn-product-card.css +44 -17
- package/collection/components/widgets/pn-product-card/pn-product-card.js +1 -0
- package/custom-elements/index.js +63 -78
- package/esm/loader.js +1 -1
- package/esm/pn-find-price-result.entry.js +10 -3
- package/esm/pn-find-price.entry.js +49 -71
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-product-card_3.entry.js +3 -3
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -1
- package/esm-es5/pn-find-price.entry.js +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-product-card_3.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/p-096a65f7.entry.js +1 -0
- package/pn-market-web-components/p-3e3d5907.entry.js +1 -0
- package/pn-market-web-components/p-413116a5.system.entry.js +1 -0
- package/pn-market-web-components/p-7a7f380b.system.js +1 -1
- package/pn-market-web-components/p-952ba9ab.system.entry.js +1 -0
- package/pn-market-web-components/p-c66cb026.system.entry.js +1 -0
- package/pn-market-web-components/p-f5efc1c6.entry.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/widgets/pn-find-price/pn-find-price-result.d.ts +3 -0
- package/types/components.d.ts +6 -0
- package/pn-market-web-components/p-1060d686.system.entry.js +0 -1
- package/pn-market-web-components/p-37e26384.system.entry.js +0 -1
- package/pn-market-web-components/p-45bb8f15.entry.js +0 -1
- package/pn-market-web-components/p-518b1864.entry.js +0 -1
- package/pn-market-web-components/p-b425e079.system.entry.js +0 -1
- package/pn-market-web-components/p-c799bf36.entry.js +0 -1
|
@@ -10,24 +10,39 @@ export class PnfindPriceResult {
|
|
|
10
10
|
this.composeItems();
|
|
11
11
|
}
|
|
12
12
|
composeItems() {
|
|
13
|
+
if (this.item.additionalusp) {
|
|
14
|
+
var x = this.item.additionalusp.split("/");
|
|
15
|
+
this.Usp1 = (x.length > 0) ? x[0] : null;
|
|
16
|
+
this.Usp2 = (x.length > 1) ? x[1] : null;
|
|
17
|
+
this.Usp3 = (x.length > 2) ? x[2] : null;
|
|
18
|
+
}
|
|
13
19
|
}
|
|
14
20
|
render() {
|
|
15
21
|
return (h(Host, null, h("pn-product-card", null,
|
|
16
22
|
h("pn-illustration", { slot: "illustration", illustration: this.item.illustration }),
|
|
23
|
+
h("div", { slot: "title" },
|
|
24
|
+
h("h2", null,
|
|
25
|
+
this.item.name,
|
|
26
|
+
" "),
|
|
27
|
+
(this.item.highestrankusp) ?
|
|
28
|
+
(this.item.highestrankusp === "Billigast") ?
|
|
29
|
+
(h("span", { slot: "Biligast" },
|
|
30
|
+
this.item.highestrankusp,
|
|
31
|
+
h("pn-icon", { symbol: "box-label", small: "false", color: "green700" })))
|
|
32
|
+
: (h("span", { slot: "Snabbast" },
|
|
33
|
+
this.item.highestrankusp,
|
|
34
|
+
h("pn-icon", { symbol: "bolt", small: "false", color: "blue700" }))) : null),
|
|
17
35
|
h("div", { slot: "content" },
|
|
18
36
|
h("div", { class: "content" },
|
|
19
|
-
h("
|
|
20
|
-
this.item.
|
|
21
|
-
(this.item.highestrankusp) ?
|
|
22
|
-
(this.item.highestrankusp === "Biligast") ?
|
|
23
|
-
(h("span", { slot: "Biligast" }, this.item.highestrankusp)) : (h("span", { slot: "Snabbast" }, this.item.highestrankusp)) : null),
|
|
24
|
-
(this.item.description) ? (h("div", { class: "description" }, this.item.description)) : null,
|
|
37
|
+
(this.item.description) ? (h("div", { class: "description" },
|
|
38
|
+
h("pre", null, this.item.description))) : null,
|
|
25
39
|
(this.item.info) ? (h("div", { class: "description" }, this.item.info)) : null)),
|
|
26
40
|
this.item.note ? (h("small", { slot: "note" },
|
|
27
41
|
h("p", null, this.item.note))) : null,
|
|
28
|
-
this.item.additionalusp ? (h("
|
|
29
|
-
h("
|
|
30
|
-
|
|
42
|
+
this.item.additionalusp ? (h("div", { slot: "additionalUSP" },
|
|
43
|
+
this.Usp1 ? (h("span", null, this.Usp1)) : null,
|
|
44
|
+
this.Usp2 ? (h("span", null, this.Usp2)) : null,
|
|
45
|
+
this.Usp3 ? (h("span", null, this.Usp3)) : null)) : null,
|
|
31
46
|
this.item.paket ? (h("pn-product-card-info", { paket: this.item.paket, rulle: this.item.rulle })) : null,
|
|
32
47
|
this.item.priceagent ? (h("pn-product-card-price", { slot: "price", label: "", amount: this.item.priceagent + '', currency: state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx" })) : null,
|
|
33
48
|
this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null,
|
|
@@ -82,6 +97,57 @@ export class PnfindPriceResult {
|
|
|
82
97
|
"text": ""
|
|
83
98
|
},
|
|
84
99
|
"defaultValue": "[]"
|
|
100
|
+
},
|
|
101
|
+
"Usp1": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"mutable": false,
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "string",
|
|
106
|
+
"resolved": "string",
|
|
107
|
+
"references": {}
|
|
108
|
+
},
|
|
109
|
+
"required": false,
|
|
110
|
+
"optional": true,
|
|
111
|
+
"docs": {
|
|
112
|
+
"tags": [],
|
|
113
|
+
"text": ""
|
|
114
|
+
},
|
|
115
|
+
"attribute": "usp-1",
|
|
116
|
+
"reflect": false
|
|
117
|
+
},
|
|
118
|
+
"Usp2": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"mutable": false,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "string",
|
|
123
|
+
"resolved": "string",
|
|
124
|
+
"references": {}
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"optional": true,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [],
|
|
130
|
+
"text": ""
|
|
131
|
+
},
|
|
132
|
+
"attribute": "usp-2",
|
|
133
|
+
"reflect": false
|
|
134
|
+
},
|
|
135
|
+
"Usp3": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"mutable": false,
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "string",
|
|
140
|
+
"resolved": "string",
|
|
141
|
+
"references": {}
|
|
142
|
+
},
|
|
143
|
+
"required": false,
|
|
144
|
+
"optional": true,
|
|
145
|
+
"docs": {
|
|
146
|
+
"tags": [],
|
|
147
|
+
"text": ""
|
|
148
|
+
},
|
|
149
|
+
"attribute": "usp-3",
|
|
150
|
+
"reflect": false
|
|
85
151
|
}
|
|
86
152
|
}; }
|
|
87
153
|
static get states() { return {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const translations = {
|
|
2
2
|
'sv': {
|
|
3
|
-
'componentheading': '
|
|
3
|
+
'componentheading': 'Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?',
|
|
4
4
|
'deliveryscopeheading': 'Endast leveranser inom Sverige',
|
|
5
|
-
'sizeheading': '
|
|
6
|
-
'resultlistheading': 'Några
|
|
5
|
+
'sizeheading': 'Uppskatta storlek och vikt på din försändelse',
|
|
6
|
+
'resultlistheading': 'Några bra alternativ för dig',
|
|
7
7
|
'weightlabel': 'Vikt',
|
|
8
8
|
'maxweightlabel': 'Maxvikt',
|
|
9
9
|
'maxmeasurementlabel': 'Maxvolym',
|
|
@@ -12,9 +12,9 @@ export const translations = {
|
|
|
12
12
|
'message': '*Vid köp hos valfritt ombud'
|
|
13
13
|
},
|
|
14
14
|
'en': {
|
|
15
|
-
'componentheading': '
|
|
15
|
+
'componentheading': 'Our prices and terms and conditions for domestic shipments for you as a direct paying customer',
|
|
16
16
|
'deliveryscopeheading': 'Deliveries within Sweden only',
|
|
17
|
-
'sizeheading': '
|
|
17
|
+
'sizeheading': 'Estimate the size and weight of your shipment',
|
|
18
18
|
'resultlistheading': 'Some suitable options for you',
|
|
19
19
|
'weightlabel': 'Weight',
|
|
20
20
|
'maxweightlabel': 'Max weight',
|
|
@@ -1,55 +1,62 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
pn-find-price td {
|
|
3
|
+
margin-bottom: 1em;
|
|
4
|
+
text-align: center;
|
|
5
|
+
vertical-align: bottom;
|
|
6
|
+
padding-right: 1em;
|
|
7
|
+
}
|
|
8
|
+
pn-find-price .firstCell {
|
|
9
|
+
margin-right: 0;
|
|
10
|
+
margin-left: auto;
|
|
11
|
+
}
|
|
1
12
|
pn-find-price .findprice-form {
|
|
2
13
|
max-width: 50em;
|
|
3
14
|
margin: 0 auto;
|
|
4
15
|
}
|
|
5
16
|
pn-find-price h2,
|
|
6
|
-
pn-find-price .heading {
|
|
17
|
+
pn-find-price .heading, pn-find-price .resultHeading {
|
|
7
18
|
text-align: center;
|
|
8
19
|
font-size: 1.5em;
|
|
9
20
|
line-height: 1.1;
|
|
10
21
|
font-weight: bold;
|
|
11
22
|
margin-bottom: 1rem;
|
|
12
23
|
}
|
|
13
|
-
pn-find-price .
|
|
24
|
+
pn-find-price .sizeheading {
|
|
14
25
|
text-align: center;
|
|
26
|
+
font-size: 1em;
|
|
27
|
+
line-height: 1.1;
|
|
28
|
+
font-weight: bold;
|
|
29
|
+
margin-bottom: 1rem;
|
|
30
|
+
margin-top: 3.5em;
|
|
31
|
+
}
|
|
32
|
+
pn-find-price .sizecategory {
|
|
15
33
|
margin-bottom: 3rem;
|
|
16
34
|
font-size: 0.9em;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
17
38
|
}
|
|
18
39
|
pn-find-price .weightoption {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
pn-find-price .weightoption-
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
pn-find-price .weightoption-range {
|
|
40
|
-
flex-grow: 1;
|
|
41
|
-
align-self: flex-end;
|
|
42
|
-
position: relative;
|
|
43
|
-
top: 0.5em;
|
|
44
|
-
}
|
|
45
|
-
pn-find-price .weightoption-range input {
|
|
46
|
-
width: calc(100% - 1.5em);
|
|
47
|
-
}
|
|
48
|
-
pn-find-price .weightoption-range datalist {
|
|
49
|
-
width: 100%;
|
|
50
|
-
display: flex;
|
|
51
|
-
justify-content: space-between;
|
|
52
|
-
font-size: 0.75em;
|
|
40
|
+
font-size: 0.9em;
|
|
41
|
+
max-width: 41rem;
|
|
42
|
+
margin: 0 auto;
|
|
43
|
+
}
|
|
44
|
+
pn-find-price .weightoption-content {
|
|
45
|
+
text-align: center;
|
|
46
|
+
}
|
|
47
|
+
pn-find-price .weightoption-content pn-choice-button {
|
|
48
|
+
width: 7em;
|
|
49
|
+
line-height: 3.3em;
|
|
50
|
+
font-size: 0.9em;
|
|
51
|
+
vertical-align: bottom;
|
|
52
|
+
}
|
|
53
|
+
pn-find-price .weightoption-content pn-choice-button > label {
|
|
54
|
+
align-content: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
}
|
|
57
|
+
pn-find-price .weightoption-content pn-choice-button ::before {
|
|
58
|
+
content: "Max ";
|
|
59
|
+
font-weight: lighter;
|
|
53
60
|
}
|
|
54
61
|
pn-find-price .resultlist {
|
|
55
62
|
margin: 3em 0;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Component, h, Prop, State, Watch } from "@stencil/core";
|
|
2
2
|
import { translations, markets } from "./pn-find-price-translations";
|
|
3
|
-
import { weights, sizeCategories } from "./data.js";
|
|
3
|
+
import { weights, sizeCategories, fileLocation } from "./data.js";
|
|
4
4
|
import { convertFileForSizeCategogy } from "../../../globals/shared/productprice/convert.js";
|
|
5
5
|
import { state } from "./pn-find-price-store";
|
|
6
|
+
import small from "./img/small-package.svg";
|
|
7
|
+
import medium from "./img/medium-package.svg";
|
|
8
|
+
import large from "./img/large-package.svg";
|
|
9
|
+
import person from "./img/postnord-person1.svg";
|
|
6
10
|
export class PnfindPrice {
|
|
7
11
|
constructor() {
|
|
8
|
-
this.source =
|
|
12
|
+
this.source = fileLocation;
|
|
9
13
|
this.language = "sv";
|
|
10
14
|
this.market = "se";
|
|
11
15
|
this.filteredItems = [];
|
|
@@ -45,11 +49,11 @@ export class PnfindPrice {
|
|
|
45
49
|
console.log('Data has not yet been loaded');
|
|
46
50
|
return;
|
|
47
51
|
}
|
|
48
|
-
const deliveryScopeData = this.sourceData.data.filter((x) => x.deliveryscope === "
|
|
52
|
+
const deliveryScopeData = this.sourceData.data.filter((x) => x.deliveryscope.toLocaleLowerCase() === "sweden");
|
|
49
53
|
if (!this.sizecategory) {
|
|
50
54
|
return;
|
|
51
55
|
}
|
|
52
|
-
const sizeItemData = deliveryScopeData.filter((x) => x.sizecategory === this.sizecategory.value);
|
|
56
|
+
const sizeItemData = deliveryScopeData.filter((x) => x.sizecategory.toLocaleLowerCase() === this.sizecategory.value.toLocaleLowerCase());
|
|
53
57
|
if (!this.weight || !this.weight.value) {
|
|
54
58
|
return;
|
|
55
59
|
}
|
|
@@ -78,56 +82,34 @@ export class PnfindPrice {
|
|
|
78
82
|
render() {
|
|
79
83
|
return (h("div", null,
|
|
80
84
|
h("div", { class: "findprice-form" },
|
|
81
|
-
h("div", null, (h("div", { class: "heading" }, state.i18n.
|
|
85
|
+
h("div", null, (h("div", { class: "heading" }, state.i18n.componentheading))),
|
|
82
86
|
h("div", null,
|
|
83
|
-
(h("div", { class: "
|
|
84
|
-
h("div", { class: "sizecategory" },
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
this.weight = matchingWeights[0];
|
|
108
|
-
this.weightvalue = this.weight.value;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
} }),
|
|
113
|
-
h("span", { class: "weightoption-input-abbreviation" }, this.weight.abbreviation)),
|
|
114
|
-
h("div", { class: "weightoption-range" },
|
|
115
|
-
h("input", { type: "range", id: "weightrange", name: "weightrange", list: "weightlist", value: (!this.weight.value) ? 0 : weights[this.sizecategory.unit].findIndex((x) => x.value === this.weightvalue), onChange: (e) => {
|
|
116
|
-
const value = e.target.value;
|
|
117
|
-
this.weight = weights[this.sizecategory.unit][value];
|
|
118
|
-
this.weightvalue = this.weight.value;
|
|
119
|
-
}, min: "0",
|
|
120
|
-
// max={ weights[this.postagetype.value][weights[this.postagetype.value].length - 1].value }
|
|
121
|
-
max: weights[this.sizecategory.unit].length - 1 }),
|
|
122
|
-
h("datalist", { id: "weightlist" }, weights[this.sizecategory.unit].map((weight, weightindex) => {
|
|
123
|
-
let labelText = weight.name;
|
|
124
|
-
if (weights[this.sizecategory.unit].length > 6) {
|
|
125
|
-
labelText = (weightindex % 5 === 0 || weightindex === 0 || weightindex === weights[this.sizecategory.unit].length - 1) ? weight.name : '';
|
|
126
|
-
}
|
|
127
|
-
return (h("option", Object.assign({ value: weightindex }, (labelText ? { label: labelText } : {}))));
|
|
128
|
-
})))))) : null),
|
|
87
|
+
(h("div", { class: "sizeheading" }, state.i18n.sizeheading)),
|
|
88
|
+
h("div", { class: "sizecategory" },
|
|
89
|
+
h("table", null,
|
|
90
|
+
h("tr", null,
|
|
91
|
+
h("td", null,
|
|
92
|
+
h("img", { class: "firstCell", src: person })),
|
|
93
|
+
h("td", null,
|
|
94
|
+
h("img", { src: small })),
|
|
95
|
+
h("td", null,
|
|
96
|
+
h("img", { src: medium })),
|
|
97
|
+
h("td", null,
|
|
98
|
+
h("img", { src: large }))),
|
|
99
|
+
h("tr", null,
|
|
100
|
+
h("td", null),
|
|
101
|
+
sizeCategories.map((sizeCategory) => (h("td", null,
|
|
102
|
+
h("pn-radio-button", { radioid: sizeCategory.value, value: sizeCategory.value, name: "sizecategory", checked: sizeCategory.value === this.sizecategory.value, onChange: () => {
|
|
103
|
+
this.sizecategory = sizeCategories.filter(x => x.value === sizeCategory.value)[0];
|
|
104
|
+
this.weight = weights[this.sizecategory.unit][0];
|
|
105
|
+
this.weightvalue = this.weight.value;
|
|
106
|
+
} })))))))),
|
|
107
|
+
(this.sizecategory.value && weights[this.sizecategory.unit]) ? (h("div", { class: "weightoption" }, h("div", { class: "weightoption-content" }, weights[this.sizecategory.unit].map((wght) => (h("pn-choice-button", { choiceid: this.sizecategory.value + wght.value, value: wght.value, name: "weight", type: "radio", checked: wght.value === this.weight.value, onChange: () => {
|
|
108
|
+
this.weight = weights[this.sizecategory.unit].filter(x => x.value === wght.value)[0];
|
|
109
|
+
this.weightvalue = this.weight.value;
|
|
110
|
+
} }, wght.name)))))) : null),
|
|
129
111
|
(this.filteredItems && this.filteredItems.length > 0) ? (h("div", { class: "resultlist" },
|
|
130
|
-
(state.i18n.resultlistheading) ? (h("div", { class: "
|
|
112
|
+
(state.i18n.resultlistheading) ? (h("div", { class: "resultHeading" }, state.i18n.resultlistheading)) : null,
|
|
131
113
|
this.filteredItems.map((item) => (h("div", null,
|
|
132
114
|
h("pn-find-price-result", { item: item })))))) : null));
|
|
133
115
|
}
|
|
@@ -155,7 +137,7 @@ export class PnfindPrice {
|
|
|
155
137
|
},
|
|
156
138
|
"attribute": "source",
|
|
157
139
|
"reflect": false,
|
|
158
|
-
"defaultValue": "
|
|
140
|
+
"defaultValue": "fileLocation"
|
|
159
141
|
},
|
|
160
142
|
"language": {
|
|
161
143
|
"type": "string",
|
|
@@ -10,12 +10,12 @@ pn-product-card-info {
|
|
|
10
10
|
font-size: 0.875em;
|
|
11
11
|
}
|
|
12
12
|
.cardinfocontent > div {
|
|
13
|
-
margin:
|
|
13
|
+
margin: 0.625em;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
[slot=formatPre] {
|
|
17
|
-
font-size: 1em;
|
|
18
17
|
font-family: "PostNordSans", "Verdana";
|
|
18
|
+
font-size: 1em;
|
|
19
19
|
}
|
|
20
20
|
[slot=formatPre] > strong {
|
|
21
21
|
font-weight: bold;
|
|
@@ -2,7 +2,7 @@ pn-product-card {
|
|
|
2
2
|
margin-bottom: 1em;
|
|
3
3
|
border: 0.1rem solid #D3CECB;
|
|
4
4
|
outline: none;
|
|
5
|
-
background:
|
|
5
|
+
background: #FFFFFF;
|
|
6
6
|
box-shadow: 0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);
|
|
7
7
|
display: flex;
|
|
8
8
|
padding: 1.5em;
|
|
@@ -10,42 +10,69 @@ pn-product-card {
|
|
|
10
10
|
text-decoration: none;
|
|
11
11
|
border-radius: 0.8rem;
|
|
12
12
|
}
|
|
13
|
-
pn-product-card
|
|
13
|
+
pn-product-card .description > pre {
|
|
14
|
+
margin-top: 0;
|
|
15
|
+
margin-left: 0.5em;
|
|
16
|
+
font-family: "PostNordSans", "Verdana";
|
|
17
|
+
font-size: 1em;
|
|
18
|
+
}
|
|
19
|
+
pn-product-card .description > pre > strong {
|
|
20
|
+
font-weight: bold;
|
|
21
|
+
}
|
|
22
|
+
pn-product-card [slot=title] {
|
|
14
23
|
display: flex;
|
|
15
24
|
width: 100%;
|
|
16
25
|
margin-bottom: 0.5em;
|
|
17
26
|
}
|
|
18
|
-
pn-product-card [slot=
|
|
19
|
-
|
|
20
|
-
background: #
|
|
21
|
-
color: white;
|
|
27
|
+
pn-product-card [slot=title] > [slot=Biligast] {
|
|
28
|
+
color: #005E41;
|
|
29
|
+
background: #DCF6E7;
|
|
22
30
|
border-radius: 0.37em;
|
|
23
|
-
width:
|
|
24
|
-
|
|
31
|
+
width: 6.3em;
|
|
32
|
+
height: 2em;
|
|
33
|
+
margin-left: 1.5em;
|
|
34
|
+
font-weight: normal;
|
|
35
|
+
font-size: 0.75em;
|
|
25
36
|
text-align: center;
|
|
37
|
+
vertical-align: bottom;
|
|
38
|
+
padding-top: 0.25em;
|
|
39
|
+
}
|
|
40
|
+
pn-product-card [slot=title] > [slot=Biligast] pn-icon {
|
|
41
|
+
vertical-align: middle;
|
|
26
42
|
margin-left: 0.6em;
|
|
27
|
-
font-weight: normal;
|
|
28
43
|
}
|
|
29
|
-
pn-product-card [slot=
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
color: white;
|
|
44
|
+
pn-product-card [slot=title] > [slot=Snabbast] {
|
|
45
|
+
background: #E0F8FF;
|
|
46
|
+
color: #005D92;
|
|
33
47
|
border-radius: 0.37em;
|
|
34
|
-
width:
|
|
35
|
-
|
|
48
|
+
width: 7em;
|
|
49
|
+
height: 2em;
|
|
50
|
+
margin-left: 1.5em;
|
|
51
|
+
font-weight: normal;
|
|
52
|
+
font-size: 0.75em;
|
|
36
53
|
text-align: center;
|
|
37
54
|
vertical-align: bottom;
|
|
55
|
+
padding-top: 0.25em;
|
|
56
|
+
}
|
|
57
|
+
pn-product-card [slot=title] > [slot=Snabbast] pn-icon {
|
|
58
|
+
vertical-align: middle;
|
|
38
59
|
margin-left: 0.6em;
|
|
39
|
-
font-weight: normal;
|
|
40
60
|
}
|
|
41
61
|
pn-product-card [slot=additionalUSP] {
|
|
42
|
-
|
|
62
|
+
display: flex;
|
|
63
|
+
}
|
|
64
|
+
pn-product-card [slot=additionalUSP] :first-child {
|
|
65
|
+
margin-left: 0em;
|
|
66
|
+
}
|
|
67
|
+
pn-product-card [slot=additionalUSP] span {
|
|
68
|
+
margin-left: 1em;
|
|
43
69
|
background: #D3CECB;
|
|
44
70
|
color: #2D2013;
|
|
45
71
|
border-radius: 0.25em;
|
|
46
72
|
width: fit-content;
|
|
47
73
|
padding: 0.3em;
|
|
48
74
|
margin-top: 0.5em;
|
|
75
|
+
font-size: 0.75em;
|
|
49
76
|
}
|
|
50
77
|
pn-product-card > pn-illustration {
|
|
51
78
|
min-width: 8rem;
|