Files
wekan/client/components/settings/peopleBody.css
T
Lauri Ojansivu b7589737f5 File docs/Features the way the WeKan menus are.
A feature's guide now sits under the menu it is used from, read from the
templates rather than from where somebody once put it: Header-Bar,
All-Boards, Pages, Board-Header (search and every Board View), Board-Sidebar
(Board Settings, Filter, Members, Labels, Archive), Rules, Swimlanes, Lists,
Cards, Member-Settings, Admin-Panel and Login-Page. Topics used from several
menus (editor, history, theme, translations, email, troubleshooting) are in
General.

- Each area has a README mapping its menu entries to their guides and to the
  template or server module that implements them. Board-Header/README.md
  lists all 40 Board View entries with the template boardBody.jade renders;
  five views (Table, Calendar Mode, Time, Timeline, Map) have no guide of
  their own yet and say so.
- Board-View.md listed 25 views while BOARD_VIEWS has 40; it now lists all
  of them with their English labels.
- Pages keep their file names. Where a released changelog links an old path,
  a "# Moved" page stays there and points to the new one; test-menu.sh skips
  folders holding only those.
- Undo was filed under Login; it is General/Undo now.
- Every link in docs, code comments, scripts and tests follows the move;
  docsLinksResolve checks them all.

Tests that read a doc follow it to its new place. boardViewSettings now fails
when Board-View.md or Board-Header/README.md differs from BOARD_VIEWS, or
names a template boardBody.jade does not render.

Thanks to xet7 !
2026-10-16 23:45:35 +03:00

307 lines
8.4 KiB
CSS

/* Scrollbar styles are now handled by settingBody.css for all admin pages */
/* These rules have no page in their selector: they are plain `table` rules in a
stylesheet that is bundled for the whole app, so they hit EVERY table in WeKan -
the People panes they were written for, but also Admin Panel / Version and
anything else with a <table> in it.
What they used to say was `min-width: 1200px !important; width: max-content
!important` with nowrap cells, to force a horizontal scrollbar. With
`!important` that beat even the shared table page's own layout, which is
width:100% + table-layout:fixed with equal, wrapping columns precisely so it
CANNOT grow past the panel (docs/Features/General/Table-Page.md): every table page in the
Admin Panel - Domains, Organizations, Teams, People, the Problems reports - had
its right-hand columns outside the window until you scrolled. The geometry is
gone; a table fits its panel and wraps (settingBody.css), and the People panes
are shared table pages now anyway. What is left here is the look - borders,
striping, padding - and the shared table page brings its own. */
table:not(.table-page-table) {
color: #000;
}
table:not(.table-page-table) td,
table:not(.table-page-table) th {
border: 1px solid #d2d0d0;
text-align: start;
padding: 8px;
}
table:not(.table-page-table) tr:nth-child(even) {
background-color: #ddd;
}
/* `.content-wrapper` is not a People class - the ONLY element with that class in
WeKan is the scrolling body of a POPUP (client/components/main/popup.tpl.jade).
So this stray, unscoped rule (specificity 0,1,0, and nothing in popup.css sets a
margin on that element) added 10px above the content of EVERY popup: the gap over
the first row of Board Settings / Board View / Member Settings / Sort Cards /
Change Watch / Change Visibility / Swimlane Actions, and over the first field of
Rename Board. Removed - it never styled anything on this page. */
.buttonsContainer {
display: flex;
}
.buttonsContainer input {
margin: 0;
}
.buttonsContainer div {
margin: auto;
}
.more-settings-user,
.more-settings-team,
.more-settings-org {
margin-inline-start: 10px;
}
.js-orgs,
.js-orgsNewUser {
display: none;
}
.js-teams,
.js-teamsNewUser {
display: none;
}
/* The People table's own checkboxes are the Admin Panel's one checkbox look
(settingBody.css): visible, square, WeKan's green tick. Only their placement in
the cell belongs here - the rule used to re-enable the BROWSER's rendering, which
drew a different checkbox from every other one in the panel. */
.selectUserChkBox,
.allUserChkBox {
margin: 0 auto;
}
/* Make checkbox column fit content. Unscoped like the rules at the top of this
file, so the shared table page is excluded here too - its columns are an equal
share of the width by design. */
table:not(.table-page-table) th:first-child,
table:not(.table-page-table) td:first-child {
width: auto;
min-width: auto;
}
#divAddOrRemoveTeam {
background: var(--theme-accent, #01628c);
display: none;
}
#addOrRemoveTeam {
background: var(--theme-accent, #01628c);
color: #fff;
}
#addOrRemoveTeam:hover {
background: var(--theme-accent, #005377);
}
#divAddOrRemoveTeamContainer {
display: none;
margin: auto;
width: 50%;
border: 3px solid var(--theme-accent, #01628c);
padding: 10px;
}
#cancelBtn {
margin-inline-start: 5% !important;
background: var(--theme-accent, #01628c);
color: #fff;
}
#cancelBtn:hover {
background: var(--theme-accent, #005377);
}
#deleteAction {
margin-inline-start: 5% !important;
}
.divLockedUsersFilter {
display: flex;
align-items: center;
margin: 0 15px;
}
.divLockedUsersFilter .flex-container {
display: flex;
align-items: center;
gap: 8px;
}
.divLockedUsersFilter .people-filter {
margin-bottom: 0;
color: #777;
line-height: calc(34px * var(--wekan-ui-font-scale, 1));
}
.divLockedUsersFilter .user-filter {
border: 1px solid #ccc;
border-radius: 2px;
padding: 4px 8px;
background-color: white;
}
/* `.unlock-all-btn` is gone. "Unlock all users" is an action of the shared
controls row now (docs/Features/General/Table-Page.md), and this rule was written for the
old hand-written page header: a 20px top margin and a 28px height, next to a
"Teams" button that takes the shared 34px. In one flex row that put the two
buttons at visibly different heights AND on different baselines. The shared row
sizes and themes both, so neither carries geometry of its own any more. */
.account-active-status {
width: auto;
text-align: center;
}
.js-toggle-active-status {
cursor: pointer;
}
.unlock-all-success {
position: fixed;
top: 10%;
left: 50%;
transform: translateX(-50%);
background-color: var(--theme-accent, #01628c);
color: white;
padding: 10px 20px;
border-radius: 4px;
z-index: 9999;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
animation: fadeOut 3s ease-in forwards;
}
@keyframes fadeOut {
0% { opacity: 1; }
70% { opacity: 1; }
100% { opacity: 0; }
}
.account-status {
width: auto;
text-align: center;
}
.text-green {
color: var(--theme-accent, #01628c);
}
.js-toggle-lock-status {
cursor: pointer;
}
/* Avatar styling - removed people-avatar column */
/* Username column styling - displays avatar inline with username */
.username a.js-edit-people-avatar {
display: inline-flex;
align-items: center;
cursor: pointer;
text-decoration: none;
margin-inline-end: 8px;
vertical-align: middle;
}
.username a.js-edit-people-avatar:hover {
background-color: rgba(0, 0, 0, 0.05);
border-radius: 50%;
}
.username .avatar {
height: 30px;
width: 30px;
border-radius: 50%;
display: inline-block;
flex-shrink: 0;
overflow: hidden;
}
.username .avatar.avatar-initials {
background-color: #dbdbdb;
color: #444;
display: flex;
align-items: center;
justify-content: center;
font-size: calc(12px * var(--wekan-ui-font-scale, 1));
font-weight: 500;
}
/* Compact country counters in People. They are real buttons because each opens
the country/city/address report; wrapping keeps several countries inside the
Location column instead of widening the whole Admin Panel. */
.people-login-locations {
white-space: normal;
}
.people-login-locations .js-open-login-country {
display: inline-flex;
align-items: center;
gap: 3px;
min-height: 26px;
margin: 1px 3px 1px 0;
padding: 2px 6px;
border: 1px solid var(--theme-border, #ccc);
border-radius: 12px;
background: var(--theme-window, #fff);
color: inherit;
cursor: pointer;
}
.people-login-locations .js-open-login-country:hover,
.people-login-locations .js-open-login-country:focus-visible {
background: var(--theme-hover, #eee);
}
.username .avatar img.avatar-image {
object-fit: cover;
object-position: center;
height: 100%;
width: 100%;
}
/* Roles tab. The .main-body scrolls horizontally and is wider than the visible
area (the side-menu takes ~250px), so by default a long description would run
off the right edge and only be fully readable at the smallest (mobile) width.
Pin the heading/description to the visible left edge and wrap them within the
viewport so they stay visible at every width. */
.roles-settings {
padding: 0 10px;
}
.roles-settings h3,
.roles-settings h4,
.roles-settings .roles-description {
position: sticky;
inset-inline-start: 0;
/* Cap to ~60 characters, and never wider than the viewport, so the text wraps
into the visible left area at every width (desktop, mid and mobile) instead
of running off the horizontally-scrolling main-body. */
max-width: min(60ch, 88vw);
white-space: normal;
overflow-wrap: break-word;
}
.roles-settings .roles-description {
margin-bottom: 1rem;
}
/* Admin Panel > People > Domains renders through the shared table page
(docs/Features/General/Table-Page.md), so its controls row, pagination and table are
styled there - and its pager is themed by paginationControls.css like every
other pager. Nothing pane-specific is needed here any more. */
/* #6465: the "all users" select-all in a table heading. One row, box after the
word, with a gap that cannot collapse - the two used to be loose inline nodes
in a centred heading cell, and at the column's width the box sat on top of the
text. inline-flex keeps the heading's own centring intact. */
.select-all-user {
display: inline-flex;
align-items: center;
gap: 6px;
cursor: pointer;
white-space: nowrap;
}
.select-all-user input.allUserChkBox {
margin: 0;
flex: none;
}