From 87edde3113b2dd271bd5dd1227fcd59bd79f705a Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 29 May 2018 10:22:31 +0200 Subject: [PATCH] UX: improves dashboard UI for RTL locales --- .../common/admin/dashboard_next.scss | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/app/assets/stylesheets/common/admin/dashboard_next.scss b/app/assets/stylesheets/common/admin/dashboard_next.scss index 007add06de..88ea78ac7e 100644 --- a/app/assets/stylesheets/common/admin/dashboard_next.scss +++ b/app/assets/stylesheets/common/admin/dashboard_next.scss @@ -464,3 +464,44 @@ } } } + + +.rtl .dashboard-next { + .section-column { + &:last-child, { + margin-right: 1em; + margin-left: 0; + } + + &:first-child { + margin-left: 1em; + margin-right: 0; + } + } + + .dashboard-table table tbody tr { + td.title { + text-align: right; + } + + td.value i { + margin-right: 0; + margin-left: -12px; + } + } + + .user-metrics .table-cell { + margin: 0 0 5px 10px; + } + + .table-cell { + .label { + border-radius: 0 9px 9px 0; + + .d-icon { + margin-right: 0; + margin-left: 5px; + } + } + } +}