2026-04-29 00:14:49 +08:00

467 lines
7.6 KiB
CSS

.host-list-page {
overflow-x: hidden;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.host-list-page[data-loading="true"] .title-bar,
.host-list-page[data-loading="true"] .content,
.host-list-page[data-loading="true"] .home-indicator {
visibility: hidden;
}
.host-list-content {
gap: 12px;
padding-top: 8px;
}
.team-overview-card {
display: grid;
grid-template-columns: 54px minmax(0, 1fr) auto;
align-items: center;
gap: 14px;
min-height: 96px;
padding: 17px 18px;
}
.team-overview-icon {
display: flex;
align-items: center;
justify-content: center;
width: 54px;
height: 54px;
border-radius: 50%;
background: #e7fbf8;
color: #12a99c;
}
.team-overview-icon svg {
width: 30px;
height: 30px;
}
.team-overview-icon path {
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2.35;
}
.team-overview-copy {
min-width: 0;
}
.team-overview-title {
overflow: hidden;
color: #24282e;
font-size: 18px;
font-weight: 950;
line-height: 1.15;
text-overflow: ellipsis;
white-space: nowrap;
}
.team-overview-text {
display: -webkit-box;
margin-top: 6px;
overflow: hidden;
color: #8f9196;
font-size: 13px;
font-weight: 800;
line-height: 1.25;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.team-overview-count {
display: grid;
justify-items: end;
gap: 4px;
color: #8f9196;
font-size: 11px;
font-weight: 850;
line-height: 1.1;
text-transform: uppercase;
}
.team-overview-count strong {
color: #24282e;
font-size: 24px;
font-weight: 950;
line-height: 1;
}
.team-search-card {
padding: 12px;
}
.team-search-form {
display: grid;
grid-template-columns: minmax(0, 1fr) auto auto;
align-items: center;
gap: 8px;
}
.team-search-control {
display: flex;
align-items: center;
min-width: 0;
height: 42px;
padding: 0 12px;
border: 1px solid #edf0f1;
border-radius: 8px;
background: #f8faf9;
}
.team-search-control svg {
width: 20px;
height: 20px;
flex: 0 0 20px;
margin-right: 9px;
color: #7f858b;
}
.team-search-control path {
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2.2;
}
.team-search-control input {
width: 100%;
min-width: 0;
border: 0;
outline: 0;
background: transparent;
color: #25282e;
font: inherit;
font-size: 14px;
font-weight: 800;
}
.team-search-control input::placeholder {
color: #a7aab0;
}
.team-search-button,
.team-cancel-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 64px;
height: 42px;
padding: 0 12px;
border-radius: 8px;
font-size: 13px;
font-weight: 950;
white-space: nowrap;
}
.team-search-button {
background: var(--green);
color: #fff;
box-shadow: 0 6px 14px rgba(37, 216, 120, 0.18);
}
.team-cancel-button {
background: #f2f4f5;
color: #4d525a;
}
.team-member-list {
display: grid;
gap: 10px;
}
.host-member-card {
display: grid;
grid-template-columns: 28px minmax(0, 1fr) auto 38px;
align-items: center;
gap: 10px;
min-height: 82px;
padding: 13px 12px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.96);
box-shadow: var(--shadow);
}
.host-member-card.is-self {
grid-template-columns: 28px minmax(0, 1fr) auto;
}
.member-index {
color: #30343a;
font-size: 16px;
font-weight: 950;
text-align: center;
}
.member-user {
display: flex;
align-items: center;
min-width: 0;
}
.member-avatar {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
flex: 0 0 48px;
overflow: hidden;
border-radius: 50%;
background: linear-gradient(145deg, #55f2df 0%, #d9fff5 100%);
color: #13745f;
font-size: 19px;
font-weight: 950;
}
.member-avatar img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.member-copy {
min-width: 0;
margin-left: 11px;
}
.member-name {
overflow: hidden;
color: #24282e;
font-size: 15px;
font-weight: 950;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.member-account {
margin-top: 5px;
overflow: hidden;
color: #8f9196;
font-size: 12px;
font-weight: 800;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.member-stats {
display: grid;
grid-template-columns: repeat(2, minmax(46px, auto));
gap: 8px;
}
.member-stat {
display: grid;
justify-items: center;
gap: 4px;
min-width: 0;
}
.member-stat-icon {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 50%;
background: #eefbf8;
color: #17b99a;
}
.member-stat-icon svg {
width: 16px;
height: 16px;
}
.member-stat-icon path {
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2.3;
}
.member-stat strong {
max-width: 64px;
overflow: hidden;
color: #24282e;
font-size: 12px;
font-weight: 950;
line-height: 1.15;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
}
.member-remove-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 50%;
background: #f6f7f7;
color: #70747b;
}
.member-remove-button svg {
width: 20px;
height: 20px;
}
.member-remove-button path {
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2.15;
}
.team-list-status {
display: flex;
align-items: center;
justify-content: center;
min-height: 54px;
color: #8f9196;
font-size: 13px;
font-weight: 850;
text-align: center;
}
.team-list-status:empty {
display: none;
}
.team-load-sentinel {
height: 1px;
}
.team-confirm-modal[hidden] {
display: none;
}
.team-confirm-modal {
position: fixed;
z-index: 28;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 18px;
}
.team-confirm-backdrop {
position: absolute;
inset: 0;
background: rgba(15, 21, 28, 0.38);
}
.team-confirm-dialog {
position: relative;
width: min(360px, 100%);
padding: 20px 18px 18px;
border-radius: 14px;
background: #fff;
box-shadow: 0 18px 44px rgba(23, 31, 42, 0.2);
}
.team-confirm-dialog h2 {
margin: 0;
color: #24282e;
font-size: 19px;
font-weight: 950;
line-height: 1.2;
text-align: center;
}
.team-confirm-dialog p {
margin: 12px 0 0;
color: #7d8188;
font-size: 14px;
font-weight: 800;
line-height: 1.45;
text-align: center;
}
.team-confirm-actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
margin-top: 18px;
}
.team-confirm-cancel,
.team-confirm-submit {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
border-radius: 8px;
font-size: 14px;
font-weight: 950;
}
.team-confirm-cancel {
border: 1px solid #e7eaec;
background: #fff;
color: #555a62;
}
.team-confirm-submit {
background: var(--green);
color: #fff;
}
.team-confirm-submit:disabled {
opacity: 0.62;
}
html[dir="rtl"] .team-search-control svg {
margin-right: 0;
margin-left: 9px;
}
html[dir="rtl"] .member-copy {
margin-right: 11px;
margin-left: 0;
}
@media (max-width: 370px) {
.team-overview-card {
grid-template-columns: 48px minmax(0, 1fr);
}
.team-overview-count {
grid-column: 2;
justify-self: start;
}
.team-search-form {
grid-template-columns: minmax(0, 1fr) auto;
}
.team-cancel-button {
grid-column: 2;
}
.host-member-card {
grid-template-columns: 26px minmax(0, 1fr) 36px;
}
.member-stats {
grid-column: 2 / 4;
justify-content: start;
}
}