[fix bug 1221643] Remove /whatsnew/b/ from bedrock
|
@ -1,34 +0,0 @@
|
|||
{# 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/. -#}
|
||||
|
||||
{% extends "firefox/whatsnew_42/base.html" %}
|
||||
|
||||
{% add_lang_files "firefox/whatsnew_42" %}
|
||||
|
||||
{% block page_css %}
|
||||
{% stylesheet 'firefox_whatsnew_42_b' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block main_subhead %}
|
||||
<p class="tagline">{{ _('Introducing Private Browsing with Tracking Protection') }}</p>
|
||||
{% endblock %}
|
||||
|
||||
{% block private_browsing_cta %}
|
||||
<div id="try-private-browsing">
|
||||
<section class="lockup">
|
||||
<h2>{{ _('Give it a try! Click the mask in your toolbar or menu to open a New Private Window.') }}</h2>
|
||||
<a class="button-flat-dark" href="{{ url('firefox.private-browsing') }}" data-highlight="privateWindow" role="button">{{ _('Try the new Private Browsing') }}</a>
|
||||
<p>{{ _('Can’t find the mask? <a rel="external" href="%s">Learn how to find it</a>.')|format('https://support.mozilla.org/kb/private-browsing-use-firefox-without-history/') }}</p>
|
||||
</section>
|
||||
<div class="critter top-left"></div>
|
||||
<div class="critter arms-top-left"></div>
|
||||
<div class="critter top-right"></div>
|
||||
<div class="critter bottom-right"></div>
|
||||
<div class="critter bottom-left"></div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block js %}
|
||||
{% javascript 'firefox_whatsnew_42_b' %}
|
||||
{% endblock %}
|
|
@ -17,7 +17,6 @@ latest_re = r'^firefox(?:/(?P<version>%s))?/%s/$'
|
|||
firstrun_re = latest_re % (version_re, 'firstrun')
|
||||
firstrun_learnmore_re = latest_re % (version_re, 'firstrun/learnmore')
|
||||
whatsnew_re = latest_re % (version_re, 'whatsnew')
|
||||
whatsnew_b_re = latest_re % (version_re, 'whatsnew/b')
|
||||
tour_re = latest_re % (version_re, 'tour')
|
||||
hello_start_re = latest_re % (version_re, 'hello/start')
|
||||
tracking_protection_re = latest_re % (version_re, 'tracking-protection/start')
|
||||
|
@ -83,7 +82,6 @@ urlpatterns = (
|
|||
url(firstrun_learnmore_re, views.FirstrunLearnMoreView.as_view(),
|
||||
name='firefox.firstrun.learnmore'),
|
||||
url(whatsnew_re, views.WhatsnewView.as_view(), name='firefox.whatsnew'),
|
||||
url(whatsnew_b_re, views.WhatsnewTestView.as_view(), name='firefox.whatsnew.b'),
|
||||
url(tour_re, views.TourView.as_view(), name='firefox.tour'),
|
||||
url(hello_start_re, views.HelloStartView.as_view(), name='firefox.hello.start'),
|
||||
url(r'^firefox/partners/$', views.firefox_partners,
|
||||
|
|
|
@ -523,10 +523,6 @@ class FirstrunLearnMoreView(LatestFxView):
|
|||
template_name = 'firefox/whatsnew_42/learnmore.html'
|
||||
|
||||
|
||||
class WhatsnewTestView(LatestFxView):
|
||||
template_name = 'firefox/whatsnew_42/variant-b.html'
|
||||
|
||||
|
||||
class WhatsnewView(LatestFxView):
|
||||
|
||||
pocket_locales = ['en-US', 'es-ES', 'ru', 'ja', 'de']
|
||||
|
|
|
@ -545,13 +545,6 @@ PIPELINE_CSS = {
|
|||
),
|
||||
'output_filename': 'css/firefox_whatsnew_42_a-bundle.css',
|
||||
},
|
||||
'firefox_whatsnew_42_b': {
|
||||
'source_filenames': (
|
||||
'css/firefox/whatsnew_42/common.less',
|
||||
'css/firefox/whatsnew_42/variant-b.less',
|
||||
),
|
||||
'output_filename': 'css/firefox_whatsnew_42_b-bundle.css',
|
||||
},
|
||||
'firefox_win10_welcome': {
|
||||
'source_filenames': (
|
||||
'css/firefox/win10-welcome.less',
|
||||
|
@ -1445,14 +1438,6 @@ PIPELINE_JS = {
|
|||
),
|
||||
'output_filename': 'js/firefox_whatsnew_42_a-bundle.js',
|
||||
},
|
||||
'firefox_whatsnew_42_b': {
|
||||
'source_filenames': (
|
||||
'js/firefox/australis/australis-uitour.js',
|
||||
'js/base/mozilla-highlight-target.js',
|
||||
'js/firefox/whatsnew_42/variant-b.js',
|
||||
),
|
||||
'output_filename': 'js/firefox_whatsnew_42_b-bundle.js',
|
||||
},
|
||||
'firefox_firstrun_42_learnmore': {
|
||||
'source_filenames': (
|
||||
'js/firefox/australis/australis-uitour.js',
|
||||
|
|
|
@ -273,9 +273,6 @@ RewriteRule ^(/(?:\w{2,3}(?:-\w{2})?/)?mobile/customize(?:/.*)?)$ /b$1 [PT]
|
|||
# bug 773739
|
||||
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox(/(?:\d+\.\d+\.?(?:\d+)?\.?(?:\d+)?(?:[a|b]?)(?:\d*)(?:pre)?(?:\d)?))?/whatsnew(/?)$ /b/$1firefox$2/whatsnew$3 [PT]
|
||||
|
||||
# bug 1196532
|
||||
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox(/(?:\d+\.\d+\.?(?:\d+)?\.?(?:\d+)?(?:[a|b]?)(?:\d*)(?:pre)?(?:\d)?))?/whatsnew/b(/?)$ /b/$1firefox$2/whatsnew/b$3 [PT]
|
||||
|
||||
# bug 736934, 860865, 1101220, 1153351
|
||||
RewriteRule ^(/(?:\w{2,3}(?:-\w{2})?/)?mobile/(?:(?:beta|aurora)/)?notes/?)$ /b$1 [PT]
|
||||
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/(android/)?((?:beta|aurora|developer|organizations)/)?notes(/?)$ /b/$1firefox/$2$3notes$4 [PT]
|
||||
|
|
|
@ -1,377 +0,0 @@
|
|||
// 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/.
|
||||
|
||||
@import "../../sandstone/lib.less";
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Main page headline and copy.
|
||||
|
||||
main > header {
|
||||
width: 520px;
|
||||
|
||||
@media only screen and (max-width: @breakDesktop) {
|
||||
width: 380px;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: @breakTablet) {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: @breakDesktop) {
|
||||
html[lang^='es'] {
|
||||
main > header h1 {
|
||||
.font-size(64px);
|
||||
}
|
||||
}
|
||||
|
||||
html[lang^='de'] {
|
||||
main > header h1 {
|
||||
.font-size(53px);
|
||||
}
|
||||
}
|
||||
|
||||
html[lang^='pl'] {
|
||||
main > header h1 {
|
||||
.font-size(54px);
|
||||
}
|
||||
}
|
||||
|
||||
html[lang^='it'] {
|
||||
main > header h1 {
|
||||
.font-size(52px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Try private browsing CTA panel.
|
||||
|
||||
#try-private-browsing {
|
||||
position: relative;
|
||||
display: block;
|
||||
float: right;
|
||||
width: 360px;
|
||||
margin-top: -(@baseLine * 2);
|
||||
z-index: 0;
|
||||
|
||||
.lockup {
|
||||
width: 320px;
|
||||
margin: 55px auto 0;
|
||||
padding: 180px @gridGutterWidth @baseLine;
|
||||
color: #000;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
.at2x('/media/img/firefox/whatsnew_42/mask-shield.png', 270px, 104px);
|
||||
background-position: center (@baseLine * 2);
|
||||
background-repeat: no-repeat;
|
||||
border-radius: 10px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.critter {
|
||||
position: absolute;
|
||||
background-position: top left;
|
||||
background-repeat: no-repeat;
|
||||
z-index: -1;
|
||||
|
||||
&.top-left {
|
||||
top: 0;
|
||||
left: -80px;
|
||||
width: 122px;
|
||||
height: 129px;
|
||||
.at2x('/media/img/firefox/whatsnew_42/critter-top-left.png', 122px, 129px);
|
||||
|
||||
//blinking eye
|
||||
&:before {
|
||||
position: absolute;
|
||||
top: 56px;
|
||||
left: 45px;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
.at2x('/media/img/firefox/whatsnew_42/eye-top-left.png', 48px, 48px);
|
||||
opacity: 0;
|
||||
content: '';
|
||||
.animation(blink 7s linear infinite);
|
||||
}
|
||||
|
||||
// flashing light
|
||||
&:after {
|
||||
position: absolute;
|
||||
top: 76px;
|
||||
left: 24px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 100%;
|
||||
background-color: #ff397e;
|
||||
opacity: 0;
|
||||
content: '';
|
||||
.animation(recorder 10s linear infinite);
|
||||
}
|
||||
}
|
||||
|
||||
&.arms-top-left {
|
||||
top: 40px;
|
||||
left: -19px;
|
||||
width: 104px;
|
||||
height: 140px;
|
||||
.at2x('/media/img/firefox/whatsnew_42/critter-arms-top-left.png', 104px, 140px);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
&.top-right {
|
||||
top: 0;
|
||||
right: -90px;
|
||||
width: 139px;
|
||||
height: 79px;
|
||||
.at2x('/media/img/firefox/whatsnew_42/critter-top-right.png', 139px, 79px);
|
||||
}
|
||||
|
||||
&.bottom-right {
|
||||
bottom: 10px;
|
||||
right: -100px;
|
||||
width: 185px;
|
||||
height: 104px;
|
||||
.at2x('/media/img/firefox/whatsnew_42/critter-bottom-right.png', 185px, 104px);
|
||||
|
||||
// blinking eye
|
||||
&:before {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 46px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
.at2x('/media/img/firefox/whatsnew_42/eye-bottom-right.png', 32px, 32px);
|
||||
opacity: 0;
|
||||
content: '';
|
||||
.animation(blink 6s linear infinite);
|
||||
}
|
||||
|
||||
// flashing light
|
||||
&:after {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 73px;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
border-radius: 100%;
|
||||
background-color: #ff397e;
|
||||
opacity: 0;
|
||||
content: '';
|
||||
.animation(recorder 4s linear infinite);
|
||||
}
|
||||
}
|
||||
|
||||
&.bottom-left {
|
||||
bottom: 100px;
|
||||
left: -70px;
|
||||
width: 53px;
|
||||
height: 48px;
|
||||
.at2x('/media/img/firefox/whatsnew_42/critter-bottom-left.png', 53px, 48px);
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0 auto @baseLine * 2;
|
||||
max-width: 15em;
|
||||
.open-sans;
|
||||
.font-size(18px);
|
||||
color: #005189;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: @baseLine 0;
|
||||
color: #005189;
|
||||
|
||||
a:link,
|
||||
a:visited {
|
||||
color: #00a7e0;
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a:active,
|
||||
a:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
a:link,
|
||||
a:visited {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a:active,
|
||||
a:focus {
|
||||
color: lighten(#000, 5%);
|
||||
}
|
||||
|
||||
.button-flat-dark {
|
||||
.font-size(22px);
|
||||
padding: @baseLine 15px;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: @breakDesktop) {
|
||||
width: 320px;
|
||||
|
||||
.lockup {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
.critter {
|
||||
&.top-left {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.arms-top-left {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.bottom-left {
|
||||
bottom: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
.button-flat-dark {
|
||||
.font-size(18px);
|
||||
}
|
||||
|
||||
p {
|
||||
.font-size(@smallFontSize);
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: @breakTablet) {
|
||||
float: none;
|
||||
margin: 0 auto;
|
||||
padding-top: 55px;
|
||||
|
||||
.lockup {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.critter {
|
||||
&.top-left {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&.arms-top-left {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: @breakMobileLandscape) {
|
||||
width: 300px;
|
||||
padding-top: 0;
|
||||
|
||||
.lockup {
|
||||
width: 260px;
|
||||
}
|
||||
|
||||
.critter {
|
||||
display: none;
|
||||
&.top-left {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.arms-top-left {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
.font-size(@largeFontSize);
|
||||
}
|
||||
|
||||
p {
|
||||
.font-size(@smallFontSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.html-rtl #try-private-browsing {
|
||||
float: left;
|
||||
|
||||
@media only screen and (max-width: @breakDesktop) {
|
||||
.critter {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: @breakTablet) {
|
||||
float: none;
|
||||
|
||||
.critter {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: @breakMobileLandscape) {
|
||||
.critter {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes recorder {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
20% {
|
||||
opacity: 0;
|
||||
}
|
||||
21% {
|
||||
opacity: 1;
|
||||
}
|
||||
80% {
|
||||
opacity: 1;
|
||||
}
|
||||
81% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
40% {
|
||||
opacity: 0;
|
||||
}
|
||||
41% {
|
||||
opacity: 1;
|
||||
}
|
||||
42% {
|
||||
opacity: 1;
|
||||
}
|
||||
43% {
|
||||
opacity: 0;
|
||||
}
|
||||
75% {
|
||||
opacity: 0;
|
||||
}
|
||||
76% {
|
||||
opacity: 1;
|
||||
}
|
||||
77% {
|
||||
opacity: 1;
|
||||
}
|
||||
78% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-height: 690px) {
|
||||
#masthead {
|
||||
margin-bottom: @baseLine;
|
||||
}
|
||||
}
|
Двоичные данные
media/img/firefox/whatsnew_42/critter-arms-top-left-high-res.png
До Ширина: | Высота: | Размер: 3.2 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/critter-arms-top-left.png
До Ширина: | Высота: | Размер: 2.5 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/critter-bottom-left-high-res.png
До Ширина: | Высота: | Размер: 3.9 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/critter-bottom-left.png
До Ширина: | Высота: | Размер: 2.4 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/critter-bottom-right-high-res.png
До Ширина: | Высота: | Размер: 10 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/critter-bottom-right.png
До Ширина: | Высота: | Размер: 5.9 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/critter-top-left-high-res.png
До Ширина: | Высота: | Размер: 7.7 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/critter-top-left.png
До Ширина: | Высота: | Размер: 4.4 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/critter-top-right-high-res.png
До Ширина: | Высота: | Размер: 7.5 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/critter-top-right.png
До Ширина: | Высота: | Размер: 4.5 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/eye-bottom-right-high-res.png
До Ширина: | Высота: | Размер: 2.3 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/eye-bottom-right.png
До Ширина: | Высота: | Размер: 928 B |
Двоичные данные
media/img/firefox/whatsnew_42/eye-top-left-high-res.png
До Ширина: | Высота: | Размер: 3.8 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/eye-top-left.png
До Ширина: | Высота: | Размер: 1.4 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/mask-shield-high-res.png
До Ширина: | Высота: | Размер: 4.6 KiB |
Двоичные данные
media/img/firefox/whatsnew_42/mask-shield.png
До Ширина: | Высота: | Размер: 3.2 KiB |
|
@ -1,24 +0,0 @@
|
|||
/* 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/. */
|
||||
|
||||
;(function(Mozilla) {
|
||||
'use strict';
|
||||
|
||||
function registerTabVisibility() {
|
||||
window.dataLayer.push({
|
||||
'event': 'whatsnew-interactions',
|
||||
'interaction': 'tab-visible'
|
||||
});
|
||||
}
|
||||
|
||||
Mozilla.HighlightTarget.init('.button-flat-dark');
|
||||
|
||||
// register first time tab becomes visible
|
||||
if (document.hidden) {
|
||||
$(document).one('visibilitychange.whatsnew', registerTabVisibility);
|
||||
} else {
|
||||
registerTabVisibility();
|
||||
}
|
||||
|
||||
})(window.Mozilla);
|