hesabixWpTheme/assets/css/bbpress.css

2020 lines
44 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* استایل bbPress — سازگار با Hesabix2 (RTL)
* جایگزین bbp-default؛ ریست floatهای پیش‌فرض و چیدمان گرید/فلکس
*/
/* ─── لایهٔ قالب ─── */
.site-main.hesabix2-bbp-main {
max-width: none;
margin: 0;
padding: 0;
}
.hesabix2-bbp-wrap {
width: 100%;
}
.hesabix2-bbp-content {
min-width: 0;
margin-top: 0.75rem;
}
/* ─── هدر فشرده (shell) ─── */
.hesabix2-bbp-shell {
margin-bottom: 0.75rem;
border-radius: var(--radius-lg);
overflow: hidden;
}
.hesabix2-bbp-shell__inner {
position: relative;
z-index: 1;
padding: 0.75rem 1rem;
}
@media (min-width: 640px) {
.hesabix2-bbp-shell__inner {
padding: 0.875rem 1.125rem 1rem;
}
}
.hesabix2-bbp-shell__badge {
margin-bottom: 0.35rem;
}
.hesabix2-bbp-breadcrumb {
margin-bottom: 0.5rem;
}
.hesabix2-bbp-breadcrumb__list {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.25rem 0.35rem;
margin: 0;
padding: 0;
list-style: none;
font-size: 0.75rem;
color: var(--slate-500);
}
.hesabix2-bbp-breadcrumb__item {
display: inline-flex;
align-items: center;
}
.hesabix2-bbp-breadcrumb__item:not(:last-child)::after {
content: "›";
margin-inline-start: 0.35rem;
color: var(--slate-400);
}
.hesabix2-bbp-breadcrumb__item a {
color: var(--brand-600);
text-decoration: none;
}
.hesabix2-bbp-breadcrumb__item a:hover {
text-decoration: underline;
}
.hesabix2-bbp-breadcrumb__item span[aria-current="page"] {
color: var(--slate-600);
font-weight: 500;
}
.hesabix2-bbp-shell__head {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
gap: 0.5rem 1rem;
}
.hesabix2-bbp-shell__title {
margin: 0;
font-size: clamp(1.125rem, 2.2vw, 1.5rem);
font-weight: 800;
color: var(--slate-800);
line-height: 1.3;
letter-spacing: -0.02em;
}
.hesabix2-bbp-shell__subtitle {
margin: 0.25rem 0 0;
font-size: 0.8125rem;
color: var(--slate-600);
line-height: 1.45;
max-width: 36rem;
}
.hesabix2-bbp-shell__cta {
flex-shrink: 0;
align-self: center;
}
.hesabix2-bbp-shell__cta-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.45rem 0.9rem;
font-size: 0.8125rem;
font-weight: 600;
color: var(--brand-600) !important;
text-decoration: none;
background: #fff;
border: 1px solid var(--slate-200);
border-radius: var(--radius);
white-space: nowrap;
transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hesabix2-bbp-shell__cta-btn:hover {
border-color: var(--brand-400);
background: var(--light-50);
}
.hesabix2-bbp-shell__cta-btn--primary {
background: var(--brand-500);
border-color: var(--brand-500);
color: #fff !important;
box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}
.hesabix2-bbp-shell__cta-btn--primary:hover {
background: var(--brand-600);
border-color: var(--brand-600);
color: #fff !important;
}
.hesabix2-bbp-shell__bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem 0.75rem;
margin-top: 0.65rem;
padding-top: 0.65rem;
border-top: 1px solid rgba(14, 165, 233, 0.1);
}
.hesabix2-bbp-shell__nav {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
flex: 1 1 auto;
min-width: 0;
}
.hesabix2-bbp-shell__chip {
display: inline-flex;
align-items: center;
padding: 0.3rem 0.65rem;
font-size: 0.75rem;
font-weight: 600;
color: var(--slate-600);
background: rgba(255, 255, 255, 0.85);
border: 1px solid var(--slate-200);
border-radius: 999px;
text-decoration: none;
transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hesabix2-bbp-shell__chip:hover {
border-color: var(--brand-400);
color: var(--brand-600);
background: #fff;
}
.hesabix2-bbp-shell__chip--active {
background: var(--brand-500);
border-color: var(--brand-500);
color: #fff;
}
.hesabix2-bbp-shell__chip--active:hover {
background: var(--brand-600);
border-color: var(--brand-600);
color: #fff;
}
/* جستجو داخل shell */
.hesabix2-bbp-shell .hesabix2-bbp-search-form--shell {
flex: 1 1 14rem;
min-width: min(100%, 12rem);
max-width: 22rem;
margin: 0;
}
.hesabix2-bbp-search-form--compact .hesabix2-bbp-search-form__row {
gap: 0.35rem;
}
.hesabix2-bbp-search-form--compact .hesabix2-bbp-search-form__input,
.hesabix2-bbp-search-form--compact #bbp_search {
padding: 0.45rem 0.75rem;
font-size: 0.8125rem;
border-radius: 999px;
}
.hesabix2-bbp-search-form--compact .hesabix2-bbp-search-form__submit {
padding: 0.45rem 0.65rem;
min-width: 2.25rem;
border-radius: 999px;
}
.hesabix2-bbp-search-form--compact .hesabix2-bbp-search-form__icon {
display: block;
}
.hesabix2-bbp-search-form__icon {
display: none;
}
.hesabix2-bbp-search-form--compact .hesabix2-bbp-search-form__submit-text {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* متا و تعاملات فشرده */
.hesabix2-bbp-meta {
margin: 0 0 0.65rem;
padding: 0;
font-size: 0.75rem;
color: var(--slate-500);
line-height: 1.5;
}
.hesabix2-bbp-engagement {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.35rem;
margin-bottom: 0.5rem;
}
.hesabix2-bbp-engagement #subscription-toggle,
.hesabix2-bbp-engagement #favorite-toggle {
margin: 0;
}
/* ─── بلوک متا موضوع (اشتراک، برچسب، آمار، شمارنده) ─── */
.hesabix2-bbp-topic-facts {
margin: 0 0 0.65rem;
border: 1px solid var(--slate-100);
border-radius: var(--radius);
background: var(--slate-50);
overflow: hidden;
}
.hesabix2-bbp-topic-facts__main {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.35rem 0.6rem;
padding: 0.4rem 0.65rem;
}
.hesabix2-bbp-topic-facts__main .hesabix2-bbp-engagement {
margin: 0;
flex: 0 0 auto;
}
.hesabix2-bbp-topic-facts__main .hesabix2-bbp-meta {
margin: 0;
flex: 1 1 12rem;
min-width: min(100%, 10rem);
font-size: 0.6875rem;
color: var(--slate-500);
line-height: 1.45;
}
.hesabix2-bbp-topic-facts__main .hesabix2-bbp-meta a {
color: var(--brand-600);
text-decoration: none;
font-weight: 500;
}
.hesabix2-bbp-topic-facts__main .hesabix2-bbp-meta a:hover {
text-decoration: underline;
}
.hesabix2-bbp-topic-meta__tags {
display: inline-flex;
flex-wrap: wrap;
align-items: center;
gap: 0.2rem 0.35rem;
margin: 0;
font-size: 0.6875rem;
line-height: 1.4;
}
.hesabix2-bbp-topic-meta__tags p {
margin: 0;
display: inline;
}
.hesabix2-bbp-topic-meta__label {
font-weight: 600;
color: var(--slate-500);
white-space: nowrap;
}
.hesabix2-bbp-topic-facts__main .bbp-topic-tags a {
margin: 0;
padding: 0.12rem 0.45rem;
font-size: 0.6875rem;
line-height: 1.3;
}
.hesabix2-bbp-topic-facts__pager {
padding: 0.3rem 0.65rem;
border-top: 1px solid var(--slate-100);
background: rgba(255, 255, 255, 0.55);
}
.hesabix2-bbp-topic-facts__pager .hesabix2-bbp-pagination--compact {
margin: 0;
padding: 0;
gap: 0.35rem;
}
.hesabix2-bbp-topic-facts__pager .bbp-pagination-count {
font-size: 0.6875rem;
color: var(--slate-400);
}
.hesabix2-bbp-pagination--compact {
margin: 0 0 0.5rem;
gap: 0.35rem 0.5rem;
}
.hesabix2-bbp-pagination--compact .bbp-pagination-count {
font-size: 0.6875rem;
color: var(--slate-400);
}
.hesabix2-bbp-pagination--count-only {
justify-content: flex-end;
}
.hesabix2-bbp-pagination--count-only .bbp-pagination-links {
display: none;
}
.hesabix2-bbp-pagination--compact .bbp-pagination-links .page-numbers {
min-width: 1.75rem;
height: 1.75rem;
font-size: 0.75rem;
}
.hesabix2-bbp-shell:has(.hesabix2-bbp-shell__cta) + .hesabix2-bbp-content .hesabix2-bbp-auth-prompt {
display: none;
}
.hesabix2-bbp-shell:has(.hesabix2-bbp-shell__cta) + .hesabix2-bbp-content #no-topic- .bbp-template-notice,
.hesabix2-bbp-shell:has(.hesabix2-bbp-shell__cta) + .hesabix2-bbp-content #no-reply- .bbp-template-notice {
display: none;
}
.hesabix2-bbp-content .bbp-forum-front > .entry-title,
.hesabix2-bbp-content #forum-front > .entry-title,
.hesabix2-bbp-content .bbp-topic-archive > .entry-title {
display: none;
}
/* ─── ریست پایه (بدون CSS پیش‌فرض bbPress) ─── */
#bbpress-forums,
#bbpress-forums .bbpress-wrapper {
font-family: inherit;
color: var(--slate-800);
direction: rtl;
text-align: right;
clear: both;
box-sizing: border-box;
}
#bbpress-forums *,
#bbpress-forums *::before,
#bbpress-forums *::after {
box-sizing: border-box;
}
#bbpress-forums .bbpress-wrapper {
margin: 0;
}
#bbpress-forums ul,
#bbpress-forums.bbpress-wrapper ul {
list-style: none;
margin: 0;
padding: 0;
background: none;
}
#bbpress-forums li {
margin: 0;
list-style: none;
background: none;
}
#bbpress-forums div,
#bbpress-forums li,
#bbpress-forums ul {
float: none;
width: auto;
max-width: 100%;
}
#bbpress-forums a {
box-shadow: none;
}
#bbpress-forums .bbp-breadcrumb,
.hesabix2-bbp-content .bbp-breadcrumb {
display: none !important;
}
/* ─── جستجو (خارج از shell) ─── */
.hesabix2-bbp-content > #bbpress-forums > .bbp-search-form:first-child,
.hesabix2-bbp-search-form:not(.hesabix2-bbp-search-form--compact) {
margin-bottom: 1rem;
}
.hesabix2-bbp-search-form__row,
#bbpress-forums .bbp-search-form form {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: stretch;
}
.hesabix2-bbp-search-form__input,
#bbpress-forums #bbp_search {
flex: 1 1 12rem;
min-width: 0;
padding: 0.625rem 1rem;
border: 1px solid var(--slate-200);
border-radius: var(--radius);
font-size: 0.9375rem;
background: #fff;
}
.hesabix2-bbp-search-form__input:focus,
#bbpress-forums #bbp_search:focus {
outline: none;
border-color: var(--brand-400);
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
/* ─── جداول انجمن / موضوع (لیست) ─── */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-search-results {
margin: 0 0 1.5rem;
padding: 0;
border: 1px solid var(--slate-200);
border-radius: var(--radius-lg);
overflow: hidden;
background: #fff;
box-shadow: var(--shadow-sm);
clear: both;
}
#bbpress-forums ul.bbp-forums > li.bbp-footer,
#bbpress-forums ul.bbp-topics > li.bbp-footer,
#bbpress-forums ul.bbp-replies > li.bbp-footer,
#bbpress-forums ul.bbp-lead-topic > li.bbp-footer,
#bbpress-forums ul.bbp-search-results > li.bbp-footer {
display: none;
}
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
background: var(--slate-50);
clear: both;
}
#bbpress-forums li.bbp-header {
font-size: 0.8125rem;
font-weight: 600;
color: var(--slate-600);
border-bottom: 1px solid var(--slate-200);
padding: 0;
}
#bbpress-forums li.bbp-header .forum-titles,
#bbpress-forums li.bbp-header .topic-titles,
#bbpress-forums li.bbp-body > ul.forum,
#bbpress-forums li.bbp-body > ul.topic {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(3.5rem, auto) minmax(3.5rem, auto) minmax(6.5rem, 1fr);
gap: 0.5rem 1rem;
align-items: start;
margin: 0;
padding: 0.75rem 1rem;
list-style: none;
}
#bbpress-forums li.bbp-body > ul.forum,
#bbpress-forums li.bbp-body > ul.topic {
border-bottom: 1px solid var(--slate-100);
transition: background 0.15s;
}
#bbpress-forums li.bbp-body > ul.forum:last-child,
#bbpress-forums li.bbp-body > ul.topic:last-child {
border-bottom: none;
}
#bbpress-forums li.bbp-body > ul.forum:hover,
#bbpress-forums li.bbp-body > ul.topic:hover {
background: var(--light-50);
}
#bbpress-forums .bbp-forum-title a,
#bbpress-forums .bbp-topic-permalink {
color: var(--slate-800);
font-weight: 600;
text-decoration: none;
line-height: 1.4;
}
#bbpress-forums .bbp-forum-title a:hover,
#bbpress-forums .bbp-topic-permalink:hover {
color: var(--brand-600);
}
#bbpress-forums .bbp-forum-description,
#bbpress-forums .bbp-topic-meta {
font-size: 0.8125rem;
color: var(--slate-500);
margin-top: 0.25rem;
line-height: 1.5;
}
#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-topic-voice-count,
#bbpress-forums .bbp-topic-reply-count {
font-size: 0.875rem;
color: var(--slate-600);
text-align: center;
white-space: nowrap;
align-self: center;
}
#bbpress-forums .bbp-forum-freshness,
#bbpress-forums .bbp-topic-freshness {
font-size: 0.8125rem;
color: var(--slate-500);
align-self: center;
}
#bbpress-forums .bbp-forum-freshness a,
#bbpress-forums .bbp-topic-freshness a {
color: var(--brand-600);
text-decoration: none;
}
#bbpress-forums .bbp-forums-list {
margin: 0.5rem 0 0;
padding: 0;
padding-inline-start: 0.75rem;
list-style: none;
border-inline-start: 2px solid var(--light-200);
}
#bbpress-forums .bbp-forums-list .bbp-forum a {
font-size: 0.8125rem;
color: var(--brand-600);
}
#bbpress-forums .bbp-row-actions {
display: inline-block;
margin-inline-end: 0.35rem;
}
/* ─── کارت پاسخ / موضوع ─── */
#bbpress-forums .hesabix2-bbp-post {
border-bottom: 1px solid var(--slate-100);
background: #fff;
transition: box-shadow 0.2s ease;
}
#bbpress-forums ul.bbp-replies li.bbp-body > .hesabix2-bbp-post,
#bbpress-forums ul.bbp-lead-topic li.bbp-body > .hesabix2-bbp-post {
margin: 0.75rem;
border: 1px solid var(--slate-200);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-sm);
}
#bbpress-forums ul.bbp-replies li.bbp-body > .hesabix2-bbp-post:last-child,
#bbpress-forums ul.bbp-lead-topic li.bbp-body > .hesabix2-bbp-post {
margin-bottom: 0.75rem;
}
#bbpress-forums .hesabix2-bbp-post--from-bale,
#bbpress-forums .hesabix2-bbp-post--from-messenger {
border-color: rgba(14, 165, 233, 0.22);
box-shadow: 0 1px 3px rgba(14, 165, 233, 0.08);
}
#bbpress-forums .hesabix2-bbp-post--from-bale > div.bbp-reply-header,
#bbpress-forums .hesabix2-bbp-post--from-bale > div.bbp-topic-header,
#bbpress-forums .hesabix2-bbp-post--from-messenger > div.bbp-reply-header,
#bbpress-forums .hesabix2-bbp-post--from-messenger > div.bbp-topic-header {
background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.02));
}
#bbpress-forums .hesabix2-bbp-post--from-telegram {
border-color: rgba(37, 150, 190, 0.28);
box-shadow: 0 1px 3px rgba(37, 150, 190, 0.1);
}
#bbpress-forums .hesabix2-bbp-post--from-telegram > div.bbp-reply-header,
#bbpress-forums .hesabix2-bbp-post--from-telegram > div.bbp-topic-header {
background: linear-gradient(135deg, rgba(37, 150, 190, 0.1), rgba(37, 150, 190, 0.02));
}
#bbpress-forums .hesabix2-bbp-bale-card--telegram .hesabix2-bbp-bale-meta__summary {
color: #1a7ea3;
}
#bbpress-forums .hesabix2-bbp-post--search .bbp-forum-content {
padding: 1rem;
font-size: 0.9375rem;
line-height: 1.7;
color: var(--slate-700);
}
#bbpress-forums .hesabix2-bbp-search-hit-title {
margin: 0.35rem 0 0;
font-size: 0.9375rem;
font-weight: 600;
color: var(--slate-800);
line-height: 1.45;
}
#bbpress-forums .hesabix2-bbp-search-hit-title a {
color: var(--brand-600);
text-decoration: none;
}
#bbpress-forums .hesabix2-bbp-search-hit-title a:hover {
text-decoration: underline;
}
#bbpress-forums .bbp-topic-title-meta,
#bbpress-forums .bbp-forum-header .bbp-meta {
font-size: 0.8125rem;
color: var(--slate-500);
}
/* جفت هدر+محتوا بدون wrapper (پاسخ اول موضوع وقتی lead خاموش است) */
#bbpress-forums ul.bbp-replies li.bbp-body > div.bbp-reply-header {
border: 1px solid var(--slate-100);
border-bottom: none;
border-radius: var(--radius) var(--radius) 0 0;
margin-top: 0.5rem;
}
#bbpress-forums ul.bbp-replies li.bbp-body > div.bbp-reply-header:first-child {
margin-top: 0;
}
#bbpress-forums ul.bbp-replies li.bbp-body > div.bbp-reply-header + div {
border: 1px solid var(--slate-100);
border-top: none;
border-radius: 0 0 var(--radius) var(--radius);
margin-bottom: 0.5rem;
}
#bbpress-forums .hesabix2-bbp-post:last-child {
border-bottom: none;
}
#bbpress-forums div.bbp-reply-header,
#bbpress-forums div.bbp-topic-header {
padding: 0.5rem 1rem;
background: var(--slate-50);
border-bottom: 1px solid var(--slate-100);
font-size: 0.8125rem;
color: var(--slate-500);
}
#bbpress-forums div.bbp-reply-header .bbp-meta,
#bbpress-forums div.bbp-topic-header .bbp-meta {
display: flex;
flex-wrap: wrap;
gap: 0.35rem 0.75rem;
align-items: center;
}
#bbpress-forums div.bbp-reply-header .bbp-meta a,
#bbpress-forums div.bbp-topic-header .bbp-meta a {
color: var(--brand-600);
text-decoration: none;
}
#bbpress-forums .hesabix2-bbp-post > .reply,
#bbpress-forums .hesabix2-bbp-post > .topic,
#bbpress-forums .hesabix2-bbp-post > [class*="bbp-reply"],
#bbpress-forums li.bbp-body > .reply,
#bbpress-forums li.bbp-body > .topic,
#bbpress-forums li.bbp-body > div[class*="type-reply"],
#bbpress-forums li.bbp-body > div[class*="type-topic"]:not(.bbp-topic-header) {
display: flex;
flex-wrap: wrap;
gap: 1rem;
padding: 1rem;
align-items: flex-start;
}
#bbpress-forums div.bbp-reply-author,
#bbpress-forums div.bbp-topic-author {
flex: 0 0 7.5rem;
width: 7.5rem;
max-width: 100%;
text-align: center;
}
#bbpress-forums div.bbp-reply-author img.avatar,
#bbpress-forums div.bbp-topic-author img.avatar {
display: block;
margin: 0 auto 0.5rem;
max-width: 80px;
height: auto;
border-radius: 50%;
}
#bbpress-forums div.bbp-reply-author .bbp-author-name,
#bbpress-forums div.bbp-topic-author .bbp-author-name {
display: block;
font-size: 0.875rem;
font-weight: 600;
color: var(--slate-700);
word-break: break-word;
}
#bbpress-forums div.bbp-reply-author .bbp-author-role,
#bbpress-forums div.bbp-topic-author .bbp-author-role {
font-size: 0.75rem;
color: var(--slate-500);
font-style: normal;
margin-top: 0.15rem;
}
#bbpress-forums div.bbp-reply-content,
#bbpress-forums div.bbp-topic-content {
flex: 1 1 12rem;
min-width: 0;
margin: 0;
padding: 0;
text-align: right;
font-size: 0.9375rem;
line-height: 1.7;
color: var(--slate-700);
}
#bbpress-forums div.bbp-reply-content p,
#bbpress-forums div.bbp-topic-content p {
margin: 0 0 0.75rem;
}
#bbpress-forums div.bbp-reply-content img,
#bbpress-forums div.bbp-topic-content img {
max-width: 100%;
height: auto;
}
/* هدر/فوتر لیست پاسخ */
#bbpress-forums ul.bbp-replies li.bbp-header,
#bbpress-forums ul.bbp-replies li.bbp-footer,
#bbpress-forums ul.bbp-search-results li.bbp-header,
#bbpress-forums ul.bbp-search-results li.bbp-footer {
display: grid;
grid-template-columns: 7.5rem minmax(0, 1fr);
gap: 0.75rem 1rem;
align-items: center;
padding: 0.75rem 1rem;
background: var(--slate-50);
border-bottom: 1px solid var(--slate-200);
font-size: 0.8125rem;
font-weight: 600;
color: var(--slate-600);
}
#bbpress-forums ul.bbp-lead-topic li.bbp-header,
#bbpress-forums ul.bbp-lead-topic li.bbp-footer {
display: none;
}
#bbpress-forums ul.bbp-replies li.bbp-body,
#bbpress-forums ul.bbp-lead-topic li.bbp-body,
#bbpress-forums ul.bbp-search-results li.bbp-body {
padding: 0;
}
/* نتایج جستجو */
#bbpress-forums li.bbp-body ul.search-result,
#bbpress-forums li.bbp-body > ul[class*="search"] {
display: grid;
grid-template-columns: 7.5rem minmax(0, 1fr);
gap: 0.75rem 1rem;
padding: 0.85rem 1rem;
border-bottom: 1px solid var(--slate-100);
margin: 0;
list-style: none;
}
#bbpress-forums div.bbp-search-author,
#bbpress-forums div.bbp-search-content {
float: none;
min-width: 0;
}
#bbpress-forums ul.bbp-threaded-replies {
margin: 0.75rem 1.25rem 0 0;
padding: 0;
border-inline-start: 2px solid var(--light-200);
list-style: none;
}
/* ─── اشتراک / علاقه‌مندی / تگ ─── */
#bbpress-forums #subscription-toggle,
#bbpress-forums #favorite-toggle {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin-bottom: 0;
float: none;
clear: both;
}
#bbpress-forums #subscription-toggle a,
#bbpress-forums #favorite-toggle a {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.55rem;
font-size: 0.6875rem;
font-weight: 600;
border-radius: 999px;
text-decoration: none;
background: var(--slate-50);
border: 1px solid var(--slate-200);
color: var(--brand-600);
}
#bbpress-forums #subscription-toggle a:hover,
#bbpress-forums #favorite-toggle a:hover {
background: var(--light-100);
border-color: var(--brand-400);
}
#bbpress-forums .bbp-topic-tags:not(.hesabix2-bbp-topic-meta__tags) {
margin-bottom: 1rem;
font-size: 0.875rem;
}
#bbpress-forums .bbp-topic-tags a {
display: inline-block;
margin: 0.15rem 0 0.15rem 0.35rem;
padding: 0.2rem 0.6rem;
font-size: 0.75rem;
border-radius: 999px;
background: var(--light-100);
color: var(--brand-600);
text-decoration: none;
}
#bbpress-forums .bbp-topic-tags a:hover {
background: var(--light-200);
}
#bbpress-forums .bbp-topic-description:not(.hesabix2-bbp-meta) {
margin-bottom: 0.75rem;
padding: 0.5rem 0.75rem;
background: var(--slate-50);
border: 1px solid var(--slate-200);
border-radius: var(--radius);
font-size: 0.8125rem;
}
/* ─── اعلان‌ها ─── */
#bbpress-forums .bbp-template-notice {
margin: 0 0 1rem;
padding: 0.75rem 1rem;
border-radius: var(--radius);
font-size: 0.875rem;
clear: both;
}
#bbpress-forums .bbp-template-notice.info {
background: var(--light-100);
border: 1px solid var(--light-200);
color: var(--slate-700);
}
#bbpress-forums .bbp-template-notice.error,
#bbpress-forums .bbp-template-notice.warning {
background: #fef2f2;
border: 1px solid #fecaca;
color: #991b1b;
}
#bbpress-forums .bbp-template-notice ul {
margin: 0;
padding: 0;
list-style: none;
}
/* ─── فرم‌ها ─── */
#bbpress-forums fieldset.bbp-form {
border: 1px solid var(--slate-200);
border-radius: var(--radius-lg);
padding: 1.25rem;
margin: 1.5rem 0 0;
background: #fff;
box-shadow: var(--shadow-sm);
clear: both;
}
#bbpress-forums fieldset.bbp-form legend {
font-weight: 700;
font-size: 1rem;
color: var(--slate-800);
padding: 0 0.5rem;
float: none;
width: auto;
}
#bbpress-forums fieldset.bbp-form label {
display: block;
font-size: 0.875rem;
font-weight: 500;
color: var(--slate-700);
margin-bottom: 0.35rem;
float: none;
width: auto;
}
#bbpress-forums fieldset.bbp-form input[type="text"],
#bbpress-forums fieldset.bbp-form input[type="password"],
#bbpress-forums fieldset.bbp-form input[type="email"],
#bbpress-forums fieldset.bbp-form input[type="url"],
#bbpress-forums fieldset.bbp-form input[type="number"],
#bbpress-forums fieldset.bbp-form textarea,
#bbpress-forums fieldset.bbp-form select {
width: 100%;
max-width: 100%;
padding: 0.625rem 0.875rem;
border: 1px solid var(--slate-200);
border-radius: var(--radius);
font-size: 0.9375rem;
margin-bottom: 0.75rem;
background: #fff;
float: none;
}
#bbpress-forums fieldset.bbp-form textarea {
min-height: 8rem;
resize: vertical;
}
#bbpress-forums fieldset.bbp-form .bbp-the-content-wrapper {
margin-bottom: 0.75rem;
}
#bbpress-forums .bbp-login-form fieldset {
border: 1px solid var(--slate-200);
border-radius: var(--radius-lg);
padding: 1.25rem;
background: var(--slate-50);
max-width: 28rem;
}
/* ─── دکمه‌ها ─── */
.hesabix2-bbp-search-form__submit,
#bbpress-forums .button,
#bbpress-forums button[type="submit"],
#bbpress-forums input[type="submit"] {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.625rem 1.25rem;
border-radius: var(--radius);
font-size: 0.875rem;
font-weight: 600;
background: var(--brand-500);
color: #fff !important;
border: none;
cursor: pointer;
transition: background 0.2s;
text-decoration: none;
float: none;
}
.hesabix2-bbp-search-form__submit:hover,
#bbpress-forums .button:hover,
#bbpress-forums button[type="submit"]:hover,
#bbpress-forums input[type="submit"]:hover {
background: var(--brand-600);
color: #fff !important;
}
/* ─── صفحه‌بندی ─── */
#bbpress-forums .bbp-pagination {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
margin: 1rem 0;
clear: both;
}
#bbpress-forums .bbp-pagination-count {
float: none;
font-size: 0.8125rem;
color: var(--slate-500);
}
#bbpress-forums .bbp-pagination-links {
float: none;
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
list-style: none;
margin: 0;
padding: 0;
}
#bbpress-forums .bbp-pagination .page-numbers {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 2.25rem;
height: 2.25rem;
padding: 0 0.5rem;
border-radius: var(--radius);
font-size: 0.875rem;
color: var(--slate-600);
background: var(--slate-50);
text-decoration: none;
border: 1px solid var(--slate-200);
}
#bbpress-forums .bbp-pagination .page-numbers.current,
#bbpress-forums .bbp-pagination .page-numbers:hover {
background: var(--brand-500);
color: #fff;
border-color: var(--brand-500);
}
/* ─── لینک‌های مدیریت ─── */
#bbpress-forums span.bbp-admin-links {
float: none;
display: block;
margin-top: 0.35rem;
font-size: 0.75rem;
}
#bbpress-forums span.bbp-admin-links a {
color: var(--slate-500);
text-transform: none;
font-size: 0.75rem;
}
#bbpress-forums span.bbp-admin-links a:hover {
color: var(--brand-600);
}
/* ─── پروفایل کاربر ─── */
#bbpress-forums #bbp-user-wrapper {
display: grid;
grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr);
gap: 1.5rem;
align-items: start;
clear: both;
}
#bbpress-forums #bbp-single-user-details {
padding: 1rem;
background: #fff;
border: 1px solid var(--slate-200);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
}
#bbpress-forums #bbp-user-avatar img.avatar {
display: block;
margin: 0 auto 0.75rem;
border-radius: 50%;
max-width: 100%;
height: auto;
}
#bbpress-forums #bbp-user-navigation ul {
list-style: none;
margin: 0;
padding: 0;
}
#bbpress-forums #bbp-user-navigation li {
margin: 0 0 0.35rem;
}
#bbpress-forums #bbp-user-navigation a {
display: block;
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
font-weight: 500;
color: var(--slate-700);
text-decoration: none;
border-radius: var(--radius);
transition: background 0.2s, color 0.2s;
}
#bbpress-forums #bbp-user-navigation li.current a,
#bbpress-forums #bbp-user-navigation a:hover {
background: var(--light-100);
color: var(--brand-600);
}
#bbpress-forums #bbp-user-body {
min-width: 0;
}
#bbpress-forums #bbp-user-body fieldset {
margin-top: 0;
}
#bbpress-forums .hesabix2-bbp-section-title {
margin: 0 0 1rem;
font-size: 1.125rem;
font-weight: 700;
color: var(--slate-800);
}
#bbpress-forums .hesabix2-bbp-subtitle {
margin: 0 0 0.5rem;
font-size: 1rem;
font-weight: 600;
color: var(--slate-700);
}
#bbpress-forums .bbp-user-section {
margin-bottom: 1.5rem;
}
#bbpress-forums .bbp-user-section p {
margin: 0 0 0.5rem;
font-size: 0.9375rem;
color: var(--slate-600);
line-height: 1.6;
}
#bbpress-forums .hesabix2-bbp-divider {
margin: 1.25rem 0;
border: none;
border-top: 1px solid var(--slate-200);
}
#bbpress-forums .hesabix2-bbp-inline-search {
margin-bottom: 1rem;
}
/* فرم موضوع / پاسخ جدید */
#bbpress-forums .bbp-topic-form,
#bbpress-forums .bbp-reply-form {
margin-top: 1.5rem;
clear: both;
}
#bbpress-forums #bbpress-forums.bbpress-wrapper {
margin-top: 1rem;
padding: 0;
border: none;
box-shadow: none;
background: transparent;
}
#bbpress-forums .wp-editor-wrap {
border: 1px solid var(--slate-200);
border-radius: var(--radius);
overflow: hidden;
margin-bottom: 0.75rem;
}
#bbpress-forums .wp-editor-container textarea {
border: none;
}
#bbpress-forums .bbp-the-content-wrapper {
margin-bottom: 0.75rem;
}
/* آمار */
#bbpress-forums dl.bbp-stats {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
gap: 0.75rem;
margin: 0;
padding: 1rem;
background: #fff;
border: 1px solid var(--slate-200);
border-radius: var(--radius-lg);
}
#bbpress-forums dl.bbp-stats dt {
font-size: 0.8125rem;
color: var(--slate-500);
margin: 0;
float: none;
}
#bbpress-forums dl.bbp-stats dd {
margin: 0.15rem 0 0;
font-size: 1.25rem;
font-weight: 700;
color: var(--slate-800);
float: none;
}
/* وضعیت‌ها */
#bbpress-forums .status-closed .bbp-topic-permalink,
#bbpress-forums .status-closed .bbp-forum-title a {
opacity: 0.75;
}
#bbpress-forums .status-pending {
background: #fffbeb !important;
}
#bbpress-forums .status-spam,
#bbpress-forums .status-trash {
background: #fef2f2 !important;
}
/* ─── موبایل ─── */
@media (max-width: 767px) {
#bbpress-forums li.bbp-header {
display: none;
}
#bbpress-forums li.bbp-header .forum-titles,
#bbpress-forums li.bbp-header .topic-titles,
#bbpress-forums li.bbp-body > ul.forum,
#bbpress-forums li.bbp-body > ul.topic {
grid-template-columns: 1fr;
gap: 0.35rem;
padding: 0.85rem 1rem;
}
#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-forum-freshness,
#bbpress-forums .bbp-topic-voice-count,
#bbpress-forums .bbp-topic-reply-count,
#bbpress-forums .bbp-topic-freshness {
text-align: right;
align-self: auto;
}
#bbpress-forums .bbp-forum-topic-count::before,
#bbpress-forums .bbp-forum-reply-count::before,
#bbpress-forums .bbp-forum-freshness::before,
#bbpress-forums .bbp-topic-voice-count::before,
#bbpress-forums .bbp-topic-reply-count::before,
#bbpress-forums .bbp-topic-freshness::before {
font-weight: 600;
color: var(--slate-600);
margin-inline-end: 0.35rem;
}
#bbpress-forums .bbp-forum-topic-count::before { content: "موضوعات: "; }
#bbpress-forums .bbp-forum-reply-count::before { content: "نوشته‌ها: "; }
#bbpress-forums .bbp-forum-freshness::before { content: "آخرین: "; }
#bbpress-forums .bbp-topic-voice-count::before { content: "نویسندگان: "; }
#bbpress-forums .bbp-topic-reply-count::before { content: "پاسخ‌ها: "; }
#bbpress-forums .bbp-topic-freshness::before { content: "آخرین: "; }
#bbpress-forums ul.bbp-replies li.bbp-header,
#bbpress-forums ul.bbp-replies li.bbp-footer,
#bbpress-forums ul.bbp-lead-topic li.bbp-header,
#bbpress-forums ul.bbp-lead-topic li.bbp-footer,
#bbpress-forums ul.bbp-search-results li.bbp-header,
#bbpress-forums ul.bbp-search-results li.bbp-footer {
display: none;
}
#bbpress-forums .hesabix2-bbp-post > .reply,
#bbpress-forums .hesabix2-bbp-post > .topic,
#bbpress-forums li.bbp-body > .reply,
#bbpress-forums li.bbp-body > .topic,
#bbpress-forums li.bbp-body > div[class*="type-reply"],
#bbpress-forums li.bbp-body > div[class*="type-topic"]:not(.bbp-topic-header) {
flex-direction: column;
padding: 0.85rem 1rem;
}
#bbpress-forums div.bbp-reply-author,
#bbpress-forums div.bbp-topic-author {
flex: 0 0 auto;
width: 100%;
text-align: right;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem 0.75rem;
}
#bbpress-forums div.bbp-reply-author img.avatar,
#bbpress-forums div.bbp-topic-author img.avatar {
margin: 0;
max-width: 48px;
}
#bbpress-forums #bbp-user-wrapper {
grid-template-columns: 1fr;
}
#bbpress-forums .bbp-pagination {
flex-direction: column;
align-items: stretch;
}
#bbpress-forums .bbp-pagination-links {
justify-content: center;
}
.hesabix2-bbp-shell__inner {
padding: 0.65rem 0.85rem;
}
.hesabix2-bbp-shell__head {
flex-direction: column;
align-items: stretch;
}
.hesabix2-bbp-shell__cta {
align-self: stretch;
}
.hesabix2-bbp-shell__cta-btn {
width: 100%;
justify-content: center;
}
.hesabix2-bbp-shell__bar {
flex-direction: column;
align-items: stretch;
}
.hesabix2-bbp-shell .hesabix2-bbp-search-form--shell {
max-width: none;
flex: 1 1 auto;
}
.hesabix2-bbp-search-form--compact .hesabix2-bbp-search-form__submit-text {
position: static;
width: auto;
height: auto;
margin: 0;
clip: auto;
overflow: visible;
}
.hesabix2-bbp-search-form--compact .hesabix2-bbp-search-form__icon {
display: none;
}
}
/* ─── فراخوان ورود ─── */
.hesabix2-bbp-auth-prompt {
margin: 0.75rem 0;
padding: 0.75rem 1rem;
background: var(--slate-50);
border: 1px solid var(--slate-200);
border-radius: var(--radius);
text-align: center;
}
.hesabix2-bbp-auth-prompt--inline {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem 0.75rem;
text-align: right;
padding: 0.5rem 0.75rem;
}
.hesabix2-bbp-auth-prompt__text {
margin: 0;
font-size: 0.8125rem;
color: var(--slate-600);
}
.hesabix2-bbp-auth-prompt--inline .hesabix2-bbp-auth-prompt__text {
flex: 1 1 10rem;
}
.hesabix2-bbp-auth-prompt__actions {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
justify-content: center;
}
.hesabix2-bbp-auth-prompt--inline .hesabix2-bbp-auth-prompt__actions {
justify-content: flex-end;
flex-shrink: 0;
}
.hesabix2-bbp-auth-prompt__btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.4rem 0.85rem;
border-radius: var(--radius);
font-size: 0.8125rem;
font-weight: 600;
text-decoration: none;
background: var(--brand-500);
color: #fff !important;
border: none;
}
.hesabix2-bbp-auth-prompt__btn:hover {
background: var(--brand-600);
color: #fff !important;
}
.hesabix2-bbp-auth-prompt__btn--secondary {
background: #fff;
color: var(--brand-600) !important;
border: 1px solid var(--slate-200);
}
.hesabix2-bbp-auth-prompt__btn--secondary:hover {
background: var(--light-50);
border-color: var(--brand-400);
}
/* ─── فیلدهای فرم ─── */
#bbpress-forums .hesabix2-bbp-form-fields p {
margin: 0 0 1rem;
}
#bbpress-forums .hesabix2-bbp-form-checkbox {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
}
#bbpress-forums .hesabix2-bbp-form-checkbox input {
width: auto;
margin: 0;
}
#bbpress-forums .hesabix2-bbp-form-checkbox label {
margin: 0;
font-weight: 400;
}
#bbpress-forums fieldset.bbp-form.bbp-form--nested {
margin-top: 1rem;
padding: 1rem;
background: var(--slate-50);
box-shadow: none;
}
#bbpress-forums .bbp-submit-wrapper {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
margin-top: 0.5rem;
}
#bbpress-forums .bbp-submit-wrapper .bbp-cancel-reply-to-link {
font-size: 0.875rem;
color: var(--slate-500);
text-decoration: none;
}
#bbpress-forums .bbp-submit-wrapper .bbp-cancel-reply-to-link:hover {
color: var(--brand-600);
}
#bbpress-forums .form-allowed-tags {
margin: 0 0 1rem;
font-size: 0.8125rem;
color: var(--slate-500);
}
#bbpress-forums .form-allowed-tags code {
display: block;
margin-top: 0.35rem;
padding: 0.5rem 0.75rem;
background: var(--slate-50);
border-radius: var(--radius);
font-size: 0.75rem;
word-break: break-word;
}
/* ─── هشدار قفل موضوع ─── */
#bbpress-forums .hesabix2-bbp-alert,
.hesabix2-bbp-content .hesabix2-bbp-alert {
position: fixed;
inset: 0;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
background: rgba(15, 23, 42, 0.45);
}
#bbpress-forums .bbp-alert-inner,
.hesabix2-bbp-content .bbp-alert-inner {
max-width: 24rem;
width: 100%;
padding: 1.25rem;
background: #fff;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
text-align: center;
}
#bbpress-forums .bbp-alert-description,
.hesabix2-bbp-content .bbp-alert-description {
margin: 0 0 1rem;
font-size: 0.9375rem;
color: var(--slate-700);
line-height: 1.6;
}
#bbpress-forums .bbp-alert-actions,
.hesabix2-bbp-content .bbp-alert-actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
justify-content: center;
}
#bbpress-forums .hesabix2-bbp-alert__stay,
.hesabix2-bbp-content .hesabix2-bbp-alert__stay {
background: var(--slate-100) !important;
color: var(--slate-700) !important;
}
/* ─── صفحه آمار ─── */
#bbp-statistics .entry-title,
.hesabix2-bbp-content #bbp-statistics > .entry-title {
display: none;
}
#bbp-statistics .bbp-stats,
#bbpress-forums .bbp-stats {
margin-bottom: 1.5rem;
}
.hesabix2-bbp-private {
padding: 1rem 0;
}
.hesabix2-bbp-intro {
margin-bottom: 1.25rem;
font-size: 0.9375rem;
color: var(--slate-600);
line-height: 1.7;
}
/* ─── کارت پیام بله ─── */
#bbpress-forums .hesabix2-bbp-bale-card {
display: flex;
flex-direction: column;
gap: 0.85rem;
}
#bbpress-forums .hesabix2-bbp-bale-meta {
border: 1px solid rgba(14, 165, 233, 0.18);
border-radius: var(--radius);
background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(255, 255, 255, 0.9));
overflow: hidden;
}
#bbpress-forums .hesabix2-bbp-bale-meta__summary {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.65rem 0.85rem;
font-size: 0.8125rem;
font-weight: 700;
color: var(--brand-700);
cursor: pointer;
list-style: none;
}
#bbpress-forums .hesabix2-bbp-bale-meta__summary::-webkit-details-marker {
display: none;
}
#bbpress-forums .hesabix2-bbp-bale-meta__summary::before {
content: "";
width: 0.55rem;
height: 0.55rem;
border-inline-end: 2px solid currentColor;
border-bottom: 2px solid currentColor;
transform: rotate(45deg);
transition: transform 0.2s ease;
flex-shrink: 0;
}
#bbpress-forums .hesabix2-bbp-bale-meta[open] .hesabix2-bbp-bale-meta__summary::before {
transform: rotate(225deg);
}
#bbpress-forums .hesabix2-bbp-bale-meta__list {
display: grid;
gap: 0.5rem;
margin: 0;
padding: 0 0.85rem 0.85rem;
}
#bbpress-forums .hesabix2-bbp-bale-meta__item {
display: grid;
grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr);
gap: 0.35rem 0.75rem;
font-size: 0.8125rem;
}
#bbpress-forums .hesabix2-bbp-bale-meta__item dt {
margin: 0;
font-weight: 700;
color: var(--slate-600);
}
#bbpress-forums .hesabix2-bbp-bale-meta__item dd {
margin: 0;
color: var(--slate-700);
}
#bbpress-forums .hesabix2-bbp-bale-body {
font-size: 0.9375rem;
line-height: 1.75;
color: var(--slate-800);
}
#bbpress-forums .hesabix2-bbp-bale-foot {
padding-top: 0.35rem;
border-top: 1px dashed var(--slate-200);
color: var(--slate-500);
font-size: 0.75rem;
}
/* ─── رسانه پیوست ─── */
#bbpress-forums .hesabix2-bbp-attachments,
#bbpress-forums .bbp-attachments {
display: grid;
gap: 0.75rem;
margin-top: 0.85rem;
}
#bbpress-forums .hesabix2-bbp-attachments__title,
#bbpress-forums .bbp-attachments .hesabix2-bbp-attachments__title,
#bbpress-forums .bbp-attachments > h6 {
margin: 0 0 0.25rem;
font-size: 0.8125rem;
font-weight: 700;
color: var(--slate-600);
}
#bbpress-forums .hesabix2-bbp-media {
margin: 0;
}
#bbpress-forums .hesabix2-bbp-media--image .hesabix2-bbp-media__trigger {
display: block;
width: 100%;
padding: 0;
border: 1px solid var(--slate-200);
border-radius: var(--radius-lg);
background: var(--slate-50);
overflow: hidden;
cursor: zoom-in;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#bbpress-forums .hesabix2-bbp-media--image .hesabix2-bbp-media__trigger:hover {
border-color: var(--brand-400);
box-shadow: 0 4px 18px rgba(14, 165, 233, 0.12);
}
#bbpress-forums .hesabix2-bbp-media__image,
#bbpress-forums .hesabix2-bbp-media--image img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
margin: 0;
}
#bbpress-forums .hesabix2-bbp-media--video {
border: 1px solid var(--slate-200);
border-radius: var(--radius-lg);
overflow: hidden;
background: #000;
}
#bbpress-forums .hesabix2-bbp-media__player {
display: block;
width: 100%;
max-width: 100%;
height: auto;
max-height: 28rem;
background: #000;
}
#bbpress-forums .hesabix2-bbp-media--file {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.85rem 1rem;
border: 1px solid var(--slate-200);
border-radius: var(--radius-lg);
background: var(--slate-50);
color: var(--slate-800);
text-decoration: none;
transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
#bbpress-forums .hesabix2-bbp-media--file:hover {
border-color: var(--brand-400);
background: #fff;
transform: translateY(-1px);
}
#bbpress-forums .hesabix2-bbp-media__file-icon {
flex: 0 0 2.5rem;
width: 2.5rem;
height: 2.5rem;
border-radius: 0.75rem;
background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
position: relative;
}
#bbpress-forums .hesabix2-bbp-media__file-icon::before {
content: "";
position: absolute;
inset: 0.7rem 0.55rem auto;
height: 0.55rem;
border: 2px solid rgba(255, 255, 255, 0.95);
border-bottom: none;
border-radius: 2px 2px 0 0;
}
#bbpress-forums .hesabix2-bbp-media__file-icon::after {
content: "";
position: absolute;
left: 0.55rem;
right: 0.55rem;
bottom: 0.55rem;
top: 1rem;
border: 2px solid rgba(255, 255, 255, 0.95);
border-radius: 0 0 2px 2px;
}
#bbpress-forums .hesabix2-bbp-media__file-body {
display: flex;
flex-direction: column;
gap: 0.15rem;
min-width: 0;
}
#bbpress-forums .hesabix2-bbp-media__file-name {
font-size: 0.875rem;
font-weight: 700;
color: var(--slate-800);
word-break: break-word;
}
#bbpress-forums .hesabix2-bbp-media__file-action {
font-size: 0.75rem;
color: var(--brand-600);
font-weight: 600;
}
#bbpress-forums .bbp-attachments ol {
display: grid;
gap: 0.65rem;
margin: 0;
padding: 0;
list-style: none;
}
#bbpress-forums .bbp-attachments .d4p-bba-thumbnails a {
display: block;
border-radius: var(--radius-lg);
overflow: hidden;
border: 1px solid var(--slate-200);
}
/* فرم آپلود GD bbPress — هم‌تراز با کارت فرم قالب */
#bbpress-forums fieldset.bbp-form:has(.bbp-attachments-form) {
margin: 0 0 1rem;
padding: 1rem 1.1rem;
background: var(--slate-50);
box-shadow: none;
border: 1px dashed var(--slate-300);
}
#bbpress-forums fieldset.bbp-form:has(.bbp-attachments-form) legend {
font-size: 0.875rem;
color: var(--slate-700);
}
#bbpress-forums fieldset.bbp-form:has(.bbp-attachments-form) .bbp-template-notice {
margin: 0 0 0.75rem;
padding: 0.55rem 0.75rem;
background: #fff;
border-color: var(--slate-200);
color: var(--slate-600);
font-size: 0.8125rem;
}
#bbpress-forums .bbp-attachments-form {
margin: 0;
}
#bbpress-forums .bbp-attachments-form label {
margin-bottom: 0.5rem;
}
#bbpress-forums .bbp-attachments-form input[type="file"] {
display: block;
width: 100%;
max-width: 100%;
margin: 0 0 0.65rem;
padding: 0.7rem 0.8rem;
border: 1px dashed var(--slate-300);
border-radius: var(--radius);
background: #fff;
font-size: 0.875rem;
color: var(--slate-700);
float: none;
}
#bbpress-forums .bbp-attachments-form input[type="file"]:hover,
#bbpress-forums .bbp-attachments-form input[type="file"]:focus {
border-color: var(--brand-400);
outline: none;
}
#bbpress-forums .bbp-attachments-form .d4p-attachment-addfile {
display: inline-flex;
align-items: center;
margin-top: 0.15rem;
padding: 0.35rem 0.7rem;
border: 1px solid var(--slate-200);
border-radius: var(--radius);
background: #fff;
color: var(--brand-600);
font-size: 0.8125rem;
font-weight: 600;
text-decoration: none;
}
#bbpress-forums .bbp-attachments-form .d4p-attachment-addfile:hover {
border-color: var(--brand-400);
background: var(--light-50);
}
#bbpress-forums .bbp-attachments-errors {
margin-top: 0.75rem;
padding: 0.75rem 0.9rem;
border: 1px solid #fecaca;
border-radius: var(--radius-lg);
background: #fef2f2;
color: #991b1b;
}
#bbpress-forums .bbp-attachments-errors h6 {
margin: 0 0 0.35rem;
font-size: 0.8125rem;
font-weight: 700;
}
#bbpress-forums .bbp-attachments-errors ol {
margin: 0;
padding: 0;
list-style: none;
}
/* ─── لایت‌باکس تصویر ─── */
body.hesabix2-bbp-lightbox-open {
overflow: hidden;
}
.hesabix2-bbp-lightbox {
position: fixed;
inset: 0;
z-index: 10050;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}
.hesabix2-bbp-lightbox[hidden] {
display: none !important;
}
.hesabix2-bbp-lightbox__backdrop {
position: absolute;
inset: 0;
background: rgba(15, 23, 42, 0.82);
backdrop-filter: blur(4px);
}
.hesabix2-bbp-lightbox__dialog {
position: relative;
z-index: 1;
max-width: min(96vw, 72rem);
max-height: 92vh;
}
.hesabix2-bbp-lightbox__image {
display: block;
max-width: 100%;
max-height: 92vh;
width: auto;
height: auto;
margin: 0 auto;
border-radius: var(--radius-lg);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.hesabix2-bbp-lightbox__close {
position: absolute;
top: -0.35rem;
inset-inline-end: -0.35rem;
width: 2.25rem;
height: 2.25rem;
border: none;
border-radius: 999px;
background: #fff;
color: var(--slate-700);
font-size: 1.35rem;
line-height: 1;
cursor: pointer;
box-shadow: var(--shadow-md);
}
/* ─── بهبود لیست موضوعات ─── */
#bbpress-forums li.bbp-body > ul.topic {
transition: background 0.2s ease;
}
#bbpress-forums li.bbp-body > ul.topic:hover {
background: rgba(14, 165, 233, 0.03);
}
#bbpress-forums li.bbp-body > ul.topic .bbp-topic-title a.bbp-topic-permalink {
font-size: 0.9375rem;
font-weight: 700;
color: var(--slate-800);
line-height: 1.45;
}
#bbpress-forums li.bbp-body > ul.topic .bbp-topic-title a.bbp-topic-permalink:hover {
color: var(--brand-600);
}
#bbpress-forums li.bbp-body > ul.topic .bbp-topic-meta {
margin-top: 0.25rem;
font-size: 0.75rem;
color: var(--slate-500);
}
#bbpress-forums .hesabix2-bbp-topic-facts {
padding: 0.85rem 1rem;
border: 1px solid var(--slate-200);
border-radius: var(--radius-lg);
background: linear-gradient(180deg, #fff, var(--slate-50));
box-shadow: var(--shadow-sm);
}