mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Picking Largest grew the page heading and the minicards and left the header bar, the left menu, the lists, the swimlane header and every popup exactly as they were. The preset was a percentage on the root element, and a root percentage only reaches text whose size is written in a relative unit: rem is measured against the root, em against its parent. WeKan writes most of its sizes in px, and px is absolute, so exactly the rem-sized parts scaled. The base rule made it worse: html, body, input, select, textarea, button re-stated font: 14px, so the body took the stock size straight back off the scaled root. The preset is published as a number as well (--wekan-ui-font-scale), and every px font-size and line-height in the client stylesheets - 433 declarations across 37 files - is written calc(14px * var(--wekan-ui-font-scale, 1)). line-height scales with the size on purpose: 21px of type in an 18px line box is the same setting half-applied. The base font rule is split into font-family and font-size, because the shorthand's size was the one thing the setting had to be able to move. Nothing renders differently until a preset is chosen: the fallback is 1 and the variable is removed for Default. tests/uiFonts.test.cjs fails on any bare px font-size or line-height, so a new one cannot quietly opt out of the setting; the two density guards unwrap the calc as they read the file, so each still pins the size it means. Thanks to xet7 !
218 lines
5.1 KiB
CSS
218 lines
5.1 KiB
CSS
.member {
|
|
border-radius: 3px;
|
|
display: block;
|
|
position: relative;
|
|
float: inline-start;
|
|
height: 24px;
|
|
width: 24px;
|
|
margin: 3px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
z-index: 1;
|
|
text-decoration: none;
|
|
border-radius: 50%;
|
|
}
|
|
.member .avatar {
|
|
overflow: hidden;
|
|
border-radius: 50%;
|
|
}
|
|
.member .avatar.avatar-initials {
|
|
height: 70%;
|
|
width: 70%;
|
|
padding: 15%;
|
|
background-color: #dbdbdb;
|
|
color: #444;
|
|
position: absolute;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.member .avatar.avatar-image {
|
|
object-fit: cover;
|
|
object-position: center;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
.member .member-presence-status {
|
|
background-color: #b3b3b3;
|
|
border: 1px solid #fff;
|
|
border-radius: 50%;
|
|
height: 7px;
|
|
width: 7px;
|
|
position: absolute;
|
|
inset-inline-end: -1px;
|
|
bottom: -1px;
|
|
border: 1px solid #fff;
|
|
z-index: 15;
|
|
}
|
|
.member .member-presence-status.active {
|
|
background: #64c464;
|
|
border-color: #daf1da;
|
|
}
|
|
.member .member-presence-status.idle {
|
|
background: #e4e467;
|
|
border-color: #f7f7d4;
|
|
}
|
|
.member .member-presence-status.disconnected {
|
|
background: #bdbdbd;
|
|
border-color: #ededed;
|
|
}
|
|
.member .member-presence-status.pending {
|
|
background: #e44242;
|
|
border-color: #f1dada;
|
|
}
|
|
.member .edit-avatar {
|
|
position: absolute;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
border-radius: 50%;
|
|
background: #000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
}
|
|
.member .edit-avatar:hover {
|
|
opacity: 0.6;
|
|
}
|
|
.member .edit-avatar i.fa-pencil {
|
|
color: #fff;
|
|
}
|
|
.member.add-member {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 0 0 2px #bfbfbf inset;
|
|
}
|
|
.member.add-member:hover,
|
|
.member.add-member.is-active {
|
|
box-shadow: 0 0 0 2px #666 inset;
|
|
}
|
|
/* Change profile image popup (changeAvatarPopup / adminChangeAvatarPopup).
|
|
One row per avatar: thumbnail, file name, a check when it is the one in use,
|
|
and a delete button. The delete button is a SIBLING of the select link (see
|
|
userAvatar.jade), so it needs its own row-level flex layout here. */
|
|
.avatar-list .avatar-list-item {
|
|
display: flex;
|
|
align-items: stretch;
|
|
}
|
|
.avatar-list .avatar-list-select {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.avatar-list .avatar-list-select > .member {
|
|
align-self: center;
|
|
margin: 0;
|
|
}
|
|
.avatar-list .avatar-list-info {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
line-height: calc(18px * var(--wekan-ui-font-scale, 1));
|
|
padding: 4px 0;
|
|
}
|
|
.avatar-list .avatar-list-name {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.avatar-list .avatar-list-check {
|
|
flex: 0 0 auto;
|
|
color: #3cb500;
|
|
}
|
|
/* Marks the avatar in use; :not(:hover) so the popup's own hover colour still wins. */
|
|
.avatar-list .avatar-list-item.selected .avatar-list-select:not(:hover) {
|
|
background-color: #e2e6e9;
|
|
}
|
|
.avatar-list .avatar-list-delete {
|
|
flex: 0 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 12px;
|
|
color: #8c8c8c !important;
|
|
}
|
|
/* Outweighs .pop-over-list li > a:not(.disabled):hover, which would otherwise
|
|
paint the delete button with the generic blue row-hover colour. */
|
|
.avatar-list.pop-over-list li > a.avatar-list-delete:hover {
|
|
color: #fff !important;
|
|
background-color: #b04632;
|
|
}
|
|
.avatar-upload-hints {
|
|
color: #8c8c8c;
|
|
font-size: calc(12px * var(--wekan-ui-font-scale, 1));
|
|
line-height: calc(16px * var(--wekan-ui-font-scale, 1));
|
|
margin: 6px 0;
|
|
}
|
|
.atMention {
|
|
background: #dbdbdb;
|
|
border-radius: 3px;
|
|
padding: 1px 4px;
|
|
margin: -1px 0;
|
|
display: inline-block;
|
|
}
|
|
.atMention.me {
|
|
background: #cfdfe8;
|
|
}
|
|
.mini-profile-info {
|
|
margin-top: 10px;
|
|
}
|
|
.mini-profile-info .info {
|
|
padding-top: 5px;
|
|
}
|
|
.mini-profile-info .info h3,
|
|
.mini-profile-info .info p {
|
|
margin-bottom: 0;
|
|
padding-inline-start: 0;
|
|
}
|
|
.mini-profile-info .info p {
|
|
padding-top: 0;
|
|
}
|
|
.mini-profile-info .member {
|
|
width: 40px;
|
|
height: 40px;
|
|
margin-inline-end: 10px;
|
|
}
|
|
|
|
/* Account-status distinction on the avatar itself (see userAvatar.js
|
|
memberAccountClass / isImportedMember / isInactiveMember):
|
|
- imported-member: an un-reconciled board-import placeholder that is not yet mapped
|
|
to a real account — dashed ring + amber "?" corner badge.
|
|
- inactive-member: deactivated on this board (e.g. a person not in LDAP after
|
|
reconciliation) — greyscale + dimmed, grey corner badge.
|
|
A placeholder is usually both; a real, active account gets neither. */
|
|
.member.imported-member .avatar {
|
|
border: 2px dashed #7f8c9a;
|
|
box-sizing: border-box;
|
|
opacity: 0.9;
|
|
}
|
|
.member.inactive-member .avatar {
|
|
filter: grayscale(1);
|
|
opacity: 0.55;
|
|
}
|
|
.member .member-account-badge {
|
|
position: absolute;
|
|
bottom: -2px;
|
|
inset-inline-end: -2px;
|
|
min-width: 14px;
|
|
height: 14px;
|
|
line-height: calc(13px * var(--wekan-ui-font-scale, 1));
|
|
padding: 0 1px;
|
|
border-radius: 7px;
|
|
font-size: calc(10px * var(--wekan-ui-font-scale, 1));
|
|
font-weight: bold;
|
|
text-align: center;
|
|
color: #fff;
|
|
box-shadow: 0 0 0 1.5px #fff;
|
|
pointer-events: none;
|
|
}
|
|
.member .member-account-badge.imported {
|
|
background: #f39c12;
|
|
}
|
|
.member .member-account-badge.inactive {
|
|
background: #95a5a6;
|
|
}
|