summaryrefslogtreecommitdiffstats
path: root/browser/components/shopping/content/highlight-item.css
blob: 2139363862d34c180e5591ea21fa6987e305fbb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* Separate logo, label and details into rows and columns */
.highlight-item-wrapper {
  align-items: center;
  display: grid;
  column-gap: 1em;
  grid-template-columns: 1rem auto;
  grid-template-rows: 1rem auto;
}

.highlight-icon {
  content: url("chrome://global/skin/icons/defaultFavicon.svg");
  color: var(--icon-color);
  fill: currentColor;
  -moz-context-properties: fill;
  grid-row-start: 1;
  grid-column-start: 1;

  &.price {
    content: url("chrome://browser/content/shopping/assets/price.svg");
  }

  &.quality {
    content: url("chrome://browser/content/shopping/assets/quality.svg");
  }

  &.shipping {
    content: url("chrome://browser/content/shopping/assets/shipping.svg");
  }

  &.competitiveness {
    content: url("chrome://browser/content/shopping/assets/competitiveness.svg");
  }

  &.packaging\/appearance {
    content: url("chrome://browser/content/shopping/assets/packaging.svg");
  }
}

.highlight-label {
  font-weight: 590;
  grid-column-start: 2;
  grid-row-start: 1;
}

.highlight-details {
  grid-column-start: 2;
  grid-row-start: 2;
  margin: 0;
  padding: 0;
}

.highlight-details-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.highlight-details-list > li {
  /* Render LTR since English review snippets are only supported at this time. */
  direction: ltr;
  margin: 1em 0;
}