feat(single-sidebar-seo): custom dashboard sidebar, intra & inter-post paging, dan native schema seo

This commit is contained in:
Mas Budi Kusuma
2026-09-15 23:59:21 +07:00
parent 0d680b2fa5
commit ff3d851f1e
6 changed files with 741 additions and 136 deletions
+261
View File
@@ -450,3 +450,264 @@ body.a11y-underline-links a { text-decoration: underline !important; text-underl
50% { transform: scale(1.04); }
100% { transform: scale(1); }
}
/* 19. BREADCRUMBS & SINGLE ARTICLE UI */
.edukarsa-breadcrumbs {
font-size: 13px;
color: var(--text-muted);
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.edukarsa-breadcrumbs a { color: var(--primary-color); font-weight: 600; }
.edukarsa-breadcrumbs a:hover { text-decoration: underline; }
.bc-sep { color: #cbd5e1; font-weight: bold; }
.bc-current { color: var(--heading-color); font-weight: 600; }
.single-article-card { padding: 40px; margin-bottom: 30px; }
.single-article-title {
font-size: 32px;
font-weight: 800;
color: var(--heading-color);
margin: 10px 0 15px;
line-height: 1.35;
letter-spacing: -0.5px;
}
.single-meta-bar {
display: flex;
gap: 20px;
flex-wrap: wrap;
font-size: 13px;
color: var(--text-muted);
padding-bottom: 20px;
margin-bottom: 25px;
border-bottom: 1px solid #f1f5f9;
}
.single-featured-image {
margin-bottom: 30px;
border-radius: var(--radius);
overflow: hidden;
background: #f8fafc;
}
.single-featured-image img { width: 100%; height: auto; display: block; }
.img-caption {
padding: 10px 15px;
font-size: 12px;
color: var(--text-muted);
background: #f1f5f9;
font-style: italic;
}
/* INTRA-POST PAGINATION (<!--nextpage-->) */
.intra-post-pagination {
margin-top: 35px;
padding-top: 20px;
border-top: 1px solid #f1f5f9;
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.page-links-title { font-weight: 700; font-size: 14px; color: var(--heading-color); }
.intra-post-pagination a .page-number-box {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px 14px;
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 6px;
font-size: 13px;
font-weight: 700;
color: var(--primary-color);
transition: all 0.2s ease;
}
.intra-post-pagination a:hover .page-number-box {
background: var(--primary-color);
color: #ffffff;
border-color: var(--primary-color);
}
.intra-post-pagination > .page-number-box {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px 14px;
background: var(--primary-color);
border: 1px solid var(--primary-color);
border-radius: 6px;
font-size: 13px;
font-weight: 700;
color: #ffffff;
}
/* FOOTER ARTIKEL & SHARE BAR */
.single-article-footer {
margin-top: 35px;
padding-top: 25px;
border-top: 1px solid #f1f5f9;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 20px;
}
.single-tags-list { font-size: 13px; }
.single-tags-list a {
display: inline-block;
padding: 4px 12px;
background: #f1f5f9;
color: var(--text-color);
border-radius: 20px;
margin: 0 4px 6px 0;
font-size: 12px;
font-weight: 600;
}
.single-tags-list a:hover { background: var(--primary-color); color: #ffffff; }
.single-share-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-size: 13px; font-weight: 700; color: var(--heading-color); margin-right: 4px; }
.share-btn {
padding: 6px 14px;
border-radius: 20px;
font-size: 12px;
font-weight: 700;
border: none;
cursor: pointer;
text-decoration: none;
transition: all 0.2s ease;
color: #ffffff !important;
}
.share-wa { background: #25d366; }
.share-wa:hover { background: #1ebc57; }
.share-fb { background: #1877f2; }
.share-fb:hover { background: #0c63d4; }
.share-tw { background: #0f1419; }
.share-tw:hover { background: #272c30; }
.share-copy { background: #475569; color: #ffffff; }
.share-copy:hover { background: #334155; }
/* INTER-POST NAVIGATION (SEBELUMNYA & SELANJUTNYA) */
.inter-post-nav {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-top: 25px;
}
.nav-box { padding: 22px 25px; transition: all 0.25s ease; }
.nav-box.disabled { opacity: 0.6; pointer-events: none; }
.nav-box-link { display: block; text-decoration: none; }
.nav-direction {
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.8px;
color: var(--secondary-color);
display: block;
margin-bottom: 6px;
}
.nav-post-title {
font-size: 15px;
font-weight: 700;
color: var(--heading-color);
margin: 0;
line-height: 1.45;
transition: color 0.2s ease;
}
.nav-box:hover .nav-post-title { color: var(--primary-color); }
.text-right { text-align: right; }
/* 20. KOMPONEN SIDEBAR NATIVE TERINTEGRASI */
.sidebar-search-form { position: relative; }
.sidebar-search-wrapper { display: flex; position: relative; }
.sidebar-search-input {
width: 100%;
padding: 12px 45px 12px 16px;
border: 1px solid #cbd5e1;
border-radius: 8px;
font-size: 14px;
outline: none;
font-family: inherit;
transition: border-color 0.2s;
}
.sidebar-search-input:focus { border-color: var(--primary-color); }
.sidebar-search-btn {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
background: transparent;
border: none;
font-size: 16px;
cursor: pointer;
padding: 6px;
}
.sidebar-cta-box {
background: linear-gradient(135deg, var(--primary-color), var(--heading-color));
color: #ffffff;
padding: 30px 24px;
}
.sidebar-cta-badge {
display: inline-block;
padding: 3px 12px;
background: rgba(255,255,255,0.18);
border-radius: 20px;
font-size: 11px;
font-weight: 800;
letter-spacing: 0.8px;
text-transform: uppercase;
margin-bottom: 12px;
}
.sidebar-cta-title { font-size: 19px; font-weight: 800; color: #ffffff; margin-bottom: 10px; line-height: 1.35; }
.sidebar-cta-desc { font-size: 13px; opacity: 0.9; margin-bottom: 20px; line-height: 1.6; }
.sidebar-cta-btn { display: inline-block; padding: 10px 26px; font-size: 14px; font-weight: 800; }
.sidebar-recent-list { display: flex; flex-direction: column; gap: 16px; }
.sidebar-recent-item { display: flex; gap: 14px; align-items: center; }
.sidebar-recent-thumb { width: 68px; height: 68px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.sidebar-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent-date { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.sidebar-recent-title { font-size: 14px; font-weight: 700; margin: 0; line-height: 1.4; }
.sidebar-recent-title a { color: var(--heading-color); }
.sidebar-recent-title a:hover { color: var(--primary-color); }
.sidebar-category-list { list-style: none; padding: 0; margin: 0; }
.sidebar-category-list li { margin-bottom: 8px; }
.sidebar-cat-link {
display: flex;
justify-content: space-between;
align-items: center;
padding: 9px 14px;
background: #f8fafc;
border: 1px solid #f1f5f9;
border-radius: 6px;
font-size: 13px;
font-weight: 600;
color: var(--text-color);
transition: all 0.2s ease;
}
.sidebar-cat-link:hover {
background: var(--primary-color);
color: #ffffff;
border-color: var(--primary-color);
}
.sidebar-cat-count {
padding: 2px 8px;
background: rgba(0,0,0,0.06);
border-radius: 12px;
font-size: 11px;
font-weight: 800;
}
.sidebar-cat-link:hover .sidebar-cat-count {
background: rgba(255,255,255,0.25);
color: #ffffff;
}
@media (max-width: 768px) {
.inter-post-nav { grid-template-columns: 1fr; }
.text-right { text-align: left; }
.single-article-card { padding: 25px 20px; }
.single-article-title { font-size: 24px; }
}