mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 08:42:21 +00:00
Keep edge mode to the desktop shell and mirror it in right-to-left
Phones and Cockpit keep their own layouts and do not show the switch. The rails' name panels and edge mode run toward the middle in a right-to-left language, and the switch reads its side again after the layout moves it. Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
1 parent
9374e0228b
commit
d0b614d88e
4 files changed
+88
-15
No files matched your search
@@ -242,3 +242,47 @@ html[dir='rtl'] select.gev-field--compact {
|
||||
html[dir='rtl'] .rail-card-scale {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
/* ── Side rails, mirrored ──────────────────────────────────────────────
|
||||
The left stack sits on the right edge, so the left rail's name panel
|
||||
opens to its left and the right rail's to its right, each toward the
|
||||
middle of the screen, as they do in left-to-right. */
|
||||
html[dir='rtl'] .gev-panel-rail--left .ui-rail--expanded::after {
|
||||
right: calc(100% + 6px);
|
||||
left: auto;
|
||||
}
|
||||
html[dir='rtl'] .gev-panel-rail--left .ui-rail--expanded .ui-rail__label {
|
||||
right: calc(100% + 24px);
|
||||
left: auto;
|
||||
}
|
||||
html[dir='rtl'] .gev-panel-rail--right .ui-rail--expanded::after {
|
||||
right: auto;
|
||||
left: calc(100% + 6px);
|
||||
}
|
||||
html[dir='rtl'] .gev-panel-rail--right .ui-rail--expanded .ui-rail__label {
|
||||
right: auto;
|
||||
left: calc(100% + 24px);
|
||||
}
|
||||
|
||||
/* Panels moved to the screen edge slide over their rail toward that edge. */
|
||||
html[dir='rtl']
|
||||
body.panels-edge-left:not(.mobile-shell):not(.cockpit-mode)
|
||||
#left-panel-stack
|
||||
> :not(.gev-panel-rail) {
|
||||
transform: translateX(var(--panel-rail-clearance, 48px));
|
||||
}
|
||||
html[dir='rtl']
|
||||
body.panels-edge-left:not(.mobile-shell):not(.cockpit-mode)
|
||||
#left-panel-stack
|
||||
> :not(.gev-panel-rail):not(.collapsed) {
|
||||
transform: translate(var(--panel-rail-clearance, 48px), var(--edge-rail-row));
|
||||
}
|
||||
html[dir='rtl']
|
||||
body.panels-edge-right:not(.mobile-shell):not(.cockpit-mode)
|
||||
#right-context-rail
|
||||
> :not(.gev-panel-rail) {
|
||||
transform: translate(
|
||||
calc(-1 * var(--panel-rail-clearance, 48px)),
|
||||
var(--edge-rail-row)
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user