Skip to content

Commit

Permalink
Migrate /careers to use Sass @use (Issue #10896)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgibson committed Jan 9, 2025
1 parent 9e2aca2 commit 2b3f891
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 23 deletions.
3 changes: 0 additions & 3 deletions media/css/careers/_utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// 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/.


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

// Colors
$purple-light: #d7d9f2;
$teal-primary: #00b7aa;
Expand Down
4 changes: 1 addition & 3 deletions media/css/careers/components/diversity.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

@use '../utils' as cp;

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

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

.c-careers-diversity-numbers {
.mzp-c-picto-heading {
Expand Down
8 changes: 3 additions & 5 deletions media/css/careers/components/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

@use '../utils' as cp;

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

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

.c-careers-bottom {
margin-top: $layout-md;
Expand Down Expand Up @@ -43,11 +41,11 @@ $image-path: '/media/protocol/img';
}

&.c-careers-instagram {
background-image: url('#{$image-path}/icons/social/instagram/black.svg');
background-image: url('/media/protocol/img/icons/social/instagram/black.svg');
}

&.c-careers-twitter {
background-image: url('#{$image-path}/icons/social/x/black.svg');
background-image: url('/media/protocol/img/icons/social/x/black.svg');
}

&.c-careers-glassdoor {
Expand Down
2 changes: 1 addition & 1 deletion media/css/careers/components/hero-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

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

// Header with no video
.c-careers-text-hero {
Expand Down
4 changes: 2 additions & 2 deletions media/css/careers/components/hero-video.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
@use '../utils' as cp;
@use 'sass:color';

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

// Header with video
.c-careers-video-hero {
Expand Down
2 changes: 1 addition & 1 deletion media/css/careers/components/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@use '../utils' as cp;
@use 'sass:color';
@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as *;

.c-careers-intro {
background-color: $color-black;
Expand Down
2 changes: 1 addition & 1 deletion media/css/careers/components/job-listings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +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/.

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

#listings-filters {
margin: $layout-lg 0;
Expand Down
2 changes: 1 addition & 1 deletion media/css/careers/components/locations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

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

.c-careers-locations-list {
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion media/css/careers/components/position.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +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/.

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

.job-post {
padding-bottom: $layout-lg;
Expand Down
6 changes: 2 additions & 4 deletions media/css/careers/components/testimonials.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
@use '../utils' as cp;
@use 'sass:color';

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

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

.c-careers-testimonials {
// Hide pull quotes section if JS is disabled
Expand Down
1 change: 0 additions & 1 deletion media/css/careers/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@use './components/position.scss';
@use './components/footer.scss';

@use '~@mozilla-protocol/core/protocol/css/components/modal';
@use '~@mozilla-protocol/core/protocol/css/components/callout';
@use '~@mozilla-protocol/core/protocol/css/templates/card-layout';
@use '../protocol/components/custom-menu-list';
Expand Down

0 comments on commit 2b3f891

Please sign in to comment.