| 1 |
// FAQ Builder summary stat cards (FAQ Groups / Total FAQs / Published / Drafts). |
| 2 |
// Mirrors the dashboard overview cards: white card, big number, and a tinted |
| 3 |
// icon, with the same blurred-triangle SVG glow anchored to the top-left corner |
| 4 |
// (the SVG + tint is set inline in FaqStats.js, matching `.betterdocs-card-wrapper`). |
| 5 |
.bd-faq-stats { |
| 6 |
display: grid; |
| 7 |
grid-template-columns: repeat(4, 1fr); |
| 8 |
gap: 18px; |
| 9 |
margin-bottom: 20px; |
| 10 |
|
| 11 |
.bd-faq-stat-card { |
| 12 |
position: relative; |
| 13 |
overflow: hidden; |
| 14 |
display: flex; |
| 15 |
align-items: center; |
| 16 |
justify-content: space-between; |
| 17 |
gap: 16px; |
| 18 |
background: var(--base-background, #fff); |
| 19 |
border: 1px solid var(--text-color-200); |
| 20 |
border-radius: 8px; |
| 21 |
padding: 20px 22px; |
| 22 |
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); |
| 23 |
background-position: left top; |
| 24 |
background-repeat: no-repeat; |
| 25 |
|
| 26 |
&__body { |
| 27 |
position: relative; |
| 28 |
z-index: 1; |
| 29 |
} |
| 30 |
|
| 31 |
&__value { |
| 32 |
margin: 0; |
| 33 |
font-size: 30px; |
| 34 |
font-weight: 800; |
| 35 |
line-height: 1; |
| 36 |
letter-spacing: -0.5px; |
| 37 |
color: var(--text-color-900); |
| 38 |
} |
| 39 |
|
| 40 |
&__label { |
| 41 |
margin: 8px 0 0; |
| 42 |
font-size: 13px; |
| 43 |
font-weight: 500; |
| 44 |
color: var(--text-color-600); |
| 45 |
white-space: nowrap; |
| 46 |
} |
| 47 |
|
| 48 |
// Rounded icon tile (inline style sets background tint + color). |
| 49 |
&__icon { |
| 50 |
position: relative; |
| 51 |
z-index: 1; |
| 52 |
flex-shrink: 0; |
| 53 |
width: 46px; |
| 54 |
height: 46px; |
| 55 |
border-radius: 12px; |
| 56 |
display: inline-flex; |
| 57 |
align-items: center; |
| 58 |
justify-content: center; |
| 59 |
// Colour/background live at top level in bd-faq.scss so they also |
| 60 |
// reach the portaled modal-header icons (this block is scoped under |
| 61 |
// .betterdocs-faq-wrapper and wouldn't match them). |
| 62 |
|
| 63 |
svg { |
| 64 |
width: 20px; |
| 65 |
height: 20px; |
| 66 |
} |
| 67 |
} |
| 68 |
} |
| 69 |
} |
| 70 |
|
| 71 |
@media (max-width: 1100px) { |
| 72 |
.bd-faq-stats { |
| 73 |
grid-template-columns: repeat(2, 1fr); |
| 74 |
} |
| 75 |
} |
| 76 |
@media (max-width: 600px) { |
| 77 |
.bd-faq-stats { |
| 78 |
grid-template-columns: 1fr; |
| 79 |
} |
| 80 |
} |
| 81 |
|