Skip to content

Commit

Permalink
Migrate /products to use Sass @use (Issue #10896) (#15875)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgibson authored Jan 24, 2025
1 parent c4815c6 commit aa2f6a0
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 90 deletions.
5 changes: 1 addition & 4 deletions media/css/products/landing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +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/.

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

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as *;


// hide the privacy notice to match the other buttons
Expand Down
5 changes: 1 addition & 4 deletions media/css/products/monitor/waitlist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +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/.

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

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as *;

.section-subscribe {
.mzp-l-content:first-child {
Expand Down
9 changes: 3 additions & 6 deletions media/css/products/vpn/article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
// 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';

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '~@mozilla-protocol/core/protocol/css/components/logos/wordmark';
@import '~@mozilla-protocol/core/protocol/css/components/logos/wordmark-product-vpn';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as * with ($font-path: '/media/protocol/fonts', $image-path: '/media/protocol/img');
@use '~@mozilla-protocol/core/protocol/css/components/logos/wordmark';
@use '~@mozilla-protocol/core/protocol/css/components/logos/wordmark-product-vpn';

.vpn-hero {
.mzp-l-content {
Expand Down
7 changes: 2 additions & 5 deletions media/css/products/vpn/common-refresh.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';

@import 'includes/lib';
@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as *;
@use 'includes/lib' as *;

main {
h1, h2, h3, h4, h5, h6 {
Expand Down
11 changes: 4 additions & 7 deletions media/css/products/vpn/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
// 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';

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import 'includes/lib';
@import '~@mozilla-protocol/core/protocol/css/components/logos/wordmark';
@import '~@mozilla-protocol/core/protocol/css/components/logos/wordmark-product-vpn';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as * with ($font-path: '/media/protocol/fonts', $image-path: '/media/protocol/img');
@use '~@mozilla-protocol/core/protocol/css/components/logos/wordmark';
@use '~@mozilla-protocol/core/protocol/css/components/logos/wordmark-product-vpn';
@use 'includes/lib' as *;


// * -------------------------------------------------------------------------- */
Expand Down
7 changes: 2 additions & 5 deletions media/css/products/vpn/components/block.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';

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '../includes/lib';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as *;
@use '../includes/lib' as *;

// * -------------------------------------------------------------------------- */
// Content Block
Expand Down
7 changes: 2 additions & 5 deletions media/css/products/vpn/components/hero.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';

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '../includes/lib';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as *;
@use '../includes/lib' as *;

// * -------------------------------------------------------------------------- */
// Hero component
Expand Down
7 changes: 2 additions & 5 deletions media/css/products/vpn/components/unsupported-language.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';

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '../includes/lib';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as *;
@use '../includes/lib' as *;

.vpn-unsupported-language {
background: url('/media/img/products/vpn/common/lang-bubble.svg') top right no-repeat,
Expand Down
4 changes: 1 addition & 3 deletions media/css/products/vpn/download.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
// 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';
$vpn-download-mq-2xl: '(min-width: 1450px)';

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as *;

.vpn-downloads {
background-color: $color-marketing-gray-10;
Expand Down
11 changes: 4 additions & 7 deletions media/css/products/vpn/features.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
// 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';

@import 'includes/lib';
@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '~@mozilla-protocol/core/protocol/css/components/logos/wordmark';
@import '~@mozilla-protocol/core/protocol/css/components/logos/wordmark-product-vpn';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as * with ($font-path: '/media/protocol/fonts', $image-path: '/media/protocol/img');
@use '~@mozilla-protocol/core/protocol/css/components/logos/wordmark';
@use '~@mozilla-protocol/core/protocol/css/components/logos/wordmark-product-vpn';
@use 'includes/lib' as *;

.c-features-main-header {
text-align: center;
Expand Down
15 changes: 6 additions & 9 deletions media/css/products/vpn/invite.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@
// 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';

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '~@mozilla-protocol/core/protocol/css/components/forms/form';
@import '~@mozilla-protocol/core/protocol/css/components/forms/field';
@import '~@mozilla-protocol/core/protocol/css/components/forms/choice';
@import '~@mozilla-protocol/core/protocol/css/components/forms/status';
@import '~@mozilla-protocol/core/protocol/css/components/forms/set';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as *;
@use '~@mozilla-protocol/core/protocol/css/components/forms/form';
@use '~@mozilla-protocol/core/protocol/css/components/forms/field';
@use '~@mozilla-protocol/core/protocol/css/components/forms/choice';
@use '~@mozilla-protocol/core/protocol/css/components/forms/status';
@use '~@mozilla-protocol/core/protocol/css/components/forms/set';

// * -------------------------------------------------------------------------- */
// Newsletter Form
Expand Down
9 changes: 3 additions & 6 deletions media/css/products/vpn/landing-refresh.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
// 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';

@import 'includes/lib';
@import 'pricing-refresh';
@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@use 'pricing-refresh';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as *;
@use 'includes/lib' as *;

// * -------------------------------------------------------------------------- */
// Smooth Scroll
Expand Down
5 changes: 1 addition & 4 deletions media/css/products/vpn/platform-download.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +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/.

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

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as *;

.platform-download-header {
background-color: $color-marketing-gray-10;
Expand Down
16 changes: 7 additions & 9 deletions media/css/products/vpn/pricing-refresh.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
// 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';

@import 'includes/lib';
@import 'components/unsupported-language';
@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '~@mozilla-protocol/core/protocol/css/templates/multi-column';
@import '~@mozilla-protocol/core/protocol/css/components/logos/wordmark';
@import '~@mozilla-protocol/core/protocol/css/components/logos/wordmark-product-vpn';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as * with ($font-path: '/media/protocol/fonts', $image-path: '/media/protocol/img');
@use '~@mozilla-protocol/core/protocol/css/templates/multi-column';
@use '~@mozilla-protocol/core/protocol/css/components/logos/wordmark';
@use '~@mozilla-protocol/core/protocol/css/components/logos/wordmark-product-vpn';

@use 'includes/lib' as *;
@use 'components/unsupported-language';

// * -------------------------------------------------------------------------- */
// Horizontal pricing (default)
Expand Down
19 changes: 8 additions & 11 deletions media/css/products/vpn/resource-center.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@
// 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';

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '~@mozilla-protocol/core/protocol/css/components/inline-list';
@import '~@mozilla-protocol/core/protocol/css/includes/fonts/metropolis';
@import '~@mozilla-protocol/core/protocol/css/includes/fonts/inter';
@import '~@mozilla-protocol/core/protocol/css/components/logos/wordmark';
@import '~@mozilla-protocol/core/protocol/css/components/logos/wordmark-product-vpn';
@import '~@mozilla-protocol/core/protocol/css/components/breadcrumb';
@import '../../cms/rich-text';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as * with ($font-path: '/media/protocol/fonts', $image-path: '/media/protocol/img');
@use '~@mozilla-protocol/core/protocol/css/components/inline-list';
@use '~@mozilla-protocol/core/protocol/css/includes/fonts/metropolis';
@use '~@mozilla-protocol/core/protocol/css/includes/fonts/inter';
@use '~@mozilla-protocol/core/protocol/css/components/logos/wordmark';
@use '~@mozilla-protocol/core/protocol/css/components/logos/wordmark-product-vpn';
@use '~@mozilla-protocol/core/protocol/css/components/breadcrumb';
@use '../../cms/rich-text';

.resource-center-page-header {
.mzp-l-content {
Expand Down

0 comments on commit aa2f6a0

Please sign in to comment.