397 lines
6.3 KiB
CSS
397 lines
6.3 KiB
CSS
/* 播放页评论区(含输入框、列表、内联回复) */
|
|
|
|
.play-comments {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.play-comments__head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
|
|
.play-comments__title {
|
|
margin: 0;
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
line-height: 30px;
|
|
}
|
|
|
|
.play-comments__count {
|
|
color: var(--text-dim);
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
}
|
|
|
|
.play-composer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.play-composer__avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
flex-shrink: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #232328;
|
|
border-radius: 999px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.play-composer__avatar-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.play-composer__field {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
height: 44px;
|
|
padding: 0 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.play-composer__input {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
height: 100%;
|
|
padding: 0;
|
|
border: 0;
|
|
outline: none;
|
|
background: transparent;
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 15px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.play-composer__input::placeholder {
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
.play-composer__count {
|
|
flex-shrink: 0;
|
|
color: var(--text-dim);
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.play-composer__login,
|
|
.play-composer__send {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.play-composer__send:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.play-comment-list {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.play-comment {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
padding: 16px 0;
|
|
border-bottom: 1px solid var(--line-soft);
|
|
}
|
|
|
|
.play-comment:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.play-comment__avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
flex-shrink: 0;
|
|
border-radius: 999px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.play-comment__body {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.play-comment__meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.play-comment__name {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.play-comment__time {
|
|
color: var(--text-dim);
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.play-comment__text {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
}
|
|
|
|
.play-comment--empty {
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.play-comment--empty .play-comment__text {
|
|
padding: 12px 0;
|
|
color: var(--muted, #888);
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.play-comment__reply {
|
|
padding: 10px 14px;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.play-comment__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
.play-comment__action {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--text-dim);
|
|
font: inherit;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.play-comment__action:disabled {
|
|
cursor: default;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.play-comment__action.is-active {
|
|
color: var(--brand, #e9c977);
|
|
}
|
|
|
|
.play-comment__action.is-active .icon {
|
|
opacity: 1;
|
|
filter: none;
|
|
}
|
|
|
|
.play-comment__action .icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.play-comment__inline {
|
|
width: 100%;
|
|
margin-top: 4px;
|
|
padding: 10px 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid var(--line-soft);
|
|
border-radius: var(--radius-sm);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.play-comment__inline-hint {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
color: var(--text-dim);
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.play-comment__inline-hint button {
|
|
flex-shrink: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--brand, #e9c977);
|
|
font: inherit;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.play-comment__inline-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.play-comment__inline-input {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
height: 36px;
|
|
padding: 0 12px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
outline: none;
|
|
}
|
|
|
|
.play-comment__inline-input::placeholder {
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
.play-comment__inline-input:focus,
|
|
.play-comment__inline-input:focus-visible {
|
|
border-color: rgba(233, 201, 119, 0.55);
|
|
}
|
|
|
|
.play-comment__inline-send {
|
|
flex-shrink: 0;
|
|
height: 36px;
|
|
padding: 0 14px;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
background: var(--brand, #e9c977);
|
|
color: #141417;
|
|
font: inherit;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
line-height: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.play-comment__inline-send:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.play-comments__more {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding-top: 12px;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
background: transparent;
|
|
border: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.play-comments__more[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.play-comments__more:disabled {
|
|
opacity: 0.6;
|
|
cursor: default;
|
|
}
|
|
|
|
.play-comments__more .icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.play-comments {
|
|
width: 100%;
|
|
padding: 0;
|
|
gap: 16px;
|
|
}
|
|
|
|
.play-comments__head {
|
|
gap: 14px;
|
|
flex-wrap: nowrap;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.play-comments__head::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.play-comments__title {
|
|
flex-shrink: 0;
|
|
font-size: 22px;
|
|
line-height: 30px;
|
|
}
|
|
|
|
.play-comments__count {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.play-composer {
|
|
width: 100%;
|
|
gap: 12px;
|
|
}
|
|
|
|
.play-composer__avatar {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.play-composer__field {
|
|
min-width: 0;
|
|
}
|
|
|
|
.play-composer__login,
|
|
.play-composer__send {
|
|
flex-shrink: 0;
|
|
height: 40px;
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.play-comment-list {
|
|
width: 100%;
|
|
}
|
|
|
|
.play-comments__more {
|
|
width: 100%;
|
|
}
|
|
}
|