From 89e0cfd8741b6763ca04e90558bccf4c3c380cfa Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 13 Apr 2024 13:25:10 +0200 Subject: [feature] Admin accounts endpoints; approve/reject sign-ups (#2826) * update settings panels, add pending overview + approve/deny functions * add admin accounts get, approve, reject * send approved/rejected emails * use signup URL * docs! * email * swagger * web linting * fix email tests * wee lil fixerinos * use new paging logic for GetAccounts() series of admin endpoints, small changes to query building * shuffle useAccountIDIn check *before* adding to query * fix parse from toot react error * use `netip.Addr` * put valid slices in globals * optimistic updates for account state --------- Co-authored-by: kim --- web/source/settings/style.css | 41 +++++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) (limited to 'web/source/settings/style.css') diff --git a/web/source/settings/style.css b/web/source/settings/style.css index 372031203..894d879ad 100644 --- a/web/source/settings/style.css +++ b/web/source/settings/style.css @@ -804,16 +804,12 @@ span.form-info { .info { color: $info-fg; background: $info-bg; - padding: 0.5rem; + padding: 0.25rem; border-radius: $br; display: flex; gap: 0.5rem; align-items: center; - - i { - margin-top: 0.1em; - } a { color: $info-link; @@ -1145,7 +1141,7 @@ button.with-padding { } } -.account-search { +.accounts-view { form { margin-bottom: 1rem; } @@ -1175,9 +1171,42 @@ button.with-padding { max-width: 60rem; } + h4, h3, h2 { + margin-top: 0; + margin-bottom: 0; + } + + .info-list { + border: 0.1rem solid $gray1; + display: flex; + flex-direction: column; + + .info-list-entry { + background: $list-entry-bg; + border: 0.1rem solid transparent; + padding: 0.25rem; + + &:nth-child(even) { + background: $list-entry-alternate-bg; + } + + display: grid; + grid-template-columns: max(20%, 10rem) 1fr; + + dt { + font-weight: bold; + } + + dd { + word-break: break-word; + } + } + } + .action-buttons { display: flex; gap: 0.5rem; + align-items: center; } } -- cgit v1.3