PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 2.0.7
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v2.0.7
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 3.4.2 3.5.0 3.5.1 3.5.2 All 199 releases
betterdocs / admin / assets / js / customizer.js

customizer.js in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 2.0.7, at admin/assets/js/customizer.js

1,801 lines 76.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * File customizer.js.
3 *
4 * Theme Customizer enhancements for a better user experience.
5 *
6 * Contains handlers to make Theme Customizer preview reload changes asynchronously.
7 */
8
9 ( function( $ ) {
10
11 // Container width
12 wp.customize( 'betterdocs_doc_page_background_color', function( value ) {
13 value.bind( function( to ) {
14 $( '.betterdocs-wraper.betterdocs-main-wraper' ).css( 'background-color', to );
15 } );
16 });
17
18 wp.customize( 'betterdocs_doc_page_background_image', function( value ) {
19 value.bind( function( to ) {
20 $( '.betterdocs-wraper.betterdocs-main-wraper' ).css( 'background-image', 'url('+to+')');
21 } );
22 });
23
24 wp.customize( 'betterdocs_doc_page_background_size', function( value ) {
25 value.bind( function( to ) {
26 $( '.betterdocs-wraper.betterdocs-main-wraper' ).css( 'background-size', to);
27 } );
28 });
29
30 wp.customize( 'betterdocs_doc_page_background_repeat', function( value ) {
31 value.bind( function( to ) {
32 $( '.betterdocs-wraper.betterdocs-main-wraper' ).css( 'background-repeat', to);
33 } );
34 });
35
36 wp.customize( 'betterdocs_doc_page_background_attachment', function( value ) {
37 value.bind( function( to ) {
38 $( '.betterdocs-wraper.betterdocs-main-wraper' ).css( 'background-attachment', to);
39 } );
40 });
41
42 wp.customize( 'betterdocs_doc_page_background_position', function( value ) {
43 value.bind( function( to ) {
44 $( '.betterdocs-wraper.betterdocs-main-wraper' ).css( 'background-position', to);
45 } );
46 });
47
48 wp.customize( 'betterdocs_doc_page_content_padding_top', function( value ) {
49 value.bind( function( to ) {
50 $( '.betterdocs-archive-wrap.betterdocs-archive-main' ).css( 'padding-top', to + 'px' );
51 } );
52 });
53
54 wp.customize( 'betterdocs_doc_page_content_padding_right', function( value ) {
55 value.bind( function( to ) {
56 $( '.betterdocs-archive-wrap.betterdocs-archive-main' ).css( 'padding-right', to + 'px' );
57 } );
58 });
59
60 wp.customize( 'betterdocs_doc_page_content_padding_bottom', function( value ) {
61 value.bind( function( to ) {
62 $( '.betterdocs-archive-wrap.betterdocs-archive-main' ).css( 'padding-bottom', to + 'px' );
63 } );
64 });
65
66 wp.customize( 'betterdocs_doc_page_content_padding_left', function( value ) {
67 value.bind( function( to ) {
68 $( '.betterdocs-archive-wrap.betterdocs-archive-main' ).css( 'padding-left', to + 'px' );
69 } );
70 });
71
72 wp.customize( 'betterdocs_doc_page_content_max_width', function( value ) {
73 value.bind( function( to ) {
74 $( '.betterdocs-categories-wrap.single-kb' ).css( 'max-width', to + 'px' );
75 } );
76 });
77
78 wp.customize( 'betterdocs_doc_page_content_width', function( value ) {
79 value.bind( function( to ) {
80 $( '.betterdocs-categories-wrap.single-kb' ).css( 'width', to + '%' );
81 } );
82 });
83
84 wp.customize( 'betterdocs_doc_page_column_space', function( value ) {
85 value.bind( function( to ) {
86 $( '.betterdocs-categories-wrap.single-kb .docs-single-cat-wrap' ).css( 'margin', to + 'px' );
87 $( '.betterdocs-categories-wrap.single-kb.layout-flex .docs-single-cat-wrap' ).css( 'margin', to + 'px' );
88 } );
89 });
90
91 wp.customize( 'betterdocs_doc_page_column_padding_top', function( value ) {
92 value.bind( function( to ) {
93 $( '.betterdocs-categories-wrap.single-kb .docs-single-cat-wrap .docs-cat-title-wrap,.betterdocs-categories-wrap.betterdocs-category-box .docs-single-cat-wrap,.betterdocs-categories-wrap .docs-single-cat-wrap.docs-cat-list-2-box' ).css( 'padding-top', to + 'px' );
94 } );
95 });
96
97 wp.customize( 'betterdocs_doc_page_column_padding_right', function( value ) {
98 value.bind( function( to ) {
99 $( '.betterdocs-categories-wrap.single-kb .docs-single-cat-wrap .docs-cat-title-wrap,.docs-item-container,.betterdocs-categories-wrap.betterdocs-category-box .docs-single-cat-wrap,.betterdocs-categories-wrap .docs-single-cat-wrap.docs-cat-list-2-box' ).css( 'padding-right', to + 'px' );
100 } );
101 });
102
103 wp.customize( 'betterdocs_doc_page_column_padding_bottom', function( value ) {
104 value.bind( function( to ) {
105 $( '.docs-item-container,.betterdocs-category-box.single-kb .docs-single-cat-wrap,.betterdocs-categories-wrap .docs-single-cat-wrap.docs-cat-list-2-box' ).css( 'padding-bottom', to + 'px' );
106 } );
107 });
108
109 wp.customize( 'betterdocs_doc_page_column_padding_left', function( value ) {
110 value.bind( function( to ) {
111 $( '.betterdocs-categories-wrap.single-kb .docs-single-cat-wrap .docs-cat-title-wrap,.docs-item-container,.betterdocs-categories-wrap.betterdocs-category-box .docs-single-cat-wrap,.betterdocs-categories-wrap .docs-single-cat-wrap.docs-cat-list-2-box' ).css( 'padding-left', to + 'px' );
112 } );
113 });
114
115 wp.customize( 'betterdocs_doc_page_column_padding_right', function( value ) {
116 value.bind( function( to ) {
117 $( '.betterdocs-categories-wrap.single-kb .docs-single-cat-wrap .docs-item-container' ).css( 'padding-right', to + 'px' );
118 } );
119 });
120
121 wp.customize( 'betterdocs_doc_page_column_padding_bottom', function( value ) {
122 value.bind( function( to ) {
123 $( '.betterdocs-categories-wrap.single-kb .docs-single-cat-wrap .docs-item-container' ).css( 'padding-bottom', to + 'px' );
124 } );
125 });
126
127 wp.customize( 'betterdocs_doc_page_column_padding_left', function( value ) {
128 value.bind( function( to ) {
129 $( '.betterdocs-categories-wrap.single-kb .docs-single-cat-wrap .docs-item-container' ).css( 'padding-left', to + 'px' );
130 } );
131 });
132
133
134 // Container width
135 wp.customize( 'betterdocs_doc_page_column_bg_color', function( value ) {
136 value.bind( function( to ) {
137 $( '.betterdocs-category-list .white-bg .docs-single-cat-wrap,.betterdocs-category-box.white-bg .docs-single-cat-wrap,.betterdocs-categories-wrap.white-bg .docs-single-cat-wrap' ).css( 'background-color', to );
138 } );
139 });
140
141 wp.customize( 'betterdocs_doc_page_column_bg_color2', function( value ) {
142 value.bind( function( to ) {
143 $( '.betterdocs-category-box.single-kb.ash-bg .docs-single-cat-wrap' ).css( 'background-color', to );
144 } );
145 });
146
147 wp.customize( 'betterdocs_doc_page_column_borderr_topleft', function( value ) {
148 value.bind( function( to ) {
149 $( '.betterdocs-categories-wrap.single-kb .docs-single-cat-wrap, .betterdocs-categories-wrap.single-kb .docs-single-cat-wrap .docs-cat-title-wrap' ).css( 'border-top-left-radius', to + 'px' );
150 } );
151 });
152
153 wp.customize( 'betterdocs_doc_page_column_borderr_topright', function( value ) {
154 value.bind( function( to ) {
155 $( '.betterdocs-categories-wrap.single-kb .docs-single-cat-wrap, .betterdocs-categories-wrap.single-kb .docs-single-cat-wrap .docs-cat-title-wrap' ).css( 'border-top-right-radius', to + 'px' );
156 } );
157 });
158
159 wp.customize( 'betterdocs_doc_page_column_borderr_bottomright', function( value ) {
160 value.bind( function( to ) {
161 $( '.betterdocs-categories-wrap.single-kb .docs-single-cat-wrap, .betterdocs-categories-wrap.single-kb .docs-single-cat-wrap .docs-item-container' ).css( 'border-bottom-right-radius', to + 'px' );
162 } );
163 });
164
165 wp.customize( 'betterdocs_doc_page_column_borderr_bottomleft', function( value ) {
166 value.bind( function( to ) {
167 $( '.betterdocs-categories-wrap.single-kb .docs-single-cat-wrap, .betterdocs-categories-wrap.single-kb .docs-single-cat-wrap .docs-item-container' ).css( 'border-bottom-left-radius', to + 'px' );
168 } );
169 });
170
171 wp.customize( 'betterdocs_doc_page_cat_icon_size_layout1', function( value ) {
172 value.bind( function( to ) {
173 $( '.docs-cat-title img' ).css( 'height', to + 'px' );
174 } );
175 });
176
177 wp.customize( 'betterdocs_doc_page_cat_icon_size_layout2', function( value ) {
178 value.bind( function( to ) {
179 $( '.betterdocs-category-box.single-kb .docs-single-cat-wrap img' ).css( 'height', to + 'px' );
180 } );
181 });
182
183 wp.customize( 'betterdocs_doc_page_column_content_space_image', function( value ) {
184 value.bind( function( to ) {
185 $( '.betterdocs-category-box.single-kb .docs-single-cat-wrap img' ).css( 'margin-bottom', to + 'px' );
186 } );
187 });
188
189 wp.customize( 'betterdocs_doc_page_column_content_space_title', function( value ) {
190 value.bind( function( to ) {
191 $( '.betterdocs-category-box.single-kb .docs-single-cat-wrap .docs-cat-title, .pro-layout-4.single-kb .docs-cat-list-2-box-content .docs-cat-title' ).css( 'margin-bottom', to + 'px' );
192 } );
193 });
194
195 wp.customize( 'betterdocs_doc_page_column_content_space_desc', function( value ) {
196 value.bind( function( to ) {
197 $( '.betterdocs-category-box.single-kb .docs-single-cat-wrap p' ).css( 'margin-bottom', to + 'px' );
198 } );
199 });
200
201 wp.customize( 'betterdocs_doc_page_column_content_space_counter', function( value ) {
202 value.bind( function( to ) {
203 $( '.betterdocs-category-box.single-kb .docs-single-cat-wrap span' ).css( 'margin-bottom', to + 'px' );
204 } );
205 });
206
207 wp.customize( 'betterdocs_doc_page_cat_title_font_size', function( value ) {
208 value.bind( function( to ) {
209 $( '.single-kb .docs-cat-title-inner .docs-cat-heading, .betterdocs-category-box.single-kb .docs-single-cat-wrap .docs-cat-title, .single-kb .docs-cat-list-2-items .docs-cat-title, .single-kb .docs-cat-list-2-box .docs-cat-title' ).css( 'font-size', to + 'px' );
210 } );
211 });
212
213 wp.customize( 'betterdocs_doc_page_cat_title_color', function( value ) {
214 value.bind( function( to ) {
215 $( '.single-kb .docs-cat-title-inner .docs-cat-heading' ).css( 'color', to );
216 } );
217 });
218
219 wp.customize( 'betterdocs_doc_page_cat_title_color2', function( value ) {
220 value.bind( function( to ) {
221 $( '.betterdocs-category-box.single-kb .docs-single-cat-wrap .docs-cat-title, .single-kb .docs-cat-list-2 .docs-cat-title' ).css( 'color', to );
222 } );
223 });
224
225 wp.customize( 'betterdocs_doc_page_cat_title_border_color', function( value ) {
226 value.bind( function( to ) {
227 $( '.docs-cat-title-inner' ).css( 'border-color', to );
228 } );
229 });
230
231 wp.customize( 'betterdocs_doc_page_cat_desc_color', function( value ) {
232 value.bind( function( to ) {
233 $( '.betterdocs-category-box.single-kb .docs-single-cat-wrap p' ).css( 'color', to );
234 } );
235 });
236
237 wp.customize( 'betterdocs_doc_page_item_count_color', function( value ) {
238 value.bind( function( to ) {
239 $( '.docs-cat-title-inner span' ).css( 'color', to );
240 } );
241 });
242
243 wp.customize( 'betterdocs_doc_page_item_count_font_size', function( value ) {
244 value.bind( function( to ) {
245 $( '.betterdocs-category-box.single-kb .docs-single-cat-wrap span, .betterdocs-categories-wrap.single-kb .docs-cat-title-wrap .docs-item-count span, .single-kb .docs-cat-list-2-box .title-count span' ).css( 'font-size', to + 'px' );
246 } );
247 });
248
249 wp.customize( 'betterdocs_doc_page_item_count_color_layout2', function( value ) {
250 value.bind( function( to ) {
251 $( '.betterdocs-categories-wrap.betterdocs-category-box .docs-single-cat-wrap span,.docs-cat-list-2-box .title-count span' ).css( 'color', to );
252 } );
253 });
254
255 wp.customize( 'betterdocs_doc_page_item_count_bg_color', function( value ) {
256 value.bind( function( to ) {
257 $( '.docs-item-count' ).css( 'background-color', to );
258 } );
259 });
260
261 wp.customize( 'betterdocs_doc_page_item_count_inner_bg_color', function( value ) {
262 value.bind( function( to ) {
263 $( '.docs-item-count span' ).css( 'background-color', to );
264 } );
265 });
266
267 wp.customize( 'betterdocs_doc_page_item_counter_size', function( value ) {
268 value.bind( function( to ) {
269 $( '.betterdocs-categories-wrap.single-kb .docs-cat-title-inner .docs-item-count span' ).css( 'width', to + 'px' );
270 $( '.betterdocs-categories-wrap.single-kb .docs-cat-title-inner .docs-item-count span' ).css( 'height', to + 'px' );
271 } );
272 });
273
274 wp.customize( 'betterdocs_doc_page_article_list_button_bg_color', function( value ) {
275 value.bind( function( to ) {
276 $( '.betterdocs-categories-wrap.single-kb .docs-item-container ul' ).css( 'background-color', to );
277 } );
278 });
279
280 wp.customize( 'betterdocs_doc_page_article_list_color', function( value ) {
281 value.bind( function( to ) {
282 console.log(to);
283 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li a, .betterdocs-popular-list.single-kb ul li a' ).css( 'color', to );
284 } );
285 });
286
287 wp.customize( 'betterdocs_doc_page_article_list_font_size', function( value ) {
288 value.bind( function( to ) {
289 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li a,.betterdocs-popular-list.single-kb ul li a' ).css( 'font-size', to + 'px' );
290
291 } );
292 });
293
294 wp.customize( 'betterdocs_doc_page_list_icon_color', function( value ) {
295 value.bind( function( to ) {
296 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li svg,.betterdocs-popular-list.single-kb ul li svg path' ).css( 'fill', to );
297 } );
298 });
299
300 wp.customize( 'betterdocs_doc_page_list_icon_font_size', function( value ) {
301 value.bind( function( to ) {
302 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li svg,.betterdocs-popular-list.single-kb ul li svg' ).css( 'font-size', to + 'px' );
303 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li svg,.betterdocs-popular-list.single-kb ul li svg' ).css( 'min-width', to + 'px' );
304 } );
305 });
306
307 wp.customize( 'betterdocs_doc_page_article_subcategory_color', function( value ) {
308 value.bind( function( to ) {
309 $( '.betterdocs-categories-wrap.single-kb .docs-item-container .docs-sub-cat-title a' ).css( 'color', to );
310 } );
311 });
312
313 wp.customize( 'betterdocs_doc_page_article_subcategory_font_size', function( value ) {
314 value.bind( function( to ) {
315 $( '.betterdocs-categories-wrap.single-kb .docs-item-container .docs-sub-cat-title a' ).css( 'font-size', to + 'px' );
316
317 } );
318 });
319
320 wp.customize( 'betterdocs_doc_page_subcategory_icon_color', function( value ) {
321 value.bind( function( to ) {
322 $( '.betterdocs-categories-wrap.single-kb .docs-item-container .docs-sub-cat-title svg' ).css( 'fill', to );
323 } );
324 });
325
326 wp.customize( 'betterdocs_doc_page_subcategory_icon_font_size', function( value ) {
327 value.bind( function( to ) {
328 $( '.betterdocs-categories-wrap.single-kb .docs-item-container .docs-sub-cat-title svg' ).css( 'font-size', to + 'px' );
329 } );
330 });
331
332 wp.customize( 'betterdocs_doc_page_article_list_margin_top', function( value ) {
333 value.bind( function( to ) {
334 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li,.betterdocs-popular-list.single-kb ul li' ).css( 'margin-top', to + 'px' );
335 } );
336 });
337
338 wp.customize( 'betterdocs_doc_page_article_list_margin_right', function( value ) {
339 value.bind( function( to ) {
340 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li,.betterdocs-popular-list.single-kb ul li' ).css( 'margin-right', to + 'px' );
341 } );
342 });
343
344 wp.customize( 'betterdocs_doc_page_article_list_margin_bottom', function( value ) {
345 value.bind( function( to ) {
346 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li,.betterdocs-popular-list.single-kb ul li' ).css( 'margin-bottom', to + 'px' );
347 } );
348 });
349
350 wp.customize( 'betterdocs_doc_page_article_list_margin_left', function( value ) {
351 value.bind( function( to ) {
352 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li,.betterdocs-popular-list.single-kb ul li' ).css( 'margin-left', to + 'px' );
353 } );
354 });
355
356 wp.customize( 'betterdocs_doc_page_subcategory_article_list_color', function( value ) {
357 value.bind( function( to ) {
358 $( '.betterdocs-categories-wrap.single-kb .docs-item-container .docs-sub-cat li a' ).css( 'color', to );
359 } );
360 });
361
362 wp.customize( 'betterdocs_doc_page_subcategory_article_list_icon_color', function( value ) {
363 value.bind( function( to ) {
364 $( '.betterdocs-categories-wrap.single-kb .docs-item-container .docs-sub-cat li svg' ).css( 'fill', to );
365 } );
366 });
367
368 wp.customize( 'betterdocs_doc_page_explore_btn_bg_color', function( value ) {
369 value.bind( function( to ) {
370 $( '.docs-cat-link-btn' ).css( 'background-color', to );
371 } );
372 });
373
374 wp.customize( 'betterdocs_doc_page_explore_btn_color', function( value ) {
375 value.bind( function( to ) {
376 $( '.docs-cat-link-btn' ).css( 'color', to );
377 } );
378 });
379
380 wp.customize( 'betterdocs_doc_page_explore_btn_border_color', function( value ) {
381 value.bind( function( to ) {
382 $( '.docs-cat-link-btn' ).css( 'border-color', to );
383 } );
384 });
385
386 wp.customize( 'betterdocs_doc_page_explore_btn_font_size', function( value ) {
387 value.bind( function( to ) {
388 $( '.docs-cat-link-btn' ).css( 'font-size', to + 'px' );
389 } );
390 });
391
392 wp.customize( 'betterdocs_doc_page_explore_btn_padding_top', function( value ) {
393 value.bind( function( to ) {
394 $( '.docs-cat-link-btn' ).css( 'padding-top', to + 'px' );
395 } );
396 });
397
398 wp.customize( 'betterdocs_doc_page_explore_btn_padding_right', function( value ) {
399 value.bind( function( to ) {
400 $( '.docs-cat-link-btn' ).css( 'padding-right', to + 'px' );
401 } );
402 });
403
404 wp.customize( 'betterdocs_doc_page_explore_btn_padding_bottom', function( value ) {
405 value.bind( function( to ) {
406 $( '.docs-cat-link-btn' ).css( 'padding-bottom', to + 'px' );
407 } );
408 });
409
410 wp.customize( 'betterdocs_doc_page_explore_btn_padding_left', function( value ) {
411 value.bind( function( to ) {
412 $( '.docs-cat-link-btn' ).css( 'padding-left', to + 'px' );
413 } );
414 });
415
416 wp.customize( 'betterdocs_doc_page_explore_btn_borderr_topleft', function( value ) {
417 value.bind( function( to ) {
418 $( '.docs-cat-link-btn' ).css( 'border-top-left-radius', to + 'px' );
419 } );
420 });
421
422 wp.customize( 'betterdocs_doc_page_explore_btn_borderr_topright', function( value ) {
423 value.bind( function( to ) {
424 $( '.docs-cat-link-btn' ).css( 'border-top-right-radius', to + 'px' );
425 } );
426 });
427
428 wp.customize( 'betterdocs_doc_page_explore_btn_borderr_bottomright', function( value ) {
429 value.bind( function( to ) {
430 $( '.docs-cat-link-btn' ).css( 'border-bottom-right-radius', to + 'px' );
431 } );
432 });
433
434 wp.customize( 'betterdocs_doc_page_explore_btn_borderr_bottomleft', function( value ) {
435 value.bind( function( to ) {
436 $( '.docs-cat-link-btn' ).css( 'border-bottom-left-radius', to + 'px' );
437 } );
438 });
439
440 wp.customize( 'betterdocs_doc_single_content_area_bg_color', function( value ) {
441 value.bind( function( to ) {
442 $( '.betterdocs-single-bg .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'background-color', to );
443 } );
444 });
445
446 wp.customize( 'betterdocs_doc_single_content_area_padding_top', function( value ) {
447 value.bind( function( to ) {
448 $( '.betterdocs-single-wraper .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'padding-top', to + 'px' );
449 } );
450 });
451
452 wp.customize( 'betterdocs_doc_single_content_area_padding_right', function( value ) {
453 value.bind( function( to ) {
454 $( '.betterdocs-single-wraper .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'padding-right', to + 'px' );
455 } );
456 });
457
458 wp.customize( 'betterdocs_doc_single_content_area_padding_bottom', function( value ) {
459 value.bind( function( to ) {
460 $( '.betterdocs-single-wraper .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'padding-bottom', to + 'px' );
461 } );
462 });
463
464 wp.customize( 'betterdocs_doc_single_content_area_padding_left', function( value ) {
465 value.bind( function( to ) {
466 $( '.betterdocs-single-wraper .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'padding-left', to + 'px' );
467 } );
468 });
469
470 wp.customize( 'betterdocs_doc_single_post_content_padding_top', function( value ) {
471 value.bind( function( to ) {
472 $( '.betterdocs-single-wraper .betterdocs-content-area .docs-single-main' ).css( 'padding-top', to + 'px' );
473 } );
474 });
475
476 wp.customize( 'betterdocs_doc_single_post_content_padding_right', function( value ) {
477 value.bind( function( to ) {
478 $( '.betterdocs-single-wraper .betterdocs-content-area .docs-single-main' ).css( 'padding-right', to + 'px' );
479 } );
480 });
481
482 wp.customize( 'betterdocs_doc_single_post_content_padding_bottom', function( value ) {
483 value.bind( function( to ) {
484 $( '.betterdocs-single-wraper .betterdocs-content-area .docs-single-main' ).css( 'padding-bottom', to + 'px' );
485 } );
486 });
487
488 wp.customize( 'betterdocs_doc_single_post_content_padding_left', function( value ) {
489 value.bind( function( to ) {
490 $( '.betterdocs-single-wraper .betterdocs-content-area .docs-single-main' ).css( 'padding-left', to + 'px' );
491 } );
492 });
493
494 wp.customize( 'betterdocs_doc_single_2_post_content_padding_top', function( value ) {
495 value.bind( function( to ) {
496 $( '.betterdocs-single-layout2 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-top', to + 'px' );
497 } );
498 });
499
500 wp.customize( 'betterdocs_doc_single_2_post_content_padding_right', function( value ) {
501 value.bind( function( to ) {
502 $( '.betterdocs-single-layout2 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-right', to + 'px' );
503 } );
504 });
505
506 wp.customize( 'betterdocs_doc_single_2_post_content_padding_bottom', function( value ) {
507 value.bind( function( to ) {
508 $( '.betterdocs-single-layout2 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-bottom', to + 'px' );
509 } );
510 });
511
512 wp.customize( 'betterdocs_doc_single_2_post_content_padding_left', function( value ) {
513 value.bind( function( to ) {
514 $( '.betterdocs-single-layout2 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-left', to + 'px' );
515 } );
516 });
517
518 wp.customize( 'betterdocs_doc_single_3_post_content_padding_top', function( value ) {
519 value.bind( function( to ) {
520 $( '.betterdocs-single-layout3 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-top', to + 'px' );
521 } );
522 });
523
524 wp.customize( 'betterdocs_doc_single_3_post_content_padding_right', function( value ) {
525 value.bind( function( to ) {
526 $( '.betterdocs-single-layout3 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-right', to + 'px' );
527 } );
528 });
529
530 wp.customize( 'betterdocs_doc_single_3_post_content_padding_bottom', function( value ) {
531 value.bind( function( to ) {
532 $( '.betterdocs-single-layout3 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-bottom', to + 'px' );
533 } );
534 });
535
536 wp.customize( 'betterdocs_doc_single_3_post_content_padding_left', function( value ) {
537 value.bind( function( to ) {
538 $( '.betterdocs-single-layout3 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-left', to + 'px' );
539 } );
540 });
541
542 wp.customize( 'betterdocs_single_doc_title_font_size', function( value ) {
543 value.bind( function( to ) {
544 $( '.docs-single-title .betterdocs-entry-title' ).css( 'font-size', to + 'px' );
545 } );
546 });
547
548 wp.customize( 'betterdocs_single_doc_title_color', function( value ) {
549 value.bind( function( to ) {
550 $( '.docs-single-title .betterdocs-entry-title' ).css( 'color', to );
551 } );
552 });
553
554 wp.customize( 'betterdocs_single_doc_breadcrumb_color', function( value ) {
555 value.bind( function( to ) {
556 $( '.betterdocs-breadcrumb .betterdocs-breadcrumb-item a' ).css( 'color', to );
557 } );
558 });
559
560 wp.customize( 'betterdocs_single_doc_breadcrumbs_font_size', function( value ) {
561 value.bind( function( to ) {
562 $( '.betterdocs-breadcrumb .betterdocs-breadcrumb-item a' ).css( 'font-size', to + 'px' );
563 $( '.betterdocs-breadcrumb-item.current span' ).css( 'font-size', to + 'px' );
564 $( '.betterdocs-breadcrumb .breadcrumb-delimiter' ).css( 'font-size', to + 'px' );
565 } );
566 });
567
568 wp.customize( 'betterdocs_single_doc_breadcrumb_speretor_color', function( value ) {
569 value.bind( function( to ) {
570 $( '.betterdocs-breadcrumb .breadcrumb-delimiter' ).css( 'color', to );
571 } );
572 });
573
574 wp.customize( 'betterdocs_single_doc_breadcrumb_active_item_color', function( value ) {
575 value.bind( function( to ) {
576 $( '.betterdocs-breadcrumb-item.current span' ).css( 'color', to );
577 } );
578 });
579
580 wp.customize( 'betterdocs_sticky_toc_width', function( value ) {
581 value.bind( function( to ) {
582 $( '.sticky-toc-container' ).css( 'width', to + 'px' );
583 } );
584 });
585
586 wp.customize( 'betterdocs_sticky_toc_zindex', function( value ) {
587 value.bind( function( to ) {
588 $( '.sticky-toc-container' ).css( 'z-index', to );
589 } );
590 });
591
592 wp.customize( 'betterdocs_sticky_toc_margin_top', function( value ) {
593 value.bind( function( to ) {
594 $( '.sticky-toc-container.toc-sticky' ).css( 'margin-top', to + 'px');
595 } );
596 });
597
598 wp.customize( 'betterdocs_toc_bg_color', function( value ) {
599 value.bind( function( to ) {
600 $( '.betterdocs-toc,.right-sidebar-toc-wrap' ).css( 'background-color', to );
601 } );
602 });
603
604 wp.customize( 'betterdocs_doc_single_toc_padding_top', function( value ) {
605 value.bind( function( to ) {
606 $( '.betterdocs-toc,.right-sidebar-toc-wrap' ).css( 'padding-top', to + 'px' );
607 } );
608 });
609
610 wp.customize( 'betterdocs_doc_single_toc_padding_right', function( value ) {
611 value.bind( function( to ) {
612 $( '.betterdocs-toc,.right-sidebar-toc-wrap' ).css( 'padding-right', to + 'px' );
613 } );
614 });
615
616 wp.customize( 'betterdocs_doc_single_toc_padding_bottom', function( value ) {
617 value.bind( function( to ) {
618 $( '.betterdocs-toc,.right-sidebar-toc-wrap' ).css( 'padding-bottom', to + 'px' );
619 } );
620 });
621
622 wp.customize( 'betterdocs_doc_single_toc_padding_left', function( value ) {
623 value.bind( function( to ) {
624 $( '.betterdocs-toc,.right-sidebar-toc-wrap' ).css( 'padding-left', to + 'px' );
625 } );
626 });
627
628 wp.customize( 'betterdocs_toc_title_color', function( value ) {
629 value.bind( function( to ) {
630 $( '.betterdocs-toc > .toc-title,.betterdocs-entry-content .betterdocs-toc.collapsible-sm .angle-icon' ).css( 'color', to );
631 } );
632 });
633
634 wp.customize( 'betterdocs_toc_title_font_size', function( value ) {
635 value.bind( function( to ) {
636 $( '.betterdocs-toc > .toc-title' ).css( 'font-size', to + 'px' );
637 } );
638 });
639
640 wp.customize( 'betterdocs_toc_list_item_color', function( value ) {
641 value.bind( function( to ) {
642 $( '.betterdocs-toc > .toc-list a' ).css( 'color', to );
643 } );
644 });
645
646 wp.customize( 'betterdocs_toc_active_item_color', function( value ) {
647 value.bind( function( to ) {
648 $( '.betterdocs-toc > .toc-list a.active' ).css( 'color', to );
649 } );
650 });
651
652 wp.customize( 'betterdocs_toc_list_item_font_size', function( value ) {
653 value.bind( function( to ) {
654 $( '.betterdocs-toc > .toc-list a' ).css( 'font-size', to + 'px' );
655 } );
656 });
657
658 wp.customize( 'betterdocs_doc_single_toc_list_margin_top', function( value ) {
659 value.bind( function( to ) {
660 $( '.betterdocs-toc > .toc-list a' ).css( 'margin-top', to + 'px' );
661 } );
662 });
663
664 wp.customize( 'betterdocs_doc_single_toc_list_margin_top', function( value ) {
665 value.bind( function( to ) {
666 $( '.betterdocs-toc > .toc-list li:before' ).css( 'padding-top', to + 'px' );
667 } );
668 });
669
670 wp.customize( 'betterdocs_doc_single_toc_list_margin_right', function( value ) {
671 value.bind( function( to ) {
672 $( '.betterdocs-toc > .toc-list a' ).css( 'margin-right', to + 'px' );
673 } );
674 });
675
676 wp.customize( 'betterdocs_doc_single_toc_list_margin_bottom', function( value ) {
677 value.bind( function( to ) {
678 $( '.betterdocs-toc > .toc-list a' ).css( 'margin-bottom', to + 'px' );
679 } );
680 });
681
682 wp.customize( 'betterdocs_doc_single_toc_list_margin_left', function( value ) {
683 value.bind( function( to ) {
684 $( '.betterdocs-toc > .toc-list a' ).css( 'margin-left', to + 'px' );
685 } );
686 });
687
688 wp.customize( 'betterdocs_toc_margin_bottom', function( value ) {
689 value.bind( function( to ) {
690 $( '.betterdocs-entry-content .betterdocs-toc' ).css( 'margin-bottom', to + 'px' );
691 } );
692 });
693
694 wp.customize( 'betterdocs_single_content_font_size', function( value ) {
695 value.bind( function( to ) {
696 $( '.betterdocs-content' ).css( 'font-size', to + 'px' );
697 } );
698 });
699
700 wp.customize( 'betterdocs_single_content_font_color', function( value ) {
701 value.bind( function( to ) {
702 $( '.betterdocs-content' ).css( 'color', to );
703 } );
704 });
705
706 wp.customize( 'betterdocs_post_social_share_text_color', function( value ) {
707 value.bind( function( to ) {
708 $( '.betterdocs-social-share .betterdocs-social-share-heading h5' ).css( 'color', to );
709 } );
710 });
711
712 wp.customize( 'betterdocs_single_doc_feedback_icon_font_size', function( value ) {
713 value.bind( function( to ) {
714 $( '.feedback-form-link .feedback-form-icon svg, .feedback-form-link .feedback-form-icon img' ).css( 'width', to + 'px' );
715 } );
716 });
717
718 wp.customize( 'betterdocs_single_doc_feedback_link_color', function( value ) {
719 value.bind( function( to ) {
720 $( '.betterdocs-entry-footer .feedback-form-link' ).css( 'color', to );
721 } );
722 });
723
724 wp.customize( 'betterdocs_single_doc_feedback_link_font_size', function( value ) {
725 value.bind( function( to ) {
726 $( '.betterdocs-entry-footer .feedback-form-link' ).css( 'font-size', to + 'px' );
727 } );
728 });
729
730 wp.customize( 'betterdocs_single_doc_feedback_link_color', function( value ) {
731 value.bind( function( to ) {
732 $( '.betterdocs-entry-footer .feedback-form-link' ).css( 'color', to );
733 } );
734 });
735
736 wp.customize( 'betterdocs_single_doc_feedback_title_font_size', function( value ) {
737 value.bind( function( to ) {
738 $( '.betterdocs-entry-footer .feedback-form .modal-content .feedback-form-title' ).css( 'font-size', to + 'px' );
739 } );
740 });
741
742 wp.customize( 'betterdocs_single_doc_feedback_title_color', function( value ) {
743 value.bind( function( to ) {
744 $( '.betterdocs-entry-footer .feedback-form .modal-content .feedback-form-title' ).css( 'color', to );
745 } );
746 });
747
748 wp.customize( 'betterdocs_single_doc_navigation_color', function( value ) {
749 value.bind( function( to ) {
750 $( '.docs-navigation a' ).css( 'color', to );
751 } );
752 });
753
754 wp.customize( 'betterdocs_single_doc_navigation_font_size', function( value ) {
755 value.bind( function( to ) {
756 $( '.docs-navigation a' ).css( 'font-size', to + 'px' );
757 } );
758 });
759
760 wp.customize( 'betterdocs_single_doc_navigation_arrow_color', function( value ) {
761 value.bind( function( to ) {
762 $( '.docs-navigation a svg' ).css( 'fill', to );
763 } );
764 });
765
766 wp.customize( 'betterdocs_single_doc_navigation_arrow_font_size', function( value ) {
767 value.bind( function( to ) {
768 $( '.docs-navigation a svg' ).css( 'width', to + 'px' );
769 } );
770 });
771
772 wp.customize( 'betterdocs_single_doc_lu_time_color', function( value ) {
773 value.bind( function( to ) {
774 $( '.betterdocs-entry-footer .update-date' ).css( 'color', to );
775 } );
776 });
777
778 wp.customize( 'betterdocs_single_doc_lu_time_font_size', function( value ) {
779 value.bind( function( to ) {
780 $( '.betterdocs-entry-footer .update-date' ).css( 'font-size', to + 'px' );
781 } );
782 });
783
784 wp.customize( 'betterdocs_single_doc_powered_by_color', function( value ) {
785 value.bind( function( to ) {
786 $( '.betterdocs-credit p' ).css( 'color', to );
787 } );
788 });
789
790 wp.customize( 'betterdocs_single_doc_powered_by_font_size', function( value ) {
791 value.bind( function( to ) {
792 $( '.betterdocs-credit p' ).css( 'font-size', to + 'px' );
793 } );
794 });
795
796 wp.customize( 'betterdocs_single_doc_powered_by_link_color', function( value ) {
797 value.bind( function( to ) {
798 $( '.betterdocs-credit p a' ).css( 'color', to );
799 } );
800 });
801
802 wp.customize( 'betterdocs_sidebar_bg_color', function( value ) {
803 value.bind( function( to ) {
804 $( '.betterdocs-sidebar-content .betterdocs-categories-wrap,.betterdocs-full-sidebar-left' ).css( 'background-color', to );
805 } );
806 });
807
808 wp.customize( 'betterdocs_sidebar_padding_top', function( value ) {
809 value.bind( function( to ) {
810 $( '.betterdocs-sidebar-content .betterdocs-categories-wrap, .betterdocs-full-sidebar-left .betterdocs-categories-wrap' ).css( 'padding-top', to + 'px' );
811 } );
812 });
813
814 wp.customize( 'betterdocs_sidebar_padding_right', function( value ) {
815 value.bind( function( to ) {
816 $( '.betterdocs-sidebar-content .betterdocs-categories-wrap, .betterdocs-full-sidebar-left .betterdocs-categories-wrap' ).css( 'padding-right', to + 'px' );
817 } );
818 });
819
820 wp.customize( 'betterdocs_sidebar_padding_bottom', function( value ) {
821 value.bind( function( to ) {
822 $( '.betterdocs-sidebar-content .betterdocs-categories-wrap, .betterdocs-full-sidebar-left .betterdocs-categories-wrap' ).css( 'padding-bottom', to + 'px' );
823 } );
824 });
825
826 wp.customize( 'betterdocs_sidebar_padding_left', function( value ) {
827 value.bind( function( to ) {
828 $( '.betterdocs-sidebar-content .betterdocs-categories-wrap, .betterdocs-full-sidebar-left .betterdocs-categories-wrap' ).css( 'padding-left', to + 'px' );
829 } );
830 });
831
832 wp.customize( 'betterdocs_sidebar_borderr_topleft', function( value ) {
833 value.bind( function( to ) {
834 $( '.betterdocs-single-layout1 .betterdocs-sidebar-content .betterdocs-categories-wrap' ).css( 'border-top-left-radius', to + 'px' );
835 } );
836 });
837
838 wp.customize( 'betterdocs_sidebar_borderr_topright', function( value ) {
839 value.bind( function( to ) {
840 $( '.betterdocs-single-layout1 .betterdocs-sidebar-content .betterdocs-categories-wrap' ).css( 'border-top-right-radius', to + 'px' );
841 } );
842 });
843
844 wp.customize( 'betterdocs_sidebar_borderr_bottomright', function( value ) {
845 value.bind( function( to ) {
846 $( '.betterdocs-single-layout1 .betterdocs-sidebar-content .betterdocs-categories-wrap' ).css( 'border-bottom-right-radius', to + 'px' );
847 } );
848 });
849
850 wp.customize( 'betterdocs_sidebar_borderr_bottomleft', function( value ) {
851 value.bind( function( to ) {
852 $( '.betterdocs-single-layout1 .betterdocs-sidebar-content .betterdocs-categories-wrap' ).css( 'border-bottom-left-radius', to + 'px' );
853 } );
854 });
855
856 wp.customize( 'betterdocs_sidebar_icon_size', function( value ) {
857 value.bind( function( to ) {
858 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-cat-title img' ).css( 'height', to + 'px' );
859 } );
860 });
861
862 wp.customize( 'betterdocs_sidebar_title_bg_color', function( value ) {
863 value.bind( function( to ) {
864 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-single-cat-wrap .docs-cat-title-wrap' ).css( 'background-color', to );
865 } );
866 });
867
868 wp.customize( 'betterdocs_sidebar_title_color', function( value ) {
869 value.bind( function( to ) {
870 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-cat-title-inner .docs-cat-heading,.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-cat-title-inner .cat-list-arrow-down' ).css( 'color', to );
871 } );
872 });
873
874 wp.customize( 'betterdocs_sidebar_active_title_color', function( value ) {
875 value.bind( function( to ) {
876 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-single-cat-wrap .active-title .docs-cat-title-inner .docs-cat-heading,.betterdocs-sidebar-content.betterdocs-category-sidebar .active-title .docs-cat-title-inner .docs-cat-heading,.betterdocs-category-wraper .betterdocs-full-sidebar-left .docs-cat-title-wrap::after').css( 'color', to );
877 } );
878 });
879
880 wp.customize( 'betterdocs_sidebar_title_font_size', function( value ) {
881 value.bind( function( to ) {
882 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-cat-title-inner .docs-cat-heading' ).css( 'font-size', to + 'px' );
883 } );
884 });
885
886 wp.customize( 'betterdocs_sidebar_title_padding_top', function( value ) {
887 value.bind( function( to ) {
888 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap .docs-cat-title-wrap' ).css( 'padding-top', to + 'px' );
889 } );
890 });
891
892 wp.customize( 'betterdocs_sidebar_title_padding_right', function( value ) {
893 value.bind( function( to ) {
894 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap .docs-cat-title-wrap' ).css( 'padding-right', to + 'px' );
895 } );
896 });
897
898 wp.customize( 'betterdocs_sidebar_title_padding_bottom', function( value ) {
899 value.bind( function( to ) {
900 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap .docs-cat-title-wrap' ).css( 'padding-bottom', to + 'px' );
901 } );
902 });
903
904 wp.customize( 'betterdocs_sidebar_title_padding_left', function( value ) {
905 value.bind( function( to ) {
906 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap .docs-cat-title-wrap' ).css( 'padding-left', to + 'px' );
907 } );
908 });
909
910 wp.customize( 'betterdocs_sidebar_title_margin_top', function( value ) {
911 value.bind( function( to ) {
912 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap' ).css( 'margin-top', to + 'px' );
913 } );
914 });
915
916 wp.customize( 'betterdocs_sidebar_title_margin_right', function( value ) {
917 value.bind( function( to ) {
918 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap' ).css( 'margin-right', to + 'px' );
919 } );
920 });
921
922 wp.customize( 'betterdocs_sidebar_title_margin_bottom', function( value ) {
923 value.bind( function( to ) {
924 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap' ).css( 'margin-bottom', to + 'px' );
925 } );
926 });
927
928 wp.customize( 'betterdocs_sidebar_title_margin_left', function( value ) {
929 value.bind( function( to ) {
930 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap' ).css( 'margin-left', to + 'px' );
931 } );
932 });
933
934 wp.customize( 'betterdocs_sidbebar_item_list_bg_color', function( value ) {
935 value.bind( function( to ) {
936 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-container' ).css( 'background-color', to );
937 } );
938 });
939
940 wp.customize( 'betterdocs_sidbebar_item_count_bg_color', function( value ) {
941 value.bind( function( to ) {
942 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-count' ).css( 'background-color', to );
943 } );
944 });
945
946 wp.customize( 'betterdocs_sidbebar_item_count_inner_bg_color', function( value ) {
947 value.bind( function( to ) {
948 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-count span' ).css( 'background-color', to );
949 } );
950 });
951
952 wp.customize( 'betterdocs_sidebar_item_counter_size', function( value ) {
953 value.bind( function( to ) {
954 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-count span' ).css( 'width', to + 'px' );
955 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-count span' ).css( 'height', to + 'px' );
956 } );
957 });
958
959 wp.customize( 'betterdocs_sidebar_item_count_color', function( value ) {
960 value.bind( function( to ) {
961 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-count span' ).css( 'color', to );
962 } );
963 });
964
965 wp.customize( 'betterdocs_sidebat_item_count_font_size', function( value ) {
966 value.bind( function( to ) {
967 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-count span' ).css( 'font-size', to + 'px' );
968 } );
969 });
970
971 wp.customize( 'betterdocs_sidebar_active_cat_background_color', function( value ) {
972 value.bind( function( to ) {
973 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-single-cat-wrap .docs-cat-title-wrap.active-title' ).css( 'background-color', to );
974 } );
975 });
976
977 wp.customize( 'betterdocs_sidebar_active_cat_border_color', function( value ) {
978 value.bind( function( to ) {
979 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-single-cat-wrap .docs-cat-title-wrap.active-title' ).css( 'border-color', to );
980 } );
981 });
982
983 wp.customize( 'betterdocs_sidebar_list_item_color', function( value ) {
984 value.bind( function( to ) {
985 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap li a' ).css( 'color', to );
986 } );
987 });
988
989 wp.customize( 'betterdocs_sidebar_active_list_item_color', function( value ) {
990 value.bind( function( to ) {
991 $( '.betterdocs-sidebar-content .betterdocs-categories-wrap li a.active, .betterdocs-sidebar-content .betterdocs-categories-wrap li.sub-list a.active' ).css( 'color', to );
992 } );
993 });
994
995 wp.customize( 'betterdocs_sidebar_list_item_font_size', function( value ) {
996 value.bind( function( to ) {
997 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap li a' ).css( 'font-size', to + 'px');
998 } );
999 });
1000
1001 wp.customize( 'betterdocs_sidebar_list_item_margin_top', function( value ) {
1002 value.bind( function( to ) {
1003 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-item-container li' ).css( 'margin-top', to + 'px' );
1004 } );
1005 });
1006
1007 wp.customize( 'betterdocs_sidebar_list_item_margin_right', function( value ) {
1008 value.bind( function( to ) {
1009 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-item-container li' ).css( 'margin-right', to + 'px' );
1010 } );
1011 });
1012
1013 wp.customize( 'betterdocs_sidebar_list_item_margin_bottom', function( value ) {
1014 value.bind( function( to ) {
1015 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-item-container li' ).css( 'margin-bottom', to + 'px' );
1016 } );
1017 });
1018
1019 wp.customize( 'betterdocs_sidebar_list_item_margin_left', function( value ) {
1020 value.bind( function( to ) {
1021 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-item-container li' ).css( 'margin-left', to + 'px' );
1022 } );
1023 });
1024
1025 wp.customize( 'betterdocs_sidebar_list_icon_color', function( value ) {
1026 value.bind( function( to ) {
1027 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-item-container li svg' ).css( 'fill', to );
1028 } );
1029 });
1030
1031 wp.customize( 'betterdocs_sidebar_list_icon_font_size', function( value ) {
1032 value.bind( function( to ) {
1033 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-item-container li svg' ).css( 'font-size', to + 'px' );
1034 } );
1035 });
1036
1037 wp.customize( 'betterdocs_archive_page_background_color', function( value ) {
1038 value.bind( function( to ) {
1039 $( '.betterdocs-category-wraper.betterdocs-single-wraper' ).css( 'background-color', to);
1040 } );
1041 });
1042
1043 wp.customize( 'betterdocs_archive_page_background_image', function( value ) {
1044 value.bind( function( to ) {
1045 $( '.betterdocs-category-wraper.betterdocs-single-wraper' ).css( 'background-image', 'url('+to+')');
1046 } );
1047 });
1048
1049 wp.customize( 'betterdocs_archive_page_background_size', function( value ) {
1050 value.bind( function( to ) {
1051 $( '.betterdocs-category-wraper.betterdocs-single-wraper' ).css( 'background-size', to);
1052 } );
1053 });
1054
1055 wp.customize( 'betterdocs_archive_page_background_repeat', function( value ) {
1056 value.bind( function( to ) {
1057 $( '.betterdocs-category-wraper.betterdocs-single-wraper' ).css( 'background-repeat', to);
1058 } );
1059 });
1060
1061 wp.customize( 'betterdocs_archive_page_background_attachment', function( value ) {
1062 value.bind( function( to ) {
1063 $( '.betterdocs-category-wraper.betterdocs-single-wraper' ).css( 'background-attachment', to);
1064 } );
1065 });
1066
1067 wp.customize( 'betterdocs_archive_page_background_position', function( value ) {
1068 value.bind( function( to ) {
1069 $( '.betterdocs-category-wraper.betterdocs-single-wraper' ).css( 'background-position', to);
1070 } );
1071 });
1072
1073 wp.customize( 'betterdocs_archive_content_background_color', function( value ) {
1074 value.bind( function( to ) {
1075 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'background-color', to);
1076 } );
1077 });
1078
1079 wp.customize( 'betterdocs_archive_content_margin_top', function( value ) {
1080 value.bind( function( to ) {
1081 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'margin-top', to + 'px' );
1082 } );
1083 });
1084
1085 wp.customize( 'betterdocs_archive_content_margin_right', function( value ) {
1086 value.bind( function( to ) {
1087 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'margin-right', to + 'px' );
1088 } );
1089 });
1090
1091 wp.customize( 'betterdocs_archive_content_margin_bottom', function( value ) {
1092 value.bind( function( to ) {
1093 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'margin-bottom', to + 'px' );
1094 } );
1095 });
1096
1097 wp.customize( 'betterdocs_archive_content_margin_left', function( value ) {
1098 value.bind( function( to ) {
1099 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'margin-left', to + 'px' );
1100 } );
1101 });
1102
1103 wp.customize( 'betterdocs_archive_content_padding_top', function( value ) {
1104 value.bind( function( to ) {
1105 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'padding-top', to + 'px' );
1106 } );
1107 });
1108
1109 wp.customize( 'betterdocs_archive_content_padding_right', function( value ) {
1110 value.bind( function( to ) {
1111 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'padding-right', to + 'px' );
1112 } );
1113 });
1114
1115 wp.customize( 'betterdocs_archive_content_padding_bottom', function( value ) {
1116 value.bind( function( to ) {
1117 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'padding-bottom', to + 'px' );
1118 } );
1119 });
1120
1121 wp.customize( 'betterdocs_archive_content_padding_left', function( value ) {
1122 value.bind( function( to ) {
1123 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'padding-left', to + 'px' );
1124 } );
1125 });
1126
1127 wp.customize( 'betterdocs_archive_content_border_radius', function( value ) {
1128 value.bind( function( to ) {
1129 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'border-radius', to + 'px' );
1130 } );
1131 });
1132
1133 wp.customize( 'betterdocs_archive_title_color', function( value ) {
1134 value.bind( function( to ) {
1135 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title .docs-cat-heading' ).css( 'color', to );
1136 } );
1137 });
1138
1139 wp.customize( 'betterdocs_archive_title_font_size', function( value ) {
1140 value.bind( function( to ) {
1141 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title .docs-cat-heading' ).css( 'font-size', to + 'px');
1142 } );
1143 });
1144
1145 wp.customize( 'betterdocs_archive_title_margin_top', function( value ) {
1146 value.bind( function( to ) {
1147 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title .docs-cat-heading' ).css( 'margin-top', to + 'px');
1148 } );
1149 });
1150
1151 wp.customize( 'betterdocs_archive_title_margin_right', function( value ) {
1152 value.bind( function( to ) {
1153 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title .docs-cat-heading' ).css( 'margin-right', to + 'px');
1154 } );
1155 });
1156
1157 wp.customize( 'betterdocs_archive_title_margin_bottom', function( value ) {
1158 value.bind( function( to ) {
1159 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title .docs-cat-heading' ).css( 'margin-bottom', to + 'px');
1160 } );
1161 });
1162
1163 wp.customize( 'betterdocs_archive_title_margin_left', function( value ) {
1164 value.bind( function( to ) {
1165 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title .docs-cat-heading' ).css( 'margin-left', to + 'px');
1166 } );
1167 });
1168
1169 wp.customize( 'betterdocs_archive_description_color', function( value ) {
1170 value.bind( function( to ) {
1171 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title p' ).css( 'color', to );
1172 } );
1173 });
1174
1175 wp.customize( 'betterdocs_archive_description_font_size', function( value ) {
1176 value.bind( function( to ) {
1177 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title p' ).css( 'font-size', to + 'px');
1178 } );
1179 });
1180
1181 wp.customize( 'betterdocs_archive_description_margin_top', function( value ) {
1182 value.bind( function( to ) {
1183 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title p' ).css( 'margin-top', to + 'px');
1184 } );
1185 });
1186
1187 wp.customize( 'betterdocs_archive_description_margin_right', function( value ) {
1188 value.bind( function( to ) {
1189 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title p' ).css( 'margin-right', to + 'px');
1190 } );
1191 });
1192
1193 wp.customize( 'betterdocs_archive_description_margin_bottom', function( value ) {
1194 value.bind( function( to ) {
1195 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title p' ).css( 'margin-bottom', to + 'px');
1196 } );
1197 });
1198
1199 wp.customize( 'betterdocs_archive_description_margin_left', function( value ) {
1200 value.bind( function( to ) {
1201 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title p' ).css( 'margin-left', to + 'px');
1202 } );
1203 });
1204
1205 wp.customize( 'betterdocs_archive_article_list_margin_top', function( value ) {
1206 value.bind( function( to ) {
1207 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li, .betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat-title' ).css( 'margin-top', to + 'px');
1208 } );
1209 });
1210
1211 wp.customize( 'betterdocs_archive_article_list_margin_right', function( value ) {
1212 value.bind( function( to ) {
1213 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li, .betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat-title' ).css( 'margin-right', to + 'px');
1214 } );
1215 });
1216
1217 wp.customize( 'betterdocs_archive_article_list_margin_bottom', function( value ) {
1218 value.bind( function( to ) {
1219 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li, .betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat-title' ).css( 'margin-bottom', to + 'px');
1220 } );
1221 });
1222
1223 wp.customize( 'betterdocs_archive_article_list_margin_left', function( value ) {
1224 value.bind( function( to ) {
1225 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li, .betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat-title' ).css( 'margin-left', to + 'px');
1226 } );
1227 });
1228
1229 wp.customize( 'betterdocs_archive_list_icon_color', function( value ) {
1230 value.bind( function( to ) {
1231 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li svg' ).css( 'fill', to );
1232 } );
1233 });
1234
1235 wp.customize( 'betterdocs_archive_list_icon_font_size', function( value ) {
1236 value.bind( function( to ) {
1237 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li svg' ).css( 'font-size', to + 'px' );
1238 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li svg' ).css( 'min-width', to + 'px' );
1239 } );
1240 });
1241
1242 wp.customize( 'betterdocs_archive_list_item_color', function( value ) {
1243 value.bind( function( to ) {
1244 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li a' ).css( 'color', to );
1245 } );
1246 });
1247
1248 wp.customize( 'betterdocs_archive_list_item_font_size', function( value ) {
1249 value.bind( function( to ) {
1250 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li a' ).css( 'font-size', to + 'px');
1251 } );
1252 });
1253
1254 wp.customize( 'betterdocs_archive_article_subcategory_color', function( value ) {
1255 value.bind( function( to ) {
1256 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat-title a' ).css( 'color', to );
1257 } );
1258 });
1259
1260 wp.customize( 'betterdocs_archive_article_subcategory_font_size', function( value ) {
1261 value.bind( function( to ) {
1262 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat-title a' ).css( 'font-size', to + 'px' );
1263
1264 } );
1265 });
1266
1267 wp.customize( 'betterdocs_archive_subcategory_icon_color', function( value ) {
1268 value.bind( function( to ) {
1269 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat-title svg' ).css( 'fill', to );
1270 } );
1271 });
1272
1273 wp.customize( 'betterdocs_archive_subcategory_icon_font_size', function( value ) {
1274 value.bind( function( to ) {
1275 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat-title svg' ).css( 'font-size', to + 'px' );
1276 } );
1277 });
1278
1279 wp.customize( 'betterdocs_archive_subcategory_article_list_color', function( value ) {
1280 value.bind( function( to ) {
1281 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat li a' ).css( 'color', to );
1282 } );
1283 });
1284
1285 wp.customize( 'betterdocs_archive_subcategory_article_list_icon_color', function( value ) {
1286 value.bind( function( to ) {
1287 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat li svg' ).css( 'fill', to );
1288 } );
1289 });
1290
1291 wp.customize( 'betterdocs_live_search_heading_font_size', function( value ) {
1292 value.bind( function( to ) {
1293 $( '.betterdocs-search-heading h2' ).css( 'font-size', to + 'px');
1294 } );
1295 });
1296
1297 wp.customize( 'betterdocs_live_search_heading_font_color', function( value ) {
1298 value.bind( function( to ) {
1299 $( '.betterdocs-search-heading h2' ).css( 'color', to );
1300 } );
1301 });
1302
1303 wp.customize( 'betterdocs_live_search_subheading_font_size', function( value ) {
1304 value.bind( function( to ) {
1305 $( '.betterdocs-search-heading h3' ).css( 'font-size', to + 'px');
1306 } );
1307 });
1308
1309 wp.customize( 'betterdocs_live_search_subheading_font_color', function( value ) {
1310 value.bind( function( to ) {
1311 $( '.betterdocs-search-heading h3' ).css( 'color', to );
1312 } );
1313 });
1314
1315 wp.customize( 'betterdocs_search_heading_margin_top', function( value ) {
1316 value.bind( function( to ) {
1317 $( '.betterdocs-search-heading h2' ).css( 'margin-top', to + 'px' );
1318 } );
1319 });
1320
1321 wp.customize( 'betterdocs_search_heading_margin_right', function( value ) {
1322 value.bind( function( to ) {
1323 $( '.betterdocs-search-heading h2' ).css( 'margin-right', to + 'px' );
1324 } );
1325 });
1326
1327 wp.customize( 'betterdocs_search_heading_margin_bottom', function( value ) {
1328 value.bind( function( to ) {
1329 $( '.betterdocs-search-heading h2' ).css( 'margin-bottom', to + 'px' );
1330 } );
1331 });
1332
1333 wp.customize( 'betterdocs_search_heading_margin_left', function( value ) {
1334 value.bind( function( to ) {
1335 $( '.betterdocs-search-heading h2' ).css( 'margin-left', to + 'px' );
1336 } );
1337 });
1338
1339 wp.customize( 'betterdocs_search_subheading_margin_top', function( value ) {
1340 value.bind( function( to ) {
1341 $( '.betterdocs-search-heading h3' ).css( 'margin-top', to + 'px' );
1342 } );
1343 });
1344
1345 wp.customize( 'betterdocs_search_subheading_margin_right', function( value ) {
1346 value.bind( function( to ) {
1347 $( '.betterdocs-search-heading h3' ).css( 'margin-right', to + 'px' );
1348 } );
1349 });
1350
1351 wp.customize( 'betterdocs_search_subheading_margin_bottom', function( value ) {
1352 value.bind( function( to ) {
1353 $( '.betterdocs-search-heading h3' ).css( 'margin-bottom', to + 'px' );
1354 } );
1355 });
1356
1357 wp.customize( 'betterdocs_search_subheading_margin_left', function( value ) {
1358 value.bind( function( to ) {
1359 $( '.betterdocs-search-heading h3' ).css( 'margin-left', to + 'px' );
1360 } );
1361 });
1362
1363 wp.customize( 'betterdocs_live_search_background_color', function( value ) {
1364 value.bind( function( to ) {
1365 $( '.betterdocs-search-form-wrap' ).css( 'background-color', to);
1366 } );
1367 });
1368
1369 wp.customize( 'betterdocs_live_search_background_image', function( value ) {
1370 value.bind( function( to ) {
1371 $( '.betterdocs-search-form-wrap' ).css( 'background-image', 'url('+to+')');
1372 } );
1373 });
1374
1375 wp.customize( 'betterdocs_live_search_background_size', function( value ) {
1376 value.bind( function( to ) {
1377 $( '.betterdocs-search-form-wrap' ).css( 'background-size', to);
1378 } );
1379 });
1380
1381 wp.customize( 'betterdocs_live_search_background_repeat', function( value ) {
1382 value.bind( function( to ) {
1383 $( '.betterdocs-search-form-wrap' ).css( 'background-repeat', to);
1384 } );
1385 });
1386
1387 wp.customize( 'betterdocs_live_search_background_attachment', function( value ) {
1388 value.bind( function( to ) {
1389 $( '.betterdocs-search-form-wrap' ).css( 'background-attachment', to);
1390 } );
1391 });
1392
1393 wp.customize( 'betterdocs_live_search_background_position', function( value ) {
1394 value.bind( function( to ) {
1395 $( '.betterdocs-search-form-wrap' ).css( 'background-position', to);
1396 } );
1397 });
1398
1399 wp.customize( 'betterdocs_live_search_padding_top', function( value ) {
1400 value.bind( function( to ) {
1401 $( '.betterdocs-search-form-wrap' ).css( 'padding-top', to + 'px' );
1402 } );
1403 });
1404
1405 wp.customize( 'betterdocs_live_search_padding_right', function( value ) {
1406 value.bind( function( to ) {
1407 $( '.betterdocs-search-form-wrap' ).css( 'padding-right', to + 'px' );
1408 } );
1409 });
1410
1411 wp.customize( 'betterdocs_live_search_padding_bottom', function( value ) {
1412 value.bind( function( to ) {
1413 $( '.betterdocs-search-form-wrap' ).css( 'padding-bottom', to + 'px' );
1414 } );
1415 });
1416
1417 wp.customize( 'betterdocs_live_search_padding_left', function( value ) {
1418 value.bind( function( to ) {
1419 $( '.betterdocs-search-form-wrap' ).css( 'padding-left', to + 'px' );
1420 } );
1421 });
1422
1423 wp.customize( 'betterdocs_search_field_background_color', function( value ) {
1424 value.bind( function( to ) {
1425 $( '.betterdocs-searchform' ).css( 'background-color', to );
1426 } );
1427 });
1428
1429 wp.customize( 'betterdocs_search_field_font_size', function( value ) {
1430 value.bind( function( to ) {
1431 $( '.betterdocs-searchform .betterdocs-search-field' ).css( 'font-size', to + 'px' );
1432 } );
1433 });
1434
1435 wp.customize( 'betterdocs_search_field_color', function( value ) {
1436 value.bind( function( to ) {
1437 $( '.betterdocs-searchform .betterdocs-search-field' ).css( 'color', to );
1438 } );
1439 });
1440
1441 wp.customize( 'betterdocs_search_field_padding_top', function( value ) {
1442 value.bind( function( to ) {
1443 $( '.betterdocs-searchform' ).css( 'padding-top', to + 'px' );
1444 } );
1445 });
1446
1447 wp.customize( 'betterdocs_search_field_padding_right', function( value ) {
1448 value.bind( function( to ) {
1449 $( '.betterdocs-searchform' ).css( 'padding-right', to + 'px' );
1450 } );
1451 });
1452
1453 wp.customize( 'betterdocs_search_field_padding_bottom', function( value ) {
1454 value.bind( function( to ) {
1455 $( '.betterdocs-searchform' ).css( 'padding-bottom', to + 'px' );
1456 } );
1457 });
1458
1459 wp.customize( 'betterdocs_search_field_padding_left', function( value ) {
1460 value.bind( function( to ) {
1461 $( '.betterdocs-searchform' ).css( 'padding-left', to + 'px' );
1462 } );
1463 });
1464
1465 wp.customize( 'betterdocs_search_field_border_radius', function( value ) {
1466 value.bind( function( to ) {
1467 $( '.betterdocs-searchform' ).css( 'border-radius', to + 'px' );
1468 } );
1469 });
1470
1471 wp.customize( 'betterdocs_search_icon_size', function( value ) {
1472 value.bind( function( to ) {
1473 $( '.betterdocs-searchform svg.docs-search-icon' ).css( 'height', to + 'px' );
1474 } );
1475 });
1476
1477 wp.customize( 'betterdocs_search_icon_color', function( value ) {
1478 value.bind( function( to ) {
1479 $( '.betterdocs-searchform svg.docs-search-icon' ).css( 'fill', to );
1480 } );
1481 });
1482
1483 wp.customize( 'betterdocs_search_close_icon_color', function( value ) {
1484 value.bind( function( to ) {
1485 $( '.docs-search-close .close-line' ).css( 'fill', to );
1486 } );
1487 });
1488
1489 wp.customize( 'betterdocs_search_close_icon_border_color', function( value ) {
1490 value.bind( function( to ) {
1491 $( '.docs-search-close .close-border' ).css( 'fill', to );
1492 } );
1493 });
1494
1495 wp.customize( 'betterdocs_search_close_icon_border_color', function( value ) {
1496 value.bind( function( to ) {
1497 $( '.docs-search-loader' ).css( 'stroke', to );
1498 } );
1499 });
1500
1501 wp.customize( 'betterdocs_search_result_width', function( value ) {
1502 value.bind( function( to ) {
1503 $( '.betterdocs-live-search .docs-search-result' ).css( 'width', to + '%' );
1504 } );
1505 });
1506
1507 wp.customize( 'betterdocs_search_result_max_width', function( value ) {
1508 value.bind( function( to ) {
1509 $( '.betterdocs-live-search .docs-search-result' ).css( 'max-width', to + 'px' );
1510 } );
1511 });
1512
1513 wp.customize( 'betterdocs_search_result_background_color', function( value ) {
1514 value.bind( function( to ) {
1515 $( '.betterdocs-live-search .docs-search-result' ).css( 'background-color', to );
1516 } );
1517 });
1518
1519 wp.customize( 'betterdocs_search_result_border_color', function( value ) {
1520 value.bind( function( to ) {
1521 $( '.betterdocs-live-search .docs-search-result' ).css( 'border-color', to );
1522 } );
1523 });
1524
1525 wp.customize( 'betterdocs_search_result_item_font_size', function( value ) {
1526 value.bind( function( to ) {
1527 $( '.betterdocs-live-search .docs-search-result li a,.betterdocs-live-search .docs-search-result li:only-child' ).css( 'font-size', to + 'px' );
1528 } );
1529 });
1530
1531 wp.customize( 'betterdocs_search_result_item_font_color', function( value ) {
1532 value.bind( function( to ) {
1533 $( '.betterdocs-live-search .docs-search-result li a .betterdocs-search-title' ).css( 'color', to );
1534 } );
1535 });
1536
1537 //Search Result Item Cat Font Color
1538 wp.customize( 'betterdocs_search_result_item_cat_font_color', function( value ) {
1539 value.bind( function( to ) {
1540 $( '.betterdocs-live-search .docs-search-result li a .betterdocs-search-category' ).css( 'color', to );
1541 } );
1542 });
1543
1544 wp.customize( 'betterdocs_search_result_item_padding_top', function( value ) {
1545 value.bind( function( to ) {
1546 $( '.betterdocs-live-search .docs-search-result li a' ).css( 'padding-top', to + 'px' );
1547 } );
1548 });
1549
1550 wp.customize( 'betterdocs_search_result_item_padding_right', function( value ) {
1551 value.bind( function( to ) {
1552 $( '.betterdocs-live-search .docs-search-result li a' ).css( 'padding-right', to + 'px' );
1553 } );
1554 });
1555
1556 wp.customize( 'betterdocs_search_result_item_padding_bottom', function( value ) {
1557 value.bind( function( to ) {
1558 $( '.betterdocs-live-search .docs-search-result li a' ).css( 'padding-bottom', to + 'px' );
1559 } );
1560 });
1561
1562 wp.customize( 'betterdocs_search_result_item_padding_left', function( value ) {
1563 value.bind( function( to ) {
1564 $( '.betterdocs-live-search .docs-search-result li a' ).css( 'padding-left', to + 'px' );
1565 } );
1566 });
1567
1568 wp.customize( 'betterdocs_search_result_item_border_color', function( value ) {
1569 value.bind( function( to ) {
1570 $( '.betterdocs-live-search .docs-search-result li' ).css( 'border-color', to );
1571 } );
1572 });
1573
1574 // live search form margin
1575 wp.customize( 'betterdocs_live_search_margin_top', function( value ) {
1576 value.bind( function( to ) {
1577 $( '.betterdocs-search-form-wrap').css( 'margin-top', to + 'px');
1578 } );
1579 });
1580
1581 wp.customize( 'betterdocs_live_search_margin_right', function( value ) {
1582 value.bind( function( to ) {
1583 $( '.betterdocs-search-form-wrap').css( 'margin-right', to + 'px');
1584 } );
1585 });
1586
1587 wp.customize( 'betterdocs_live_search_margin_bottom', function( value ) {
1588 value.bind( function( to ) {
1589 $( '.betterdocs-search-form-wrap').css( 'margin-bottom', to + 'px');
1590 } );
1591 });
1592
1593 wp.customize( 'betterdocs_live_search_margin_left', function( value ) {
1594 value.bind( function( to ) {
1595 $( '.betterdocs-search-form-wrap').css( 'margin-left', to + 'px');
1596 } );
1597 });
1598
1599 wp.customize( 'betterdocs_doc_page_explore_btn_border_width', function( value ) {
1600 value.bind( function( to ) {
1601 $( '.docs-cat-link-btn, .docs-cat-link-btn').css( 'border-width', to + 'px');
1602 } );
1603 });
1604
1605 wp.customize( 'betterdocs_doc_page_explore_btn_border_width', function( value ) {
1606 value.bind( function( to ) {
1607 $( '.docs-cat-link-btn, .docs-cat-link-btn').css( 'border-width', to + 'px');
1608 } );
1609 });
1610
1611 // live search form margin
1612 wp.customize( 'betterdocs_live_search_margin_top', function( value ) {
1613 value.bind( function( to ) {
1614 $( '.betterdocs-search-form-wrap').css( 'margin-top', to + 'px');
1615 } );
1616 });
1617
1618 wp.customize( 'betterdocs_live_search_margin_right', function( value ) {
1619 value.bind( function( to ) {
1620 $( '.betterdocs-search-form-wrap').css( 'margin-right', to + 'px');
1621 } );
1622 });
1623
1624 wp.customize( 'betterdocs_live_search_margin_bottom', function( value ) {
1625 value.bind( function( to ) {
1626 $( '.betterdocs-search-form-wrap').css( 'margin-bottom', to + 'px');
1627 } );
1628 });
1629
1630 wp.customize( 'betterdocs_live_search_margin_left', function( value ) {
1631 value.bind( function( to ) {
1632 $( '.betterdocs-search-form-wrap').css( 'margin-left', to + 'px');
1633 } );
1634 });
1635
1636 //Item Count Border Type
1637 wp.customize( 'betterdocs_doc_page_item_count_border_type', function( value ) {
1638 value.bind( function( to ) {
1639 $( '.betterdocs-categories-wrap.single-kb .docs-cat-title-inner span ').css( 'border-style', to);
1640 } );
1641 });
1642
1643
1644 // Item Counter Border Color
1645 wp.customize( 'betterdocs_doc_page_item_count_border_color', function( value ) {
1646 value.bind( function( to ) {
1647 $( '.betterdocs-categories-wrap.single-kb .docs-cat-title-inner span').css( 'border-color', to);
1648 } );
1649 });
1650
1651 // Doc List Padding Top
1652 wp.customize( 'betterdocs_doc_page_article_list_padding_top', function( value ) {
1653 value.bind( function( to ) {
1654 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li').css( 'padding-top', to + 'px');
1655 } );
1656 });
1657
1658 // Doc List Padding Right
1659 wp.customize( 'betterdocs_doc_page_article_list_padding_right', function( value ) {
1660 value.bind( function( to ) {
1661 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li').css( 'padding-right', to + 'px');
1662 } );
1663 });
1664
1665 // Doc List Padding Bottom
1666 wp.customize( 'betterdocs_doc_page_article_list_padding_bottom', function( value ) {
1667 value.bind( function( to ) {
1668 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li').css( 'padding-bottom', to + 'px');
1669 } );
1670 });
1671
1672 // Doc List Padding Left
1673 wp.customize( 'betterdocs_doc_page_article_list_padding_left', function( value ) {
1674 value.bind( function( to ) {
1675 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li').css( 'padding-left', to + 'px');
1676 } );
1677 });
1678
1679 //Button Margin Top Layout-1
1680 wp.customize( 'betterdocs_doc_page_explore_btn_margin_top', function( value ) {
1681 value.bind( function( to ) {
1682 $('.docs-single-cat-wrap .docs-item-container .docs-cat-link-btn').css( 'margin-top', to + 'px');
1683 } );
1684 });
1685
1686 //Button Margin Right Layout-1
1687 wp.customize( 'betterdocs_doc_page_explore_btn_margin_right', function( value ) {
1688 value.bind( function( to ) {
1689 $('.docs-single-cat-wrap .docs-item-container .docs-cat-link-btn').css( 'margin-right', to + 'px');
1690 } );
1691 });
1692
1693 //Button Margin Bottom Layout-1
1694 wp.customize( 'betterdocs_doc_page_explore_btn_margin_bottom', function( value ) {
1695 value.bind( function( to ) {
1696 $('.docs-single-cat-wrap .docs-item-container .docs-cat-link-btn').css( 'margin-bottom', to + 'px');
1697 } );
1698 });
1699
1700 //Button Margin Left Layout-1
1701 wp.customize( 'betterdocs_doc_page_explore_btn_margin_left', function( value ) {
1702 value.bind( function( to ) {
1703 $('.docs-single-cat-wrap .docs-item-container .docs-cat-link-btn').css( 'margin-left', to + 'px');
1704 } );
1705 });
1706
1707 //Inner Circle Border Width Top
1708 wp.customize( 'betterdocs_doc_page_item_count_inner_border_width_top', function( value ) {
1709 value.bind( function( to ) {
1710 $('.betterdocs-categories-wrap.single-kb .docs-cat-title-inner span').css( 'border-top-width', to + 'px');
1711 } );
1712 });
1713
1714 //Inner Circle Border Width Right
1715 wp.customize( 'betterdocs_doc_page_item_count_inner_border_width_right', function( value ) {
1716 value.bind( function( to ) {
1717 $('.betterdocs-categories-wrap.single-kb .docs-cat-title-inner span').css( 'border-right-width', to + 'px');
1718 } );
1719 });
1720
1721 //Inner Circle Border Width Bottom
1722 wp.customize( 'betterdocs_doc_page_item_count_inner_border_width_bottom', function( value ) {
1723 value.bind( function( to ) {
1724 $('.betterdocs-categories-wrap.single-kb .docs-cat-title-inner span').css( 'border-bottom-width', to + 'px');
1725 } );
1726 });
1727
1728 //Inner Circle Border Width Left
1729 wp.customize( 'betterdocs_doc_page_item_count_inner_border_width_left', function( value ) {
1730 value.bind( function( to ) {
1731 $('.betterdocs-categories-wrap.single-kb .docs-cat-title-inner span').css( 'border-left-width', to + 'px');
1732 } );
1733 });
1734
1735 //Category Title Padding Bottom
1736 wp.customize( 'betterdocs_doc_page_cat_title_padding_bottom', function( value ) {
1737 value.bind( function( to ) {
1738 $('.docs-cat-title-inner ').css( 'padding-bottom', to + 'px');
1739 } );
1740 });
1741
1742 //Doc List And Button Background Color
1743 wp.customize( 'betterdocs_doc_page_article_list_bg_color', function( value ) {
1744 value.bind( function( to ) {
1745 $( '.betterdocs-categories-wrap.single-kb .docs-item-container' ).css( 'background-color', to );
1746 } );
1747 });
1748
1749 //Doc List Padding 2
1750 wp.customize( 'betterdocs_doc_page_article_list_padding_top_2', function( value ) {
1751 value.bind( function( to ) {
1752 $( '.betterdocs-categories-wrap.single-kb .docs-item-container ul ' ).css( 'padding-top', to + 'px' );
1753 } );
1754 });
1755
1756 wp.customize( 'betterdocs_doc_page_article_list_padding_bottom_2', function( value ) {
1757 value.bind( function( to ) {
1758 $( '.betterdocs-categories-wrap.single-kb .docs-item-container ul ' ).css( 'padding-bottom', to + 'px' );
1759 } );
1760 });
1761
1762 wp.customize( 'betterdocs_doc_page_article_list_padding_right_2', function( value ) {
1763 value.bind( function( to ) {
1764 $( '.betterdocs-categories-wrap.single-kb .docs-item-container ul ' ).css( 'padding-right', to + 'px' );
1765 } );
1766 });
1767
1768 wp.customize( 'betterdocs_doc_page_article_list_padding_left_2', function( value ) {
1769 value.bind( function( to ) {
1770 $( '.betterdocs-categories-wrap.single-kb .docs-item-container ul ' ).css( 'padding-left', to + 'px' );
1771 } );
1772 });
1773
1774 wp.customize( 'betterdocs_doc_single_toc_margin_top', function( value ) {
1775 value.bind( function( to ) {
1776 $( '.betterdocs-toc').css( 'margin-top', to + 'px' );
1777 } );
1778 });
1779
1780 wp.customize( 'betterdocs_doc_single_toc_margin_right', function( value ) {
1781 value.bind( function( to ) {
1782 $( '.betterdocs-toc').css( 'margin-right', to + 'px' );
1783 } );
1784 });
1785
1786 wp.customize( 'betterdocs_doc_single_toc_margin_bottom', function( value ) {
1787 value.bind( function( to ) {
1788 $( '.betterdocs-toc').css( 'margin-bottom', to + 'px' );
1789 } );
1790 });
1791
1792 wp.customize( 'betterdocs_doc_single_toc_margin_left', function( value ) {
1793 value.bind( function( to ) {
1794 $( '.betterdocs-toc').css( 'margin-left', to + 'px' );
1795 } );
1796 });
1797
1798
1799
1800 } )( jQuery );
1801