summaryrefslogtreecommitdiffstats
path: root/browser/components/shopping/content/recommended-ad.css
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/shopping/content/recommended-ad.css')
-rw-r--r--browser/components/shopping/content/recommended-ad.css59
1 files changed, 59 insertions, 0 deletions
diff --git a/browser/components/shopping/content/recommended-ad.css b/browser/components/shopping/content/recommended-ad.css
new file mode 100644
index 0000000000..20f0775ce0
--- /dev/null
+++ b/browser/components/shopping/content/recommended-ad.css
@@ -0,0 +1,59 @@
+/* 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/. */
+
+#recommended-ad-wrapper {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ text-decoration: none;
+ color: var(--in-content-text-color);
+}
+
+#recommended-ad-wrapper:hover {
+ cursor: pointer;
+}
+
+#recommended-ad-wrapper:hover #ad-title {
+ text-decoration: underline;
+ color: var(--link-color-hover);
+}
+
+#recommended-ad-wrapper:focus-visible {
+ outline-offset: 4px;
+ border-radius: 1px;
+}
+
+#ad-content {
+ display: flex;
+ justify-content: space-between;
+ gap: 12px;
+ height: 80px;
+}
+
+#ad-preview-image {
+ max-width: 80px;
+ max-height: 80px;
+}
+
+#ad-title {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ height: fit-content;
+ display: -webkit-box;
+ -webkit-line-clamp: 4;
+ -webkit-box-orient: vertical;
+ /* This text won't be localized and when in RTL, the ellipsis is positioned
+ awkwardly so we are forcing LTR */
+ direction: ltr;
+}
+
+#price {
+ font-size: 1em;
+ font-weight: 600;
+}
+
+#footer {
+ display: flex;
+ justify-content: space-between;
+}