PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.5
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.5
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 All 203 releases
betterdocs / react-src / admin / scss / faq-builder / _select-menu.scss

_select-menu.scss in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/admin/scss/faq-builder/_select-menu.scss

63 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // The react-select menu is portaled to document.body (menuPortalTarget), so it
2 // renders OUTSIDE .betterdocs-faq-wrapper. These rules must be emitted at the
3 // top level (not nested under the wrapper) or they won't match the portaled
4 // menu and react-select's default blue option styling wins.
5 .bd-faq-select__menu {
6 // !important on the backgrounds/colors: react-select injects its own
7 // emotion styles (default white menu) at the same specificity, so without
8 // this the menu stays white in dark mode (the CSS vars resolve correctly,
9 // they're just being overridden).
10 background-color: var(--base-background) !important;
11 border: 1px solid var(--text-color-200);
12 border-radius: 8px;
13 box-shadow: 0 4px 12px var(--focus-shadow-2);
14 overflow: hidden;
15
16 .bd-faq-select__menu-list {
17 padding: 12px;
18 display: flex;
19 flex-direction: column;
20 gap: 4px;
21 background-color: var(--base-background) !important;
22
23 .bd-faq-select__group-heading {
24 padding: 8px 14px 4px;
25 margin: 0;
26 }
27
28 .bd-faq-select__option {
29 display: inline-flex;
30 align-items: center;
31 justify-content: flex-start;
32 gap: 8px;
33 padding: 10px 14px;
34 border-radius: 8px;
35 background-color: transparent !important;
36 color: var(--text-color-800) !important;
37 // Match the selected value's typography (the control's single-value).
38 font-size: 14px;
39 font-weight: normal;
40 line-height: 1.5;
41 cursor: pointer;
42 }
43
44 .bd-faq-select__option--is-focused {
45 background-color: var(--text-color-50) !important;
46 color: var(--text-color-700) !important;
47 }
48
49 .bd-faq-select__option--is-selected {
50 background-color: var(--text-color-50) !important;
51 color: var(--base-color-700) !important;
52
53 &:after {
54 margin-left: auto;
55 content: "\e90a";
56 font-family: "btd-icon";
57 font-size: 20px;
58 line-height: 1;
59 }
60 }
61 }
62 }
63