From 2d9deb00d18b646392e660dac42805ec66d3f226 Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Sun, 4 Mar 2018 19:00:08 -0500 Subject: Bug 1419973 - Modify product selector layout on Browse and Enter Bug pages --- .../en/default/global/choose-product.html.tmpl | 71 ++++++++++---------- extensions/BMO/web/styles/choose_product.css | 76 +++++++++++++++++++++- 2 files changed, 107 insertions(+), 40 deletions(-) (limited to 'extensions') diff --git a/extensions/BMO/template/en/default/global/choose-product.html.tmpl b/extensions/BMO/template/en/default/global/choose-product.html.tmpl index 57d0b0740..4329b716a 100644 --- a/extensions/BMO/template/en/default/global/choose-product.html.tmpl +++ b/extensions/BMO/template/en/default/global/choose-product.html.tmpl @@ -68,11 +68,12 @@ %] -

or choose from the following selections

+
+

or choose from the following selections

[% IF NOT ((cgi.param("full")) OR (user.settings.product_chooser.value == 'full_product_chooser')) %] - +
[% INCLUDE easyproduct name="Core" icon="component.png" @@ -109,21 +110,19 @@ name="Data Platform and Tools" icon="sync.png" %] -
- - - -
-

- Other Products

-

Other Mozilla products which aren't listed here

-
+
+

+ + + Other Products + +

+

Other Mozilla products which aren't listed here

+
+ [% ELSE %] @@ -171,15 +170,14 @@ [% END %] [% END %] -
+
- - Switch to the [% terms.Bugzilla %] Helper - | Custom [% terms.bug %] entry forms + + + Switch to the [% terms.Bugzilla %] Helper | + Custom [% terms.bug %] entry forms
[% PROCESS global/footer.html.tmpl %] @@ -192,20 +190,19 @@ [% FOREACH c = classifications %] [% FOREACH p = c.products %] [% IF p.name == name %] - - - -

- [% caption || name FILTER html FILTER no_break %]:

- [% IF p.description %] -

[% p.description FILTER html_light %]

- [% END %] - - +
+

+ + + [% caption || name FILTER html %] + +

+ [% IF p.description %] +

[% p.description FILTER html_light %]

+ [% END %] +
[% LAST %] [% END %] [% END %] diff --git a/extensions/BMO/web/styles/choose_product.css b/extensions/BMO/web/styles/choose_product.css index 053af542f..bcca3428e 100644 --- a/extensions/BMO/web/styles/choose_product.css +++ b/extensions/BMO/web/styles/choose_product.css @@ -6,11 +6,81 @@ * defined by the Mozilla Public License, v. 2.0. */ #choose_product h2, -#choose_product p { - text-align: center; +#choose_product p, +#guided { + text-align: center; } #choose_product td h2, #choose_product td p { - text-align: left; + 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%; + } } -- cgit v1.2.3-24-g4f1b