|
| 1 | +body, |
| 2 | +h1 { |
| 3 | + margin: 0; |
| 4 | + padding: 0; |
| 5 | +} |
| 6 | + |
| 7 | +body { |
| 8 | + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, |
| 9 | + Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; |
| 10 | +} |
| 11 | + |
| 12 | +em { |
| 13 | + background: cyan; |
| 14 | + font-style: normal; |
| 15 | +} |
| 16 | + |
| 17 | +.header { |
| 18 | + display: flex; |
| 19 | + align-items: center; |
| 20 | + min-height: 50px; |
| 21 | + padding: 0.5rem 1rem; |
| 22 | + background-image: linear-gradient(to right, #8e43e7, #00aeff); |
| 23 | + color: #fff; |
| 24 | + margin-bottom: 1rem; |
| 25 | +} |
| 26 | + |
| 27 | +.header a { |
| 28 | + color: #fff; |
| 29 | + text-decoration: none; |
| 30 | +} |
| 31 | + |
| 32 | +.header-title { |
| 33 | + font-size: 1.2rem; |
| 34 | + font-weight: normal; |
| 35 | +} |
| 36 | + |
| 37 | +.header-title::after { |
| 38 | + content: ' ▸ '; |
| 39 | + padding: 0 0.5rem; |
| 40 | +} |
| 41 | + |
| 42 | +.header-subtitle { |
| 43 | + font-size: 1.2rem; |
| 44 | +} |
| 45 | + |
| 46 | +.container { |
| 47 | + max-width: 1200px; |
| 48 | + margin: 0 auto; |
| 49 | + padding: 1rem; |
| 50 | +} |
| 51 | + |
| 52 | +.search-panel { |
| 53 | + display: flex; |
| 54 | +} |
| 55 | + |
| 56 | +.search-panel__filters { |
| 57 | + flex: 1; |
| 58 | +} |
| 59 | + |
| 60 | +.search-panel__results { |
| 61 | + flex: 3; |
| 62 | +} |
| 63 | + |
| 64 | +.searchbox { |
| 65 | + margin-bottom: 2rem; |
| 66 | +} |
| 67 | + |
| 68 | +.pagination { |
| 69 | + margin: 2rem auto; |
| 70 | + text-align: center; |
| 71 | +} |
| 72 | + |
| 73 | +#related-products, |
| 74 | +.ais-Hits--single { |
| 75 | + margin-top: 1rem; |
| 76 | +} |
| 77 | + |
| 78 | +.ais-Hits--single article { |
| 79 | + display: flex; |
| 80 | + gap: 1rem; |
| 81 | +} |
| 82 | + |
| 83 | +.ais-Hits--single img { |
| 84 | + width: 150px; |
| 85 | + height: 150px; |
| 86 | + object-fit: contain; |
| 87 | + flex-shrink: 0; |
| 88 | +} |
| 89 | + |
| 90 | +.ais-TrendingItems-item, |
| 91 | +.ais-RelatedProducts-item { |
| 92 | + background: none !important; |
| 93 | + align-items: stretch !important; |
| 94 | + padding: 0 !important; |
| 95 | + box-shadow: none !important; |
| 96 | +} |
| 97 | + |
| 98 | +.ais-TrendingItems-item > div, |
| 99 | +.ais-RelatedProducts-item > div { |
| 100 | + align-items: start; |
| 101 | + background: #fff; |
| 102 | + align-items: center; |
| 103 | + padding: 1.5rem; |
| 104 | + display: flex; |
| 105 | + box-shadow: 0 0 0 1px #23263b0d, 0 1px 3px #23263b26; |
| 106 | +} |
| 107 | + |
| 108 | +.ais-TrendingItems-item img, |
| 109 | +.ais-RelatedProducts-item img { |
| 110 | + width: 100%; |
| 111 | + height: 100px; |
| 112 | + object-fit: contain; |
| 113 | +} |
| 114 | + |
| 115 | +.ais-TrendingItems-item article, |
| 116 | +.ais-RelatedProducts-item article { |
| 117 | + display: flex; |
| 118 | + flex-direction: column; |
| 119 | + height: 100%; |
| 120 | + justify-content: space-between; |
| 121 | +} |
| 122 | + |
| 123 | +.ais-TrendingItems-item h2, |
| 124 | +.ais-RelatedProducts-item h2 { |
| 125 | + display: -webkit-box; |
| 126 | + -webkit-line-clamp: 4; |
| 127 | + -webkit-box-orient: vertical; |
| 128 | + overflow: hidden; |
| 129 | + line-height: 1.2; |
| 130 | +} |
| 131 | + |
| 132 | +.ais-Carousel-item { |
| 133 | + padding: 0.5rem !important; |
| 134 | +} |
| 135 | + |
| 136 | +.ais-Carousel-list { |
| 137 | + margin: -0.5rem !important; |
| 138 | + grid-auto-columns: calc(22% - 0.5rem) !important; |
| 139 | +} |
| 140 | + |
| 141 | +.ais-Carousel::before, |
| 142 | +.ais-Carousel::after { |
| 143 | + position: absolute; |
| 144 | + top: 0; |
| 145 | + bottom: 0; |
| 146 | + width: 0.5rem; |
| 147 | + display: block; |
| 148 | + background: rgb(255, 255, 255); |
| 149 | + content: ''; |
| 150 | +} |
| 151 | + |
| 152 | +.ais-Carousel::before { |
| 153 | + left: -0.5rem; |
| 154 | + background: linear-gradient( |
| 155 | + 90deg, |
| 156 | + rgba(255, 255, 255, 1) 0%, |
| 157 | + rgba(255, 255, 255, 0) 100% |
| 158 | + ); |
| 159 | +} |
| 160 | + |
| 161 | +.ais-Carousel::after { |
| 162 | + right: -0.5rem; |
| 163 | + background: linear-gradient( |
| 164 | + 90deg, |
| 165 | + rgba(255, 255, 255, 0) 0%, |
| 166 | + rgba(255, 255, 255, 1) 100% |
| 167 | + ); |
| 168 | +} |
0 commit comments