Skip to content

Commit

Permalink
RTL and other CSS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stephaniehobson committed Jun 14, 2024
1 parent 6e3c879 commit 03bba6e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bedrock/firefox/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class MobileRelease:
"slug": "mobile-release",
"product": mobile_release,
"channel": "release",
"name": ftl("firefox-all-product-firefox-mobile", ftl_files=ftl_files),
"name": ftl("firefox-all-product-firefox", ftl_files=ftl_files),
},
}

Expand Down
1 change: 1 addition & 0 deletions l10n/en/firefox/all.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ firefox-all-product-firefox-android = { -brand-name-firefox } { -brand-name-andr
firefox-all-product-firefox-android-beta = { -brand-name-firefox } { -brand-name-android } { -brand-name-beta }
firefox-all-product-firefox-android-nightly = { -brand-name-firefox } { -brand-name-android } { -brand-name-nightly }
firefox-all-product-firefox-ios = { -brand-name-firefox } { -brand-name-ios }
firefox-all-product-firefox-mobile = { -brand-name-firefox }
25 changes: 14 additions & 11 deletions media/css/firefox/all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ $image-path: '/media/protocol/img';

@import '~@mozilla-protocol/core/protocol/css/includes/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 Expand Up @@ -70,7 +69,7 @@ $image-path: '/media/protocol/img';

.c-step-name {
@include text-body-lg;
clear: right;
@include bidi(((clear, left, right),));
font-weight: bold;
margin-top: $spacing-xl;

Expand All @@ -84,15 +83,15 @@ $image-path: '/media/protocol/img';
}

.c-step-icon {
float: right;
@include bidi(((float, right, left),));
}

.c-step-choice {
font-weight: normal;
}

.c-step-contents {
padding-left: $spacing-lg;
@include bidi(((padding-left, $spacing-lg, 0),));
}

.c-step-prompt {
Expand Down Expand Up @@ -191,13 +190,17 @@ $image-path: '/media/protocol/img';
}
}

// .c-get-app {
// background: center right url('/media/img/firefox/all/icon-get.svg') no-repeat;
// background-size: auto 1em;
// display: inline-block;
// margin-top: $spacing-sm;
// padding-right: 20px;
// }
.c-get-app {
@include bidi((
(padding-right, 20px, padding-left, 0),
(background-position, center right, center left),
));
background-image: url('/media/img/firefox/all/icon-get.svg');
background-repeat: no-repeat;
background-size: auto 1em;
display: inline-block;
margin-top: $spacing-sm;
}

// help buttons & modals

Expand Down

0 comments on commit 03bba6e

Please sign in to comment.