PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 2.0.14
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v2.0.14
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.14, at admin/assets/js/customizer.js

1,832 lines 78.2 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 // Single Doc Background Image & Background Image Properties
447 wp.customize( 'betterdocs_doc_single_content_area_bg_image', function( value ) {
448 value.bind( function( to ) {
449 $( '.betterdocs-single-bg .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'background-image', 'url('+to+')' );
450 } );
451 });
452
453 wp.customize( 'betterdocs_doc_single_content_bg_property_size', function( value ) {
454 value.bind( function( to ) {
455 $( '.betterdocs-single-bg .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'background-size', to );
456 } );
457 });
458
459 wp.customize( 'betterdocs_doc_single_content_bg_property_repeat', function( value ) {
460 value.bind( function( to ) {
461 $( '.betterdocs-single-bg .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'background-repeat', to );
462 } );
463 });
464
465 wp.customize( 'betterdocs_doc_single_content_bg_property_attachment', function( value ) {
466 value.bind( function( to ) {
467 $( '.betterdocs-single-bg .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'background-attachment', to );
468 } );
469 });
470
471 wp.customize( 'betterdocs_doc_single_content_bg_property_position', function( value ) {
472 value.bind( function( to ) {
473 $( '.betterdocs-single-bg .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'background-position', to );
474 } );
475 });
476
477 wp.customize( 'betterdocs_doc_single_content_area_padding_top', function( value ) {
478 value.bind( function( to ) {
479 $( '.betterdocs-single-wraper .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'padding-top', to + 'px' );
480 } );
481 });
482
483 wp.customize( 'betterdocs_doc_single_content_area_padding_right', function( value ) {
484 value.bind( function( to ) {
485 $( '.betterdocs-single-wraper .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'padding-right', to + 'px' );
486 } );
487 });
488
489 wp.customize( 'betterdocs_doc_single_content_area_padding_bottom', function( value ) {
490 value.bind( function( to ) {
491 $( '.betterdocs-single-wraper .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'padding-bottom', to + 'px' );
492 } );
493 });
494
495 wp.customize( 'betterdocs_doc_single_content_area_padding_left', function( value ) {
496 value.bind( function( to ) {
497 $( '.betterdocs-single-wraper .betterdocs-content-area,.betterdocs-single-layout4 .betterdocs-content-full,.betterdocs-single-layout5 .betterdocs-content-full' ).css( 'padding-left', to + 'px' );
498 } );
499 });
500
501 wp.customize( 'betterdocs_doc_single_post_content_padding_top', function( value ) {
502 value.bind( function( to ) {
503 $( '.betterdocs-single-wraper .betterdocs-content-area .docs-single-main' ).css( 'padding-top', to + 'px' );
504 } );
505 });
506
507 wp.customize( 'betterdocs_doc_single_post_content_padding_right', function( value ) {
508 value.bind( function( to ) {
509 $( '.betterdocs-single-wraper .betterdocs-content-area .docs-single-main' ).css( 'padding-right', to + 'px' );
510 } );
511 });
512
513 wp.customize( 'betterdocs_doc_single_post_content_padding_bottom', function( value ) {
514 value.bind( function( to ) {
515 $( '.betterdocs-single-wraper .betterdocs-content-area .docs-single-main' ).css( 'padding-bottom', to + 'px' );
516 } );
517 });
518
519 wp.customize( 'betterdocs_doc_single_post_content_padding_left', function( value ) {
520 value.bind( function( to ) {
521 $( '.betterdocs-single-wraper .betterdocs-content-area .docs-single-main' ).css( 'padding-left', to + 'px' );
522 } );
523 });
524
525 wp.customize( 'betterdocs_doc_single_2_post_content_padding_top', function( value ) {
526 value.bind( function( to ) {
527 $( '.betterdocs-single-layout2 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-top', to + 'px' );
528 } );
529 });
530
531 wp.customize( 'betterdocs_doc_single_2_post_content_padding_right', function( value ) {
532 value.bind( function( to ) {
533 $( '.betterdocs-single-layout2 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-right', to + 'px' );
534 } );
535 });
536
537 wp.customize( 'betterdocs_doc_single_2_post_content_padding_bottom', function( value ) {
538 value.bind( function( to ) {
539 $( '.betterdocs-single-layout2 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-bottom', to + 'px' );
540 } );
541 });
542
543 wp.customize( 'betterdocs_doc_single_2_post_content_padding_left', function( value ) {
544 value.bind( function( to ) {
545 $( '.betterdocs-single-layout2 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-left', to + 'px' );
546 } );
547 });
548
549 wp.customize( 'betterdocs_doc_single_3_post_content_padding_top', function( value ) {
550 value.bind( function( to ) {
551 $( '.betterdocs-single-layout3 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-top', to + 'px' );
552 } );
553 });
554
555 wp.customize( 'betterdocs_doc_single_3_post_content_padding_right', function( value ) {
556 value.bind( function( to ) {
557 $( '.betterdocs-single-layout3 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-right', to + 'px' );
558 } );
559 });
560
561 wp.customize( 'betterdocs_doc_single_3_post_content_padding_bottom', function( value ) {
562 value.bind( function( to ) {
563 $( '.betterdocs-single-layout3 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-bottom', to + 'px' );
564 } );
565 });
566
567 wp.customize( 'betterdocs_doc_single_3_post_content_padding_left', function( value ) {
568 value.bind( function( to ) {
569 $( '.betterdocs-single-layout3 .docs-content-full-main .doc-single-content-wrapper' ).css( 'padding-left', to + 'px' );
570 } );
571 });
572
573 wp.customize( 'betterdocs_single_doc_title_font_size', function( value ) {
574 value.bind( function( to ) {
575 $( '.docs-single-title .betterdocs-entry-title' ).css( 'font-size', to + 'px' );
576 } );
577 });
578
579 wp.customize( 'betterdocs_single_doc_title_color', function( value ) {
580 value.bind( function( to ) {
581 $( '.docs-single-title .betterdocs-entry-title' ).css( 'color', to );
582 } );
583 });
584
585 wp.customize( 'betterdocs_single_doc_breadcrumb_color', function( value ) {
586 value.bind( function( to ) {
587 $( '.betterdocs-breadcrumb .betterdocs-breadcrumb-item a' ).css( 'color', to );
588 } );
589 });
590
591 wp.customize( 'betterdocs_single_doc_breadcrumbs_font_size', function( value ) {
592 value.bind( function( to ) {
593 $( '.betterdocs-breadcrumb .betterdocs-breadcrumb-item a' ).css( 'font-size', to + 'px' );
594 $( '.betterdocs-breadcrumb-item.current span' ).css( 'font-size', to + 'px' );
595 $( '.betterdocs-breadcrumb .breadcrumb-delimiter' ).css( 'font-size', to + 'px' );
596 } );
597 });
598
599 wp.customize( 'betterdocs_single_doc_breadcrumb_speretor_color', function( value ) {
600 value.bind( function( to ) {
601 $( '.betterdocs-breadcrumb .breadcrumb-delimiter' ).css( 'color', to );
602 } );
603 });
604
605 wp.customize( 'betterdocs_single_doc_breadcrumb_active_item_color', function( value ) {
606 value.bind( function( to ) {
607 $( '.betterdocs-breadcrumb-item.current span' ).css( 'color', to );
608 } );
609 });
610
611 wp.customize( 'betterdocs_sticky_toc_width', function( value ) {
612 value.bind( function( to ) {
613 $( '.sticky-toc-container' ).css( 'width', to + 'px' );
614 } );
615 });
616
617 wp.customize( 'betterdocs_sticky_toc_zindex', function( value ) {
618 value.bind( function( to ) {
619 $( '.sticky-toc-container' ).css( 'z-index', to );
620 } );
621 });
622
623 wp.customize( 'betterdocs_sticky_toc_margin_top', function( value ) {
624 value.bind( function( to ) {
625 $( '.sticky-toc-container.toc-sticky' ).css( 'margin-top', to + 'px');
626 } );
627 });
628
629 wp.customize( 'betterdocs_toc_bg_color', function( value ) {
630 value.bind( function( to ) {
631 $( '.betterdocs-toc,.right-sidebar-toc-wrap' ).css( 'background-color', to );
632 } );
633 });
634
635 wp.customize( 'betterdocs_doc_single_toc_padding_top', function( value ) {
636 value.bind( function( to ) {
637 $( '.betterdocs-toc,.right-sidebar-toc-wrap' ).css( 'padding-top', to + 'px' );
638 } );
639 });
640
641 wp.customize( 'betterdocs_doc_single_toc_padding_right', function( value ) {
642 value.bind( function( to ) {
643 $( '.betterdocs-toc,.right-sidebar-toc-wrap' ).css( 'padding-right', to + 'px' );
644 } );
645 });
646
647 wp.customize( 'betterdocs_doc_single_toc_padding_bottom', function( value ) {
648 value.bind( function( to ) {
649 $( '.betterdocs-toc,.right-sidebar-toc-wrap' ).css( 'padding-bottom', to + 'px' );
650 } );
651 });
652
653 wp.customize( 'betterdocs_doc_single_toc_padding_left', function( value ) {
654 value.bind( function( to ) {
655 $( '.betterdocs-toc,.right-sidebar-toc-wrap' ).css( 'padding-left', to + 'px' );
656 } );
657 });
658
659 wp.customize( 'betterdocs_toc_title_color', function( value ) {
660 value.bind( function( to ) {
661 $( '.betterdocs-toc > .toc-title,.betterdocs-entry-content .betterdocs-toc.collapsible-sm .angle-icon' ).css( 'color', to );
662 } );
663 });
664
665 wp.customize( 'betterdocs_toc_title_font_size', function( value ) {
666 value.bind( function( to ) {
667 $( '.betterdocs-toc > .toc-title' ).css( 'font-size', to + 'px' );
668 } );
669 });
670
671 wp.customize( 'betterdocs_toc_list_item_color', function( value ) {
672 value.bind( function( to ) {
673 $( '.betterdocs-toc > .toc-list a' ).css( 'color', to );
674 } );
675 });
676
677 wp.customize( 'betterdocs_toc_active_item_color', function( value ) {
678 value.bind( function( to ) {
679 $( '.betterdocs-toc > .toc-list a.active' ).css( 'color', to );
680 } );
681 });
682
683 wp.customize( 'betterdocs_toc_list_item_font_size', function( value ) {
684 value.bind( function( to ) {
685 $( '.betterdocs-toc > .toc-list a' ).css( 'font-size', to + 'px' );
686 } );
687 });
688
689 wp.customize( 'betterdocs_doc_single_toc_list_margin_top', function( value ) {
690 value.bind( function( to ) {
691 $( '.betterdocs-toc > .toc-list a' ).css( 'margin-top', to + 'px' );
692 } );
693 });
694
695 wp.customize( 'betterdocs_doc_single_toc_list_margin_top', function( value ) {
696 value.bind( function( to ) {
697 $( '.betterdocs-toc > .toc-list li:before' ).css( 'padding-top', to + 'px' );
698 } );
699 });
700
701 wp.customize( 'betterdocs_doc_single_toc_list_margin_right', function( value ) {
702 value.bind( function( to ) {
703 $( '.betterdocs-toc > .toc-list a' ).css( 'margin-right', to + 'px' );
704 } );
705 });
706
707 wp.customize( 'betterdocs_doc_single_toc_list_margin_bottom', function( value ) {
708 value.bind( function( to ) {
709 $( '.betterdocs-toc > .toc-list a' ).css( 'margin-bottom', to + 'px' );
710 } );
711 });
712
713 wp.customize( 'betterdocs_doc_single_toc_list_margin_left', function( value ) {
714 value.bind( function( to ) {
715 $( '.betterdocs-toc > .toc-list a' ).css( 'margin-left', to + 'px' );
716 } );
717 });
718
719 wp.customize( 'betterdocs_toc_margin_bottom', function( value ) {
720 value.bind( function( to ) {
721 $( '.betterdocs-entry-content .betterdocs-toc' ).css( 'margin-bottom', to + 'px' );
722 } );
723 });
724
725 wp.customize( 'betterdocs_single_content_font_size', function( value ) {
726 value.bind( function( to ) {
727 $( '.betterdocs-content' ).css( 'font-size', to + 'px' );
728 } );
729 });
730
731 wp.customize( 'betterdocs_single_content_font_color', function( value ) {
732 value.bind( function( to ) {
733 $( '.betterdocs-content' ).css( 'color', to );
734 } );
735 });
736
737 wp.customize( 'betterdocs_post_social_share_text_color', function( value ) {
738 value.bind( function( to ) {
739 $( '.betterdocs-social-share .betterdocs-social-share-heading h5' ).css( 'color', to );
740 } );
741 });
742
743 wp.customize( 'betterdocs_single_doc_feedback_icon_font_size', function( value ) {
744 value.bind( function( to ) {
745 $( '.feedback-form-link .feedback-form-icon svg, .feedback-form-link .feedback-form-icon img' ).css( 'width', to + 'px' );
746 } );
747 });
748
749 wp.customize( 'betterdocs_single_doc_feedback_link_color', function( value ) {
750 value.bind( function( to ) {
751 $( '.betterdocs-entry-footer .feedback-form-link' ).css( 'color', to );
752 } );
753 });
754
755 wp.customize( 'betterdocs_single_doc_feedback_link_font_size', function( value ) {
756 value.bind( function( to ) {
757 $( '.betterdocs-entry-footer .feedback-form-link' ).css( 'font-size', to + 'px' );
758 } );
759 });
760
761 wp.customize( 'betterdocs_single_doc_feedback_link_color', function( value ) {
762 value.bind( function( to ) {
763 $( '.betterdocs-entry-footer .feedback-form-link' ).css( 'color', to );
764 } );
765 });
766
767 wp.customize( 'betterdocs_single_doc_feedback_title_font_size', function( value ) {
768 value.bind( function( to ) {
769 $( '.betterdocs-entry-footer .feedback-form .modal-content .feedback-form-title' ).css( 'font-size', to + 'px' );
770 } );
771 });
772
773 wp.customize( 'betterdocs_single_doc_feedback_title_color', function( value ) {
774 value.bind( function( to ) {
775 $( '.betterdocs-entry-footer .feedback-form .modal-content .feedback-form-title' ).css( 'color', to );
776 } );
777 });
778
779 wp.customize( 'betterdocs_single_doc_navigation_color', function( value ) {
780 value.bind( function( to ) {
781 $( '.docs-navigation a' ).css( 'color', to );
782 } );
783 });
784
785 wp.customize( 'betterdocs_single_doc_navigation_font_size', function( value ) {
786 value.bind( function( to ) {
787 $( '.docs-navigation a' ).css( 'font-size', to + 'px' );
788 } );
789 });
790
791 wp.customize( 'betterdocs_single_doc_navigation_arrow_color', function( value ) {
792 value.bind( function( to ) {
793 $( '.docs-navigation a svg' ).css( 'fill', to );
794 } );
795 });
796
797 wp.customize( 'betterdocs_single_doc_navigation_arrow_font_size', function( value ) {
798 value.bind( function( to ) {
799 $( '.docs-navigation a svg' ).css( 'width', to + 'px' );
800 } );
801 });
802
803 wp.customize( 'betterdocs_single_doc_lu_time_color', function( value ) {
804 value.bind( function( to ) {
805 $( '.betterdocs-entry-footer .update-date' ).css( 'color', to );
806 } );
807 });
808
809 wp.customize( 'betterdocs_single_doc_lu_time_font_size', function( value ) {
810 value.bind( function( to ) {
811 $( '.betterdocs-entry-footer .update-date' ).css( 'font-size', to + 'px' );
812 } );
813 });
814
815 wp.customize( 'betterdocs_single_doc_powered_by_color', function( value ) {
816 value.bind( function( to ) {
817 $( '.betterdocs-credit p' ).css( 'color', to );
818 } );
819 });
820
821 wp.customize( 'betterdocs_single_doc_powered_by_font_size', function( value ) {
822 value.bind( function( to ) {
823 $( '.betterdocs-credit p' ).css( 'font-size', to + 'px' );
824 } );
825 });
826
827 wp.customize( 'betterdocs_single_doc_powered_by_link_color', function( value ) {
828 value.bind( function( to ) {
829 $( '.betterdocs-credit p a' ).css( 'color', to );
830 } );
831 });
832
833 wp.customize( 'betterdocs_sidebar_bg_color', function( value ) {
834 value.bind( function( to ) {
835 $( '.betterdocs-sidebar-content .betterdocs-categories-wrap,.betterdocs-full-sidebar-left' ).css( 'background-color', to );
836 } );
837 });
838
839 wp.customize( 'betterdocs_sidebar_padding_top', function( value ) {
840 value.bind( function( to ) {
841 $( '.betterdocs-sidebar-content .betterdocs-categories-wrap, .betterdocs-full-sidebar-left .betterdocs-categories-wrap' ).css( 'padding-top', to + 'px' );
842 } );
843 });
844
845 wp.customize( 'betterdocs_sidebar_padding_right', function( value ) {
846 value.bind( function( to ) {
847 $( '.betterdocs-sidebar-content .betterdocs-categories-wrap, .betterdocs-full-sidebar-left .betterdocs-categories-wrap' ).css( 'padding-right', to + 'px' );
848 } );
849 });
850
851 wp.customize( 'betterdocs_sidebar_padding_bottom', function( value ) {
852 value.bind( function( to ) {
853 $( '.betterdocs-sidebar-content .betterdocs-categories-wrap, .betterdocs-full-sidebar-left .betterdocs-categories-wrap' ).css( 'padding-bottom', to + 'px' );
854 } );
855 });
856
857 wp.customize( 'betterdocs_sidebar_padding_left', function( value ) {
858 value.bind( function( to ) {
859 $( '.betterdocs-sidebar-content .betterdocs-categories-wrap, .betterdocs-full-sidebar-left .betterdocs-categories-wrap' ).css( 'padding-left', to + 'px' );
860 } );
861 });
862
863 wp.customize( 'betterdocs_sidebar_borderr_topleft', function( value ) {
864 value.bind( function( to ) {
865 $( '.betterdocs-single-layout1 .betterdocs-sidebar-content .betterdocs-categories-wrap' ).css( 'border-top-left-radius', to + 'px' );
866 } );
867 });
868
869 wp.customize( 'betterdocs_sidebar_borderr_topright', function( value ) {
870 value.bind( function( to ) {
871 $( '.betterdocs-single-layout1 .betterdocs-sidebar-content .betterdocs-categories-wrap' ).css( 'border-top-right-radius', to + 'px' );
872 } );
873 });
874
875 wp.customize( 'betterdocs_sidebar_borderr_bottomright', function( value ) {
876 value.bind( function( to ) {
877 $( '.betterdocs-single-layout1 .betterdocs-sidebar-content .betterdocs-categories-wrap' ).css( 'border-bottom-right-radius', to + 'px' );
878 } );
879 });
880
881 wp.customize( 'betterdocs_sidebar_borderr_bottomleft', function( value ) {
882 value.bind( function( to ) {
883 $( '.betterdocs-single-layout1 .betterdocs-sidebar-content .betterdocs-categories-wrap' ).css( 'border-bottom-left-radius', to + 'px' );
884 } );
885 });
886
887 wp.customize( 'betterdocs_sidebar_icon_size', function( value ) {
888 value.bind( function( to ) {
889 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-cat-title img' ).css( 'height', to + 'px' );
890 } );
891 });
892
893 wp.customize( 'betterdocs_sidebar_title_bg_color', function( value ) {
894 value.bind( function( to ) {
895 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-single-cat-wrap .docs-cat-title-wrap' ).css( 'background-color', to );
896 } );
897 });
898
899 wp.customize( 'betterdocs_sidebar_title_color', function( value ) {
900 value.bind( function( to ) {
901 $( '.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 );
902 } );
903 });
904
905 wp.customize( 'betterdocs_sidebar_active_title_color', function( value ) {
906 value.bind( function( to ) {
907 $( '.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 );
908 } );
909 });
910
911 wp.customize( 'betterdocs_sidebar_title_font_size', function( value ) {
912 value.bind( function( to ) {
913 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-cat-title-inner .docs-cat-heading' ).css( 'font-size', to + 'px' );
914 } );
915 });
916
917 wp.customize( 'betterdocs_sidebar_title_padding_top', function( value ) {
918 value.bind( function( to ) {
919 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap .docs-cat-title-wrap' ).css( 'padding-top', to + 'px' );
920 } );
921 });
922
923 wp.customize( 'betterdocs_sidebar_title_padding_right', function( value ) {
924 value.bind( function( to ) {
925 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap .docs-cat-title-wrap' ).css( 'padding-right', to + 'px' );
926 } );
927 });
928
929 wp.customize( 'betterdocs_sidebar_title_padding_bottom', function( value ) {
930 value.bind( function( to ) {
931 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap .docs-cat-title-wrap' ).css( 'padding-bottom', to + 'px' );
932 } );
933 });
934
935 wp.customize( 'betterdocs_sidebar_title_padding_left', function( value ) {
936 value.bind( function( to ) {
937 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap .docs-cat-title-wrap' ).css( 'padding-left', to + 'px' );
938 } );
939 });
940
941 wp.customize( 'betterdocs_sidebar_title_margin_top', function( value ) {
942 value.bind( function( to ) {
943 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap' ).css( 'margin-top', to + 'px' );
944 } );
945 });
946
947 wp.customize( 'betterdocs_sidebar_title_margin_right', function( value ) {
948 value.bind( function( to ) {
949 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap' ).css( 'margin-right', to + 'px' );
950 } );
951 });
952
953 wp.customize( 'betterdocs_sidebar_title_margin_bottom', function( value ) {
954 value.bind( function( to ) {
955 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap' ).css( 'margin-bottom', to + 'px' );
956 } );
957 });
958
959 wp.customize( 'betterdocs_sidebar_title_margin_left', function( value ) {
960 value.bind( function( to ) {
961 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-single-cat-wrap' ).css( 'margin-left', to + 'px' );
962 } );
963 });
964
965 wp.customize( 'betterdocs_sidbebar_item_list_bg_color', function( value ) {
966 value.bind( function( to ) {
967 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-container' ).css( 'background-color', to );
968 } );
969 });
970
971 wp.customize( 'betterdocs_sidbebar_item_count_bg_color', function( value ) {
972 value.bind( function( to ) {
973 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-count' ).css( 'background-color', to );
974 } );
975 });
976
977 wp.customize( 'betterdocs_sidbebar_item_count_inner_bg_color', function( value ) {
978 value.bind( function( to ) {
979 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-count span' ).css( 'background-color', to );
980 } );
981 });
982
983 wp.customize( 'betterdocs_sidebar_item_counter_size', function( value ) {
984 value.bind( function( to ) {
985 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-count span' ).css( 'width', to + 'px' );
986 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-count span' ).css( 'height', to + 'px' );
987 } );
988 });
989
990 wp.customize( 'betterdocs_sidebar_item_count_color', function( value ) {
991 value.bind( function( to ) {
992 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-count span' ).css( 'color', to );
993 } );
994 });
995
996 wp.customize( 'betterdocs_sidebat_item_count_font_size', function( value ) {
997 value.bind( function( to ) {
998 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-item-count span' ).css( 'font-size', to + 'px' );
999 } );
1000 });
1001
1002 wp.customize( 'betterdocs_sidebar_active_cat_background_color', function( value ) {
1003 value.bind( function( to ) {
1004 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-single-cat-wrap .docs-cat-title-wrap.active-title' ).css( 'background-color', to );
1005 } );
1006 });
1007
1008 wp.customize( 'betterdocs_sidebar_active_cat_border_color', function( value ) {
1009 value.bind( function( to ) {
1010 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .docs-single-cat-wrap .docs-cat-title-wrap.active-title' ).css( 'border-color', to );
1011 } );
1012 });
1013
1014 wp.customize( 'betterdocs_sidebar_list_item_color', function( value ) {
1015 value.bind( function( to ) {
1016 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap li a' ).css( 'color', to );
1017 } );
1018 });
1019
1020 wp.customize( 'betterdocs_sidebar_active_list_item_color', function( value ) {
1021 value.bind( function( to ) {
1022 $( '.betterdocs-sidebar-content .betterdocs-categories-wrap li a.active, .betterdocs-sidebar-content .betterdocs-categories-wrap li.sub-list a.active' ).css( 'color', to );
1023 } );
1024 });
1025
1026 wp.customize( 'betterdocs_sidebar_list_item_font_size', function( value ) {
1027 value.bind( function( to ) {
1028 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap li a' ).css( 'font-size', to + 'px');
1029 } );
1030 });
1031
1032 wp.customize( 'betterdocs_sidebar_list_item_margin_top', function( value ) {
1033 value.bind( function( to ) {
1034 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-item-container li' ).css( 'margin-top', to + 'px' );
1035 } );
1036 });
1037
1038 wp.customize( 'betterdocs_sidebar_list_item_margin_right', function( value ) {
1039 value.bind( function( to ) {
1040 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-item-container li' ).css( 'margin-right', to + 'px' );
1041 } );
1042 });
1043
1044 wp.customize( 'betterdocs_sidebar_list_item_margin_bottom', function( value ) {
1045 value.bind( function( to ) {
1046 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-item-container li' ).css( 'margin-bottom', to + 'px' );
1047 } );
1048 });
1049
1050 wp.customize( 'betterdocs_sidebar_list_item_margin_left', function( value ) {
1051 value.bind( function( to ) {
1052 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-item-container li' ).css( 'margin-left', to + 'px' );
1053 } );
1054 });
1055
1056 wp.customize( 'betterdocs_sidebar_list_icon_color', function( value ) {
1057 value.bind( function( to ) {
1058 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-item-container li svg' ).css( 'fill', to );
1059 } );
1060 });
1061
1062 wp.customize( 'betterdocs_sidebar_list_icon_font_size', function( value ) {
1063 value.bind( function( to ) {
1064 $( '.betterdocs-sidebar-content.betterdocs-category-sidebar .betterdocs-categories-wrap .docs-item-container li svg' ).css( 'font-size', to + 'px' );
1065 } );
1066 });
1067
1068 wp.customize( 'betterdocs_archive_page_background_color', function( value ) {
1069 value.bind( function( to ) {
1070 $( '.betterdocs-category-wraper.betterdocs-single-wraper' ).css( 'background-color', to);
1071 } );
1072 });
1073
1074 wp.customize( 'betterdocs_archive_page_background_image', function( value ) {
1075 value.bind( function( to ) {
1076 $( '.betterdocs-category-wraper.betterdocs-single-wraper' ).css( 'background-image', 'url('+to+')');
1077 } );
1078 });
1079
1080 wp.customize( 'betterdocs_archive_page_background_size', function( value ) {
1081 value.bind( function( to ) {
1082 $( '.betterdocs-category-wraper.betterdocs-single-wraper' ).css( 'background-size', to);
1083 } );
1084 });
1085
1086 wp.customize( 'betterdocs_archive_page_background_repeat', function( value ) {
1087 value.bind( function( to ) {
1088 $( '.betterdocs-category-wraper.betterdocs-single-wraper' ).css( 'background-repeat', to);
1089 } );
1090 });
1091
1092 wp.customize( 'betterdocs_archive_page_background_attachment', function( value ) {
1093 value.bind( function( to ) {
1094 $( '.betterdocs-category-wraper.betterdocs-single-wraper' ).css( 'background-attachment', to);
1095 } );
1096 });
1097
1098 wp.customize( 'betterdocs_archive_page_background_position', function( value ) {
1099 value.bind( function( to ) {
1100 $( '.betterdocs-category-wraper.betterdocs-single-wraper' ).css( 'background-position', to);
1101 } );
1102 });
1103
1104 wp.customize( 'betterdocs_archive_content_background_color', function( value ) {
1105 value.bind( function( to ) {
1106 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'background-color', to);
1107 } );
1108 });
1109
1110 wp.customize( 'betterdocs_archive_content_margin_top', function( value ) {
1111 value.bind( function( to ) {
1112 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'margin-top', to + 'px' );
1113 } );
1114 });
1115
1116 wp.customize( 'betterdocs_archive_content_margin_right', function( value ) {
1117 value.bind( function( to ) {
1118 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'margin-right', to + 'px' );
1119 } );
1120 });
1121
1122 wp.customize( 'betterdocs_archive_content_margin_bottom', function( value ) {
1123 value.bind( function( to ) {
1124 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'margin-bottom', to + 'px' );
1125 } );
1126 });
1127
1128 wp.customize( 'betterdocs_archive_content_margin_left', function( value ) {
1129 value.bind( function( to ) {
1130 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'margin-left', to + 'px' );
1131 } );
1132 });
1133
1134 wp.customize( 'betterdocs_archive_content_padding_top', function( value ) {
1135 value.bind( function( to ) {
1136 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'padding-top', to + 'px' );
1137 } );
1138 });
1139
1140 wp.customize( 'betterdocs_archive_content_padding_right', function( value ) {
1141 value.bind( function( to ) {
1142 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'padding-right', to + 'px' );
1143 } );
1144 });
1145
1146 wp.customize( 'betterdocs_archive_content_padding_bottom', function( value ) {
1147 value.bind( function( to ) {
1148 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'padding-bottom', to + 'px' );
1149 } );
1150 });
1151
1152 wp.customize( 'betterdocs_archive_content_padding_left', function( value ) {
1153 value.bind( function( to ) {
1154 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'padding-left', to + 'px' );
1155 } );
1156 });
1157
1158 wp.customize( 'betterdocs_archive_content_border_radius', function( value ) {
1159 value.bind( function( to ) {
1160 $( '.betterdocs-category-wraper.betterdocs-single-wraper .docs-listing-main .docs-category-listing' ).css( 'border-radius', to + 'px' );
1161 } );
1162 });
1163
1164 wp.customize( 'betterdocs_archive_title_color', function( value ) {
1165 value.bind( function( to ) {
1166 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title .docs-cat-heading' ).css( 'color', to );
1167 } );
1168 });
1169
1170 wp.customize( 'betterdocs_archive_title_font_size', function( value ) {
1171 value.bind( function( to ) {
1172 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title .docs-cat-heading' ).css( 'font-size', to + 'px');
1173 } );
1174 });
1175
1176 wp.customize( 'betterdocs_archive_title_margin_top', function( value ) {
1177 value.bind( function( to ) {
1178 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title .docs-cat-heading' ).css( 'margin-top', to + 'px');
1179 } );
1180 });
1181
1182 wp.customize( 'betterdocs_archive_title_margin_right', function( value ) {
1183 value.bind( function( to ) {
1184 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title .docs-cat-heading' ).css( 'margin-right', to + 'px');
1185 } );
1186 });
1187
1188 wp.customize( 'betterdocs_archive_title_margin_bottom', function( value ) {
1189 value.bind( function( to ) {
1190 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title .docs-cat-heading' ).css( 'margin-bottom', to + 'px');
1191 } );
1192 });
1193
1194 wp.customize( 'betterdocs_archive_title_margin_left', function( value ) {
1195 value.bind( function( to ) {
1196 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title .docs-cat-heading' ).css( 'margin-left', to + 'px');
1197 } );
1198 });
1199
1200 wp.customize( 'betterdocs_archive_description_color', function( value ) {
1201 value.bind( function( to ) {
1202 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title p' ).css( 'color', to );
1203 } );
1204 });
1205
1206 wp.customize( 'betterdocs_archive_description_font_size', function( value ) {
1207 value.bind( function( to ) {
1208 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title p' ).css( 'font-size', to + 'px');
1209 } );
1210 });
1211
1212 wp.customize( 'betterdocs_archive_description_margin_top', function( value ) {
1213 value.bind( function( to ) {
1214 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title p' ).css( 'margin-top', to + 'px');
1215 } );
1216 });
1217
1218 wp.customize( 'betterdocs_archive_description_margin_right', function( value ) {
1219 value.bind( function( to ) {
1220 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title p' ).css( 'margin-right', to + 'px');
1221 } );
1222 });
1223
1224 wp.customize( 'betterdocs_archive_description_margin_bottom', function( value ) {
1225 value.bind( function( to ) {
1226 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title p' ).css( 'margin-bottom', to + 'px');
1227 } );
1228 });
1229
1230 wp.customize( 'betterdocs_archive_description_margin_left', function( value ) {
1231 value.bind( function( to ) {
1232 $( '.betterdocs-category-wraper .docs-category-listing .docs-cat-title p' ).css( 'margin-left', to + 'px');
1233 } );
1234 });
1235
1236 wp.customize( 'betterdocs_archive_article_list_margin_top', function( value ) {
1237 value.bind( function( to ) {
1238 $( '.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');
1239 } );
1240 });
1241
1242 wp.customize( 'betterdocs_archive_article_list_margin_right', function( value ) {
1243 value.bind( function( to ) {
1244 $( '.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');
1245 } );
1246 });
1247
1248 wp.customize( 'betterdocs_archive_article_list_margin_bottom', function( value ) {
1249 value.bind( function( to ) {
1250 $( '.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');
1251 } );
1252 });
1253
1254 wp.customize( 'betterdocs_archive_article_list_margin_left', function( value ) {
1255 value.bind( function( to ) {
1256 $( '.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');
1257 } );
1258 });
1259
1260 wp.customize( 'betterdocs_archive_list_icon_color', function( value ) {
1261 value.bind( function( to ) {
1262 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li svg' ).css( 'fill', to );
1263 } );
1264 });
1265
1266 wp.customize( 'betterdocs_archive_list_icon_font_size', function( value ) {
1267 value.bind( function( to ) {
1268 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li svg' ).css( 'font-size', to + 'px' );
1269 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li svg' ).css( 'min-width', to + 'px' );
1270 } );
1271 });
1272
1273 wp.customize( 'betterdocs_archive_list_item_color', function( value ) {
1274 value.bind( function( to ) {
1275 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li a' ).css( 'color', to );
1276 } );
1277 });
1278
1279 wp.customize( 'betterdocs_archive_list_item_font_size', function( value ) {
1280 value.bind( function( to ) {
1281 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list ul li a' ).css( 'font-size', to + 'px');
1282 } );
1283 });
1284
1285 wp.customize( 'betterdocs_archive_article_subcategory_color', function( value ) {
1286 value.bind( function( to ) {
1287 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat-title a' ).css( 'color', to );
1288 } );
1289 });
1290
1291 wp.customize( 'betterdocs_archive_article_subcategory_font_size', function( value ) {
1292 value.bind( function( to ) {
1293 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat-title a' ).css( 'font-size', to + 'px' );
1294
1295 } );
1296 });
1297
1298 wp.customize( 'betterdocs_archive_subcategory_icon_color', function( value ) {
1299 value.bind( function( to ) {
1300 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat-title svg' ).css( 'fill', to );
1301 } );
1302 });
1303
1304 wp.customize( 'betterdocs_archive_subcategory_icon_font_size', function( value ) {
1305 value.bind( function( to ) {
1306 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat-title svg' ).css( 'font-size', to + 'px' );
1307 } );
1308 });
1309
1310 wp.customize( 'betterdocs_archive_subcategory_article_list_color', function( value ) {
1311 value.bind( function( to ) {
1312 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat li a' ).css( 'color', to );
1313 } );
1314 });
1315
1316 wp.customize( 'betterdocs_archive_subcategory_article_list_icon_color', function( value ) {
1317 value.bind( function( to ) {
1318 $( '.betterdocs-category-wraper .docs-listing-main .docs-category-listing .docs-list .docs-sub-cat li svg' ).css( 'fill', to );
1319 } );
1320 });
1321
1322 wp.customize( 'betterdocs_live_search_heading_font_size', function( value ) {
1323 value.bind( function( to ) {
1324 $( '.betterdocs-search-heading h2' ).css( 'font-size', to + 'px');
1325 } );
1326 });
1327
1328 wp.customize( 'betterdocs_live_search_heading_font_color', function( value ) {
1329 value.bind( function( to ) {
1330 $( '.betterdocs-search-heading h2' ).css( 'color', to );
1331 } );
1332 });
1333
1334 wp.customize( 'betterdocs_live_search_subheading_font_size', function( value ) {
1335 value.bind( function( to ) {
1336 $( '.betterdocs-search-heading h3' ).css( 'font-size', to + 'px');
1337 } );
1338 });
1339
1340 wp.customize( 'betterdocs_live_search_subheading_font_color', function( value ) {
1341 value.bind( function( to ) {
1342 $( '.betterdocs-search-heading h3' ).css( 'color', to );
1343 } );
1344 });
1345
1346 wp.customize( 'betterdocs_search_heading_margin_top', function( value ) {
1347 value.bind( function( to ) {
1348 $( '.betterdocs-search-heading h2' ).css( 'margin-top', to + 'px' );
1349 } );
1350 });
1351
1352 wp.customize( 'betterdocs_search_heading_margin_right', function( value ) {
1353 value.bind( function( to ) {
1354 $( '.betterdocs-search-heading h2' ).css( 'margin-right', to + 'px' );
1355 } );
1356 });
1357
1358 wp.customize( 'betterdocs_search_heading_margin_bottom', function( value ) {
1359 value.bind( function( to ) {
1360 $( '.betterdocs-search-heading h2' ).css( 'margin-bottom', to + 'px' );
1361 } );
1362 });
1363
1364 wp.customize( 'betterdocs_search_heading_margin_left', function( value ) {
1365 value.bind( function( to ) {
1366 $( '.betterdocs-search-heading h2' ).css( 'margin-left', to + 'px' );
1367 } );
1368 });
1369
1370 wp.customize( 'betterdocs_search_subheading_margin_top', function( value ) {
1371 value.bind( function( to ) {
1372 $( '.betterdocs-search-heading h3' ).css( 'margin-top', to + 'px' );
1373 } );
1374 });
1375
1376 wp.customize( 'betterdocs_search_subheading_margin_right', function( value ) {
1377 value.bind( function( to ) {
1378 $( '.betterdocs-search-heading h3' ).css( 'margin-right', to + 'px' );
1379 } );
1380 });
1381
1382 wp.customize( 'betterdocs_search_subheading_margin_bottom', function( value ) {
1383 value.bind( function( to ) {
1384 $( '.betterdocs-search-heading h3' ).css( 'margin-bottom', to + 'px' );
1385 } );
1386 });
1387
1388 wp.customize( 'betterdocs_search_subheading_margin_left', function( value ) {
1389 value.bind( function( to ) {
1390 $( '.betterdocs-search-heading h3' ).css( 'margin-left', to + 'px' );
1391 } );
1392 });
1393
1394 wp.customize( 'betterdocs_live_search_background_color', function( value ) {
1395 value.bind( function( to ) {
1396 $( '.betterdocs-search-form-wrap' ).css( 'background-color', to);
1397 } );
1398 });
1399
1400 wp.customize( 'betterdocs_live_search_background_image', function( value ) {
1401 value.bind( function( to ) {
1402 $( '.betterdocs-search-form-wrap' ).css( 'background-image', 'url('+to+')');
1403 } );
1404 });
1405
1406 wp.customize( 'betterdocs_live_search_background_size', function( value ) {
1407 value.bind( function( to ) {
1408 $( '.betterdocs-search-form-wrap' ).css( 'background-size', to);
1409 } );
1410 });
1411
1412 wp.customize( 'betterdocs_live_search_background_repeat', function( value ) {
1413 value.bind( function( to ) {
1414 $( '.betterdocs-search-form-wrap' ).css( 'background-repeat', to);
1415 } );
1416 });
1417
1418 wp.customize( 'betterdocs_live_search_background_attachment', function( value ) {
1419 value.bind( function( to ) {
1420 $( '.betterdocs-search-form-wrap' ).css( 'background-attachment', to);
1421 } );
1422 });
1423
1424 wp.customize( 'betterdocs_live_search_background_position', function( value ) {
1425 value.bind( function( to ) {
1426 $( '.betterdocs-search-form-wrap' ).css( 'background-position', to);
1427 } );
1428 });
1429
1430 wp.customize( 'betterdocs_live_search_padding_top', function( value ) {
1431 value.bind( function( to ) {
1432 $( '.betterdocs-search-form-wrap' ).css( 'padding-top', to + 'px' );
1433 } );
1434 });
1435
1436 wp.customize( 'betterdocs_live_search_padding_right', function( value ) {
1437 value.bind( function( to ) {
1438 $( '.betterdocs-search-form-wrap' ).css( 'padding-right', to + 'px' );
1439 } );
1440 });
1441
1442 wp.customize( 'betterdocs_live_search_padding_bottom', function( value ) {
1443 value.bind( function( to ) {
1444 $( '.betterdocs-search-form-wrap' ).css( 'padding-bottom', to + 'px' );
1445 } );
1446 });
1447
1448 wp.customize( 'betterdocs_live_search_padding_left', function( value ) {
1449 value.bind( function( to ) {
1450 $( '.betterdocs-search-form-wrap' ).css( 'padding-left', to + 'px' );
1451 } );
1452 });
1453
1454 wp.customize( 'betterdocs_search_field_background_color', function( value ) {
1455 value.bind( function( to ) {
1456 $( '.betterdocs-searchform' ).css( 'background-color', to );
1457 } );
1458 });
1459
1460 wp.customize( 'betterdocs_search_field_font_size', function( value ) {
1461 value.bind( function( to ) {
1462 $( '.betterdocs-searchform .betterdocs-search-field' ).css( 'font-size', to + 'px' );
1463 } );
1464 });
1465
1466 wp.customize( 'betterdocs_search_field_color', function( value ) {
1467 value.bind( function( to ) {
1468 $( '.betterdocs-searchform .betterdocs-search-field' ).css( 'color', to );
1469 } );
1470 });
1471
1472 wp.customize( 'betterdocs_search_field_padding_top', function( value ) {
1473 value.bind( function( to ) {
1474 $( '.betterdocs-searchform' ).css( 'padding-top', to + 'px' );
1475 } );
1476 });
1477
1478 wp.customize( 'betterdocs_search_field_padding_right', function( value ) {
1479 value.bind( function( to ) {
1480 $( '.betterdocs-searchform' ).css( 'padding-right', to + 'px' );
1481 } );
1482 });
1483
1484 wp.customize( 'betterdocs_search_field_padding_bottom', function( value ) {
1485 value.bind( function( to ) {
1486 $( '.betterdocs-searchform' ).css( 'padding-bottom', to + 'px' );
1487 } );
1488 });
1489
1490 wp.customize( 'betterdocs_search_field_padding_left', function( value ) {
1491 value.bind( function( to ) {
1492 $( '.betterdocs-searchform' ).css( 'padding-left', to + 'px' );
1493 } );
1494 });
1495
1496 wp.customize( 'betterdocs_search_field_border_radius', function( value ) {
1497 value.bind( function( to ) {
1498 $( '.betterdocs-searchform' ).css( 'border-radius', to + 'px' );
1499 } );
1500 });
1501
1502 wp.customize( 'betterdocs_search_icon_size', function( value ) {
1503 value.bind( function( to ) {
1504 $( '.betterdocs-searchform svg.docs-search-icon' ).css( 'height', to + 'px' );
1505 } );
1506 });
1507
1508 wp.customize( 'betterdocs_search_icon_color', function( value ) {
1509 value.bind( function( to ) {
1510 $( '.betterdocs-searchform svg.docs-search-icon' ).css( 'fill', to );
1511 } );
1512 });
1513
1514 wp.customize( 'betterdocs_search_close_icon_color', function( value ) {
1515 value.bind( function( to ) {
1516 $( '.docs-search-close .close-line' ).css( 'fill', to );
1517 } );
1518 });
1519
1520 wp.customize( 'betterdocs_search_close_icon_border_color', function( value ) {
1521 value.bind( function( to ) {
1522 $( '.docs-search-close .close-border' ).css( 'fill', to );
1523 } );
1524 });
1525
1526 wp.customize( 'betterdocs_search_close_icon_border_color', function( value ) {
1527 value.bind( function( to ) {
1528 $( '.docs-search-loader' ).css( 'stroke', to );
1529 } );
1530 });
1531
1532 wp.customize( 'betterdocs_search_result_width', function( value ) {
1533 value.bind( function( to ) {
1534 $( '.betterdocs-live-search .docs-search-result' ).css( 'width', to + '%' );
1535 } );
1536 });
1537
1538 wp.customize( 'betterdocs_search_result_max_width', function( value ) {
1539 value.bind( function( to ) {
1540 $( '.betterdocs-live-search .docs-search-result' ).css( 'max-width', to + 'px' );
1541 } );
1542 });
1543
1544 wp.customize( 'betterdocs_search_result_background_color', function( value ) {
1545 value.bind( function( to ) {
1546 $( '.betterdocs-live-search .docs-search-result' ).css( 'background-color', to );
1547 } );
1548 });
1549
1550 wp.customize( 'betterdocs_search_result_border_color', function( value ) {
1551 value.bind( function( to ) {
1552 $( '.betterdocs-live-search .docs-search-result' ).css( 'border-color', to );
1553 } );
1554 });
1555
1556 wp.customize( 'betterdocs_search_result_item_font_size', function( value ) {
1557 value.bind( function( to ) {
1558 $( '.betterdocs-live-search .docs-search-result li a,.betterdocs-live-search .docs-search-result li:only-child' ).css( 'font-size', to + 'px' );
1559 } );
1560 });
1561
1562 wp.customize( 'betterdocs_search_result_item_font_color', function( value ) {
1563 value.bind( function( to ) {
1564 $( '.betterdocs-live-search .docs-search-result li a .betterdocs-search-title' ).css( 'color', to );
1565 } );
1566 });
1567
1568 //Search Result Item Cat Font Color
1569 wp.customize( 'betterdocs_search_result_item_cat_font_color', function( value ) {
1570 value.bind( function( to ) {
1571 $( '.betterdocs-live-search .docs-search-result li a .betterdocs-search-category' ).css( 'color', to );
1572 } );
1573 });
1574
1575 wp.customize( 'betterdocs_search_result_item_padding_top', function( value ) {
1576 value.bind( function( to ) {
1577 $( '.betterdocs-live-search .docs-search-result li a' ).css( 'padding-top', to + 'px' );
1578 } );
1579 });
1580
1581 wp.customize( 'betterdocs_search_result_item_padding_right', function( value ) {
1582 value.bind( function( to ) {
1583 $( '.betterdocs-live-search .docs-search-result li a' ).css( 'padding-right', to + 'px' );
1584 } );
1585 });
1586
1587 wp.customize( 'betterdocs_search_result_item_padding_bottom', function( value ) {
1588 value.bind( function( to ) {
1589 $( '.betterdocs-live-search .docs-search-result li a' ).css( 'padding-bottom', to + 'px' );
1590 } );
1591 });
1592
1593 wp.customize( 'betterdocs_search_result_item_padding_left', function( value ) {
1594 value.bind( function( to ) {
1595 $( '.betterdocs-live-search .docs-search-result li a' ).css( 'padding-left', to + 'px' );
1596 } );
1597 });
1598
1599 wp.customize( 'betterdocs_search_result_item_border_color', function( value ) {
1600 value.bind( function( to ) {
1601 $( '.betterdocs-live-search .docs-search-result li' ).css( 'border-color', to );
1602 } );
1603 });
1604
1605 // live search form margin
1606 wp.customize( 'betterdocs_live_search_margin_top', function( value ) {
1607 value.bind( function( to ) {
1608 $( '.betterdocs-search-form-wrap').css( 'margin-top', to + 'px');
1609 } );
1610 });
1611
1612 wp.customize( 'betterdocs_live_search_margin_right', function( value ) {
1613 value.bind( function( to ) {
1614 $( '.betterdocs-search-form-wrap').css( 'margin-right', to + 'px');
1615 } );
1616 });
1617
1618 wp.customize( 'betterdocs_live_search_margin_bottom', function( value ) {
1619 value.bind( function( to ) {
1620 $( '.betterdocs-search-form-wrap').css( 'margin-bottom', to + 'px');
1621 } );
1622 });
1623
1624 wp.customize( 'betterdocs_live_search_margin_left', function( value ) {
1625 value.bind( function( to ) {
1626 $( '.betterdocs-search-form-wrap').css( 'margin-left', to + 'px');
1627 } );
1628 });
1629
1630 wp.customize( 'betterdocs_doc_page_explore_btn_border_width', function( value ) {
1631 value.bind( function( to ) {
1632 $( '.docs-cat-link-btn, .docs-cat-link-btn').css( 'border-width', to + 'px');
1633 } );
1634 });
1635
1636 wp.customize( 'betterdocs_doc_page_explore_btn_border_width', function( value ) {
1637 value.bind( function( to ) {
1638 $( '.docs-cat-link-btn, .docs-cat-link-btn').css( 'border-width', to + 'px');
1639 } );
1640 });
1641
1642 // live search form margin
1643 wp.customize( 'betterdocs_live_search_margin_top', function( value ) {
1644 value.bind( function( to ) {
1645 $( '.betterdocs-search-form-wrap').css( 'margin-top', to + 'px');
1646 } );
1647 });
1648
1649 wp.customize( 'betterdocs_live_search_margin_right', function( value ) {
1650 value.bind( function( to ) {
1651 $( '.betterdocs-search-form-wrap').css( 'margin-right', to + 'px');
1652 } );
1653 });
1654
1655 wp.customize( 'betterdocs_live_search_margin_bottom', function( value ) {
1656 value.bind( function( to ) {
1657 $( '.betterdocs-search-form-wrap').css( 'margin-bottom', to + 'px');
1658 } );
1659 });
1660
1661 wp.customize( 'betterdocs_live_search_margin_left', function( value ) {
1662 value.bind( function( to ) {
1663 $( '.betterdocs-search-form-wrap').css( 'margin-left', to + 'px');
1664 } );
1665 });
1666
1667 //Item Count Border Type
1668 wp.customize( 'betterdocs_doc_page_item_count_border_type', function( value ) {
1669 value.bind( function( to ) {
1670 $( '.betterdocs-categories-wrap.single-kb .docs-cat-title-inner span ').css( 'border-style', to);
1671 } );
1672 });
1673
1674
1675 // Item Counter Border Color
1676 wp.customize( 'betterdocs_doc_page_item_count_border_color', function( value ) {
1677 value.bind( function( to ) {
1678 $( '.betterdocs-categories-wrap.single-kb .docs-cat-title-inner span').css( 'border-color', to);
1679 } );
1680 });
1681
1682 // Doc List Padding Top
1683 wp.customize( 'betterdocs_doc_page_article_list_padding_top', function( value ) {
1684 value.bind( function( to ) {
1685 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li').css( 'padding-top', to + 'px');
1686 } );
1687 });
1688
1689 // Doc List Padding Right
1690 wp.customize( 'betterdocs_doc_page_article_list_padding_right', function( value ) {
1691 value.bind( function( to ) {
1692 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li').css( 'padding-right', to + 'px');
1693 } );
1694 });
1695
1696 // Doc List Padding Bottom
1697 wp.customize( 'betterdocs_doc_page_article_list_padding_bottom', function( value ) {
1698 value.bind( function( to ) {
1699 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li').css( 'padding-bottom', to + 'px');
1700 } );
1701 });
1702
1703 // Doc List Padding Left
1704 wp.customize( 'betterdocs_doc_page_article_list_padding_left', function( value ) {
1705 value.bind( function( to ) {
1706 $( '.betterdocs-categories-wrap.single-kb .docs-item-container li').css( 'padding-left', to + 'px');
1707 } );
1708 });
1709
1710 //Button Margin Top Layout-1
1711 wp.customize( 'betterdocs_doc_page_explore_btn_margin_top', function( value ) {
1712 value.bind( function( to ) {
1713 $('.docs-single-cat-wrap .docs-item-container .docs-cat-link-btn').css( 'margin-top', to + 'px');
1714 } );
1715 });
1716
1717 //Button Margin Right Layout-1
1718 wp.customize( 'betterdocs_doc_page_explore_btn_margin_right', function( value ) {
1719 value.bind( function( to ) {
1720 $('.docs-single-cat-wrap .docs-item-container .docs-cat-link-btn').css( 'margin-right', to + 'px');
1721 } );
1722 });
1723
1724 //Button Margin Bottom Layout-1
1725 wp.customize( 'betterdocs_doc_page_explore_btn_margin_bottom', function( value ) {
1726 value.bind( function( to ) {
1727 $('.docs-single-cat-wrap .docs-item-container .docs-cat-link-btn').css( 'margin-bottom', to + 'px');
1728 } );
1729 });
1730
1731 //Button Margin Left Layout-1
1732 wp.customize( 'betterdocs_doc_page_explore_btn_margin_left', function( value ) {
1733 value.bind( function( to ) {
1734 $('.docs-single-cat-wrap .docs-item-container .docs-cat-link-btn').css( 'margin-left', to + 'px');
1735 } );
1736 });
1737
1738 //Inner Circle Border Width Top
1739 wp.customize( 'betterdocs_doc_page_item_count_inner_border_width_top', function( value ) {
1740 value.bind( function( to ) {
1741 $('.betterdocs-categories-wrap.single-kb .docs-cat-title-inner span').css( 'border-top-width', to + 'px');
1742 } );
1743 });
1744
1745 //Inner Circle Border Width Right
1746 wp.customize( 'betterdocs_doc_page_item_count_inner_border_width_right', function( value ) {
1747 value.bind( function( to ) {
1748 $('.betterdocs-categories-wrap.single-kb .docs-cat-title-inner span').css( 'border-right-width', to + 'px');
1749 } );
1750 });
1751
1752 //Inner Circle Border Width Bottom
1753 wp.customize( 'betterdocs_doc_page_item_count_inner_border_width_bottom', function( value ) {
1754 value.bind( function( to ) {
1755 $('.betterdocs-categories-wrap.single-kb .docs-cat-title-inner span').css( 'border-bottom-width', to + 'px');
1756 } );
1757 });
1758
1759 //Inner Circle Border Width Left
1760 wp.customize( 'betterdocs_doc_page_item_count_inner_border_width_left', function( value ) {
1761 value.bind( function( to ) {
1762 $('.betterdocs-categories-wrap.single-kb .docs-cat-title-inner span').css( 'border-left-width', to + 'px');
1763 } );
1764 });
1765
1766 //Category Title Padding Bottom
1767 wp.customize( 'betterdocs_doc_page_cat_title_padding_bottom', function( value ) {
1768 value.bind( function( to ) {
1769 $('.docs-cat-title-inner ').css( 'padding-bottom', to + 'px');
1770 } );
1771 });
1772
1773 //Doc List And Button Background Color
1774 wp.customize( 'betterdocs_doc_page_article_list_bg_color', function( value ) {
1775 value.bind( function( to ) {
1776 $( '.betterdocs-categories-wrap.single-kb .docs-item-container' ).css( 'background-color', to );
1777 } );
1778 });
1779
1780 //Doc List Padding 2
1781 wp.customize( 'betterdocs_doc_page_article_list_padding_top_2', function( value ) {
1782 value.bind( function( to ) {
1783 $( '.betterdocs-categories-wrap.single-kb .docs-item-container ul ' ).css( 'padding-top', to + 'px' );
1784 } );
1785 });
1786
1787 wp.customize( 'betterdocs_doc_page_article_list_padding_bottom_2', function( value ) {
1788 value.bind( function( to ) {
1789 $( '.betterdocs-categories-wrap.single-kb .docs-item-container ul ' ).css( 'padding-bottom', to + 'px' );
1790 } );
1791 });
1792
1793 wp.customize( 'betterdocs_doc_page_article_list_padding_right_2', function( value ) {
1794 value.bind( function( to ) {
1795 $( '.betterdocs-categories-wrap.single-kb .docs-item-container ul ' ).css( 'padding-right', to + 'px' );
1796 } );
1797 });
1798
1799 wp.customize( 'betterdocs_doc_page_article_list_padding_left_2', function( value ) {
1800 value.bind( function( to ) {
1801 $( '.betterdocs-categories-wrap.single-kb .docs-item-container ul ' ).css( 'padding-left', to + 'px' );
1802 } );
1803 });
1804
1805 wp.customize( 'betterdocs_doc_single_toc_margin_top', function( value ) {
1806 value.bind( function( to ) {
1807 $( '.betterdocs-toc').css( 'margin-top', to + 'px' );
1808 } );
1809 });
1810
1811 wp.customize( 'betterdocs_doc_single_toc_margin_right', function( value ) {
1812 value.bind( function( to ) {
1813 $( '.betterdocs-toc').css( 'margin-right', to + 'px' );
1814 } );
1815 });
1816
1817 wp.customize( 'betterdocs_doc_single_toc_margin_bottom', function( value ) {
1818 value.bind( function( to ) {
1819 $( '.betterdocs-toc').css( 'margin-bottom', to + 'px' );
1820 } );
1821 });
1822
1823 wp.customize( 'betterdocs_doc_single_toc_margin_left', function( value ) {
1824 value.bind( function( to ) {
1825 $( '.betterdocs-toc').css( 'margin-left', to + 'px' );
1826 } );
1827 });
1828
1829
1830
1831 } )( jQuery );
1832