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 / api-docs / api-docs-teaser.scss

api-docs-teaser.scss in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/admin/api-docs/api-docs-teaser.scss

176 lines 4.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Free's API Docs teaser.
2 *
3 * Only the blurred mock behind the lock panel lives here — the panel itself is
4 * the shared `.bda-lock-*` shell from the Analytics teasers. The API-specific
5 * column/chip classes are `bd-apit-*` (api teaser) rather than Pro's `bd-api-*`
6 * so the two never collide: Free's teaser and Pro's real screen are mutually
7 * exclusive, and keeping the names apart makes that obvious.
8 *
9 * The table shell (`.bd-dc-tree-card`, `.bd-dc-row`, `.bd-dc-row-action`) is
10 * Free's own Doc Categories table styling, reused as-is.
11 */
12
13 .bd-apit-wrapper {
14 .bda-page { padding: 0; }
15 }
16
17 .bd-apit-mock {
18 display: flex;
19 flex-direction: column;
20 gap: 20px;
21 }
22
23 /* ── Reference list ──────────────────────────────────────────────────── */
24
25 .bd-apit-c {
26 min-width: 0;
27 box-sizing: border-box;
28 }
29
30 .bd-apit-c-name { flex: 1; min-width: 0; }
31 .bd-apit-c-endpoints { width: 100px; flex-shrink: 0; }
32 .bd-apit-c-status { width: 120px; flex-shrink: 0; }
33 .bd-apit-c-actions { width: 130px; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
34
35 .bd-apit-name { display: block; }
36
37 .bd-apit-source {
38 font-size: 12px;
39 color: var(--text-color-500);
40 }
41
42 .bd-apit-chip {
43 display: inline-flex;
44 align-items: center;
45 margin-left: 8px;
46 padding: 2px 8px;
47 border-radius: 999px;
48 border: 1px solid var(--text-color-150);
49 background: var(--page-background, #f5f6fb);
50 font-size: 11px;
51 font-weight: 500;
52 color: var(--text-color-600);
53 }
54
55 .bd-apit-chip--postman {
56 border-color: #f7c9a8;
57 background: #fff4ec;
58 color: #b8511a;
59 }
60
61 .bd-apit-count {
62 font-size: 14px;
63 font-weight: 600;
64 color: var(--text-color-900);
65 font-variant-numeric: tabular-nums;
66 }
67
68 .bd-apit-status {
69 display: inline-flex;
70 align-items: center;
71 padding: 3px 10px;
72 border-radius: 999px;
73 font-size: 11.5px;
74 font-weight: 600;
75 }
76
77 .bd-apit-status--publish { background: var(--base-color-50, #e6f7f1); color: var(--base-color-700, #00916e); }
78 .bd-apit-status--draft { background: var(--warning-50, #fff7e6); color: #b45309; }
79
80 /* ── Rendered reference preview ──────────────────────────────────────── */
81
82 .bd-apit-preview {
83 border: 1px solid var(--text-color-150);
84 border-radius: 8px;
85 background: var(--base-background);
86 overflow: hidden;
87 }
88
89 .bd-apit-preview-head {
90 display: flex;
91 align-items: center;
92 gap: 4px;
93 padding: 14px 20px;
94 border-bottom: 1px solid var(--text-color-150);
95 }
96
97 .bd-apit-preview-title {
98 font-size: 14px;
99 font-weight: 600;
100 color: var(--text-color-900);
101 }
102
103 .bd-apit-endpoints {
104 display: flex;
105 flex-direction: column;
106 }
107
108 .bd-apit-endpoint {
109 display: flex;
110 align-items: center;
111 gap: 12px;
112 padding: 12px 20px;
113 border-top: 1px solid var(--text-color-100, #eaecf0);
114
115 &:first-child { border-top: none; }
116 }
117
118 .bd-apit-verb {
119 flex-shrink: 0;
120 width: 62px;
121 text-align: center;
122 padding: 3px 0;
123 border-radius: 4px;
124 font-size: 11px;
125 font-weight: 700;
126 letter-spacing: 0.04em;
127 color: #fff;
128 }
129
130 .bd-apit-verb--get { background: #0f7b6c; }
131 .bd-apit-verb--post { background: #2563eb; }
132 .bd-apit-verb--patch { background: #b45309; }
133 .bd-apit-verb--delete { background: #b42318; }
134
135 .bd-apit-path {
136 flex: 1;
137 min-width: 0;
138 font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
139 font-size: 12.5px;
140 color: var(--text-color-700);
141 background: none;
142 padding: 0;
143 white-space: nowrap;
144 overflow: hidden;
145 text-overflow: ellipsis;
146 }
147
148 .bd-apit-tryit {
149 flex-shrink: 0;
150 padding: 4px 12px;
151 border-radius: 6px;
152 border: 1px solid var(--base-color-700, #00916e);
153 color: var(--base-color-700, #00916e);
154 font-size: 12px;
155 font-weight: 500;
156 }
157
158 @media (max-width: 782px) {
159 .bd-apit-c-endpoints,
160 .bd-apit-c-status { width: auto; }
161 .bd-apit-tryit { display: none; }
162 }
163
164 /* Dark mode — the two places the mock reaches past the theme tokens for a
165 brand-ish tint (the Postman chip, the "Try it" pill). Everything else is
166 token-driven and flips on its own. */
167 .betterdocs-admin.betterdocs-dark-mode {
168 .bd-apit-chip--postman {
169 border-color: rgba(247, 201, 168, 0.35);
170 background: rgba(180, 81, 26, 0.18);
171 color: #f0a56f;
172 }
173
174 .bd-apit-path { color: var(--text-color-600); }
175 }
176