fix(comments): denser zibll-like chrome and guest fields
Tighten comment form density, collapse guest name/email behind a toggle, and refine empty-state copy for closed/author-only views.
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
|
||||
.comment-form__inner {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
gap: 10px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
@@ -169,11 +169,74 @@
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-left: auto;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.comment-form__guest {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.comment-form__guest-toggle {
|
||||
background: none;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
color: var(--muted-color, #8b9198);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.comment-form__guest-toggle:hover,
|
||||
.comment-form__guest-toggle[aria-expanded="true"] {
|
||||
color: var(--focus-color, #f04494);
|
||||
}
|
||||
|
||||
.comment-form__guest-fields {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
transition: max-height 0.2s ease, opacity 0.15s ease;
|
||||
}
|
||||
|
||||
.comment-form__guest-fields.is-open,
|
||||
.comment-form__guest-fields:not([hidden]) {
|
||||
max-height: 48px;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.comment-form__guest-field {
|
||||
width: 120px;
|
||||
height: 32px;
|
||||
width: 110px;
|
||||
height: 30px;
|
||||
font-size: 12px;
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.comt-box .comt-textarea,
|
||||
.comt-box #comment {
|
||||
min-height: 72px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 8px;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.comt-ctrl {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.comment-form__submit {
|
||||
height: 30px;
|
||||
padding: 0 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user