Login: refactor rtl

This commit is contained in:
Aleksandr Lushkin 2024-07-11 18:19:11 +02:00
parent de16527f54
commit 2358f9aac5
5 changed files with 14 additions and 23 deletions

View File

@ -47,10 +47,7 @@ export const LoginFormWrapper = styled.div<{ bgPattern: string }>`
background-attachment: fixed;
background-size: cover;
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
inset: 0;
@media ${mobile} {
background-image: none;
@ -79,7 +76,7 @@ export const LoginFormWrapper = styled.div<{ bgPattern: string }>`
.language-combo-box {
position: fixed;
right: 28px;
inset-inline-end: 28px;
top: 28px;
@media ${mobile} {
@ -100,14 +97,7 @@ export const LoginFormWrapper = styled.div<{ bgPattern: string }>`
text-overflow: ellipsis;
overflow: hidden;
${(props) =>
props.theme.interfaceDirection === "rtl"
? css`
right: 0;
`
: css`
left: 0;
`};
inset-inline-start: 0;
display: flex;
gap: 4px;

View File

@ -35,7 +35,8 @@ export const StyledCaptcha = styled.div<{ isCaptchaError: boolean }>`
props.isCaptchaError &&
css`
border: ${props.theme.login.captcha.border};
padding: 4px 4px 4px 2px;
padding-block: 4px;
padding-inline: 2px 4px;
`};
margin-bottom: 2px;

View File

@ -40,8 +40,7 @@ export const StyledRegister = styled(Box)`
padding: 1.5em;
bottom: 0;
${({ theme }) =>
theme.interfaceDirection === "rtl" ? `left: 0;` : `right: 0;`}
inset-inline-end: 0;
background-color: ${(props) => props.theme.login.register.backgroundColor};
cursor: pointer;
`;

View File

@ -49,7 +49,7 @@ const StyledSimpleNav = styled.div`
.language-combo-box {
position: absolute;
top: 7px;
right: 8px;
inset-inline-end: 8px;
}
}
`;

View File

@ -1,26 +1,26 @@
/**
* (c) Copyright Ascensio System SIA 2009-2024
*
*
* This program is a free software product.
* You can redistribute it and/or modify it under the terms
* of the GNU Affero General Public License (AGPL) version 3 as published by the Free Software
* Foundation. In accordance with Section 7(a) of the GNU AGPL its Section 15 shall be amended
* to the effect that Ascensio System SIA expressly excludes the warranty of non-infringement of
* any third-party rights.
*
*
* This program is distributed WITHOUT ANY WARRANTY, without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For details, see
* the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia, EU, LV-1021.
*
*
* The interactive user interfaces in modified source and object code versions of the Program must
* display Appropriate Legal Notices, as required under Section 5 of the GNU AGPL version 3.
*
*
* Pursuant to Section 7(b) of the License you must retain the original Product logo when
* distributing the program. Pursuant to Section 7(e) we decline to grant you any rights under
* trademark law for use of our trademarks.
*
*
* All the Product's GUI elements, including illustrations and icon sets, as well as technical writing
* content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0
* International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
@ -50,6 +50,7 @@ body {
.pageLoader {
position: fixed;
// doesn't require mirroring for RTL
left: calc(50% - 20px);
top: 35%;
}