summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/web/styles/choose_product.css
blob: bcca3428ea64cdd8fdba853ec896ebb8178f2833 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* 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/.
 *
 * This Source Code Form is "Incompatible With Secondary Licenses", as
 * defined by the Mozilla Public License, v. 2.0. */

#choose_product h2,
#choose_product p,
#guided {
  text-align: center;
}

#choose_product td h2,
#choose_product td p {
  text-align: left;
}

#product-list {
  margin: 32px 0;
}

#product-list .tile {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 auto;
}

#product-list .tile .product {
  overflow: hidden;
  box-sizing: border-box;
  margin: 16px 0;
  padding: 0 16px 0 80px;
}

#product-list .tile .product h3 {
  margin: 0;
  font-size: 150%;
}

#product-list .tile .product img {
  float: left;
  margin: 0 0 0 -80px;
}

#product-list .tile .product p {
  margin: 4px 0 0;
  line-height: 1.5;
  text-align: left;
}

#guided img {
  vertical-align: text-bottom;
}

@media screen and (min-width: 1024px) {
  #product-list .tile {
    width: 960px;
  }

  #product-list .tile .product {
    width: 50%;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  #product-list .tile {
    width: 720px;
  }

  #product-list .tile .product {
    width: 50%;
  }
}

@media screen and (max-width: 767px) {
  #product-list .tile {
    width: auto;
    max-width: 480px;
  }

  #product-list .tile .product {
    width: 100%;
  }
}