[nautilus/2201-location-bar-corners-are-reversed-in-rtl] css: Fix pathbar custom style on RTL
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/2201-location-bar-corners-are-reversed-in-rtl] css: Fix pathbar custom style on RTL
- Date: Sun, 27 Mar 2022 00:53:23 +0000 (UTC)
commit 854f2e1fb490f1938589122c88276c7b58a3d523
Author: António Fernandes <antoniof gnome org>
Date: Sun Mar 27 00:51:17 2022 +0000
css: Fix pathbar custom style on RTL
Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2201
src/resources/css/Adwaita.css | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/src/resources/css/Adwaita.css b/src/resources/css/Adwaita.css
index f38923d9d..35d152edf 100644
--- a/src/resources/css/Adwaita.css
+++ b/src/resources/css/Adwaita.css
@@ -59,9 +59,7 @@
/* Path bar */
.nautilus-path-bar scrolledwindow {
- border-radius: 5px 0px 0px 5px;
border: 1px @borders solid;
- border-right-width: 0px;
background-color: @theme_bg_color;
}
@@ -70,8 +68,18 @@
border-color: @unfocused_borders;
}
-.nautilus-path-bar scrolledwindow undershoot.left {
+.nautilus-path-bar scrolledwindow:dir(ltr),
+.nautilus-path-bar scrolledwindow:dir(ltr) undershoot.left {
border-radius: 5px 0px 0px 5px;
+ border-right-width: 0px;
+}
+
+.nautilus-path-bar scrolledwindow:dir(rtl),
+.nautilus-path-bar scrolledwindow:dir(rtl) undershoot.right {
+ border-radius: 0px 5px 5px 0px;
+}
+
+.nautilus-path-bar scrolledwindow undershoot.left {
background: linear-gradient(to right, @theme_bg_color 6px, alpha(@theme_bg_color, 0) 24px);
}
.nautilus-path-bar scrolledwindow undershoot.right {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]