Skip to content

Commit

Permalink
Update to use Protocol v18.0.0 (#13529)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-barrett committed Aug 16, 2023
1 parent 4e57392 commit a1a5a0a
Show file tree
Hide file tree
Showing 39 changed files with 290 additions and 111 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% endblock %}

{% block sub_navigation %}
{% include 'products/relay/includes/subnav.html' %}
{% include 'products/relay/includes/subnav.html' %}
{% endblock %}

{% set product_name = product_name|default(ftl('waitlist-premium-name')) %}
Expand Down
14 changes: 6 additions & 8 deletions media/css/careers/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

$image-path: '/media/protocol/img';

@use '~@mozilla-protocol/core/protocol/css/includes/lib' as * with ($image-path: '/media/protocol/img');
@use './components/hero-text.scss';
@use './components/hero-video.scss';
@use './components/home.scss';
Expand All @@ -14,12 +13,11 @@ $image-path: '/media/protocol/img';
@use './components/position.scss';
@use './components/footer.scss';

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '~@mozilla-protocol/core/protocol/css/components/modal';
@import '~@mozilla-protocol/core/protocol/css/components/video';
@import '~@mozilla-protocol/core/protocol/css/components/call-out';
@import '~@mozilla-protocol/core/protocol/css/templates/card-layout';
@import '../protocol/components/custom-menu-list';
@use '~@mozilla-protocol/core/protocol/css/components/modal';
@use '~@mozilla-protocol/core/protocol/css/components/video';
@use '~@mozilla-protocol/core/protocol/css/components/call-out';
@use '~@mozilla-protocol/core/protocol/css/templates/card-layout';
@use '../protocol/components/custom-menu-list';

.c-careers {
.c-careers-section-title {
Expand Down
2 changes: 1 addition & 1 deletion media/css/firefox/all/all-unified.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $font-path: '/media/protocol/fonts';
$image-path: '/media/protocol/img';

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '~@mozilla-protocol/core/protocol/css/includes/forms/lib';
@import '~@mozilla-protocol/core/protocol/css/includes/forms';
@import '~@mozilla-protocol/core/protocol/css/templates/main-with-sidebar';
@import '~@mozilla-protocol/core/protocol/css/components/modal';
@import '~@mozilla-protocol/core/protocol/css/components/sidebar-menu';
Expand Down
12 changes: 10 additions & 2 deletions media/css/firefox/browsers/best-browser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ $image-path: '/media/protocol/img';
.seo-hero {
background: $color-purple-90 url('/media/img/firefox/browsers/best-browser/hero-pattern.png') 55% 60% no-repeat;
@include background-size(2500px);
color: get-theme('body-text-color-inverse');
color: $body-text-color-inverse;
text-align: center;
min-height: 520px;
margin-bottom: $spacing-xl;

@supports (--css: variables) {
color: var(--body-text-color-inverse);
}

.hero-content {
padding-top: $layout-xl;
padding-bottom: $layout-xl;
Expand All @@ -30,9 +34,13 @@ $image-path: '/media/protocol/img';
h1 {
@include font-base;
@include text-title-lg;
color: get-theme('title-text-color-inverse');
color: $title-text-color-inverse;
margin: 0 auto $spacing-2xl;
max-width: 580px;

@supports (--css: variables) {
color: var(--title-text-color-inverse);
}
}

p {
Expand Down
12 changes: 10 additions & 2 deletions media/css/firefox/browsers/windows-64-bit.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ $image-path: '/media/protocol/img';

.c-hero {
background: $color-purple-90;
color: get-theme('body-text-color-inverse');
color: $body-text-color-inverse;
text-align: center;
min-height: 500px;
margin-bottom: $spacing-xl;

@supports (--css: variables) {
color: var(--body-text-color-inverse);
}

.hero-content {
padding-top: $layout-xl;

Expand All @@ -26,9 +30,13 @@ $image-path: '/media/protocol/img';

h1 {
@include text-title-lg;
color: get-theme('title-text-color-inverse');
color: $title-text-color-inverse;
margin: 0 auto $spacing-2xl;

@supports (--css: variables) {
color: var(--title-text-color-inverse);
}

@media #{$mq-lg} {
width: 400px;
}
Expand Down
2 changes: 1 addition & 1 deletion media/css/firefox/challenge-the-default/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $font-path: '/media/protocol/fonts';
@import "./compare-table";

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '~@mozilla-protocol/core/protocol/css/includes/forms/lib';
@import '~@mozilla-protocol/core/protocol/css/includes/forms';
@import '~@mozilla-protocol/core/protocol/css/components/modal';
@import '~@mozilla-protocol/core/protocol/css/components/notification-bar';
@import '~@mozilla-protocol/core/protocol/css/includes/mixins/details';
Expand Down
1 change: 1 addition & 0 deletions media/css/firefox/family/components/_dad-jokes-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

@use '../utils' as f3;
@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '~@mozilla-protocol/core/protocol/css/components/logos/wordmark';

.no-js .c-dad-jokes-banner {
Expand Down
2 changes: 2 additions & 0 deletions media/css/firefox/family/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

@use '~@mozilla-protocol/core/protocol/css/includes/lib' as * with($image-path: '/media/protocol/img');

@use './components/agreement';
@use './components/blurb';
@use './components/browser';
Expand Down
12 changes: 10 additions & 2 deletions media/css/firefox/features/safebrowser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ $image-path: '/media/protocol/img';

.c-hero {
background: $color-purple-90;
color: get-theme('body-text-color-inverse');
color: $body-text-color-inverse;
text-align: center;
min-height: 520px;
margin-bottom: $spacing-xl;

@supports (--css: variables) {
color: var(--body-text-color-inverse);
}

.hero-content {
padding-top: $layout-xl;
padding-bottom: $layout-xl;
Expand All @@ -28,9 +32,13 @@ $image-path: '/media/protocol/img';
h1 {
@include font-base;
@include text-title-lg;
color: get-theme('title-text-color-inverse');
color: $title-text-color-inverse;
margin: 0 auto $spacing-2xl;
max-width: 580px;

@supports (--css: variables) {
color: var(--title-text-color-inverse);
}
}

p {
Expand Down
6 changes: 5 additions & 1 deletion media/css/firefox/firstrun/nightly.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ main {

.contribute-title {
@include text-title-xs;
color: get-theme('title-text-color-inverse');
color: $title-text-color-inverse;
font-weight: normal;
margin: $spacing-lg auto;
max-width: 580px;
text-align: center;

@supports (--css: variables) {
color: var(--title-text-color-inverse);
}
}

.contribute-list {
Expand Down
12 changes: 10 additions & 2 deletions media/css/firefox/welcome10.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,27 @@ $image-path: '/media/protocol/img';

.c-pre-title {
@include text-title-2xs;
color: get-theme('title-text-color');
color: $title-text-color;
font-weight: bold;
margin: 0 auto $spacing-xl;
max-width: 750px;

@supports (--css: variables) {
color: var(--title-text-color);
}
}

.c-main-title {
@include text-title-md;
color: get-theme('title-text-color');
color: $title-text-color;
max-width: 750px;
margin-left: auto;
margin-right: auto;

@supports (--css: variables) {
color: var(--title-text-color);
}

strong {
color: $color-violet-50;
}
Expand Down
18 changes: 15 additions & 3 deletions media/css/firefox/welcome11.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ $image-path: '/media/protocol/img';

.c-main-title {
@include text-title-md;
color: get-theme('title-text-color');
color: $title-text-color;
margin-left: auto;
margin-right: auto;

@supports (--css: variables) {
color: var(--title-text-color);
}

strong {
color: $color-violet-50;
}
Expand Down Expand Up @@ -89,12 +93,20 @@ $image-path: '/media/protocol/img';

#outer-wrapper {
background: $color-dark-gray-60;
color: get-theme('title-text-color-inverse');
color: $title-text-color-inverse;

@supports (--css: variables) {
color: var(--title-text-color-inverse);
}
}

.c-main-title,
.mzp-c-picto-title {
color: get-theme('title-text-color-inverse');
color: $title-text-color-inverse;

@supports (--css: variables) {
color: var(--title-text-color-inverse);
}
}

.c-main-image {
Expand Down
18 changes: 15 additions & 3 deletions media/css/firefox/welcome12.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ $image-path: '/media/protocol/img';

.c-main-title {
@include text-title-md;
color: get-theme('title-text-color');
color: $title-text-color;
margin-left: auto;
margin-right: auto;

@supports (--css: variables) {
color: var(--title-text-color);
}

strong {
color: $color-violet-50;
}
Expand Down Expand Up @@ -100,12 +104,20 @@ $image-path: '/media/protocol/img';

#outer-wrapper {
background: $color-dark-gray-60;
color: get-theme('title-text-color-inverse');
color: $title-text-color-inverse;

@supports (--css: variables) {
color: var(--title-text-color-inverse);
}
}

.c-main-title,
.mzp-c-picto-title {
color: get-theme('title-text-color-inverse');
color: $title-text-color-inverse;

@supports (--css: variables) {
color: var(--title-text-color-inverse);
}
}

.c-main-image {
Expand Down
18 changes: 15 additions & 3 deletions media/css/firefox/welcome13.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ $image-path: '/media/protocol/img';

.c-main-title {
@include text-title-md;
color: get-theme('title-text-color');
color: $title-text-color;
margin-left: auto;
margin-right: auto;

@supports (--css: variables) {
color: var(--title-text-color);
}

strong {
color: $color-violet-50;
}
Expand Down Expand Up @@ -100,12 +104,20 @@ $image-path: '/media/protocol/img';

#outer-wrapper {
background: $color-dark-gray-60;
color: get-theme('title-text-color-inverse');
color: $title-text-color-inverse;

@supports (--css: variables) {
color: var(--title-text-color-inverse);
}
}

.c-main-title,
.mzp-c-picto-title {
color: get-theme('title-text-color-inverse');
color: $title-text-color-inverse;

@supports (--css: variables) {
color: var(--title-text-color-inverse);
}
}

.c-main-image {
Expand Down
18 changes: 15 additions & 3 deletions media/css/firefox/welcome15.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ $image-path: '/media/protocol/img';

.c-main-title {
@include text-title-md;
color: get-theme('title-text-color');
color: $title-text-color;

@supports (--css: variables) {
color: var(--title-text-color);
}
}

.c-main-tagline {
Expand Down Expand Up @@ -80,12 +84,20 @@ $image-path: '/media/protocol/img';
@media (prefers-color-scheme: dark) {
#outer-wrapper {
background: $color-dark-gray-60;
color: get-theme('title-text-color-inverse');
color: $title-text-color-inverse;

@supports (--css: variables) {
color: var(--title-text-color-inverse);
}
}

.c-main-title,
.mzp-c-picto-title {
color: get-theme('title-text-color-inverse');
color: $title-text-color-inverse;

@supports (--css: variables) {
color: var(--title-text-color-inverse);
}
}

.c-main-logo {
Expand Down
5 changes: 1 addition & 4 deletions media/css/firefox/whatsnew/whatsnew-115-eu-ctd.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

$font-path: '/media/protocol/fonts';
$image-path: '/media/protocol/img';

@use '~@mozilla-protocol/core/protocol/css/includes/lib' as * with ($image-path: '/media/protocol/img', $font-path: '/media/protocol/fonts');
@import '~@mozilla-protocol/core/protocol/css/components/notification-bar';
@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '~@mozilla-protocol/core/protocol/css/templates/multi-column';
@import 'includes/base';
@import 'includes/dark-mode';
Expand Down
5 changes: 1 addition & 4 deletions media/css/firefox/whatsnew/whatsnew-115-eu-mobile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

$font-path: '/media/protocol/fonts';
$image-path: '/media/protocol/img';

@use '~@mozilla-protocol/core/protocol/css/includes/lib' as * with ($image-path: '/media/protocol/img');
@import '~@mozilla-protocol/core/protocol/css/components/notification-bar';
@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import 'includes/base';
@import 'includes/dark-mode';

Expand Down
Loading

0 comments on commit a1a5a0a

Please sign in to comment.