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 / partials / categories-folder.scss

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

319 lines 10.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .betterdocs-categories-folder {
2 &.layout-4 {
3 display: grid;
4 grid-template-columns: repeat(var(--column, 4), 1fr);
5 gap: 0;
6 position: inherit;
7
8 .category-box {
9 display: flex;
10 flex-direction: column;
11 padding: 40px 20px;
12 border-right: 1px solid #EAECF0;
13 border-bottom: 1px solid #EAECF0;
14 background: #fff;
15 transition: ease-in-out .35s;
16 text-decoration: none;
17
18 @media only screen and (max-width: 1024px) {
19 padding: 28px 16px;
20 }
21 // Remove right border for the last column in each row
22 &.no-border-right {
23 border-right: none;
24 }
25
26 // Remove bottom border for the last row
27 &.no-border-bottom {
28 border-bottom: none;
29 }
30
31 &:hover {
32 background: #F6FEF9;
33 }
34
35 &:focus {
36 outline: none;
37 }
38
39 .betterdocs-single-category-inner {
40 display: flex;
41 flex-direction: column;
42
43 .betterdocs-category-header-inner {
44
45 .betterdocs-folder-icon {
46 display: inline-flex;
47 width: 32px;
48 height: 32px;
49 justify-content: center;
50 align-items: center;
51 background: #F2F4F7;
52 border-radius: 6px;
53 margin-bottom: 16px;
54
55 svg {
56 width: 18px;
57 }
58 }
59
60 .betterdocs-category-title-counts {
61 flex: 1;
62 display: flex;
63 flex-direction: column;
64 justify-content: center;
65 align-items: center;
66
67 .betterdocs-new-post-tag {
68 position: absolute;
69 top: 10px;
70 right: 14px;
71 display: inline-flex;
72 justify-content: center;
73 align-items: center;
74 width: 40px;
75 height: 40px;
76 background: #F63D68;
77 border-radius: 50%;
78 font-size: 14px;
79 font-weight: 500;
80 color: #FFFFFF;
81 margin: 0;
82
83 @media only screen and (max-width: 768px) {
84 width: 32px;
85 height: 32px;
86 background: #F63D68;
87 border-radius: 50%;
88 font-size: 12px;
89 }
90 }
91
92 .betterdocs-category-title {
93 color: #1D2939;
94 font-size: 24px;
95 font-weight: 500;
96 line-height: 1.2em;
97 text-align: center;
98 margin-bottom: 16px;
99
100 @media only screen and (max-width: 1024px) {
101 font-size: 18px;
102 margin-bottom: 8px;
103 }
104 }
105
106 .betterdocs-sub-category-items-counts {
107 font-size: 16px;
108 line-height: 1.1em;
109 font-weight: 500;
110 color: #475467;
111 margin-bottom: 6px;
112 text-align: center;
113
114 @media only screen and (max-width: 1024px) {
115 font-size: 14px;
116 margin-bottom: 6px;
117 }
118 }
119
120 .betterdocs-last-update {
121 font-size: 12px;
122 color: #475467;
123 line-height: 1.4em;
124 padding: 8px;
125 background: #FFFCF5;
126 border-radius: 4px;
127 text-align: center;
128 margin: 0;
129 }
130 }
131 }
132 }
133 }
134 // If there are fewer than 4 items, adjust the grid to center them
135 &[style*="--count: 3;"]*="--count: 3;""] {
136 grid-template-columns: repeat(3, 1fr);
137 justify-content: center;
138 .category-box {
139 &:nth-child(3n) {
140 border-right: none;
141 }
142 }
143 @media only screen and (max-width: 768px) {
144 grid-template-columns: repeat(2, 1fr);
145 }
146 @media only screen and (max-width: 500px) {
147 grid-template-columns: 1fr;
148 }
149 }
150
151 &[style*="--count: 2;"]*="--count: 2;""] {
152 grid-template-columns: repeat(2, 1fr);
153 @media only screen and (max-width: 500px) {
154 grid-template-columns: 1fr;
155 }
156 justify-content: center;
157 .category-box {
158 &:nth-child(2n) {
159 border-right: none;
160 }
161 }
162 }
163
164 &[style*="--count: 1;"]*="--count: 1;""] {
165 grid-template-columns: 1fr;
166 justify-content: center;
167 .category-box {
168 border-right: none;
169 }
170 }
171 }
172 &.docs-col-5 {
173 @media only screen and (max-width: 1024px) {
174 grid-template-columns: repeat(3, 1fr);
175 }
176 @media only screen and (max-width: 768px) {
177 grid-template-columns: repeat(2, 1fr);
178 }
179
180 .category-box {
181 @media only screen and (max-width: 1024px) {
182 &:nth-child(3n) {
183 border-right: none;
184 }
185 &:nth-child(5n) {
186 border-right: 1px solid #EAECF0;
187 }
188
189 &:nth-last-child(-n + 3) {
190 border-bottom: none;
191 }
192 &:nth-last-child(5) {
193 border-bottom: 1px solid #EAECF0;
194 }
195 }
196
197 @media only screen and (max-width: 768px) {
198 &:nth-child(2n) {
199 border-right: none;
200 }
201 &:nth-child(3n) {
202 border-right: 1px solid #EAECF0;
203 }
204 &:nth-last-child(-n + 2) {
205 border-bottom: none;
206 }
207 &:nth-last-child(3) {
208 border-bottom: 1px solid #EAECF0;
209 }
210 }
211 }
212 }
213 &.docs-col-4,
214 &.docs-col-3 {
215 @media only screen and (max-width: 1024px) {
216 grid-template-columns: repeat(3, 1fr);
217 }
218
219 @media only screen and (max-width: 768px) {
220 grid-template-columns: repeat(2, 1fr);
221 }
222 .category-box {
223 @media only screen and (max-width: 1024px) {
224 &:nth-child(3n) {
225 border-right: none;
226 }
227 &:nth-child(4n) {
228 border-right: 1px solid #EAECF0;
229 }
230
231 &:nth-last-child(-n + 3) {
232 border-bottom: none;
233 }
234 &:nth-last-child(4) {
235 border-bottom: 1px solid #EAECF0;
236 }
237 }
238
239 @media only screen and (max-width: 768px) {
240 &:nth-child(2n) {
241 border-right: none;
242 }
243 &:nth-child(3n) {
244 border-right: 1px solid #EAECF0;
245 }
246 &:nth-last-child(-n + 2) {
247 border-bottom: none;
248 }
249 &:nth-last-child(3) {
250 border-bottom: 1px solid #EAECF0;
251 }
252 }
253 }
254 }
255 &.docs-col-2 {
256 grid-template-columns: repeat(2, 1fr);
257 }
258 }
259 .betterdocs-archive-layout-7 {
260 .betterdocs-categories-folder {
261 &.layout-4 {
262 &.docs-col-3 {
263 @media only screen and (max-width: 1024px) {
264 grid-template-columns: repeat(2, 1fr);
265 }
266 @media only screen and (max-width: 768px) {
267 grid-template-columns: repeat(1, 1fr);
268 }
269 .category-box {
270 @media only screen and (max-width: 1024px) {
271 &:nth-child(2n) {
272 border-right: none;
273 }
274 &:nth-child(3n) {
275 border-right: 1px solid #EAECF0;
276 }
277 &:nth-last-child(-n + 2) {
278 border-bottom: none;
279 }
280 &:nth-last-child(3) {
281 border-bottom: 1px solid #EAECF0;
282 }
283 }
284 @media only screen and (max-width: 768px) {
285 border-right: none !important;
286 border-bottom: 1px solid #EAECF0 !important;
287 &:last-child {
288 border-bottom: none !important;
289 }
290 }
291 }
292 &[style*="--count: 1;"]*="--count: 1;""] {
293 grid-template-columns: repeat(3, 1fr);
294 justify-content: center;
295 @media only screen and (max-width: 1024px) {
296 grid-template-columns: repeat(2, 1fr);
297 }
298 @media only screen and (max-width: 767px) {
299 grid-template-columns: 1fr;
300 }
301 .category-box {
302 border-right: 1px solid #EAECF0;
303 border-bottom: none;
304 @media only screen and (max-width: 1024px) {
305 border-right: 1px solid #EAECF0 !important;
306 }
307 @media only screen and (max-width: 767px) {
308 border-left: none !important;
309 border-right: none !important;
310 border-top: 1px solid #EAECF0 !important;
311 border-bottom: 1px solid #EAECF0 !important;
312 }
313 }
314 }
315 }
316 }
317 }
318 }
319