| 1 |
// FAQ create / edit form (rendered inside an expanded FAQ row or a group's |
| 2 |
// "new FAQ" slot). Also used by the Glossaries builder form. |
| 3 |
.bd-faq-create-new { |
| 4 |
background: var(--base-background, #fff); |
| 5 |
border: none; |
| 6 |
border-radius: 12px; |
| 7 |
display: flex; |
| 8 |
flex-direction: column; |
| 9 |
margin-bottom: 12px; |
| 10 |
|
| 11 |
.bd-faq-create-new-body { |
| 12 |
display: flex; |
| 13 |
flex-direction: column; |
| 14 |
justify-content: center; |
| 15 |
padding: 20px 22px; |
| 16 |
gap: 20px; |
| 17 |
|
| 18 |
.bd-faq-cgt-field { |
| 19 |
display: flex; |
| 20 |
flex-direction: column; |
| 21 |
gap: 8px; |
| 22 |
} |
| 23 |
|
| 24 |
// Field labels. |
| 25 |
.bd-faq-label { |
| 26 |
font-size: 13px; |
| 27 |
font-weight: normal; |
| 28 |
color: var(--text-color-850); |
| 29 |
cursor: initial; |
| 30 |
&[required]]:after { |
| 31 |
content: "*"; |
| 32 |
margin-left: 3px; |
| 33 |
color: var(--danger-600); |
| 34 |
} |
| 35 |
} |
| 36 |
|
| 37 |
// Text inputs (Question). |
| 38 |
.bd-faq-input { |
| 39 |
height: auto; |
| 40 |
border: 1px solid var(--text-color-150); |
| 41 |
// Dark-mode aware: var resolves to #fff in light, the dark surface |
| 42 |
// in dark mode (matching the focus state, which already used it). |
| 43 |
background: var(--base-background, #fff); |
| 44 |
width: 100%; |
| 45 |
color: var(--text-color-900); |
| 46 |
padding: 10px 16px; |
| 47 |
font-size: 14px; |
| 48 |
outline: none; |
| 49 |
box-shadow: none; |
| 50 |
border-radius: 10px; |
| 51 |
transition: background 0.15s ease, border-color 0.15s ease; |
| 52 |
&::placeholder { |
| 53 |
color: var(--text-color-500); |
| 54 |
} |
| 55 |
&:not(:read-only):focus { |
| 56 |
background: var(--base-background, #fff); |
| 57 |
border-color: var(--base-color-700); |
| 58 |
box-shadow: 0 0 0 3px rgba(0, 184, 132, 0.15); |
| 59 |
outline: none; |
| 60 |
} |
| 61 |
} |
| 62 |
|
| 63 |
// Question row: input + "Write With AI" button side by side. |
| 64 |
.bd-faq-cgt-field-wrapper { |
| 65 |
display: flex; |
| 66 |
gap: 12px; |
| 67 |
align-items: stretch; |
| 68 |
.bd-faq-input { |
| 69 |
flex: 1; |
| 70 |
} |
| 71 |
.bd-write-with-ai-button { |
| 72 |
flex-shrink: 0; |
| 73 |
} |
| 74 |
} |
| 75 |
|
| 76 |
// FAQ Group select (react-select). |
| 77 |
.bd-faq-select { |
| 78 |
.bd-faq-select__control { |
| 79 |
border: 1px solid var(--text-color-150); |
| 80 |
// Dark-mode aware: resting state now matches the focused state |
| 81 |
// (which already used the variable) instead of a hardcoded white. |
| 82 |
background: var(--base-background, #fff); |
| 83 |
min-height: 40px; |
| 84 |
height: auto; |
| 85 |
border-radius: 10px; |
| 86 |
box-shadow: none; |
| 87 |
.bd-faq-select__value-container { |
| 88 |
padding: 4px 16px; |
| 89 |
} |
| 90 |
.bd-faq-select__single-value { |
| 91 |
font-weight: normal; |
| 92 |
color: var(--text-color-900) !important; |
| 93 |
} |
| 94 |
&--is-focused { |
| 95 |
background: var(--base-background, #fff); |
| 96 |
border-color: var(--base-color-700); |
| 97 |
box-shadow: 0 0 0 3px rgba(0, 184, 132, 0.15); |
| 98 |
} |
| 99 |
} |
| 100 |
.bd-faq-select__menu { |
| 101 |
border-radius: 10px; |
| 102 |
overflow: hidden; |
| 103 |
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1); |
| 104 |
} |
| 105 |
} |
| 106 |
} |
| 107 |
|
| 108 |
.bd-faq-create-new-footer { |
| 109 |
border-top: 1px solid var(--text-color-200); |
| 110 |
padding: 18px 22px; |
| 111 |
display: flex; |
| 112 |
justify-content: space-between; |
| 113 |
align-items: center; |
| 114 |
|
| 115 |
.bd-toggle-switcher-group p { |
| 116 |
font-size: 14px; |
| 117 |
font-weight: normal; |
| 118 |
line-height: 1.4; |
| 119 |
color: var(--text-color-850); |
| 120 |
} |
| 121 |
} |
| 122 |
} |
| 123 |
|