[gnome-shell/gnome-3-36] style: Swap text-align in RTL locales
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-36] style: Swap text-align in RTL locales
- Date: Mon, 3 Aug 2020 16:47:15 +0000 (UTC)
commit ab9fb0f35144ac105822102434c6da92c642a1d0
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Aug 3 14:38:17 2020 +0000
style: Swap text-align in RTL locales
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3037
(cherry picked from commit d0dab5a6d1c260963b2b5ba97fcef6f8c7fb03ac)
data/theme/gnome-shell-sass/widgets/_calendar.scss | 4 +++-
data/theme/gnome-shell-sass/widgets/_login-dialog.scss | 5 ++---
data/theme/gnome-shell-sass/widgets/_message-list.scss | 4 +++-
data/theme/gnome-shell-sass/widgets/_popovers.scss | 4 +++-
4 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/widgets/_calendar.scss
b/data/theme/gnome-shell-sass/widgets/_calendar.scss
index e99b8a82e3..a4f5b2d0a6 100644
--- a/data/theme/gnome-shell-sass/widgets/_calendar.scss
+++ b/data/theme/gnome-shell-sass/widgets/_calendar.scss
@@ -206,7 +206,9 @@
color: $fg_color;
font-feature-settings: "tnum";
@include fontsize($base_font_size);
- text-align: right;
+
+ &:ltr { text-align: right; }
+ &:rtl { text-align: left; }
}
// timezone offset label
diff --git a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
index 0b148bea9b..06fdcf25a7 100644
--- a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
+++ b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
@@ -138,11 +138,10 @@
.user-widget.horizontal .user-widget-label {
@include fontsize($base_font_size + 2);
font-weight: bold;
- text-align: left;
padding-left: 15px;
- &:ltr { padding-left: 14px; }
- &:rtl { padding-right: 14px; }
+ &:ltr { padding-left: 14px; text-align: left; }
+ &:rtl { padding-right: 14px; text-align: right; }
}
.user-widget.vertical .user-widget-label {
diff --git a/data/theme/gnome-shell-sass/widgets/_message-list.scss
b/data/theme/gnome-shell-sass/widgets/_message-list.scss
index e6a4d92bc1..45edb26b25 100644
--- a/data/theme/gnome-shell-sass/widgets/_message-list.scss
+++ b/data/theme/gnome-shell-sass/widgets/_message-list.scss
@@ -71,9 +71,11 @@
> .event-time {
color: transparentize($fg_color, 0.5);
@include fontsize($base_font_size - 2);
- text-align: right;
/* HACK: the label should be baseline-aligned with a 1em label, fake this with some bottom padding */
padding-bottom: 0.13em;
+
+ &:ltr { text-align: right };
+ &:rtl { text-align: left };
}
}
diff --git a/data/theme/gnome-shell-sass/widgets/_popovers.scss
b/data/theme/gnome-shell-sass/widgets/_popovers.scss
index a693f15039..db9df9aa35 100644
--- a/data/theme/gnome-shell-sass/widgets/_popovers.scss
+++ b/data/theme/gnome-shell-sass/widgets/_popovers.scss
@@ -76,8 +76,10 @@ $popover_arrow_height: 12px;
// container for radio and check boxes
.popup-menu-ornament {
- text-align: right;
width: 1.2em;
+
+ &:ltr { text-align: right };
+ &:rtl { text-align: left };
}
// separator
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]