New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add l10n for Klar (Focus) branding #14490
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,11 +117,12 @@ <h2 class="c-landing-grid-title"><a href="{{ url('firefox.browsers.mobile.ios') | |
|
||
<div class="c-landing-grid-item"> | ||
{{ resp_img( | ||
url='img/firefox/browsers/mobile/index/firefox-focus.jpg', | ||
url='img/firefox/mobile/firefox-focus.jpg', | ||
srcset={ | ||
'img/firefox/browsers/mobile/index/firefox-focus-high-res.jpg': '2x' | ||
'img/firefox/mobile/firefox-focus-high-res.jpg': '2x' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have left the default imgs in their original location too for now, but wondering what's the best practice? Remove them and keep only in |
||
}, | ||
optional_attributes={ | ||
'l10n': True, | ||
'class': 'c-landing-grid-img', | ||
'width': '350', | ||
'height': '218' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,11 @@ $image-path: '/media/protocol/img'; | |
margin-left: 0; | ||
margin-right: 0; | ||
} | ||
|
||
// define '.mzp-t-product-klar' until https://github.com/mozilla/protocol/issues/930 | ||
&.mzp-t-product-focus.mzp-t-product-klar { | ||
background-image: url('/media/protocol/img/logos/firefox/browser/klar/logo-word-hor.svg'); | ||
} | ||
Comment on lines
+57
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've opened an issue upstream: that is not too hard to resolve, so once/if confirmed as valid and not intentional wontfix, I might do the fix there, but until resolved, released and updated here, this is the least painful shim. |
||
} | ||
|
||
.c-tagline { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To Do: If this is waiting for mozilla/protocol#932 before merging, please don't put both
mzp-t-product-focus
andmzp-t-product-klar
on the element together. Focus could over-write klar if the includes are in the wrong order.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah good catch!