Files
nextcloud-server-mirror/apps/settings/css/settings.css
nfebe 947212aded feat(settings): Rework personal info into a sectioned single-column layout
Personal info is reorganized into clear sections in a single column instead
of a multi-column grid of separately mounted widgets, with fields adopting a
consistent modern look in line with the settings redesign.

feat(settings): Merge profile visibility into a per-field privacy popover

The per-field privacy control now sets both profile visibility and federation
scope in one popover, replacing the separate visibility section.

refactor(settings): Remove dead personal-info code and use clickable-area token

Two profile components left unused after the redesign are removed, and the per-field privacy controls now derive their width from the shared clickable-area variable instead of a hard-coded size.

refactor(settings): Convert privacy popover control to TypeScript script setup

The combined visibility and scope control is rewritten with the Composition API and typed script setup, matching the rest of the redesigned settings and easing the future runtime migration.

test(settings): Cover the privacy popover scope changes

Adds happy-path coverage for the combined privacy control: rendering the popover, persisting a scope change, and rolling back when saving fails.

fix(settings): Lay personal info out as a centered single column

Personal settings render in a width-capped, centered column instead of stretching across the content area. Per-field action controls sit in a side gutter so every field, the profile card, and the language and locale dropdowns share one width, and the community footer is centered to match.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2026-08-20 13:53:48 +02:00

12 lines
6.2 KiB
CSS

/*!
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2011 Jan-Christoph Borchardt, http://jancborchardt.net
* SPDX-License-Identifier: AGPL-3.0-or-later
*//*!
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*//*!
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/input#openid,input#webdav{width:20em}.clear{clear:both}.development-notice{display:flex;flex-direction:column;align-items:center;text-align:center}.development-notice a:not(.link-button){text-decoration:underline}.link-button{display:inline-flex;margin:calc(2*var(--default-grid-baseline));padding:calc(2*var(--default-grid-baseline)) calc(4*var(--default-grid-baseline));background-color:var(--color-primary-element);color:var(--color-primary-element-text);border-radius:var(--border-radius-element);border:1px solid var(--color-primary-element);box-shadow:0 2px 9px var(--color-box-shadow);align-items:center;gap:calc(var(--default-grid-baseline)*2)}.link-button:hover,.link-button:focus{background-color:var(--color-primary-element-hover)}.link-button:active,.link-button:focus-visible{box-shadow:0 0 0 4px var(--color-main-background) !important;outline:2px solid var(--color-main-text) !important}.link-button .icon-file-text{filter:var(--primary-invert-if-dark);width:20px;height:20px}.verification-dialog{display:none;inset-inline-end:-9px;top:40px;width:275px}.verification-dialog p{padding:10px}.verification-dialog .verificationCode{font-family:monospace;display:block;overflow-wrap:break-word}.clientsbox img{height:60px}#sslCertificate tr.expired{background-color:rgba(255,0,0,.5)}#sslCertificate td{padding:5px}#displaynameerror,#displaynamechanged{display:none}input#identity{width:20em}#showWizard{display:inline-block}.msg.success{color:#fff;background-color:#47a447;padding:3px}.msg.error{color:#fff;background-color:#d2322d;padding:3px}table.nostyle label{margin-inline-end:2em}table.nostyle td{padding:.2em 0}#two-factor-auth h3{margin-top:24px}#two-factor-auth li>div{margin-inline-start:20px}#two-factor-auth .two-factor-provider-settings-icon{width:16px;height:16px;filter:var(--background-invert-if-dark)}.isgroup .groupname{width:85%;display:block;overflow:hidden;text-overflow:ellipsis}.isgroup.active .groupname{width:65%}#usersearchform{position:absolute;top:2px;inset-inline-end:0}#usersearchform input{width:150px}#usersearchform label{font-weight:bold}table.grid{width:100%}table.grid th{height:2em;padding:0;padding-inline-end:1em;border-bottom:1px solid var(--color-border);text-align:start;font-weight:normal}table.grid td{border-bottom:1px solid var(--color-border);padding:0;padding-inline-end:1em;text-align:start;font-weight:normal}td.name,th.name{padding-inline-start:.8em;min-width:5em;max-width:12em;text-overflow:ellipsis;overflow:hidden}td.password,th.password{padding-inline-start:.8em}td.password>img,th.password>img{visibility:hidden}td.displayName>img,th.displayName>img{visibility:hidden}td.password,td.mailAddress,th.password,th.mailAddress{min-width:5em;max-width:12em;cursor:pointer}td.password span,td.mailAddress span,th.password span,th.mailAddress span{width:90%;display:inline-block;text-overflow:ellipsis;overflow:hidden}td.mailAddress,th.mailAddress{cursor:pointer}td.password>span,th.password>span{margin-inline-end:1.2em;color:#c7c7c7}span.usersLastLoginTooltip{white-space:nowrap}.section{margin-bottom:0}.section:not(:last-child){border-bottom:1px solid var(--color-border)}.section h2{display:inline-flex;align-items:center;justify-content:center;font-size:20px;font-weight:bold;max-width:900px;margin-top:0}.section h2 .icon-info{display:flex;align-items:center;justify-content:center;width:var(--default-clickable-area);height:var(--default-clickable-area);margin:calc((var(--default-clickable-area) - 16px)/2*-1);margin-inline-start:0;color:var(--color-text-maxcontrast)}.section p{margin-top:-0.2em;margin-bottom:1em;color:var(--color-text-maxcontrast);max-width:900px}#log{white-space:normal;margin-bottom:14px}#lessLog{display:none}table.grid td.date{white-space:nowrap}#log-section p{margin-top:20px}#shareAPI.loading>div{display:none}#shareAPI p{padding-bottom:.8em}#shareAPI .indent{padding-inline-start:28px}#shareAPI .double-indent{padding-inline-start:56px}#shareAPI .nocheckbox{padding-inline-start:20px}#shareAPI #s2id_linksExcludedGroups{width:200px !important}#shareApiDefaultPermissionsSection label{margin-inline-end:20px}#fileSharingSettings h3{display:inline-block}#publicShareDisclaimerText{width:calc(100% - 23px);max-width:600px;height:150px;margin-inline-start:20px;box-sizing:border-box}.icon-info{padding:11px 20px;vertical-align:text-bottom;opacity:.5}#two-factor-auth h2,#shareAPI h2,#mail_general_settings h2{display:inline-block}.mail_settings p label:first-child{display:inline-block;width:300px;text-align:end}.mail_settings p select:nth-child(2),.mail_settings p input:not([type=button]){width:143px}@media(max-width: 768px){.mail_settings p label:first-child{width:unset;text-align:start;display:block;margin-top:calc(var(--default-grid-baseline)*2)}}#mail_smtpport{width:60px}.cronlog{margin-inline-start:10px}.status{display:inline-block;height:16px;width:16px;vertical-align:text-bottom}.status.success{border-radius:50%}#selectGroups select{box-sizing:border-box;display:inline-block;height:36px;padding:7px 10px}#log .log-message{word-break:break-all;min-width:180px}span.success{background-color:var(--color-success);border-radius:var(--border-radius)}span.error{background-color:var(--color-error)}span.indeterminate{background-color:var(--color-warning);border-radius:40% 0}doesnotexist:-o-prefocus,.strengthify-wrapper{inset-inline-start:185px;width:129px}.trusted-domain-warning{color:#fff;padding:5px;background:#ce3702;border-radius:5px;font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace}#warning{color:red}.settings-hint{color:var(--color-text-maxcontrast);margin-block:-12px 12px}.animated{animation:blink-animation 1s steps(5, start) 4}@keyframes blink-animation{to{opacity:.6}}@-webkit-keyframes blink-animation{to{opacity:1}}#sendtestmail_msg.error{display:inline-block;margin-top:5px;border-radius:var(--border-radius);padding:5px 10px}/*# sourceMappingURL=settings.css.map */