[nautilus] css: Fix pathbar custom style on RTL
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] css: Fix pathbar custom style on RTL
- Date: Sun, 27 Mar 2022 17:20:02 +0000 (UTC)
commit 023b42ad74f047f8692db9e3329aff23e17c20a0
Author: António Fernandes <antoniof gnome org>
Date: Sun Mar 27 16:59:46 2022 +0100
css: Fix pathbar custom style on RTL
Related to https://gitlab.gnome.org/GNOME/nautilus/-/issues/2201
src/resources/css/Adwaita.css | 24 ++++++++++++++++--------
1 file changed, 16 insertions(+), 8 deletions(-)
---
diff --git a/src/resources/css/Adwaita.css b/src/resources/css/Adwaita.css
index e84732532..5667922fb 100644
--- a/src/resources/css/Adwaita.css
+++ b/src/resources/css/Adwaita.css
@@ -33,23 +33,31 @@
.nautilus-path-bar > scrolledwindow {
margin: 6px 0px 6px 0px;
- border-radius: 6px 0px 0px 6px;
- border-right-width: 0px;
background-color: alpha(currentColor, 0.1);
}
-.nautilus-path-bar > scrolledwindow undershoot.left {
+
+.nautilus-path-bar scrolledwindow:dir(ltr),
+.nautilus-path-bar scrolledwindow:dir(ltr) undershoot.left {
border-radius: 6px 0px 0px 6px;
+}
+
+.nautilus-path-bar scrolledwindow:dir(rtl),
+.nautilus-path-bar scrolledwindow:dir(rtl) undershoot.right {
+ border-radius: 0px 6px 6px 0px;
+}
+
+/* Linked look */
+.nautilus-path-bar scrolledwindow:dir(rtl) {
+ margin-left: -1px;
+}
+
+.nautilus-path-bar scrolledwindow undershoot.left {
background: linear-gradient(to right, @headerbar_shade_color 6px, alpha(@headerbar_shade_color, 0) 24px);
}
.nautilus-path-bar > scrolledwindow undershoot.right {
background: linear-gradient(to left, @headerbar_shade_color 6px, alpha(@headerbar_shade_color, 0) 24px);
}
-.nautilus-path-bar > button,
-.path-buttons-box button {
- margin: 0px;
-}
-
.path-buttons-box button {
margin: 3px;
box-shadow: none;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]