From 65c89bf6d2b0eeedfb3f54126699d29a9316d386 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Mon, 17 Oct 2022 17:35:15 +0300 Subject: [PATCH] [rtl] Make checkboxes, settings in file menu --- apps/common/main/resources/less/checkbox.less | 10 ++ apps/common/main/resources/less/radiobox.less | 6 ++ .../main/app/view/FileMenuPanels.js | 10 +- .../main/resources/less/filemenu.less | 94 +++++++++++++++--- .../main/app/view/FileMenuPanels.js | 2 +- .../main/resources/less/leftmenu.less | 28 ++++++ .../main/app/view/FileMenuPanels.js | 33 ++++--- .../main/resources/less/leftmenu.less | 95 +++++++++++++++++++ 8 files changed, 244 insertions(+), 34 deletions(-) diff --git a/apps/common/main/resources/less/checkbox.less b/apps/common/main/resources/less/checkbox.less index b0d588c75..110f871ef 100644 --- a/apps/common/main/resources/less/checkbox.less +++ b/apps/common/main/resources/less/checkbox.less @@ -6,6 +6,11 @@ position: relative; min-height: 1em; + .rtl & { + padding-left: 0; + padding-right: 22px; + } + input[type=checkbox] { display: none; @@ -21,6 +26,11 @@ left: 0; margin-top: auto; + .rtl & { + left: auto; + right: 0; + } + + span { outline: @scaled-one-px-value-ie dotted transparent; outline: @scaled-one-px-value dotted transparent; diff --git a/apps/common/main/resources/less/radiobox.less b/apps/common/main/resources/less/radiobox.less index 56c440701..d1289aedf 100644 --- a/apps/common/main/resources/less/radiobox.less +++ b/apps/common/main/resources/less/radiobox.less @@ -10,6 +10,12 @@ svg { margin-right: 8px; + + .rtl & { + margin-right: 0; + margin-left: 8px; + } + .rb-circle { fill: @background-normal-ie; fill: @background-normal; diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index 41c936dcc..018564885 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -350,8 +350,8 @@ define([ '', '', '', - '
', - '
', + '
', + '
', '', '', '', @@ -368,7 +368,7 @@ define([ '', '', '', - '
', + '
', '', '', '', @@ -1874,7 +1874,7 @@ define([ '
', '', '', - '', + '', '', '' ].join('')); @@ -2197,7 +2197,7 @@ define([ '', '', '
', - '
', + '
', '', '', '
', diff --git a/apps/documenteditor/main/resources/less/filemenu.less b/apps/documenteditor/main/resources/less/filemenu.less index 28f2321d7..823e12322 100644 --- a/apps/documenteditor/main/resources/less/filemenu.less +++ b/apps/documenteditor/main/resources/less/filemenu.less @@ -249,6 +249,34 @@ } } } + + #fms-cmb-theme { + display: inline-block; + margin-right: 15px; + vertical-align: middle; + + .rtl & { + margin-right: 0; + margin-left: 15px; + } + } + + #fms-chb-dark-mode { + display: inline-block; + vertical-align: middle; + margin-top: 2px; + } + + #fms-cmb-macros { + display: inline-block; + margin-right: 15px; + vertical-align: middle; + + .rtl & { + margin-right: 0; + margin-left: 15px; + } + } } #panel-createnew { @@ -260,6 +288,10 @@ .font-weight-bold(); padding: 0 0 10px 10px; white-space: nowrap; + + .rtl & { + padding: 0 10px 10px 0; + } } @@ -420,11 +452,19 @@ .help-item-wrap { padding: 4px 2px 4px 20px; + + .rtl & { + padding: 4px 20px 4px 2px; + } } .header-name { padding: 16px 2px 4px 10px; font-size: 12px; + + .rtl & { + padding: 16px 10px 4px 2px; + } } } } @@ -433,6 +473,15 @@ #file-menu-panel & { padding: 0 30px; } + + #id-info-btn-edit { + margin-right: 10px; + + .rtl & { + margin-right: 0; + margin-left: 10px; + } + } } #panel-info, @@ -442,11 +491,19 @@ td { padding: 0 20px 5px 0; + .rtl & { + padding: 0 0 5px 20px; + } + &.left { padding: 5px 10px; text-align: right; width: 30%; + .rtl & { + text-align: left; + } + label { .font-weight-bold(); } @@ -523,22 +580,31 @@ } #panel-protect { -label { - font-size: 12px; -} + label { + font-size: 12px; + } -#file-menu-panel & { - padding: 30px 30px; -} + #file-menu-panel & { + padding: 30px 30px; + } -.header { - .font-weight-bold(); - margin: 30px 0 10px; -} + .header { + .font-weight-bold(); + margin: 30px 0 10px; + } -table { - td { - padding: 5px 0; + table { + td { + padding: 5px 0; + } + } + + #fms-btn-delete-pwd { + margin-left: 20px; + .rtl & { + margin-left: 0; + margin-right: 20px; + } } } -} \ No newline at end of file + diff --git a/apps/presentationeditor/main/app/view/FileMenuPanels.js b/apps/presentationeditor/main/app/view/FileMenuPanels.js index ed88acd62..aeba88c73 100644 --- a/apps/presentationeditor/main/app/view/FileMenuPanels.js +++ b/apps/presentationeditor/main/app/view/FileMenuPanels.js @@ -1392,7 +1392,7 @@ define([ '
', '', '', - '', + '', '', '' ].join('')); diff --git a/apps/presentationeditor/main/resources/less/leftmenu.less b/apps/presentationeditor/main/resources/less/leftmenu.less index d0ca82b7d..3ab344402 100644 --- a/apps/presentationeditor/main/resources/less/leftmenu.less +++ b/apps/presentationeditor/main/resources/less/leftmenu.less @@ -275,6 +275,10 @@ .font-weight-bold(); padding: 0 0 10px 10px; white-space: nowrap; + + .rtl & { + padding: 0 10px 10px 0; + } } .blank-document-info { @@ -433,10 +437,18 @@ .help-item-wrap { padding: 4px 2px 4px 20px; + + .rtl & { + padding: 4px 20px 4px 2px; + } } .header-name { padding: 16px 2px 4px 10px; + + .rtl & { + padding: 16px 10px 4px 2px; + } } } } @@ -452,11 +464,19 @@ td { padding: 0 20px 5px 0; + .rtl & { + padding: 0 0 5px 20px; + } + &.left { padding: 5px 10px; text-align: right; width: 30%; + .rtl & { + text-align: left; + } + label { .font-weight-bold(); } @@ -528,6 +548,14 @@ padding: 5px 0; } } + + #fms-btn-delete-pwd { + margin-left: 20px; + .rtl & { + margin-left: 0; + margin-right: 20px; + } + } } } } diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index 6cf5e5012..defe5373e 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -266,7 +266,7 @@ define([ '', '', '', - '
', + '
', '', '', '', @@ -276,14 +276,14 @@ define([ '', '', '', - '
', - '
', + '
', + '
', '', '', '', '', - '
', - '
', + '
', + '
', '', '', '
', @@ -1767,7 +1767,7 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({ '
', '', '', - '', + '', '', '' ].join('')); @@ -2254,14 +2254,14 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({ '', '', '', - '', + '', '', '
', '', '', '', '', - '', + '', '', '
', '', @@ -2274,8 +2274,8 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({ '', '', '', - '', - '', + '', + '', '', '', '', @@ -2310,11 +2310,16 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({ '
', '
', '
', - '