feat(ui): perbaiki styling form komentar modern dan tambahkan social share bar
This commit is contained in:
@@ -1019,3 +1019,244 @@ body.edukarsa-popup-open { overflow: hidden; }
|
||||
display: block;
|
||||
stroke: #ffffff;
|
||||
}
|
||||
|
||||
/* 24. MODERN NATIVE COMMENT FORM & COMMENTS LIST */
|
||||
.comments-area {
|
||||
margin-top: 35px;
|
||||
padding: 35px;
|
||||
}
|
||||
.comments-title {
|
||||
font-size: 20px;
|
||||
font-weight: 800;
|
||||
color: var(--heading-color);
|
||||
margin-bottom: 24px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 2px solid #f1f5f9;
|
||||
}
|
||||
.comment-respond {
|
||||
margin-top: 25px;
|
||||
}
|
||||
.comment-reply-title {
|
||||
font-size: 20px;
|
||||
font-weight: 800;
|
||||
color: var(--heading-color);
|
||||
margin-bottom: 8px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.comment-reply-title small a {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #ef4444;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.comment-notes {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.comment-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
}
|
||||
.comment-form p {
|
||||
margin: 0;
|
||||
}
|
||||
.comment-form label {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: var(--heading-color);
|
||||
margin-bottom: 6px;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
.comment-form .required {
|
||||
color: #ef4444;
|
||||
margin-left: 2px;
|
||||
}
|
||||
.comment-form input[type="text"],
|
||||
.comment-form input[type="email"],
|
||||
.comment-form input[type="url"],
|
||||
.comment-form textarea {
|
||||
width: 100%;
|
||||
padding: 12px 16px;
|
||||
background-color: #f8fafc;
|
||||
border: 1.5px solid #e2e8f0;
|
||||
border-radius: 10px;
|
||||
font-family: inherit;
|
||||
font-size: 14px;
|
||||
color: var(--text-color);
|
||||
outline: none;
|
||||
transition: all 0.25s ease;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.comment-form textarea {
|
||||
min-height: 140px;
|
||||
resize: vertical;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.comment-form input[type="text"]:focus,
|
||||
.comment-form input[type="email"]:focus,
|
||||
.comment-form input[type="url"]:focus,
|
||||
.comment-form textarea:focus {
|
||||
background-color: #ffffff;
|
||||
border-color: var(--secondary-color);
|
||||
box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
|
||||
}
|
||||
.comment-form-cookies-consent {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.comment-form-cookies-consent input[type="checkbox"] {
|
||||
margin-top: 4px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
accent-color: var(--primary-color);
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.comment-form-cookies-consent label {
|
||||
display: inline;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.5;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.form-submit {
|
||||
margin-top: 8px !important;
|
||||
}
|
||||
.comment-form .submit,
|
||||
#submit {
|
||||
display: inline-block;
|
||||
background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
|
||||
color: #ffffff !important;
|
||||
padding: 12px 34px;
|
||||
border-radius: 50px;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
letter-spacing: 0.3px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 14px rgba(11, 74, 142, 0.25);
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
.comment-form .submit:hover,
|
||||
#submit:hover {
|
||||
background: var(--primary-color);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 20px rgba(11, 74, 142, 0.35);
|
||||
}
|
||||
.comment-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0 0 30px;
|
||||
}
|
||||
.comment-list .comment {
|
||||
margin-bottom: 18px;
|
||||
padding: 20px 22px;
|
||||
background: #f8fafc;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #e2e8f0;
|
||||
}
|
||||
.comment-list .children {
|
||||
list-style: none;
|
||||
padding-left: 24px;
|
||||
margin-top: 15px;
|
||||
border-left: 2px solid #cbd5e1;
|
||||
}
|
||||
.comment-author {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--heading-color);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.comment-author img.avatar {
|
||||
border-radius: 50%;
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
}
|
||||
.comment-metadata {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.comment-reply-link {
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
color: var(--secondary-color);
|
||||
padding: 4px 12px;
|
||||
background: #e0f2fe;
|
||||
border-radius: 20px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.comment-reply-link:hover {
|
||||
background: var(--primary-color);
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
/* 25. MODERN SOCIAL SHARE BOX */
|
||||
.edukarsa-share-box {
|
||||
margin-top: 35px;
|
||||
padding: 20px 24px;
|
||||
background: #f8fafc;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.share-box-title {
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
color: var(--heading-color);
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
.share-btn-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.share-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
padding: 8px 16px;
|
||||
border-radius: 50px;
|
||||
font-size: 12.5px;
|
||||
font-weight: 700;
|
||||
color: #ffffff !important;
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition: all 0.25s ease;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
.share-pill:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
|
||||
}
|
||||
.share-pill svg {
|
||||
display: block;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.share-pill-wa { background-color: #25d366; }
|
||||
.share-pill-wa:hover { background-color: #1ebc57; }
|
||||
.share-pill-fb { background-color: #1877f2; }
|
||||
.share-pill-fb:hover { background-color: #0c63d4; }
|
||||
.share-pill-tw { background-color: #0f1419; }
|
||||
.share-pill-tw:hover { background-color: #272c30; }
|
||||
.share-pill-copy { background-color: #475569; }
|
||||
.share-pill-copy:hover { background-color: #334155; }
|
||||
|
||||
Reference in New Issue
Block a user