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 / scss / ai-edit.scss

ai-edit.scss in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/scss/ai-edit.scss

167 lines 4.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // Redesigned modal uses the shared AI design system (tokens + preview typography).
2 @import "../gutenberg/ai-shared/tokens";
3 @import "../gutenberg/ai-shared/preview";
4
5 $betterdocs-green: #00B884;
6 $betterdocs-green-hover: #019970;
7 $betterdocs-green-active: #017d5b;
8
9 .betterdocs-ai-edit-modal {
10 max-width: 640px;
11 width: 100%;
12
13 .components-modal__content {
14 padding-top: 16px;
15 }
16
17 .betterdocs-ai-edit__label {
18 font-weight: 600;
19 font-size: 12px;
20 text-transform: uppercase;
21 letter-spacing: 0.4px;
22 color: #1e1e1e;
23 margin: 0 0 8px;
24 }
25
26 .betterdocs-ai-edit__selection {
27 background: #f3fbf7;
28 border-left: 3px solid $betterdocs-green;
29 padding: 12px 14px;
30 border-radius: 2px;
31 margin-bottom: 18px;
32 }
33
34 .betterdocs-ai-edit__selection-text {
35 font-size: 13px;
36 line-height: 1.5;
37 color: #50575e;
38 white-space: pre-wrap;
39 word-break: break-word;
40 max-height: 120px;
41 overflow: auto;
42 }
43
44 .betterdocs-ai-edit__presets {
45 display: flex;
46 flex-wrap: wrap;
47 gap: 6px;
48 margin-bottom: 18px;
49
50 .components-button {
51 font-size: 12px;
52 height: auto;
53 min-height: 30px;
54 padding: 4px 10px;
55 }
56 }
57
58 // Consistent vertical rhythm for form controls between presets and actions.
59 .components-base-control,
60 .components-select-control,
61 .components-textarea-control {
62 margin-bottom: 18px;
63 }
64
65 .components-base-control + .components-base-control {
66 margin-top: 0;
67 }
68
69 .betterdocs-ai-edit__result {
70 margin-top: 4px;
71 margin-bottom: 18px;
72 border: 1px solid #ddd;
73 border-radius: 4px;
74 padding: 12px 14px;
75 background: #fff;
76
77 .betterdocs-ai-edit__result-body {
78 font-size: 14px;
79 line-height: 1.6;
80 max-height: 260px;
81 overflow: auto;
82
83 > * {
84 margin: 0 0 8px;
85 }
86
87 > *:last-child {
88 margin-bottom: 0;
89 }
90 }
91 }
92
93 .betterdocs-ai-edit__actions {
94 display: flex;
95 flex-wrap: wrap;
96 justify-content: flex-end;
97 gap: 8px;
98 margin-top: 18px;
99 align-items: center;
100
101 .components-spinner {
102 margin: 0 6px 0 0;
103 }
104 }
105 }
106
107 // Green overrides for WP components used inside the AI Edit modal.
108 // Scoped to the modal so nothing else on the admin screen is affected.
109 .components-modal__frame.betterdocs-ai-edit-modal,
110 .betterdocs-ai-edit-modal {
111 .components-button.is-primary {
112 background: $betterdocs-green;
113 color: #fff;
114 box-shadow: inset 0 0 0 1px $betterdocs-green;
115
116 &:not(:disabled):hover,
117 &:not(:disabled):focus {
118 background: $betterdocs-green-hover;
119 box-shadow: inset 0 0 0 1px $betterdocs-green-hover;
120 color: #fff;
121 }
122
123 &:not(:disabled):active {
124 background: $betterdocs-green-active;
125 box-shadow: inset 0 0 0 1px $betterdocs-green-active;
126 }
127
128 &[aria-disabled="true"]="true""],
129 &:disabled {
130 background: #9ad8c4;
131 box-shadow: none;
132 color: #fff;
133 cursor: not-allowed;
134 }
135 }
136
137 .components-button.is-secondary {
138 color: $betterdocs-green;
139 box-shadow: inset 0 0 0 1px $betterdocs-green;
140 background: transparent;
141
142 &:not(:disabled):hover,
143 &:not(:disabled):focus {
144 color: $betterdocs-green-hover;
145 box-shadow: inset 0 0 0 1px $betterdocs-green-hover;
146 background: rgba($betterdocs-green, 0.06);
147 }
148
149 &:not(:disabled):active {
150 color: $betterdocs-green-active;
151 box-shadow: inset 0 0 0 1px $betterdocs-green-active;
152 }
153 }
154
155 .components-button.is-tertiary,
156 .components-button.is-link {
157 color: $betterdocs-green;
158
159 &:not(:disabled):hover,
160 &:not(:disabled):focus {
161 color: $betterdocs-green-hover;
162 background: rgba($betterdocs-green, 0.06);
163 box-shadow: none;
164 }
165 }
166 }
167