SHA256
Ускорить публикацию блоков в Arweave
This commit is contained in:
@@ -1,51 +1,81 @@
|
||||
/* Карточка профиля (js/components/profile-card.js): свой и чужой профиль в одной системе с «О канале».
|
||||
* Селекторы привязаны к .user-profile-screen, чтобы перекрыть старую геометрию profile.css. */
|
||||
.user-profile-screen { gap: 0; min-height: 0; overflow-x: clip; } /* clip, а не hidden: hidden обрезал бы и свечение аватарки сверху */
|
||||
.user-profile-screen { gap: 0; min-height: 0; overflow-x: clip; }
|
||||
.user-profile-screen::before { content: none; }
|
||||
.user-profile-screen .user-profile-body { display: grid; gap: var(--space-4); padding: var(--space-2) 0 var(--space-5); }
|
||||
.user-profile-screen .user-profile-status:empty { display: none; }
|
||||
|
||||
.user-profile-screen .pf-hero { display: grid; justify-items: center; gap: var(--space-1); text-align: center; }
|
||||
.user-profile-screen .pf-avatar { position: relative; grid-column: auto; grid-row: auto; width: 96px; height: 96px; margin-bottom: var(--space-2); display: grid; place-items: center; justify-self: center; }
|
||||
.user-profile-screen .pf-identity {
|
||||
width: min(100%, 420px);
|
||||
display: grid;
|
||||
grid-template-columns: minmax(72px, 1fr) 96px minmax(72px, 1fr);
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.user-profile-screen .pf-status-card-slot { min-width: 0; display: grid; align-items: center; }
|
||||
.user-profile-screen .pf-status-card-slot--left { justify-items: end; }
|
||||
.user-profile-screen .pf-status-card-slot--right { justify-items: start; }
|
||||
.user-profile-screen .pf-status-card {
|
||||
width: min(100%, 106px);
|
||||
aspect-ratio: 1;
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--surface);
|
||||
overflow: hidden;
|
||||
}
|
||||
.user-profile-screen .pf-status-card--primary { border-color: color-mix(in srgb, var(--rel-family) 55%, var(--border-subtle)); }
|
||||
.user-profile-screen .pf-status-card--shine { border-color: color-mix(in srgb, var(--rel-shining) 55%, var(--border-subtle)); }
|
||||
.user-profile-screen .pf-status-card-title {
|
||||
min-height: 27px;
|
||||
padding: 7px 5px 5px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--text-primary);
|
||||
font-size: 11px;
|
||||
line-height: 1.1;
|
||||
font-weight: var(--weight-bold);
|
||||
}
|
||||
.user-profile-screen .pf-status-card-count {
|
||||
min-width: 0;
|
||||
padding: 3px 2px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
align-content: center;
|
||||
gap: 0;
|
||||
border: 0;
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
background: transparent;
|
||||
color: var(--text-primary);
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.user-profile-screen .pf-status-card-count:hover,
|
||||
.user-profile-screen .pf-status-card-count:active { background: var(--surface-selected); }
|
||||
.user-profile-screen .pf-status-card-count:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
||||
.user-profile-screen .pf-status-card-count strong { font-size: var(--text-md); line-height: 1.05; font-weight: var(--weight-bold); }
|
||||
.user-profile-screen .pf-status-card-count span { color: var(--text-secondary); font-size: 9px; line-height: 1.05; }
|
||||
.user-profile-screen .pf-avatar { position: relative; width: 96px; height: 96px; display: grid; place-items: center; justify-self: center; }
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar,
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-image { width: 96px; height: 96px; min-width: 96px; min-height: 96px; font-size: 36px; }
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-framed > .avatar-fallback,
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-framed > .avatar-photo { width: 100%; height: 100%; }
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-framed::after,
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-glow::before { content: none; }
|
||||
.user-profile-screen .pf-hero.is-shining .pf-avatar::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -5px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--rel-shining);
|
||||
box-shadow: 0 0 14px var(--rel-shining-glow);
|
||||
pointer-events: none;
|
||||
}
|
||||
.user-profile-screen .pf-name { margin: 0; color: var(--text-primary); font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-bold); overflow-wrap: anywhere; }
|
||||
.user-profile-screen .pf-name { margin: var(--space-2) 0 0; color: var(--text-primary); font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-bold); overflow-wrap: anywhere; }
|
||||
.user-profile-screen .pf-login { color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm); }
|
||||
|
||||
.user-profile-screen .pf-statuses { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); }
|
||||
.user-profile-screen .pf-status {
|
||||
min-height: 32px;
|
||||
padding: 0 12px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-pill);
|
||||
color: var(--text-secondary);
|
||||
background: var(--surface);
|
||||
font: inherit;
|
||||
font-size: var(--text-xs);
|
||||
cursor: pointer;
|
||||
@media (max-width: 360px) {
|
||||
.user-profile-screen .pf-identity { grid-template-columns: minmax(66px, 1fr) 88px minmax(66px, 1fr); gap: 7px; }
|
||||
.user-profile-screen .pf-avatar,
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar,
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-image { width: 88px; height: 88px; min-width: 88px; min-height: 88px; }
|
||||
.user-profile-screen .pf-status-card { width: min(100%, 96px); }
|
||||
.user-profile-screen .pf-status-card-title { font-size: 10px; }
|
||||
.user-profile-screen .pf-status-card-count span { font-size: 8px; }
|
||||
}
|
||||
.user-profile-screen .pf-status b { color: var(--text-primary); font-weight: var(--weight-bold); }
|
||||
.user-profile-screen .pf-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-control); }
|
||||
.user-profile-screen .pf-status.is-active { color: var(--text-primary); border-color: var(--border-control); }
|
||||
.user-profile-screen .pf-status.is-active .pf-status-dot { background: var(--rel-shining); box-shadow: 0 0 6px var(--rel-shining-glow); }
|
||||
.user-profile-screen .pf-status[data-profile-list='primary_received'].is-active .pf-status-dot { background: var(--rel-family); box-shadow: 0 0 6px var(--rel-family-glow); }
|
||||
.user-profile-screen .pf-status:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
|
||||
.user-profile-screen .pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
|
||||
.user-profile-screen .pf-stat { min-height: 64px; padding: var(--space-2) var(--space-1); display: grid; align-content: center; justify-items: center; gap: 2px; border: 0; border-left: 1px solid var(--border-subtle); background: transparent; color: var(--text-primary); font: inherit; cursor: pointer; }
|
||||
@@ -109,3 +139,35 @@
|
||||
.profiles-active-badge { padding: 2px 8px; border-radius: var(--radius-pill); color: var(--accent); background: var(--accent-soft); font-size: .6875rem; font-weight: var(--weight-bold); }
|
||||
.screen-content .profiles-row .profiles-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--radius-md); color: var(--text-secondary); background: transparent; font-size: 22px; cursor: pointer; }
|
||||
.screen-content .profiles-row .profiles-close:hover { background: var(--surface-selected); color: var(--danger); }
|
||||
|
||||
/* Экран управления отношениями с другим пользователем. */
|
||||
.relation-manage-screen { gap: var(--space-3); }
|
||||
.relation-manage-status:empty { display: none; }
|
||||
.relation-manage-body { gap: var(--space-3); }
|
||||
.relation-manage-body.is-busy { opacity: .72; pointer-events: none; }
|
||||
.relation-manage-card { gap: var(--space-3); }
|
||||
.relation-manage-card-head { display: grid; gap: 2px; }
|
||||
.relation-manage-card-head > strong { color: var(--text-primary); font-size: var(--text-md); }
|
||||
.relation-manage-card-head > span { color: var(--text-secondary); font-size: var(--text-xs); }
|
||||
.relation-manage-current { display: grid; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }
|
||||
.relation-manage-current-row { min-height: 48px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); border-top: 1px solid var(--border-subtle); }
|
||||
.relation-manage-current-row:first-child { border-top: 0; }
|
||||
.relation-manage-current-row > span { color: var(--text-secondary); font-size: var(--text-sm); }
|
||||
.relation-manage-current-row > strong { color: var(--text-primary); font-size: var(--text-sm); text-align: right; }
|
||||
.relation-manage-mutual { min-height: 52px; padding: 10px 12px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-selected); }
|
||||
.relation-manage-mutual-label { color: var(--text-secondary); }
|
||||
.relation-manage-mutual > strong { color: var(--text-primary); }
|
||||
.relation-manage-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
|
||||
.relation-manage-choice { width: 100%; min-width: 0; }
|
||||
.relation-manage-choice.is-active { background: var(--surface-selected); border-color: var(--accent); color: var(--accent); }
|
||||
.relation-manage-confirmations { display: grid; gap: 6px; }
|
||||
.relation-manage-confirmations:empty { display: none; }
|
||||
.relation-manage-confirmation { padding: 9px 11px; border-radius: var(--radius-md); background: var(--surface-selected); color: var(--text-primary); font-size: var(--text-sm); line-height: var(--leading-sm); }
|
||||
.relation-manage-confirm-btn { width: 100%; }
|
||||
.relation-manage-card--official { border-color: color-mix(in srgb, var(--rel-family) 45%, var(--border-subtle)); }
|
||||
.relation-manage-card--shine { border-color: color-mix(in srgb, var(--rel-shining) 45%, var(--border-subtle)); }
|
||||
|
||||
@media (max-width: 420px) {
|
||||
.relation-manage-choices { grid-template-columns: 1fr; }
|
||||
.relation-manage-current-row { align-items: flex-start; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user