| 1 |
.bd-faq-button-group { |
| 2 |
display: flex; |
| 3 |
column-gap: 20px; |
| 4 |
row-gap: 10px; |
| 5 |
flex-wrap: wrap; |
| 6 |
|
| 7 |
&.direction-column { |
| 8 |
flex-direction: column; |
| 9 |
} |
| 10 |
} |
| 11 |
|
| 12 |
.bd-faq-button { |
| 13 |
display: inline-flex; |
| 14 |
min-height: 36px; |
| 15 |
padding: 7px 16px; |
| 16 |
border-radius: 8px; |
| 17 |
gap: 5px; |
| 18 |
justify-content: center; |
| 19 |
align-items: center; |
| 20 |
background-color: var(--base-color-75); |
| 21 |
background-image: none; |
| 22 |
color: var(--base-color-700); |
| 23 |
border: 1px solid var(--base-color-700); |
| 24 |
cursor: pointer; |
| 25 |
font-size: 13px; |
| 26 |
font-weight: 600; |
| 27 |
line-height: 1.2; |
| 28 |
transition: all 0.3s ease 0s; |
| 29 |
text-decoration: none; |
| 30 |
box-sizing: border-box; |
| 31 |
.bd-faq-icon { |
| 32 |
width: 16px; |
| 33 |
display: inline-flex; |
| 34 |
align-items: center; |
| 35 |
line-height: 0; |
| 36 |
img, |
| 37 |
svg { |
| 38 |
max-width: 100%; |
| 39 |
color: var(--base-color-700); |
| 40 |
fill: var(--base-color-700); |
| 41 |
transition: all 0.3s ease 0s; |
| 42 |
} |
| 43 |
} |
| 44 |
// Plus icon (IconPlus) — matches the dashboard header action button. |
| 45 |
.action-button-icon { |
| 46 |
display: inline-flex; |
| 47 |
align-items: center; |
| 48 |
justify-content: center; |
| 49 |
line-height: 0; |
| 50 |
img, |
| 51 |
svg { |
| 52 |
display: block; |
| 53 |
} |
| 54 |
} |
| 55 |
.bd-faq-text { |
| 56 |
display: inline-flex; |
| 57 |
align-items: center; |
| 58 |
line-height: 1; |
| 59 |
} |
| 60 |
&:hover { |
| 61 |
background-color: var(--base-color-700); |
| 62 |
color: #ffffff; |
| 63 |
border-color: transparent; |
| 64 |
.bd-faq-icon { |
| 65 |
img, |
| 66 |
svg { |
| 67 |
color: #ffffff; |
| 68 |
fill: #ffffff; |
| 69 |
} |
| 70 |
} |
| 71 |
} |
| 72 |
// Ghost / cancel button — transparent surface with a muted border, |
| 73 |
// matching the doc-categories slide-over cancel. The compound |
| 74 |
// `.bd-faq-button.button-ghost` selector (specificity 0,2,0) outranks the |
| 75 |
// base `.bd-faq-button` rules above, so no !important is needed. |
| 76 |
&.button-ghost { |
| 77 |
background: transparent; |
| 78 |
border: 1px solid var(--text-color-200); |
| 79 |
box-shadow: none; |
| 80 |
color: var(--text-color-700); |
| 81 |
&:hover { |
| 82 |
background: var(--text-color-100); |
| 83 |
border-color: var(--text-color-200); |
| 84 |
color: var(--text-color-700); |
| 85 |
} |
| 86 |
} |
| 87 |
&.button-success { |
| 88 |
background-color: var(--base-color-700); |
| 89 |
color: #ffffff !important; |
| 90 |
border-color: transparent !important; |
| 91 |
.bd-faq-icon { |
| 92 |
img, |
| 93 |
svg { |
| 94 |
color: #ffffff !important; |
| 95 |
fill: #ffffff !important; |
| 96 |
} |
| 97 |
} |
| 98 |
&:hover { |
| 99 |
background-color: #00956b; |
| 100 |
} |
| 101 |
} |
| 102 |
// Secondary action — mirrors the dashboard header "Add New FAQ" button |
| 103 |
// (.betterdocs-faq-button): white surface, muted border + subtle shadow, |
| 104 |
// dark text and dark plus icon. The compound .bd-faq-button.button-secondary |
| 105 |
// (0,2,0) outranks the base .bd-faq-button rules above. |
| 106 |
&.button-secondary { |
| 107 |
background-color: var(--base-background, #ffffff); |
| 108 |
color: var(--text-color-700); |
| 109 |
border: 1px solid #d0d5dd; |
| 110 |
box-shadow: 0px 1px 2px 0px #1018280d; |
| 111 |
// No transition (incl. border) and no hover state — the button stays |
| 112 |
// static. The resting values out-order the base `.bd-faq-button:hover` |
| 113 |
// (equal specificity, declared later), so no `:hover` block is needed. |
| 114 |
transition: none; |
| 115 |
.bd-faq-icon { |
| 116 |
img, |
| 117 |
svg { |
| 118 |
color: var(--text-color-700); |
| 119 |
fill: var(--text-color-700); |
| 120 |
} |
| 121 |
} |
| 122 |
// IconPlus hardcodes fill="#fff" on its <path>; author CSS overrides that |
| 123 |
// presentation attribute so the plus stays visible on the light surface. |
| 124 |
.action-button-icon svg path { |
| 125 |
fill: var(--text-color-700); |
| 126 |
} |
| 127 |
} |
| 128 |
} |
| 129 |
|