mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Member Settings / Change Settings used the shared popup list as it is: a flex row whose every line is 33px high with its icon centred. Its settings are sentences, and most wrap - in Persian, in German - so a setting became two tall lines with its icon floating between them and the next setting right under it, with nothing to tell where one ended. Each row is now an icon column, the words and the check mark at the end; the icon sits on the first line, a wrapped line is an ordinary line high, a rule divides the rows, and the Card settings checkbox has the same space beside its words as an icon has. Scoped to the popup's own list (change-settings-list): a popup keeps the screens before it - the member menu - in the same .pop-over, so its data-popup would have restyled those too. change-settings-popup-6835.e2e.js, in Persian and English, Chromium and WebKit: each row's icon is on its first line, a line is under 28px high and a row only as tall as its lines, rows are divided, and the member menu beside it is untouched. Thanks to mimZD and xet7 ! Fixes #6835,
261 lines
8.1 KiB
CSS
261 lines
8.1 KiB
CSS
/* Scrollable room below the form on Sign In / Register, so the bottom of the
|
|
dialog - and the language selector under it - can be scrolled clear of the
|
|
window edge, and of the on-screen keyboard on a phone. A fixed height, not
|
|
vh: this is spacing, and spacing must not change with the window (see
|
|
tests/noViewportSpacing.test.cjs). */
|
|
.auth-bottom-space {
|
|
flex: 0 0 auto;
|
|
height: 96px;
|
|
}
|
|
.auth-layout .at-form-landing-logo {
|
|
width: min(249px, 32vw);
|
|
margin: auto;
|
|
margin-top: 54px;
|
|
margin-bottom: 22px;
|
|
}
|
|
.auth-layout .auth-dialog {
|
|
width: min(275px, 36vw);
|
|
padding: 24px 24px;
|
|
margin: auto;
|
|
margin-bottom: 22px;
|
|
background: #fff;
|
|
border-radius: 3px;
|
|
border: 1px solid #dbdbdb;
|
|
border-bottom-color: #c2c2c2;
|
|
box-shadow: 0 2px 7px rgba(0,0,0,0.3);
|
|
}
|
|
.auth-layout .auth-dialog .at-form .at-link {
|
|
color: #17683a;
|
|
}
|
|
.auth-layout .auth-dialog .at-form label {
|
|
margin-bottom: 4px;
|
|
}
|
|
.auth-layout .auth-dialog .at-form input {
|
|
width: 100%;
|
|
}
|
|
.password-input-container {
|
|
display: flex;
|
|
align-self: stretch;
|
|
align-items: stretch;
|
|
column-gap: 0.5rem;
|
|
}
|
|
.password-input-container input {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
/* The show/hide password button is a square: its width and height match the
|
|
password input field height, and the field flex-grows to fill the space the
|
|
narrower button frees up on the right. */
|
|
.password-input-container .password-field {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
}
|
|
.auth-layout .auth-dialog .at-form .password-input-container .password-toggle-btn {
|
|
position: static;
|
|
transform: none;
|
|
flex: 0 0 auto;
|
|
align-self: stretch;
|
|
aspect-ratio: 1 / 1;
|
|
width: auto;
|
|
height: auto;
|
|
min-width: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
line-height: 1;
|
|
}
|
|
.auth-layout .auth-dialog .at-form .password-input-container .password-toggle-btn .fa {
|
|
display: block;
|
|
margin: 0;
|
|
padding: 0;
|
|
line-height: 1;
|
|
vertical-align: middle;
|
|
}
|
|
.auth-layout .auth-dialog .at-form .password-input-container .password-field {
|
|
padding-inline-end: 0;
|
|
}
|
|
body.mobile-mode .password-input-container {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
body.mobile-mode .auth-layout .auth-dialog .at-form .password-input-container .password-toggle-btn {
|
|
aspect-ratio: auto;
|
|
width: 100%;
|
|
}
|
|
/* Package-provided and standalone authentication actions share Login colors. */
|
|
.auth-layout .auth-dialog button.primary,
|
|
.auth-layout .auth-dialog input.primary[type="submit"],
|
|
.auth-layout .auth-dialog .at-form button {
|
|
width: 100%;
|
|
background: #216694;
|
|
color: #fff;
|
|
}
|
|
.auth-layout .auth-dialog button.primary .fa,
|
|
.auth-layout .auth-dialog .at-form button .fa {
|
|
color: inherit;
|
|
}
|
|
.auth-layout .auth-dialog .at-form .at-title {
|
|
background: #f7f7f7;
|
|
margin: -24px -24px;
|
|
padding: 18px 24px 6px;
|
|
margin-bottom: 22px;
|
|
border-bottom: 1px solid #dcdcdc;
|
|
color: #4d4d4d;
|
|
font-weight: bold;
|
|
}
|
|
.auth-layout .auth-dialog .at-form .at-signup-link,
|
|
.auth-layout .auth-dialog .at-form .at-signin-link,
|
|
.auth-layout .auth-dialog .at-form .at-forgotPwd {
|
|
font-size: 0.9em;
|
|
margin-top: 18px;
|
|
color: #4d4d4d;
|
|
}
|
|
/* #4394 (security): when registration / forgot-password are disabled in the
|
|
Admin Panel, keep the corresponding links hidden even after useraccounts
|
|
re-renders the form on a failed login. The class lives on the stable <body>
|
|
ancestor (set in layouts.js), so this rule re-hides every recreated copy of
|
|
the link — unlike a one-shot inline display:none that the re-render dropped. */
|
|
body.registration-disabled .at-signup-link,
|
|
body.registration-disabled .at-signUp {
|
|
display: none !important;
|
|
}
|
|
body.forgotpwd-disabled .at-pwd-link,
|
|
body.forgotpwd-disabled .at-forgotPwd {
|
|
display: none !important;
|
|
}
|
|
.auth-layout .auth-dialog .at-form .at-signup-link .at-signUp,
|
|
.auth-layout .auth-dialog .at-form .at-signin-link .at-signUp,
|
|
.auth-layout .auth-dialog .at-form .at-forgotPwd .at-signUp,
|
|
.auth-layout .auth-dialog .at-form .at-signup-link .at-signIn,
|
|
.auth-layout .auth-dialog .at-form .at-signin-link .at-signIn,
|
|
.auth-layout .auth-dialog .at-form .at-forgotPwd .at-signIn {
|
|
font-weight: bold;
|
|
}
|
|
.auth-layout .auth-dialog .at-form-lang {
|
|
margin-top: 0px;
|
|
}
|
|
.auth-layout .auth-dialog .at-form-lang .select-lang {
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
}
|
|
/* Auth pages (login / register) must scroll as a normal document on mobile so
|
|
the content below the form — the sign-up / sign-in link, legal notice and
|
|
language selector — is reachable, including when the on-screen keyboard is
|
|
open. body.mobile-mode otherwise locks <body> to position:fixed + 100vh (an
|
|
iOS board-view anti-bounce fix); the auth layout has no inner #content
|
|
scroller, so that lock traps the page at viewport height and the on-screen
|
|
keyboard hides the bottom. .userform-layout is added by userFormsLayout while
|
|
these pages are mounted (see layouts.js). */
|
|
body.mobile-mode.userform-layout {
|
|
position: static !important;
|
|
height: auto !important;
|
|
min-height: 100vh;
|
|
overflow-y: auto !important;
|
|
}
|
|
|
|
@media screen and (max-width: 800px) {
|
|
.auth-layout {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
}
|
|
/* Let the auth layout/dialog grow to their content instead of being pinned to
|
|
the viewport height, so everything below the form scrolls into view. */
|
|
body.userform-layout .auth-layout {
|
|
height: auto;
|
|
}
|
|
body.userform-layout .auth-layout .auth-dialog {
|
|
height: auto;
|
|
}
|
|
.auth-layout .at-form-landing-logo {
|
|
width: 125px;
|
|
position: absolute;
|
|
top: 0px;
|
|
inset-inline-end: 20px;
|
|
margin-top: 5px;
|
|
margin-bottom: 5px;
|
|
}
|
|
.auth-layout .at-form-landing-logo img {
|
|
width: 125px;
|
|
}
|
|
.auth-layout .auth-dialog {
|
|
width: calc(100% - 50px);
|
|
height: calc(100% - 50px);
|
|
padding: 25px;
|
|
min-height: 380px;
|
|
margin: 0px;
|
|
margin-bottom: 0px;
|
|
border: 0px;
|
|
}
|
|
.auth-layout .auth-dialog .at-form .at-title h3 {
|
|
width: calc(100% - 125px);
|
|
overflow-x: hidden;
|
|
}
|
|
}
|
|
|
|
/* The catalog buttons in userFormsLayout own provider errors and navigation.
|
|
Hide the duplicate buttons supplied by useraccounts; retain its OIDC button. */
|
|
.userform-layout :is(#at-google, #at-github, #at-facebook, #at-twitter,
|
|
#at-meteor-developer, #at-weibo, #at-meetup) {
|
|
display: none;
|
|
}
|
|
|
|
/* #6835: Member Settings / Change Settings. Its rows are the shared popup list
|
|
(popup.css: a flex row, every line 33px high, the icon centred), which reads
|
|
well for one-line items and badly for these: a setting whose words wrap -
|
|
most of them, in Persian and German - became two 33px lines with its icon
|
|
floating between them and the next setting right below, with nothing to
|
|
tell one from the other. Here a row is an icon column, the words, and the
|
|
check mark at the end; the icon sits on the first line of the words, a
|
|
wrapped line is an ordinary line high, and a rule divides the rows. Scoped
|
|
to the list's own class: the member menu before it shares its .pop-over. */
|
|
.pop-over-list.change-settings-list li + li {
|
|
border-top: 1px solid rgba(0, 0, 0, 0.12);
|
|
}
|
|
.pop-over-list.change-settings-list li > a {
|
|
align-items: flex-start;
|
|
gap: 0;
|
|
line-height: 1.35;
|
|
padding: 8px 10px;
|
|
}
|
|
.pop-over-list.change-settings-list li > a > i.fa:first-child {
|
|
flex: 0 0 1.4em;
|
|
margin-inline-end: 0.6em;
|
|
line-height: inherit;
|
|
text-align: center;
|
|
}
|
|
.pop-over-list.change-settings-list li > a > i.fa-check {
|
|
flex: 0 0 auto;
|
|
margin-inline-start: auto;
|
|
padding-inline-start: 0.6em;
|
|
line-height: inherit;
|
|
}
|
|
.pop-over-list.change-settings-list li > label.bold {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
line-height: 1.35;
|
|
padding: 8px 10px 4px;
|
|
}
|
|
.pop-over-list.change-settings-list li > label.bold > i.fa {
|
|
flex: 0 0 1.4em;
|
|
margin-inline-end: 0.6em;
|
|
text-align: center;
|
|
line-height: inherit;
|
|
}
|
|
/* The Card settings checkbox row: the box on the first line of its words,
|
|
with the same space between them as an icon has. */
|
|
.pop-over-list.change-settings-list .js-rescue-card-description {
|
|
align-items: flex-start;
|
|
gap: 0.6em;
|
|
line-height: 1.35;
|
|
}
|
|
.pop-over-list.change-settings-list .js-rescue-card-description .materialCheckBox {
|
|
flex: 0 0 auto;
|
|
margin-top: 0.15em;
|
|
}
|