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 / _multiselect-chips.scss

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

108 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // Multi-select where chosen items render as removable chips below the field
2 // (placeholder stays inside the control). Shared by the WooCommerce tab and the
3 // portaled Create/Update FAQ Group modal so both look identical.
4 .bd-faq-multiselect {
5 // Animated viewport around the chip row. We transition its height between
6 // states (empty → skeleton → resolved chips, and across chip counts that
7 // wrap to different row counts) so it eases instead of snapping. `overflow:
8 // hidden` clips during the transition and isolates it from the measured
9 // inner height — see GroupMultiSelect.js.
10 .bd-faq-chips-anim {
11 overflow: hidden;
12 transition: height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
13
14 @media (prefers-reduced-motion: reduce) {
15 transition: none;
16 }
17 }
18
19 .bd-faq-selected-chips {
20 display: flex;
21 flex-wrap: wrap;
22 gap: 8px;
23 // Padding (not margin) so the 10px gap is part of the measured content
24 // height the viewport animates to, and so it collapses to 0 cleanly when
25 // there are no chips.
26 padding-top: 10px;
27 }
28
29 .bd-faq-chip {
30 min-height: 22px;
31 display: inline-flex;
32 align-items: center;
33 justify-content: center;
34 gap: 4px;
35 margin: 0;
36 padding: 1px 8px 1px 10px;
37 border-radius: 4px;
38 text-align: center;
39 font-size: 12px;
40 font-style: normal;
41 font-weight: 500;
42 line-height: 1.5;
43
44 &__remove {
45 width: 12px;
46 height: 12px;
47 appearance: none;
48 border: none;
49 margin: 0;
50 padding: 0;
51 background-color: transparent;
52 color: inherit;
53 display: inline-flex;
54 align-items: center;
55 justify-content: center;
56 cursor: pointer;
57
58 &:disabled {
59 cursor: not-allowed;
60 opacity: 0.4;
61 }
62 }
63
64 // Rotating palette echoing the design-system role chips
65 // (.wprf-selected-option-1..6 in settings).
66 &--1 {
67 background: #fcfaff;
68 color: #6941c6;
69 }
70 &--2 {
71 background: #fffaeb;
72 color: #b54708;
73 }
74 &--3 {
75 background: #f6fef9;
76 color: #027a48;
77 }
78 &--4 {
79 background: #eff8ff;
80 color: #175cd3;
81 }
82 &--5 {
83 background: #f7fefc;
84 color: #00b884;
85 }
86 &--6 {
87 background: #fffcf5;
88 color: #fdb022;
89 }
90
91 // Placeholder chip shown while the saved selection resolves — same height
92 // as a real chip (reuses the FAQ skeleton shimmer) so the chip row keeps
93 // its space and the modal doesn't jump on load.
94 &--skeleton {
95 min-width: 96px;
96 pointer-events: none;
97 background: linear-gradient(
98 90deg,
99 var(--text-color-200) 25%,
100 var(--text-color-100) 37%,
101 var(--text-color-200) 63%
102 );
103 background-size: 400% 100%;
104 animation: bd-faq-skeleton-shimmer 1.4s ease infinite;
105 }
106 }
107 }
108