Kirki - Version 3.0.45

Version Description

  • 2019-09-01 =

Fixed

  • Compatibility with the latest Gutenberg plugin versions.
  • Styles for normal font-weights in typography controls (regular to 400 conversion).

Changed

  • Updated Google-Fonts lists.

Removed

  • Backup fonts are no longer needed since google-fonts are no longer loaded from the google CDN.

Deprecated

  • kirki_fonts_backup_fonts filter.
  • Kirki_Fonts::get_backup_fonts() method.

See the previous changelogs here.

Download this release

Release Info

Developer aristath
Plugin Icon 128x128 Kirki
Version 3.0.45
Comparing to
See all releases

Code changes from version 3.0.44 to 3.0.45

Files changed (103) hide show
  1. .jhintrc +0 -29
  2. CHANGELOG.md +16 -0
  3. assets/vendor/selectWoo/css/select2.css +0 -0
  4. assets/vendor/selectWoo/css/select2.min.css +0 -0
  5. assets/vendor/selectWoo/css/selectWoo.css +0 -0
  6. assets/vendor/selectWoo/css/selectWoo.min.css +0 -0
  7. assets/vendor/selectWoo/js/i18n/ar.js +0 -0
  8. assets/vendor/selectWoo/js/i18n/az.js +0 -0
  9. assets/vendor/selectWoo/js/i18n/bg.js +0 -0
  10. assets/vendor/selectWoo/js/i18n/ca.js +0 -0
  11. assets/vendor/selectWoo/js/i18n/cs.js +0 -0
  12. assets/vendor/selectWoo/js/i18n/da.js +0 -0
  13. assets/vendor/selectWoo/js/i18n/de.js +0 -0
  14. assets/vendor/selectWoo/js/i18n/el.js +0 -0
  15. assets/vendor/selectWoo/js/i18n/en.js +0 -0
  16. assets/vendor/selectWoo/js/i18n/es.js +0 -0
  17. assets/vendor/selectWoo/js/i18n/et.js +0 -0
  18. assets/vendor/selectWoo/js/i18n/eu.js +0 -0
  19. assets/vendor/selectWoo/js/i18n/fa.js +0 -0
  20. assets/vendor/selectWoo/js/i18n/fi.js +0 -0
  21. assets/vendor/selectWoo/js/i18n/fr.js +0 -0
  22. assets/vendor/selectWoo/js/i18n/gl.js +0 -0
  23. assets/vendor/selectWoo/js/i18n/he.js +0 -0
  24. assets/vendor/selectWoo/js/i18n/hi.js +0 -0
  25. assets/vendor/selectWoo/js/i18n/hr.js +0 -0
  26. assets/vendor/selectWoo/js/i18n/hu.js +0 -0
  27. assets/vendor/selectWoo/js/i18n/hy.js +0 -0
  28. assets/vendor/selectWoo/js/i18n/id.js +0 -0
  29. assets/vendor/selectWoo/js/i18n/is.js +0 -0
  30. assets/vendor/selectWoo/js/i18n/it.js +0 -0
  31. assets/vendor/selectWoo/js/i18n/ja.js +0 -0
  32. assets/vendor/selectWoo/js/i18n/km.js +0 -0
  33. assets/vendor/selectWoo/js/i18n/ko.js +0 -0
  34. assets/vendor/selectWoo/js/i18n/lt.js +0 -0
  35. assets/vendor/selectWoo/js/i18n/lv.js +0 -0
  36. assets/vendor/selectWoo/js/i18n/mk.js +0 -0
  37. assets/vendor/selectWoo/js/i18n/ms.js +0 -0
  38. assets/vendor/selectWoo/js/i18n/nb.js +0 -0
  39. assets/vendor/selectWoo/js/i18n/nl.js +0 -0
  40. assets/vendor/selectWoo/js/i18n/pl.js +0 -0
  41. assets/vendor/selectWoo/js/i18n/pt-BR.js +0 -0
  42. assets/vendor/selectWoo/js/i18n/pt.js +0 -0
  43. assets/vendor/selectWoo/js/i18n/ro.js +0 -0
  44. assets/vendor/selectWoo/js/i18n/ru.js +0 -0
  45. assets/vendor/selectWoo/js/i18n/sk.js +0 -0
  46. assets/vendor/selectWoo/js/i18n/sl.js +0 -0
  47. assets/vendor/selectWoo/js/i18n/sr-Cyrl.js +0 -0
  48. assets/vendor/selectWoo/js/i18n/sr.js +0 -0
  49. assets/vendor/selectWoo/js/i18n/sv.js +0 -0
  50. assets/vendor/selectWoo/js/i18n/th.js +0 -0
  51. assets/vendor/selectWoo/js/i18n/tr.js +0 -0
  52. assets/vendor/selectWoo/js/i18n/uk.js +0 -0
  53. assets/vendor/selectWoo/js/i18n/vi.js +0 -0
  54. assets/vendor/selectWoo/js/i18n/zh-CN.js +0 -0
  55. assets/vendor/selectWoo/js/i18n/zh-TW.js +0 -0
  56. assets/vendor/selectWoo/js/select2.full.js +0 -0
  57. assets/vendor/selectWoo/js/select2.full.min.js +0 -0
  58. assets/vendor/selectWoo/js/select2.js +0 -0
  59. assets/vendor/selectWoo/js/select2.min.js +0 -0
  60. assets/vendor/selectWoo/js/selectWoo.full.js +0 -0
  61. assets/vendor/selectWoo/js/selectWoo.full.min.js +0 -0
  62. assets/vendor/selectWoo/js/selectWoo.js +0 -0
  63. assets/vendor/selectWoo/js/selectWoo.min.js +0 -0
  64. assets/vendor/selectWoo/kirki.css +27 -19
  65. controls/css/styles.css +767 -593
  66. controls/js/script.js +9 -7
  67. controls/js/script.min.js +1 -1
  68. core/class-kirki-values.php +4 -1
  69. deprecated/filters.php +0 -4
  70. kirki.php +2 -2
  71. modules/css-vars/class-kirki-modules-css-vars.php +5 -0
  72. modules/css/class-kirki-modules-css-generator.php +0 -12
  73. modules/css/property/class-kirki-output-property-font-family.php +0 -19
  74. modules/custom-sections/sections.css +15 -8
  75. modules/tooltips/tooltip.css +32 -26
  76. modules/webfont-loader/vendor-typekit/src/closure.js +0 -0
  77. modules/webfont-loader/vendor-typekit/src/core/cssclassname.js +0 -0
  78. modules/webfont-loader/vendor-typekit/src/core/domhelper.js +0 -0
  79. modules/webfont-loader/vendor-typekit/src/core/eventdispatcher.js +0 -0
  80. modules/webfont-loader/vendor-typekit/src/core/font.js +0 -0
  81. modules/webfont-loader/vendor-typekit/src/core/fontmodule.js +0 -0
  82. modules/webfont-loader/vendor-typekit/src/core/fontmoduleloader.js +0 -0
  83. modules/webfont-loader/vendor-typekit/src/core/fontruler.js +0 -0
  84. modules/webfont-loader/vendor-typekit/src/core/fontwatcher.js +0 -0
  85. modules/webfont-loader/vendor-typekit/src/core/fontwatchrunner.js +0 -0
  86. modules/webfont-loader/vendor-typekit/src/core/initialize.js +0 -0
  87. modules/webfont-loader/vendor-typekit/src/core/nativefontwatchrunner.js +0 -0
  88. modules/webfont-loader/vendor-typekit/src/core/stylesheetwaiter.js +0 -0
  89. modules/webfont-loader/vendor-typekit/src/core/webfont.js +0 -0
  90. modules/webfont-loader/vendor-typekit/src/modules.yml +0 -0
  91. modules/webfont-loader/vendor-typekit/src/modules/custom.js +0 -0
  92. modules/webfont-loader/vendor-typekit/src/modules/fontdeck.js +0 -0
  93. modules/webfont-loader/vendor-typekit/src/modules/google/fontapiparser.js +0 -0
  94. modules/webfont-loader/vendor-typekit/src/modules/google/fontapiurlbuilder.js +0 -0
  95. modules/webfont-loader/vendor-typekit/src/modules/google/googlefontapi.js +0 -0
  96. modules/webfont-loader/vendor-typekit/src/modules/monotype.js +0 -0
  97. modules/webfont-loader/vendor-typekit/src/modules/typekit.js +0 -0
  98. modules/webfont-loader/vendor-typekit/webfontloader.js +0 -0
  99. modules/webfonts/class-kirki-fonts.php +0 -16
  100. modules/webfonts/webfont-files.json +1 -1
  101. modules/webfonts/webfont-names.json +1 -1
  102. modules/webfonts/webfonts.json +1 -1
  103. readme.txt +14 -4
.jhintrc DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "boss": true,
3
- "curly": true,
4
- "eqeqeq": true,
5
- "eqnull": true,
6
- "esversion": 6,
7
- "expr": true,
8
- "immed": true,
9
- "noarg": true,
10
- "nonbsp": true,
11
- "onevar": true,
12
- "quotmark": "single",
13
- "trailing": true,
14
- "undef": true,
15
- "unused": true,
16
-
17
- "browser": true,
18
-
19
- "globals": {
20
- "_": false,
21
- "Backbone": false,
22
- "jQuery": false,
23
- "JSON": false,
24
- "wp": false,
25
- "export": false,
26
- "module": false,
27
- "require": false
28
- }
29
- }
CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
## 3.0.44
2
3
Jun.25 2019, dev time: 30m
1
+ ## 3.0.45 - 2019-09-01
2
+
3
+ ### Fixed
4
+ * Compatibility with the latest Gutenberg plugin versions.
5
+ * Styles for normal font-weights in typography controls (`regular` to `400` conversion).
6
+
7
+ ### Changed
8
+ * Updated Google-Fonts lists.
9
+
10
+ ### Removed
11
+ * Backup fonts are no longer needed since google-fonts are no longer loaded from the google CDN.
12
+
13
+ ### Deprecated
14
+ * `kirki_fonts_backup_fonts` filter.
15
+ * `Kirki_Fonts::get_backup_fonts()` method.
16
+
17
## 3.0.44
18
19
Jun.25 2019, dev time: 30m
assets/vendor/selectWoo/css/select2.css CHANGED
File without changes
assets/vendor/selectWoo/css/select2.min.css CHANGED
File without changes
assets/vendor/selectWoo/css/selectWoo.css CHANGED
File without changes
assets/vendor/selectWoo/css/selectWoo.min.css CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/ar.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/az.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/bg.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/ca.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/cs.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/da.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/de.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/el.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/en.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/es.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/et.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/eu.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/fa.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/fi.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/fr.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/gl.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/he.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/hi.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/hr.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/hu.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/hy.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/id.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/is.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/it.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/ja.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/km.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/ko.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/lt.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/lv.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/mk.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/ms.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/nb.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/nl.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/pl.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/pt-BR.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/pt.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/ro.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/ru.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/sk.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/sl.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/sr-Cyrl.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/sr.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/sv.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/th.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/tr.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/uk.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/vi.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/zh-CN.js CHANGED
File without changes
assets/vendor/selectWoo/js/i18n/zh-TW.js CHANGED
File without changes
assets/vendor/selectWoo/js/select2.full.js CHANGED
File without changes
assets/vendor/selectWoo/js/select2.full.min.js CHANGED
File without changes
assets/vendor/selectWoo/js/select2.js CHANGED
File without changes
assets/vendor/selectWoo/js/select2.min.js CHANGED
File without changes
assets/vendor/selectWoo/js/selectWoo.full.js CHANGED
File without changes
assets/vendor/selectWoo/js/selectWoo.full.min.js CHANGED
File without changes
assets/vendor/selectWoo/js/selectWoo.js CHANGED
File without changes
assets/vendor/selectWoo/js/selectWoo.min.js CHANGED
File without changes
assets/vendor/selectWoo/kirki.css CHANGED
@@ -1,28 +1,36 @@
1
.select2-dropdown {
2
border-color: rgba(0, 0, 0, 0.1);
3
- border-radius: 0; }
4
5
.select2-container {
6
min-width: 100px;
7
- width: 100% !important; }
8
- .select2-container--open .select2-dropdown--above,
9
- .select2-container--open .select2-dropdown--below {
10
- z-index: 9999999;
11
- min-width: 100px; }
12
- .select2-container--default .select2-search--dropdown .select2-search__field {
13
- border-color: rgba(0, 0, 0, 0.1); }
14
- .select2-container--default .select2-selection--multiple, .select2-container--default .select2-selection--single {
15
- border-color: rgba(0, 0, 0, 0.1);
16
- border-radius: 0; }
17
- .select2-container--default .select2-selection--multiple .select2-selection__choice {
18
- background-color: rgba(255, 255, 255, 0);
19
- background-color: transparent;
20
- border: none;
21
- border-radius: 0; }
22
23
.wp-customizer .select2-container {
24
- z-index: 8 !important; }
25
- .wp-customizer .select2-container.select2-container--open {
26
- z-index: 999999 !important; }
27
28
/*# sourceMappingURL=kirki.css.map */
1
.select2-dropdown {
2
border-color: rgba(0, 0, 0, 0.1);
3
+ border-radius: 0;
4
+ }
5
6
.select2-container {
7
min-width: 100px;
8
+ width: 100% !important;
9
+ }
10
+ .select2-container--open .select2-dropdown--above,
11
+ .select2-container--open .select2-dropdown--below {
12
+ z-index: 9999999;
13
+ min-width: 100px;
14
+ }
15
+ .select2-container--default .select2-search--dropdown .select2-search__field {
16
+ border-color: rgba(0, 0, 0, 0.1);
17
+ }
18
+ .select2-container--default .select2-selection--multiple, .select2-container--default .select2-selection--single {
19
+ border-color: rgba(0, 0, 0, 0.1);
20
+ border-radius: 0;
21
+ }
22
+ .select2-container--default .select2-selection--multiple .select2-selection__choice {
23
+ background-color: rgba(255, 255, 255, 0);
24
+ background-color: transparent;
25
+ border: none;
26
+ border-radius: 0;
27
+ }
28
29
.wp-customizer .select2-container {
30
+ z-index: 8 !important;
31
+ }
32
+ .wp-customizer .select2-container.select2-container--open {
33
+ z-index: 999999 !important;
34
+ }
35
36
/*# sourceMappingURL=kirki.css.map */
controls/css/styles.css CHANGED
@@ -1,675 +1,849 @@
1
@charset "UTF-8";
2
.customize-control-kirki-background {
3
- position: relative; }
4
- .customize-control-kirki-background .background-attachment h4,
5
- .customize-control-kirki-background .background-color h4,
6
- .customize-control-kirki-background .background-position h4,
7
- .customize-control-kirki-background .background-repeat h4,
8
- .customize-control-kirki-background .background-size h4 {
9
- margin-bottom: 5px; }
10
- .customize-control-kirki-background .background-attachment .buttonset,
11
- .customize-control-kirki-background .background-size .buttonset {
12
- display: flex;
13
- flex-wrap: wrap; }
14
- .customize-control-kirki-background .background-attachment .buttonset .switch-label,
15
- .customize-control-kirki-background .background-size .buttonset .switch-label {
16
- background: rgba(0, 0, 0, 0.05);
17
- border: 1px solid rgba(0, 0, 0, 0.1);
18
- color: #555;
19
- padding: 0.5em 1em;
20
- margin: 0;
21
- text-align: center;
22
- flex-grow: 1; }
23
- .customize-control-kirki-background .background-attachment .buttonset .switch-input:checked + .switch-label,
24
- .customize-control-kirki-background .background-size .buttonset .switch-input:checked + .switch-label {
25
- background-color: #3498DB;
26
- color: #fff; }
27
28
.customize-control-kirki-code textarea {
29
width: 100%;
30
- min-height: 200px; }
31
32
.customize-control-kirki-color-palette {
33
- position: relative; }
34
- .customize-control-kirki-color-palette label {
35
- position: relative;
36
- display: inline-block;
37
- padding: 0;
38
- margin: 0; }
39
- .customize-control-kirki-color-palette .colors-wrapper {
40
- max-height: 300px;
41
- overflow-y: auto;
42
- padding: 10px;
43
- display: flex;
44
- flex-wrap: wrap; }
45
- .customize-control-kirki-color-palette .colors-wrapper .color-palette-color {
46
- color: transparent;
47
- display: block;
48
- width: 100%;
49
- height: 100%;
50
- overflow: hidden;
51
- border: 1px solid rgba(0, 0, 0, 0.2); }
52
- .customize-control-kirki-color-palette .colors-wrapper.round label {
53
- padding: 3px; }
54
- .customize-control-kirki-color-palette .colors-wrapper.round .color-palette-color {
55
- border-radius: 50%; }
56
- .customize-control-kirki-color-palette .colors-wrapper.box-shadow .color-palette-color {
57
- box-shadow: inset 3px 3px 13px 2px rgba(0, 0, 0, 0.22); }
58
- .customize-control-kirki-color-palette .colors-wrapper input:checked + label .color-palette-color {
59
- border: 0;
60
- width: 150%;
61
- height: 150%;
62
- position: relative;
63
- left: -25%;
64
- top: -25%;
65
- z-index: 1; }
66
- .customize-control-kirki-color-palette .colors-wrapper.with-margin label {
67
- margin: 3px; }
68
- .customize-control-kirki-color-palette .colors-wrapper input {
69
- display: none; }
70
- .customize-control-kirki-color-palette .colors-wrapper input:checked + label .color-palette-color {
71
- box-shadow: 1px 1px 10px 1px #333333;
72
- border: 1px solid rgba(0, 0, 0, 0.3); }
73
74
- .customize-control-kirki-color input[data-type="hue"] + .iris-strip-horiz .iris-slider {
75
- background-image: -webkit-linear-gradient(left, red, #ff7f00, yellow, #80ff00, lime, #00ff80, cyan, #007fff, blue, #7f00ff, magenta, #ff0080, red) !important;
76
- widows: 100% !important; }
77
.customize-control-kirki-color .iris-picker .iris-square-handle {
78
- z-index: 8; }
79
.customize-control-kirki-color .iris-picker.iris-border {
80
- width: 100% !important; }
81
.customize-control-kirki-color .iris-picker-inner {
82
display: grid;
83
grid-template-columns: 1fr 20px;
84
- grid-gap: 7px; }
85
- .customize-control-kirki-color .iris-picker-inner > * {
86
- width: 100% !important;
87
- margin-left: 0 !important;
88
- margin-right: 0 !important; }
89
.customize-control-kirki-color .kirki-input-container[data-has-alpha=true] .iris-picker-inner {
90
- grid-template-columns: 1fr 20px 20px; }
91
.customize-control-kirki-color .iris-only-strip {
92
- width: 100% !important; }
93
- .customize-control-kirki-color .iris-only-strip .iris-picker-inner {
94
- grid-template-columns: 1fr; }
95
96
.customize-control-kirki-dashicons {
97
- position: relative; }
98
- .customize-control-kirki-dashicons label {
99
- position: relative;
100
- display: inline-block; }
101
- .customize-control-kirki-dashicons .icons-wrapper {
102
- max-height: 300px;
103
- overflow-y: scroll; }
104
- .customize-control-kirki-dashicons .icons-wrapper h4 {
105
- font-weight: 300;
106
- margin: 0.7em 0; }
107
- .customize-control-kirki-dashicons .icons-wrapper .dashicons {
108
- padding: 3px;
109
- font-size: 25px;
110
- width: 25px;
111
- height: 25px;
112
- border: 1px solid transparent; }
113
- .customize-control-kirki-dashicons .icons-wrapper input {
114
- display: none; }
115
- .customize-control-kirki-dashicons .icons-wrapper input:checked + label .dashicons {
116
- border: 1px solid #3498DB;
117
- color: #000; }
118
119
.wp-customizer div.ui-datepicker {
120
z-index: 500001 !important;
121
width: 255px;
122
background: #fff;
123
- border: 1px solid #dedede; }
124
- .wp-customizer div.ui-datepicker .ui-datepicker-header {
125
- padding: 10px;
126
- background: #e5e5e5;
127
- border-bottom: 1px solid #fff; }
128
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next,
129
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev {
130
- display: block;
131
- position: absolute;
132
- width: 1em;
133
- overflow: hidden; }
134
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next:after, .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next:before,
135
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:after,
136
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:before {
137
- font-family: dashicons; }
138
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next:after:hover, .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next:before:hover,
139
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:after:hover,
140
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:before:hover {
141
- cursor: pointer; }
142
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next .ui-icon,
143
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev .ui-icon {
144
- display: none; }
145
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev {
146
- left: 10px; }
147
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:before {
148
- content: "\f341"; }
149
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next {
150
- right: 10px; }
151
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next:after {
152
- content: "\f345"; }
153
- .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-title {
154
- text-align: center; }
155
- .wp-customizer div.ui-datepicker .ui-datepicker-calendar {
156
- border-collapse: collapse;
157
- width: 100%; }
158
- .wp-customizer div.ui-datepicker .ui-datepicker-calendar thead {
159
- background: #e5e5e5;
160
- padding: 5px; }
161
- .wp-customizer div.ui-datepicker .ui-datepicker-calendar tr td {
162
- text-align: center; }
163
- .wp-customizer div.ui-datepicker .ui-datepicker-calendar tr td a {
164
- display: block;
165
- padding: 5px;
166
- color: #333;
167
- text-decoration: none; }
168
- .wp-customizer div.ui-datepicker .ui-datepicker-calendar tr td a.ui-state-active, .wp-customizer div.ui-datepicker .ui-datepicker-calendar tr td a:hover {
169
- color: #fff;
170
- background-color: #0073aa; }
171
- .wp-customizer div.ui-datepicker .ui-datepicker-calendar tr td.ui-state-disabled a, .wp-customizer div.ui-datepicker .ui-datepicker-calendar tr td.ui-state-disabled .ui-state-default a {
172
- color: #999; }
173
174
.customize-control-kirki-dimensions {
175
- position: relative; }
176
- .customize-control-kirki-dimensions .wrapper {
177
- border: 1px solid rgba(0, 0, 0, 0.1);
178
- padding: 10px; }
179
- .customize-control-kirki-dimensions .wrapper .control {
180
- display: flex;
181
- flex-wrap: wrap;
182
- justify-content: space-between; }
183
- .customize-control-kirki-dimensions .wrapper .control > div {
184
- width: 48%; }
185
- .customize-control-kirki-dimensions .wrapper .control > div h5 {
186
- margin: 10px 0 7px; }
187
- .customize-control-kirki-dimensions .wrapper .control > div .inner {
188
- display: flex; }
189
190
.customize-control-kirki-editor textarea {
191
- width: 100%; }
192
193
.customize-control-kirki-generic input {
194
- width: 100%; }
195
.customize-control-kirki-generic textarea {
196
width: 100%;
197
border: 1px solid rgba(0, 0, 0, 0.1);
198
-webkit-box-shadow: none;
199
- box-shadow: none; }
200
201
.customize-control-kirki-multicolor .multicolor-single-color-wrapper {
202
display: flex;
203
- justify-content: space-between; }
204
.customize-control-kirki-multicolor .multicolor-single-label {
205
- order: 2; }
206
.customize-control-kirki-multicolor .wp-picker-container {
207
- width: 100%; }
208
- .customize-control-kirki-multicolor .wp-picker-container > .wp-color-result {
209
- width: 100%; }
210
- .customize-control-kirki-multicolor .wp-picker-container.wp-picker-active + .multicolor-single-label {
211
- display: none; }
212
213
.customize-control-kirki-number .customize-control-content {
214
display: flex;
215
- align-items: stretch; }
216
- .customize-control-kirki-number .customize-control-content input {
217
- width: 100%;
218
- -moz-appearance: textfield; }
219
- .customize-control-kirki-number .customize-control-content input::-webkit-inner-spin-button, .customize-control-kirki-number .customize-control-content input::-webkit-outer-spin-button {
220
- -webkit-appearance: none;
221
- margin: 0; }
222
- .customize-control-kirki-number .customize-control-content .quantity {
223
- min-width: 2rem;
224
- max-width: 2rem;
225
- text-align: center;
226
- line-height: 24px; }
227
-
228
.customize-control-kirki-palette {
229
- position: relative; }
230
- .customize-control-kirki-palette input[type="radio"] {
231
- display: none; }
232
- .customize-control-kirki-palette input[type="radio"]:checked + label {
233
- border: 3px solid rgba(0, 0, 0, 0.4); }
234
- .customize-control-kirki-palette label {
235
- background: none;
236
- padding: 0;
237
- border-top: 3px solid transparent;
238
- border-bottom: 3px solid transparent;
239
- margin-bottom: 5px;
240
- display: flex; }
241
- .customize-control-kirki-palette label span {
242
- padding: 10px 0;
243
- flex-grow: 1;
244
- font-size: 0;
245
- line-height: 10px;
246
- color: rgba(0, 0, 0, 0);
247
- -webkit-transition: all 200ms ease-in-out;
248
- -moz-transition: all 200ms ease-in-out;
249
- -ms-transition: all 200ms ease-in-out;
250
- -o-transition: all 200ms ease-in-out;
251
- transition: all 200ms ease-in-out;
252
- border-top: 1px solid rgba(0, 0, 0, 0.1);
253
- border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
254
- .customize-control-kirki-palette label span:first-child {
255
- border-left: 1px solid rgba(0, 0, 0, 0.1); }
256
- .customize-control-kirki-palette label span:last-child {
257
- border-right: 1px solid rgba(0, 0, 0, 0.1); }
258
- .customize-control-kirki-palette label span:hover {
259
- padding: 10px;
260
- flex-grow: 3;
261
- min-width: 60px;
262
- font-size: 10px;
263
- line-height: 10px;
264
- color: #000; }
265
266
.customize-control-kirki-radio-buttonset .buttonset {
267
display: flex;
268
- flex-wrap: wrap; }
269
- .customize-control-kirki-radio-buttonset .buttonset .switch-label {
270
- background: rgba(0, 0, 0, 0.1);
271
- border: 1px rgba(0, 0, 0, 0.1);
272
- color: #555d66;
273
- margin: 0;
274
- text-align: center;
275
- padding: 0.5em 1em;
276
- flex-grow: 1; }
277
- .customize-control-kirki-radio-buttonset .buttonset .switch-input:checked + .switch-label {
278
- background-color: #00a0d2;
279
- color: rgba(255, 255, 255, 0.8); }
280
281
.customize-control-kirki-radio-image > .image {
282
display: flex;
283
- flex-wrap: wrap; }
284
.customize-control-kirki-radio-image label {
285
position: relative;
286
- display: inline-block; }
287
- .customize-control-kirki-radio-image label .image-label {
288
- display: none;
289
- position: absolute;
290
- top: 0;
291
- left: 0;
292
- width: 100%;
293
- height: 100%;
294
- background: rgba(255, 255, 255, 0.7);
295
- font-weight: bold; }
296
- .customize-control-kirki-radio-image label .image-label .inner {
297
- width: 100%;
298
- height: 100%;
299
- text-align: center;
300
- padding: 0.5em;
301
- vertical-align: middle; }
302
- .customize-control-kirki-radio-image label:hover .image-label {
303
- display: block; }
304
.customize-control-kirki-radio-image input {
305
- display: none; }
306
- .customize-control-kirki-radio-image input img {
307
- border: 1px solid transparent; }
308
- .customize-control-kirki-radio-image input:checked + label img {
309
- -webkit-box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
310
- box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
311
- border: 1px solid #3498DB; }
312
- .customize-control-kirki-radio-image input + label .image-clickable {
313
- position: absolute;
314
- top: 0;
315
- bottom: 0;
316
- left: 0;
317
- right: 0;
318
- width: 100%;
319
- height: 100%; }
320
321
.customize-control-kirki-radio {
322
- position: relative; }
323
- .customize-control-kirki-radio input[type=radio] {
324
- width: 18px;
325
- height: 18px; }
326
- .customize-control-kirki-radio input[type=radio]:checked:before {
327
- width: 10px;
328
- height: 10px;
329
- margin: 3px; }
330
- .customize-control-kirki-radio label {
331
- display: list-item;
332
- margin-bottom: 7px; }
333
- .customize-control-kirki-radio label .option-description {
334
- display: block;
335
- color: rgba(0, 0, 0, 0.35);
336
- font-size: 0.9em;
337
- padding-left: 25px; }
338
339
.customize-control-repeater {
340
- position: relative; }
341
- .customize-control-repeater .repeater-fields .repeater-row {
342
- border: 1px solid #e5e5e5;
343
- margin-top: 0.5rem;
344
- background: #eee;
345
- position: relative; }
346
- .customize-control-repeater .repeater-fields .repeater-row.minimized {
347
- border: 1px solid #dfdfdf;
348
- padding: 0; }
349
- .customize-control-repeater .repeater-fields .repeater-row.minimized:hover {
350
- border: 1px solid #e5e5e5; }
351
- .customize-control-repeater .repeater-fields .repeater-row.minimized .repeater-row-content {
352
- display: none; }
353
- .customize-control-repeater .repeater-fields .repeater-row label {
354
- margin-bottom: 12px;
355
- clear: both; }
356
- .customize-control-repeater .repeater-fields .repeater-row .repeater-field.repeater-field- {
357
- display: none; }
358
- .customize-control-repeater .repeater-fields .repeater-row .repeater-field.repeater-field-radio-image input {
359
- display: none; }
360
- .customize-control-repeater .repeater-fields .repeater-row .repeater-field.repeater-field-radio-image input img {
361
- border: 1px solid transparent; }
362
- .customize-control-repeater .repeater-fields .repeater-row .repeater-field.repeater-field-radio-image input:checked + label img {
363
- -webkit-box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
364
- box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
365
- border: 1px solid #3498DB; }
366
- .customize-control-repeater .repeater-fields .repeater-row .repeater-field:last-child {
367
- border-bottom: none;
368
- padding-bottom: 0; }
369
- .customize-control-repeater button.repeater-add {
370
- margin-top: 1rem; }
371
- .customize-control-repeater .repeater-row-content {
372
- padding: 10px 15px;
373
- background: #fff; }
374
- .customize-control-repeater .repeater-field {
375
- margin-bottom: 12px;
376
- width: 100%;
377
- clear: both;
378
- padding-bottom: 12px;
379
- border-bottom: 1px dotted #CCC; }
380
- .customize-control-repeater .repeater-field .customize-control-title {
381
- font-size: 13px;
382
- line-height: initial; }
383
- .customize-control-repeater .repeater-field .customize-control-description {
384
- font-size: 13px;
385
- line-height: initial; }
386
- .customize-control-repeater .repeater-field.repeater-field-hidden {
387
- margin: 0;
388
- padding: 0;
389
- border: 0; }
390
- .customize-control-repeater .repeater-field-select select {
391
- margin-left: 0; }
392
- .customize-control-repeater .repeater-field-checkbox label {
393
- line-height: 28px; }
394
- .customize-control-repeater .repeater-field-checkbox input {
395
- line-height: 28px;
396
- margin-right: 5px; }
397
- .customize-control-repeater .repeater-field-textarea textarea {
398
- width: 100%;
399
- resize: vertical; }
400
- .customize-control-repeater .repeater-row-header {
401
- background: white;
402
- border-bottom: 1px solid #dfdfdf;
403
- position: relative;
404
- padding: 10px 15px;
405
- height: auto;
406
- min-height: 20px;
407
- line-height: 30px;
408
- overflow: hidden;
409
- word-wrap: break-word; }
410
- .customize-control-repeater .repeater-row-header:hover {
411
- cursor: move; }
412
- .customize-control-repeater .repeater-row-header .dashicons {
413
- font-size: 18px;
414
- position: absolute;
415
- right: 12px;
416
- top: 2px;
417
- color: #a0a5aa; }
418
- .customize-control-repeater .repeater-row-label {
419
- font-size: 13px;
420
- font-weight: 600;
421
- line-height: 20px;
422
- display: block;
423
- width: 90%;
424
- overflow: hidden;
425
- height: 18px; }
426
- .customize-control-repeater .repeater-row-remove {
427
- color: #a00; }
428
- .customize-control-repeater .repeater-row-remove:hover {
429
- color: #f00; }
430
- .customize-control-repeater .repeater-minimize {
431
- line-height: 36px; }
432
- .customize-control-repeater .remove-button,
433
- .customize-control-repeater .upload-button {
434
- width: 48%; }
435
436
.kirki-image-attachment {
437
margin: 0;
438
text-align: center;
439
- margin-bottom: 10px; }
440
- .kirki-image-attachment img {
441
- display: inline-block; }
442
443
.kirki-file-attachment {
444
margin: 0;
445
text-align: center;
446
- margin-bottom: 10px; }
447
- .kirki-file-attachment .file {
448
- display: block;
449
- padding: 10px 5px;
450
- border: 1px dotted #c3c3c3;
451
- background: #f9f9f9; }
452
453
.limit {
454
padding: 3px;
455
- border-radius: 3px; }
456
- .limit.highlight {
457
- background: #D32F2F;
458
- color: #fff; }
459
460
.customize-control-kirki-slider .wrapper {
461
display: flex;
462
align-items: center;
463
padding: 15px 0 7px;
464
- position: relative; }
465
- .customize-control-kirki-slider .wrapper .slider-reset {
466
- position: absolute;
467
- top: 0;
468
- right: 0;
469
- font-size: 12px;
470
- transition: 0.3s ease-in-out;
471
- color: rgba(0, 0, 0, 0.3); }
472
- .customize-control-kirki-slider .wrapper .slider-reset:hover {
473
- transform: scale(1.3);
474
- color: #DC3232; }
475
- .customize-control-kirki-slider .wrapper input[type="range"] {
476
- display: block;
477
- -webkit-appearance: none;
478
- background-color: #bdc3c7;
479
- width: 100%;
480
- height: 5px;
481
- border-radius: 5px;
482
- margin: 0 auto;
483
- outline: 0; }
484
- .customize-control-kirki-slider .wrapper input[type="range"]::-webkit-slider-thumb {
485
- -webkit-appearance: none;
486
- background-color: #0085ba;
487
- width: 17px;
488
- height: 17px;
489
- border-radius: 50%;
490
- border: 1px solid #006799;
491
- cursor: pointer;
492
- transition: 0.3s ease-in-out; }
493
- ​ .customize-control-kirki-slider .wrapper input[type="range"]::-webkit-slider-thumb:hover {
494
- background-color: #006799;
495
- border: 2px solid #0085ba; }
496
- .customize-control-kirki-slider .wrapper input[type="range"]::-webkit-slider-thumb:active {
497
- transform: scale(1.2); }
498
- .customize-control-kirki-slider .wrapper input[type="text"] {
499
- font-size: 13px;
500
- background: transparent;
501
- border: none;
502
- box-shadow: none;
503
- text-align: right;
504
- padding: 0;
505
- width: 40px; }
506
- .customize-control-kirki-slider .wrapper .value {
507
- display: flex;
508
- align-items: baseline; }
509
510
.customize-control-kirki-sortable ul.ui-sortable li {
511
padding: 5px 10px;
512
border: 1px solid #333;
513
- background: #fff; }
514
- .customize-control-kirki-sortable ul.ui-sortable li .dashicons.dashicons-menu {
515
- float: right; }
516
- .customize-control-kirki-sortable ul.ui-sortable li .dashicons.visibility {
517
- margin-right: 10px; }
518
- .customize-control-kirki-sortable ul.ui-sortable li.invisible {
519
- color: #aaa;
520
- border: 1px dashed #aaa; }
521
- .customize-control-kirki-sortable ul.ui-sortable li.invisible .dashicons.visibility {
522
- color: #aaa; }
523
524
.customize-control-kirki-switch {
525
- position: relative; }
526
- .customize-control-kirki-switch .switch-off,
527
- .customize-control-kirki-switch .switch-on {
528
- opacity: 1;
529
- padding: 8px;
530
- font-size: 14px;
531
- line-height: 18px; }
532
- .customize-control-kirki-switch .switch-on {
533
- color: #fff;
534
- opacity: 0; }
535
- .customize-control-kirki-switch .switch-off {
536
- color: #777; }
537
- .customize-control-kirki-switch .switch {
538
- border: none;
539
- margin-bottom: 1.5rem;
540
- outline: 0;
541
- padding: 0;
542
- user-select: none;
543
- border-radius: 3rem; }
544
- .customize-control-kirki-switch label {
545
- background: #b4b9be;
546
- float: left;
547
- cursor: pointer;
548
- display: flex;
549
- justify-content: space-between;
550
- margin-bottom: 1rem;
551
- position: relative;
552
- transition: left 0.15s ease-out;
553
- border-radius: 3rem; }
554
- .customize-control-kirki-switch label:after {
555
- background: #FFFFFF;
556
- content: "";
557
- display: block;
558
- position: absolute;
559
- left: 5px;
560
- top: 5px;
561
- width: calc(.85rem + 10px);
562
- height: calc(.85rem + 10px);
563
- transition: all 0.25s ease-in-out;
564
- border-radius: 3rem; }
565
- .customize-control-kirki-switch input + label {
566
- margin-left: 0;
567
- margin-right: 0; }
568
- .customize-control-kirki-switch input:checked + label {
569
- background: #0073aa; }
570
- .customize-control-kirki-switch input:checked + label:after {
571
- left: auto;
572
- right: 5px;
573
- background: #ffffff; }
574
- .customize-control-kirki-switch input:checked + label .switch-on {
575
- opacity: 1; }
576
- .customize-control-kirki-switch input:checked + label .switch-off {
577
- opacity: 0; }
578
579
.customize-control-kirki-toggle {
580
- position: relative; }
581
- .customize-control-kirki-toggle label {
582
- display: flex;
583
- flex-wrap: wrap; }
584
- .customize-control-kirki-toggle label .customize-control-title {
585
- width: calc(100% - 55px); }
586
- .customize-control-kirki-toggle label .description {
587
- order: 99; }
588
- .customize-control-kirki-toggle .switch {
589
- border: 1px solid #b4b9be;
590
- display: inline-block;
591
- width: 35px;
592
- height: 12px;
593
- border-radius: 8px;
594
- background: #b4b9be;
595
- vertical-align: middle;
596
- position: relative;
597
- top: 4px;
598
- cursor: pointer;
599
- user-select: none;
600
- transition: background 350ms ease; }
601
- .customize-control-kirki-toggle .switch:after, .customize-control-kirki-toggle .switch:before {
602
- content: "";
603
- display: block;
604
- width: 20px;
605
- height: 20px;
606
- border-radius: 50%;
607
- position: absolute;
608
- top: 50%;
609
- left: -3px;
610
- transition: all 350ms cubic-bezier(0, 0.95, 0.38, 0.98), background 150ms ease; }
611
- .customize-control-kirki-toggle .switch:before {
612
- background: rgba(0, 0, 0, 0.2);
613
- transform: translate3d(0, -50%, 0) scale(0); }
614
- .customize-control-kirki-toggle .switch:after {
615
- background: #999;
616
- border: 1px solid rgba(0, 0, 0, 0.1);
617
- transform: translate3d(0, -50%, 0); }
618
- .customize-control-kirki-toggle .switch:active:before {
619
- transform: translate3d(0, -50%, 0) scale(3); }
620
- .customize-control-kirki-toggle input:checked + .switch:before {
621
- background: rgba(0, 115, 170, 0.075);
622
- transform: translate3d(100%, -50%, 0) scale(1); }
623
- .customize-control-kirki-toggle input:checked + .switch:after {
624
- background: #0073aa;
625
- transform: translate3d(100%, -50%, 0); }
626
- .customize-control-kirki-toggle input:checked + .switch:active:before {
627
- background: rgba(0, 115, 170, 0.075);
628
- transform: translate3d(100%, -50%, 0) scale(3); }
629
630
.customize-control-kirki-typography {
631
- position: relative; }
632
- .customize-control-kirki-typography .wrapper {
633
- padding: 10px;
634
- display: flex;
635
- flex-wrap: wrap;
636
- justify-content: space-between;
637
- border: 1px solid rgba(0, 0, 0, 0.1); }
638
- .customize-control-kirki-typography .wrapper h5 {
639
- margin: 0.67em 0 0; }
640
- .customize-control-kirki-typography .wrapper .color,
641
- .customize-control-kirki-typography .wrapper .font-backup,
642
- .customize-control-kirki-typography .wrapper .font-family,
643
- .customize-control-kirki-typography .wrapper .font-size,
644
- .customize-control-kirki-typography .wrapper .letter-spacing,
645
- .customize-control-kirki-typography .wrapper .line-height,
646
- .customize-control-kirki-typography .wrapper .margin-bottom,
647
- .customize-control-kirki-typography .wrapper .margin-top,
648
- .customize-control-kirki-typography .wrapper .text-align,
649
- .customize-control-kirki-typography .wrapper .text-transform,
650
- .customize-control-kirki-typography .wrapper .variant {
651
- width: 100%;
652
- float: none;
653
- clear: both; }
654
- .customize-control-kirki-typography .wrapper .font-size,
655
- .customize-control-kirki-typography .wrapper .letter-spacing,
656
- .customize-control-kirki-typography .wrapper .line-height,
657
- .customize-control-kirki-typography .wrapper .margin-bottom,
658
- .customize-control-kirki-typography .wrapper .margin-top,
659
- .customize-control-kirki-typography .wrapper .text-transform {
660
- width: 48%; }
661
- .customize-control-kirki-typography .wrapper .text-align .text-align-choices {
662
- display: flex; }
663
- .customize-control-kirki-typography .wrapper .text-align .text-align-choices label {
664
- width: 100%;
665
- padding: 5px;
666
- text-align: center;
667
- border: 1px solid rgba(255, 255, 255, 0); }
668
- .customize-control-kirki-typography .wrapper .text-align .text-align-choices input {
669
- display: none; }
670
- .customize-control-kirki-typography .wrapper .text-align .text-align-choices input:checked + label {
671
- border-color: #0085ba; }
672
- .customize-control-kirki-typography .wrapper .color {
673
- width: auto; }
674
675
/*# sourceMappingURL=styles.css.map */
1
@charset "UTF-8";
2
.customize-control-kirki-background {
3
+ position: relative;
4
+ }
5
+ .customize-control-kirki-background .background-attachment h4,
6
+ .customize-control-kirki-background .background-color h4,
7
+ .customize-control-kirki-background .background-position h4,
8
+ .customize-control-kirki-background .background-repeat h4,
9
+ .customize-control-kirki-background .background-size h4 {
10
+ margin-bottom: 5px;
11
+ }
12
+ .customize-control-kirki-background .background-attachment .buttonset,
13
+ .customize-control-kirki-background .background-size .buttonset {
14
+ display: flex;
15
+ flex-wrap: wrap;
16
+ }
17
+ .customize-control-kirki-background .background-attachment .buttonset .switch-label,
18
+ .customize-control-kirki-background .background-size .buttonset .switch-label {
19
+ background: rgba(0, 0, 0, 0.05);
20
+ border: 1px solid rgba(0, 0, 0, 0.1);
21
+ color: #555;
22
+ padding: 0.5em 1em;
23
+ margin: 0;
24
+ text-align: center;
25
+ flex-grow: 1;
26
+ }
27
+ .customize-control-kirki-background .background-attachment .buttonset .switch-input:checked + .switch-label,
28
+ .customize-control-kirki-background .background-size .buttonset .switch-input:checked + .switch-label {
29
+ background-color: #3498DB;
30
+ color: #fff;
31
+ }
32
33
.customize-control-kirki-code textarea {
34
width: 100%;
35
+ min-height: 200px;
36
+ }
37
38
.customize-control-kirki-color-palette {
39
+ position: relative;
40
+ }
41
+ .customize-control-kirki-color-palette label {
42
+ position: relative;
43
+ display: inline-block;
44
+ padding: 0;
45
+ margin: 0;
46
+ }
47
+ .customize-control-kirki-color-palette .colors-wrapper {
48
+ max-height: 300px;
49
+ overflow-y: auto;
50
+ padding: 10px;
51
+ display: flex;
52
+ flex-wrap: wrap;
53
+ }
54
+ .customize-control-kirki-color-palette .colors-wrapper .color-palette-color {
55
+ color: transparent;
56
+ display: block;
57
+ width: 100%;
58
+ height: 100%;
59
+ overflow: hidden;
60
+ border: 1px solid rgba(0, 0, 0, 0.2);
61
+ }
62
+ .customize-control-kirki-color-palette .colors-wrapper.round label {
63
+ padding: 3px;
64
+ }
65
+ .customize-control-kirki-color-palette .colors-wrapper.round .color-palette-color {
66
+ border-radius: 50%;
67
+ }
68
+ .customize-control-kirki-color-palette .colors-wrapper.box-shadow .color-palette-color {
69
+ box-shadow: inset 3px 3px 13px 2px rgba(0, 0, 0, 0.22);
70
+ }
71
+ .customize-control-kirki-color-palette .colors-wrapper input:checked + label .color-palette-color {
72
+ border: 0;
73
+ width: 150%;
74
+ height: 150%;
75
+ position: relative;
76
+ left: -25%;
77
+ top: -25%;
78
+ z-index: 1;
79
+ }
80
+ .customize-control-kirki-color-palette .colors-wrapper.with-margin label {
81
+ margin: 3px;
82
+ }
83
+ .customize-control-kirki-color-palette .colors-wrapper input {
84
+ display: none;
85
+ }
86
+ .customize-control-kirki-color-palette .colors-wrapper input:checked + label .color-palette-color {
87
+ box-shadow: 1px 1px 10px 1px #333333;
88
+ border: 1px solid rgba(0, 0, 0, 0.3);
89
+ }
90
91
+ .customize-control-kirki-color input[data-type=hue] + .iris-strip-horiz .iris-slider {
92
+ background-image: -webkit-linear-gradient(left, red, #ff7f00, yellow, #80ff00, lime, #00ff80, aqua, #007fff, blue, #7f00ff, fuchsia, #ff0080, red) !important;
93
+ widows: 100% !important;
94
+ }
95
.customize-control-kirki-color .iris-picker .iris-square-handle {
96
+ z-index: 8;
97
+ }
98
.customize-control-kirki-color .iris-picker.iris-border {
99
+ width: 100% !important;
100
+ }
101
.customize-control-kirki-color .iris-picker-inner {
102
display: grid;
103
grid-template-columns: 1fr 20px;
104
+ grid-gap: 7px;
105
+ }
106
+ .customize-control-kirki-color .iris-picker-inner > * {
107
+ width: 100% !important;
108
+ margin-left: 0 !important;
109
+ margin-right: 0 !important;
110
+ }
111
.customize-control-kirki-color .kirki-input-container[data-has-alpha=true] .iris-picker-inner {
112
+ grid-template-columns: 1fr 20px 20px;
113
+ }
114
.customize-control-kirki-color .iris-only-strip {
115
+ width: 100% !important;
116
+ }
117
+ .customize-control-kirki-color .iris-only-strip .iris-picker-inner {
118
+ grid-template-columns: 1fr;
119
+ }
120
121
.customize-control-kirki-dashicons {
122
+ position: relative;
123
+ }
124
+ .customize-control-kirki-dashicons label {
125
+ position: relative;
126
+ display: inline-block;
127
+ }
128
+ .customize-control-kirki-dashicons .icons-wrapper {
129
+ max-height: 300px;
130
+ overflow-y: scroll;
131
+ }
132
+ .customize-control-kirki-dashicons .icons-wrapper h4 {
133
+ font-weight: 300;
134
+ margin: 0.7em 0;
135
+ }
136
+ .customize-control-kirki-dashicons .icons-wrapper .dashicons {
137
+ padding: 3px;
138
+ font-size: 25px;
139
+ width: 25px;
140
+ height: 25px;
141
+ border: 1px solid transparent;
142
+ }
143
+ .customize-control-kirki-dashicons .icons-wrapper input {
144
+ display: none;
145
+ }
146
+ .customize-control-kirki-dashicons .icons-wrapper input:checked + label .dashicons {
147
+ border: 1px solid #3498DB;
148
+ color: #000;
149
+ }
150
151
.wp-customizer div.ui-datepicker {
152
z-index: 500001 !important;
153
width: 255px;
154
background: #fff;
155
+ border: 1px solid #dedede;
156
+ }
157
+ .wp-customizer div.ui-datepicker .ui-datepicker-header {
158
+ padding: 10px;
159
+ background: #e5e5e5;
160
+ border-bottom: 1px solid #fff;
161
+ }
162
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next,
163
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev {
164
+ display: block;
165
+ position: absolute;
166
+ width: 1em;
167
+ overflow: hidden;
168
+ }
169
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next:after, .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next:before,
170
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:after,
171
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:before {
172
+ font-family: dashicons;
173
+ }
174
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next:after:hover, .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next:before:hover,
175
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:after:hover,
176
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:before:hover {
177
+ cursor: pointer;
178
+ }
179
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next .ui-icon,
180
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev .ui-icon {
181
+ display: none;
182
+ }
183
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev {
184
+ left: 10px;
185
+ }
186
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:before {
187
+ content: "";
188
+ }
189
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next {
190
+ right: 10px;
191
+ }
192
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-next:after {
193
+ content: "";
194
+ }
195
+ .wp-customizer div.ui-datepicker .ui-datepicker-header .ui-datepicker-title {
196
+ text-align: center;
197
+ }
198
+ .wp-customizer div.ui-datepicker .ui-datepicker-calendar {
199
+ border-collapse: collapse;
200
+ width: 100%;
201
+ }
202
+ .wp-customizer div.ui-datepicker .ui-datepicker-calendar thead {
203
+ background: #e5e5e5;
204
+ padding: 5px;
205
+ }
206
+ .wp-customizer div.ui-datepicker .ui-datepicker-calendar tr td {
207
+ text-align: center;
208
+ }
209
+ .wp-customizer div.ui-datepicker .ui-datepicker-calendar tr td a {
210
+ display: block;
211
+ padding: 5px;
212
+ color: #333;
213
+ text-decoration: none;
214
+ }
215
+ .wp-customizer div.ui-datepicker .ui-datepicker-calendar tr td a.ui-state-active, .wp-customizer div.ui-datepicker .ui-datepicker-calendar tr td a:hover {
216
+ color: #fff;
217
+ background-color: #0073aa;
218
+ }
219
+ .wp-customizer div.ui-datepicker .ui-datepicker-calendar tr td.ui-state-disabled a, .wp-customizer div.ui-datepicker .ui-datepicker-calendar tr td.ui-state-disabled .ui-state-default a {
220
+ color: #999;
221
+ }
222
223
.customize-control-kirki-dimensions {
224
+ position: relative;
225
+ }
226
+ .customize-control-kirki-dimensions .wrapper {
227
+ border: 1px solid rgba(0, 0, 0, 0.1);
228
+ padding: 10px;
229
+ }
230
+ .customize-control-kirki-dimensions .wrapper .control {
231
+ display: flex;
232
+ flex-wrap: wrap;
233
+ justify-content: space-between;
234
+ }
235
+ .customize-control-kirki-dimensions .wrapper .control > div {
236
+ width: 48%;
237
+ }
238
+ .customize-control-kirki-dimensions .wrapper .control > div h5 {
239
+ margin: 10px 0 7px;
240
+ }
241
+ .customize-control-kirki-dimensions .wrapper .control > div .inner {
242
+ display: flex;
243
+ }
244
245
.customize-control-kirki-editor textarea {
246
+ width: 100%;
247
+ }
248
249
.customize-control-kirki-generic input {
250
+ width: 100%;
251
+ }
252
.customize-control-kirki-generic textarea {
253
width: 100%;
254
border: 1px solid rgba(0, 0, 0, 0.1);
255
-webkit-box-shadow: none;
256
+ box-shadow: none;
257
+ }
258
259
.customize-control-kirki-multicolor .multicolor-single-color-wrapper {
260
display: flex;
261
+ justify-content: space-between;
262
+ }
263
.customize-control-kirki-multicolor .multicolor-single-label {
264
+ order: 2;
265
+ }
266
.customize-control-kirki-multicolor .wp-picker-container {
267
+ width: 100%;
268
+ }
269
+ .customize-control-kirki-multicolor .wp-picker-container > .wp-color-result {
270
+ width: 100%;
271
+ }
272
+ .customize-control-kirki-multicolor .wp-picker-container.wp-picker-active + .multicolor-single-label {
273
+ display: none;
274
+ }
275
276
.customize-control-kirki-number .customize-control-content {
277
display: flex;
278
+ align-items: stretch;
279
+ }
280
+ .customize-control-kirki-number .customize-control-content input {
281
+ width: 100%;
282
+ -moz-appearance: textfield;
283
+ }
284
+ .customize-control-kirki-number .customize-control-content input::-webkit-inner-spin-button, .customize-control-kirki-number .customize-control-content input::-webkit-outer-spin-button {
285
+ -webkit-appearance: none;
286
+ margin: 0;
287
+ }
288
+ .customize-control-kirki-number .customize-control-content .quantity {
289
+ min-width: 2rem;
290
+ max-width: 2rem;
291
+ text-align: center;
292
+ line-height: 24px;
293
+ }
294
.customize-control-kirki-palette {
295
+ position: relative;
296
+ }
297
+ .customize-control-kirki-palette input[type=radio] {
298
+ display: none;
299
+ }
300
+ .customize-control-kirki-palette input[type=radio]:checked + label {
301
+ border: 3px solid rgba(0, 0, 0, 0.4);
302
+ }
303
+ .customize-control-kirki-palette label {
304
+ background: none;
305
+ padding: 0;
306
+ border-top: 3px solid transparent;
307
+ border-bottom: 3px solid transparent;
308
+ margin-bottom: 5px;
309
+ display: flex;
310
+ }
311
+ .customize-control-kirki-palette label span {
312
+ padding: 10px 0;
313
+ flex-grow: 1;
314
+ font-size: 0;
315
+ line-height: 10px;
316
+ color: rgba(0, 0, 0, 0);
317
+ -webkit-transition: all 200ms ease-in-out;
318
+ -moz-transition: all 200ms ease-in-out;
319
+ -ms-transition: all 200ms ease-in-out;
320
+ -o-transition: all 200ms ease-in-out;
321
+ transition: all 200ms ease-in-out;
322
+ border-top: 1px solid rgba(0, 0, 0, 0.1);
323
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
324
+ }
325
+ .customize-control-kirki-palette label span:first-child {
326
+ border-left: 1px solid rgba(0, 0, 0, 0.1);
327
+ }
328
+ .customize-control-kirki-palette label span:last-child {
329
+ border-right: 1px solid rgba(0, 0, 0, 0.1);
330
+ }
331
+ .customize-control-kirki-palette label span:hover {
332
+ padding: 10px;
333
+ flex-grow: 3;
334
+ min-width: 60px;
335
+ font-size: 10px;
336
+ line-height: 10px;
337
+ color: #000;
338
+ }
339
340
.customize-control-kirki-radio-buttonset .buttonset {
341
display: flex;
342
+ flex-wrap: wrap;
343
+ }
344
+ .customize-control-kirki-radio-buttonset .buttonset .switch-label {
345
+ background: rgba(0, 0, 0, 0.1);
346
+ border: 1px rgba(0, 0, 0, 0.1);
347
+ color: #555d66;
348
+ margin: 0;
349
+ text-align: center;
350
+ padding: 0.5em 1em;
351
+ flex-grow: 1;
352
+ }
353
+ .customize-control-kirki-radio-buttonset .buttonset .switch-input:checked + .switch-label {
354
+ background-color: #00a0d2;
355
+ color: rgba(255, 255, 255, 0.8);
356
+ }
357
358
.customize-control-kirki-radio-image > .image {
359
display: flex;
360
+ flex-wrap: wrap;
361
+ }
362
.customize-control-kirki-radio-image label {
363
position: relative;
364
+ display: inline-block;
365
+ }
366
+ .customize-control-kirki-radio-image label .image-label {
367
+ display: none;
368
+ position: absolute;
369
+ top: 0;
370
+ left: 0;
371
+ width: 100%;
372
+ height: 100%;
373
+ background: rgba(255, 255, 255, 0.7);
374
+ font-weight: bold;
375
+ }
376
+ .customize-control-kirki-radio-image label .image-label .inner {
377
+ width: 100%;
378
+ height: 100%;
379
+ text-align: center;
380
+ padding: 0.5em;
381
+ vertical-align: middle;
382
+ }
383
+ .customize-control-kirki-radio-image label:hover .image-label {
384
+ display: block;
385
+ }
386
.customize-control-kirki-radio-image input {
387
+ display: none;
388
+ }
389
+ .customize-control-kirki-radio-image input img {
390
+ border: 1px solid transparent;
391
+ }
392
+ .customize-control-kirki-radio-image input:checked + label img {
393
+ -webkit-box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
394
+ box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
395
+ border: 1px solid #3498DB;
396
+ }
397
+ .customize-control-kirki-radio-image input + label .image-clickable {
398
+ position: absolute;
399
+ top: 0;
400
+ bottom: 0;
401
+ left: 0;
402
+ right: 0;
403
+ width: 100%;
404
+ height: 100%;
405
+ }
406
407
.customize-control-kirki-radio {
408
+ position: relative;
409
+ }
410
+ .customize-control-kirki-radio input[type=radio] {
411
+ width: 18px;
412
+ height: 18px;
413
+ }
414
+ .customize-control-kirki-radio input[type=radio]:checked:before {
415
+ width: 10px;
416
+ height: 10px;
417
+ margin: 3px;
418
+ }
419
+ .customize-control-kirki-radio label {
420
+ display: list-item;
421
+ margin-bottom: 7px;
422
+ }
423
+ .customize-control-kirki-radio label .option-description {
424
+ display: block;
425
+ color: rgba(0, 0, 0, 0.35);
426
+ font-size: 0.9em;
427
+ padding-left: 25px;
428
+ }
429
430
.customize-control-repeater {
431
+ position: relative;
432
+ }
433
+ .customize-control-repeater .repeater-fields .repeater-row {
434
+ border: 1px solid #e5e5e5;
435
+ margin-top: 0.5rem;
436
+ background: #eee;
437
+ position: relative;
438
+ }
439
+ .customize-control-repeater .repeater-fields .repeater-row.minimized {
440
+ border: 1px solid #dfdfdf;
441
+ padding: 0;
442
+ }
443
+ .customize-control-repeater .repeater-fields .repeater-row.minimized:hover {
444
+ border: 1px solid #e5e5e5;
445
+ }
446
+ .customize-control-repeater .repeater-fields .repeater-row.minimized .repeater-row-content {
447
+ display: none;
448
+ }
449
+ .customize-control-repeater .repeater-fields .repeater-row label {
450
+ margin-bottom: 12px;
451
+ clear: both;
452
+ }
453
+ .customize-control-repeater .repeater-fields .repeater-row .repeater-field.repeater-field- {
454
+ display: none;
455
+ }
456
+ .customize-control-repeater .repeater-fields .repeater-row .repeater-field.repeater-field-radio-image input {
457
+ display: none;
458
+ }
459
+ .customize-control-repeater .repeater-fields .repeater-row .repeater-field.repeater-field-radio-image input img {
460
+ border: 1px solid transparent;
461
+ }
462
+ .customize-control-repeater .repeater-fields .repeater-row .repeater-field.repeater-field-radio-image input:checked + label img {
463
+ -webkit-box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
464
+ box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
465
+ border: 1px solid #3498DB;
466
+ }
467
+ .customize-control-repeater .repeater-fields .repeater-row .repeater-field:last-child {
468
+ border-bottom: none;
469
+ padding-bottom: 0;
470
+ }
471
+ .customize-control-repeater button.repeater-add {
472
+ margin-top: 1rem;
473
+ }
474
+ .customize-control-repeater .repeater-row-content {
475
+ padding: 10px 15px;
476
+ background: #fff;
477
+ }
478
+ .customize-control-repeater .repeater-field {
479
+ margin-bottom: 12px;
480
+ width: 100%;
481
+ clear: both;
482
+ padding-bottom: 12px;
483
+ border-bottom: 1px dotted #CCC;
484
+ }
485
+ .customize-control-repeater .repeater-field .customize-control-title {
486
+ font-size: 13px;
487
+ line-height: initial;
488
+ }
489
+ .customize-control-repeater .repeater-field .customize-control-description {
490
+ font-size: 13px;
491
+ line-height: initial;
492
+ }
493
+ .customize-control-repeater .repeater-field.repeater-field-hidden {
494
+ margin: 0;
495
+ padding: 0;
496
+ border: 0;
497
+ }
498
+ .customize-control-repeater .repeater-field-select select {
499
+ margin-left: 0;
500
+ }
501
+ .customize-control-repeater .repeater-field-checkbox label {
502
+ line-height: 28px;
503
+ }
504
+ .customize-control-repeater .repeater-field-checkbox input {
505
+ line-height: 28px;
506
+ margin-right: 5px;
507
+ }
508
+ .customize-control-repeater .repeater-field-textarea textarea {
509
+ width: 100%;
510
+ resize: vertical;
511
+ }
512
+ .customize-control-repeater .repeater-row-header {
513
+ background: white;
514
+ border-bottom: 1px solid #dfdfdf;
515
+ position: relative;
516
+ padding: 10px 15px;
517
+ height: auto;
518
+ min-height: 20px;
519
+ line-height: 30px;
520
+ overflow: hidden;
521
+ word-wrap: break-word;
522
+ }
523
+ .customize-control-repeater .repeater-row-header:hover {
524
+ cursor: move;
525
+ }
526
+ .customize-control-repeater .repeater-row-header .dashicons {
527
+ font-size: 18px;
528
+ position: absolute;
529
+ right: 12px;
530
+ top: 2px;
531
+ color: #a0a5aa;
532
+ }
533
+ .customize-control-repeater .repeater-row-label {
534
+ font-size: 13px;
535
+ font-weight: 600;
536
+ line-height: 20px;
537
+ display: block;
538
+ width: 90%;
539
+ overflow: hidden;
540
+ height: 18px;
541
+ }
542
+ .customize-control-repeater .repeater-row-remove {
543
+ color: #a00;
544
+ }
545
+ .customize-control-repeater .repeater-row-remove:hover {
546
+ color: #f00;
547
+ }
548
+ .customize-control-repeater .repeater-minimize {
549
+ line-height: 36px;
550
+ }
551
+ .customize-control-repeater .remove-button,
552
+ .customize-control-repeater .upload-button {
553
+ width: 48%;
554
+ }
555
556
.kirki-image-attachment {
557
margin: 0;
558
text-align: center;
559
+ margin-bottom: 10px;
560
+ }
561
+ .kirki-image-attachment img {
562
+ display: inline-block;
563
+ }
564
565
.kirki-file-attachment {
566
margin: 0;
567
text-align: center;
568
+ margin-bottom: 10px;
569
+ }
570
+ .kirki-file-attachment .file {
571
+ display: block;
572
+ padding: 10px 5px;
573
+ border: 1px dotted #c3c3c3;
574
+ background: #f9f9f9;
575
+ }
576
577
.limit {
578
padding: 3px;
579
+ border-radius: 3px;
580
+ }
581
+ .limit.highlight {
582
+ background: #D32F2F;
583
+ color: #fff;
584
+ }
585
586
.customize-control-kirki-slider .wrapper {
587
display: flex;
588
align-items: center;
589
padding: 15px 0 7px;
590
+ position: relative;
591
+ }
592
+ .customize-control-kirki-slider .wrapper .slider-reset {
593
+ position: absolute;
594
+ top: 0;
595
+ right: 0;
596
+ font-size: 12px;
597
+ transition: 0.3s ease-in-out;
598
+ color: rgba(0, 0, 0, 0.3);
599
+ }
600
+ .customize-control-kirki-slider .wrapper .slider-reset:hover {
601
+ transform: scale(1.3);
602
+ color: #DC3232;
603
+ }
604
+ .customize-control-kirki-slider .wrapper input[type=range] {
605
+ display: block;
606
+ -webkit-appearance: none;
607
+ background-color: #bdc3c7;
608
+ width: 100%;
609
+ height: 5px;
610
+ border-radius: 5px;
611
+ margin: 0 auto;
612
+ outline: 0;
613
+ }
614
+ .customize-control-kirki-slider .wrapper input[type=range]::-webkit-slider-thumb {
615
+ -webkit-appearance: none;
616
+ background-color: #0085ba;
617
+ width: 17px;
618
+ height: 17px;
619
+ border-radius: 50%;
620
+ border: 1px solid #006799;
621
+ cursor: pointer;
622
+ transition: 0.3s ease-in-out;
623
+ }
624
+ .customize-control-kirki-slider .wrapper input[type=range]::-webkit-slider-thumb:hover {
625
+ background-color: #006799;
626
+ border: 2px solid #0085ba;
627
+ }
628
+ .customize-control-kirki-slider .wrapper input[type=range]::-webkit-slider-thumb:active {
629
+ transform: scale(1.2);
630
+ }
631
+ .customize-control-kirki-slider .wrapper input[type=text] {
632
+ font-size: 13px;
633
+ background: transparent;
634
+ border: none;
635
+ box-shadow: none;
636
+ text-align: right;
637
+ padding: 0;
638
+ width: 40px;
639
+ }
640
+ .customize-control-kirki-slider .wrapper .value {
641
+ display: flex;
642
+ align-items: baseline;
643
+ }
644
645
.customize-control-kirki-sortable ul.ui-sortable li {
646
padding: 5px 10px;
647
border: 1px solid #333;
648
+ background: #fff;
649
+ }
650
+ .customize-control-kirki-sortable ul.ui-sortable li .dashicons.dashicons-menu {
651
+ float: right;
652
+ }
653
+ .customize-control-kirki-sortable ul.ui-sortable li .dashicons.visibility {
654
+ margin-right: 10px;
655
+ }
656
+ .customize-control-kirki-sortable ul.ui-sortable li.invisible {
657
+ color: #aaa;
658
+ border: 1px dashed #aaa;
659
+ }
660
+ .customize-control-kirki-sortable ul.ui-sortable li.invisible .dashicons.visibility {
661
+ color: #aaa;
662
+ }
663
664
.customize-control-kirki-switch {
665
+ position: relative;
666
+ }
667
+ .customize-control-kirki-switch .switch-off,
668
+ .customize-control-kirki-switch .switch-on {
669
+ opacity: 1;
670
+ padding: 8px;
671
+ font-size: 14px;
672
+ line-height: 18px;
673
+ }
674
+ .customize-control-kirki-switch .switch-on {
675
+ color: #fff;
676
+ opacity: 0;
677
+ }
678
+ .customize-control-kirki-switch .switch-off {
679
+ color: #777;
680
+ }
681
+ .customize-control-kirki-switch .switch {
682
+ border: none;
683
+ margin-bottom: 1.5rem;
684
+ outline: 0;
685
+ padding: 0;
686
+ user-select: none;
687
+ border-radius: 3rem;
688
+ }
689
+ .customize-control-kirki-switch label {
690
+ background: #b4b9be;
691
+ float: left;
692
+ cursor: pointer;
693
+ display: flex;
694
+ justify-content: space-between;
695
+ margin-bottom: 1rem;
696
+ position: relative;
697
+ transition: left 0.15s ease-out;
698
+ border-radius: 3rem;
699
+ }
700
+ .customize-control-kirki-switch label:after {
701
+ background: #FFFFFF;
702
+ content: "";
703
+ display: block;
704
+ position: absolute;
705
+ left: 5px;
706
+ top: 5px;
707
+ width: calc(.85rem + 10px);
708
+ height: calc(.85rem + 10px);
709
+ transition: all 0.25s ease-in-out;
710
+ border-radius: 3rem;
711
+ }
712
+ .customize-control-kirki-switch input + label {
713
+ margin-left: 0;
714
+ margin-right: 0;
715
+ }
716
+ .customize-control-kirki-switch input:checked + label {
717
+ background: #0073aa;
718
+ }
719
+ .customize-control-kirki-switch input:checked + label:after {
720
+ left: auto;
721
+ right: 5px;
722
+ background: #ffffff;
723
+ }
724
+ .customize-control-kirki-switch input:checked + label .switch-on {
725
+ opacity: 1;
726
+ }
727
+ .customize-control-kirki-switch input:checked + label .switch-off {
728
+ opacity: 0;
729
+ }
730
731
.customize-control-kirki-toggle {
732
+ position: relative;
733
+ }
734
+ .customize-control-kirki-toggle label {
735
+ display: flex;
736
+ flex-wrap: wrap;
737
+ }
738
+ .customize-control-kirki-toggle label .customize-control-title {
739
+ width: calc(100% - 55px);
740
+ }
741
+ .customize-control-kirki-toggle label .description {
742
+ order: 99;
743
+ }
744
+ .customize-control-kirki-toggle .switch {
745
+ border: 1px solid #b4b9be;
746
+ display: inline-block;
747
+ width: 35px;
748
+ height: 12px;
749
+ border-radius: 8px;
750
+ background: #b4b9be;
751
+ vertical-align: middle;
752
+ position: relative;
753
+ top: 4px;
754
+ cursor: pointer;
755
+ user-select: none;
756
+ transition: background 350ms ease;
757
+ }
758
+ .customize-control-kirki-toggle .switch:after, .customize-control-kirki-toggle .switch:before {
759
+ content: "";
760
+ display: block;
761
+ width: 20px;
762
+ height: 20px;
763
+ border-radius: 50%;
764
+ position: absolute;
765
+ top: 50%;
766
+ left: -3px;
767
+ transition: all 350ms cubic-bezier(0, 0.95, 0.38, 0.98), background 150ms ease;
768
+ }
769
+ .customize-control-kirki-toggle .switch:before {
770
+ background: rgba(0, 0, 0, 0.2);
771
+ transform: translate3d(0, -50%, 0) scale(0);
772
+ }
773
+ .customize-control-kirki-toggle .switch:after {
774
+ background: #999;
775
+ border: 1px solid rgba(0, 0, 0, 0.1);
776
+ transform: translate3d(0, -50%, 0);
777
+ }
778
+ .customize-control-kirki-toggle .switch:active:before {
779
+ transform: translate3d(0, -50%, 0) scale(3);
780
+ }
781
+ .customize-control-kirki-toggle input:checked + .switch:before {
782
+ background: rgba(0, 115, 170, 0.075);
783
+ transform: translate3d(100%, -50%, 0) scale(1);
784
+ }
785
+ .customize-control-kirki-toggle input:checked + .switch:after {
786
+ background: #0073aa;
787
+ transform: translate3d(100%, -50%, 0);
788
+ }
789
+ .customize-control-kirki-toggle input:checked + .switch:active:before {
790
+ background: rgba(0, 115, 170, 0.075);
791
+ transform: translate3d(100%, -50%, 0) scale(3);
792
+ }
793
794
.customize-control-kirki-typography {
795
+ position: relative;
796
+ }
797
+ .customize-control-kirki-typography .wrapper {
798
+ padding: 10px;
799
+ display: flex;
800
+ flex-wrap: wrap;
801
+ justify-content: space-between;
802
+ border: 1px solid rgba(0, 0, 0, 0.1);
803
+ }
804
+ .customize-control-kirki-typography .wrapper h5 {
805
+ margin: 0.67em 0 0;
806
+ }
807
+ .customize-control-kirki-typography .wrapper .color,
808
+ .customize-control-kirki-typography .wrapper .font-backup,
809
+ .customize-control-kirki-typography .wrapper .font-family,
810
+ .customize-control-kirki-typography .wrapper .font-size,
811
+ .customize-control-kirki-typography .wrapper .letter-spacing,
812
+ .customize-control-kirki-typography .wrapper .line-height,
813
+ .customize-control-kirki-typography .wrapper .margin-bottom,
814
+ .customize-control-kirki-typography .wrapper .margin-top,
815
+ .customize-control-kirki-typography .wrapper .text-align,
816
+ .customize-control-kirki-typography .wrapper .text-transform,
817
+ .customize-control-kirki-typography .wrapper .variant {
818
+ width: 100%;
819
+ float: none;
820
+ clear: both;
821
+ }
822
+ .customize-control-kirki-typography .wrapper .font-size,
823
+ .customize-control-kirki-typography .wrapper .letter-spacing,
824
+ .customize-control-kirki-typography .wrapper .line-height,
825
+ .customize-control-kirki-typography .wrapper .margin-bottom,
826
+ .customize-control-kirki-typography .wrapper .margin-top,
827
+ .customize-control-kirki-typography .wrapper .text-transform {
828
+ width: 48%;
829
+ }
830
+ .customize-control-kirki-typography .wrapper .text-align .text-align-choices {
831
+ display: flex;
832
+ }
833
+ .customize-control-kirki-typography .wrapper .text-align .text-align-choices label {
834
+ width: 100%;
835
+ padding: 5px;
836
+ text-align: center;
837
+ border: 1px solid rgba(255, 255, 255, 0);
838
+ }
839
+ .customize-control-kirki-typography .wrapper .text-align .text-align-choices input {
840
+ display: none;
841
+ }
842
+ .customize-control-kirki-typography .wrapper .text-align .text-align-choices input:checked + label {
843
+ border-color: #0085ba;
844
+ }
845
+ .customize-control-kirki-typography .wrapper .color {
846
+ width: auto;
847
+ }
848
849
/*# sourceMappingURL=styles.css.map */
controls/js/script.js CHANGED
@@ -1969,13 +1969,15 @@ wp.customize.controlConstructor['kirki-editor'] = wp.customize.kirkiDynamicContr
1969
id = 'kirki-editor-' + control.id.replace( '[', '' ).replace( ']', '' ),
1970
editor;
1971
1972
- wp.editor.initialize( id, {
1973
- tinymce: {
1974
- wpautop: true
1975
- },
1976
- quicktags: true,
1977
- mediaButtons: true
1978
- } );
1979
1980
editor = tinyMCE.get( id );
1981
1969
id = 'kirki-editor-' + control.id.replace( '[', '' ).replace( ']', '' ),
1970
editor;
1971
1972
+ if ( wp.editor && wp.editor.initialize ) {
1973
+ wp.editor.initialize( id, {
1974
+ tinymce: {
1975
+ wpautop: true
1976
+ },
1977
+ quicktags: true,
1978
+ mediaButtons: true
1979
+ } );
1980
+ }
1981
1982
editor = tinyMCE.get( id );
1983
controls/js/script.min.js CHANGED
@@ -1 +1 @@
1
- if(_.isUndefined(window.kirkiSetSettingValue))var kirkiSetSettingValue={set:function(i,n){var e,a=this,t=wp.customize.settings.controls[i];if(_.isUndefined(t))return!0;switch(a.setValue(i,n),t.type){case"kirki-background":_.isUndefined(n["background-color"])||a.setColorPicker(a.findElement(i,".kirki-color-control"),n["background-color"]),a.findElement(i,".placeholder, .thumbnail").removeClass().addClass("placeholder").html("No file selected"),_.each(["background-repeat","background-position"],function(e){_.isUndefined(n[e])||a.setSelectWoo(a.findElement(i,"."+e+" select"),n[e])}),_.each(["background-size","background-attachment"],function(e){jQuery(a.findElement(i,"."+e+' input[value="'+n+'"]')).prop("checked",!0)}),e=JSON.stringify(n).replace(/'/g,"&#39"),jQuery(a.findElement(i,".background-hidden-value").attr("value",e)).trigger("change");break;case"kirki-code":jQuery(a.findElement(i,".CodeMirror"))[0].CodeMirror.setValue(n);break;case"checkbox":case"kirki-switch":case"kirki-toggle":n=1===n||"1"===n||!0===n,jQuery(a.findElement(i,"input")).prop("checked",n),wp.customize.instance(i).set(n);break;case"kirki-select":a.setSelectWoo(a.findElement(i,"select"),n);break;case"kirki-slider":jQuery(a.findElement(i,"input")).prop("value",n),jQuery(a.findElement(i,".kirki_range_value .value")).html(n);break;case"kirki-generic":(_.isUndefined(t.choices)||_.isUndefined(t.choices.element))&&(t.choices.element="input"),jQuery(a.findElement(i,t.choices.element)).prop("value",n);break;case"kirki-color":a.setColorPicker(a.findElement(i,".kirki-color-control"),n);break;case"kirki-multicheck":a.findElement(i,"input").each(function(){jQuery(this).prop("checked",!1)}),_.each(n,function(e,t){jQuery(a.findElement(i,'input[value="'+n[t]+'"]')).prop("checked",!0)});break;case"kirki-multicolor":_.each(n,function(e,t){a.setColorPicker(a.findElement(i,".multicolor-index-"+t),e)});break;case"kirki-radio-buttonset":case"kirki-radio-image":case"kirki-radio":case"kirki-dashicons":case"kirki-color-palette":case"kirki-palette":jQuery(a.findElement(i,'input[value="'+n+'"]')).prop("checked",!0);break;case"kirki-typography":_.each(["font-family","variant"],function(e){_.isUndefined(n[e])||a.setSelectWoo(a.findElement(i,"."+e+" select"),n[e])}),_.each(["font-size","line-height","letter-spacing","word-spacing"],function(e){_.isUndefined(n[e])||jQuery(a.findElement(i,"."+e+" input")).prop("value",n[e])}),_.isUndefined(n.color)||a.setColorPicker(a.findElement(i,".kirki-color-control"),n.color),e=JSON.stringify(n).replace(/'/g,"&#39"),jQuery(a.findElement(i,".typography-hidden-value").attr("value",e)).trigger("change");break;case"kirki-dimensions":_.each(n,function(e,t){jQuery(a.findElement(i,"."+t+" input")).prop("value",e)});break;case"kirki-repeater":case"kirki-custom":break;default:jQuery(a.findElement(i,"input")).prop("value",n)}},setColorPicker:function(e,t){e.attr("data-default-color",t).data("default-color",t).wpColorPicker("color",t)},setSelectWoo:function(e,t){jQuery(e).selectWoo().val(t).trigger("change")},setTextarea:function(e,t){jQuery(e).prop("value",t)},findElement:function(e,t){return wp.customize.control(e).container.find(t)},setValue:function(e,t,i){i=_.isUndefined(i)?100:parseInt(i,10),wp.customize.instance(e).set({}),setTimeout(function(){wp.customize.instance(e).set(t)},i)}};(kirki={initialized:!1,initialize:function(){this.initialized||(setTimeout(function(){kirki.util.webfonts.standard.initialize(),kirki.util.webfonts.google.initialize()},150),this.initialized=!0)}}).initialize();var kirki=kirki||{};kirki=(kirki=jQuery.extend(kirki,{control:{"kirki-radio":{init:function(e){this.template(e),kirki.input.radio.init(e)},template:function(e){var t=wp.template("kirki-input-radio");e.container.html(t({label:e.params.label,description:e.params.description,"data-id":e.id,inputAttrs:e.params.inputAttrs,default:e.params.default,value:kirki.setting.get(e.id),choices:e.params.choices}))}},"kirki-color":{init:function(e){this.template(e),kirki.input.color.init(e)},template:function(e){var t=wp.template("kirki-input-color");e.container.html(t({label:e.params.label,description:e.params.description,"data-id":e.id,mode:e.params.mode,inputAttrs:e.params.inputAttrs,"data-palette":e.params.palette,"data-default-color":e.params.default,"data-alpha":e.params.choices.alpha,value:kirki.setting.get(e.id)}))}},"kirki-generic":{init:function(e){this.template(e),_.isUndefined(e.params)||_.isUndefined(e.params.choices)||_.isUndefined(e.params.choices.element)||"textarea"!==e.params.choices.element?kirki.input.genericInput.init(e):kirki.input.textarea.init(e)},template:function(e){var t,i={label:e.params.label,description:e.params.description,"data-id":e.id,inputAttrs:e.params.inputAttrs,choices:e.params.choices,value:kirki.setting.get(e.id)};if(!_.isUndefined(e.params)&&!_.isUndefined(e.params.choices)&&!_.isUndefined(e.params.choices.element)&&"textarea"===e.params.choices.element)return t=wp.template("kirki-input-textarea"),void e.container.html(t(i));t=wp.template("kirki-input-generic"),e.container.html(t(i))}},"kirki-number":{init:function(e){this.template(e),kirki.input.number.init(e)},template:function(e){var t=wp.template("kirki-input-number");e.container.html(t(args={label:e.params.label,description:e.params.description,"data-id":e.id,inputAttrs:e.params.inputAttrs,choices:e.params.choices,value:kirki.setting.get(e.id)}))}},"kirki-image":{init:function(e){this.template(e),kirki.input.image.init(e)},template:function(e){var t=wp.template("kirki-input-image");e.container.html(t(args={label:e.params.label,description:e.params.description,"data-id":e.id,inputAttrs:e.params.inputAttrs,choices:e.params.choices,value:kirki.setting.get(e.id)}))}},"kirki-select":{init:function(e){this.template(e),kirki.input.select.init(e)},template:function(e){var t=wp.template("kirki-input-select");e.container.html(t({label:e.params.label,description:e.params.description,"data-id":e.id,inputAttrs:e.params.inputAttrs,choices:e.params.choices,value:kirki.setting.get(e.id),multiple:e.params.multiple||1,placeholder:e.params.placeholder}))}}}}))||{},kirki=(kirki=jQuery.extend(kirki,{input:{radio:{init:function(e){jQuery('input[data-id="'+e.id+'"]').on("change keyup paste click",function(){kirki.setting.set(e.id,jQuery(this).val())})}},color:{init:function(e){var t,i=jQuery('.kirki-color-control[data-id="'+e.id+'"]');e.choices=e.choices||{},_.isEmpty(e.choices)&&e.params.choices&&(e.choices=e.params.choices),_.isEmpty(e.choices)||i.wpColorPicker(e.choices),setTimeout(function(){(t=jQuery('.kirki-input-container[data-id="'+e.id+'"] .wp-picker-clear')).length&&t.click(function(){kirki.setting.set(e.id,"")})},200),i.wpColorPicker({change:function(){setTimeout(function(){kirki.setting.set(e.id,i.val())},20)}})}},genericInput:{init:function(e){jQuery('input[data-id="'+e.id+'"]').on("change keyup paste click",function(){kirki.setting.set(e.id,jQuery(this).val())})}},textarea:{init:function(e){jQuery('textarea[data-id="'+e.id+'"]').on("change keyup paste click",function(){kirki.setting.set(e.id,jQuery(this).val())})}},select:{init:function(e){var t,i=jQuery('select[data-id="'+e.id+'"]'),n=parseInt(i.data("multiple"),10),a={escapeMarkup:function(e){return e}};e.params.placeholder&&(a.placeholder=e.params.placeholder,a.allowClear=!0),1<n&&(a.maximumSelectionLength=n),jQuery(i).selectWoo(a).on("change",function(){t=null===(t=jQuery(this).val())&&1<n?[]:t,kirki.setting.set(e.id,t)})}},number:{init:function(i){var e,t,n=jQuery('input[data-id="'+i.id+'"]'),a=i.setting._value;i.params.choices=_.defaults(i.params.choices,{min:0,max:100,step:1}),!isNaN(a)&&""!==a||(a=i.params.choices.min<0&&0<i.params.choices.max?0:i.params.choices.min),a=parseFloat(a),i.params.choices.step="any"===i.params.choices.step?.001:i.params.choices.step,i.params.choices.min=parseFloat(i.params.choices.min),i.params.choices.max=parseFloat(i.params.choices.max),i.params.choices.step=parseFloat(i.params.choices.step),e=jQuery('.kirki-input-container[data-id="'+i.id+'"] .plus'),t=jQuery('.kirki-input-container[data-id="'+i.id+'"] .minus'),e.click(function(){var e,t=parseFloat(n.val());e=t>=i.params.choices.max?t:t+i.params.choices.step,n.val(e),n.trigger("change")}),t.click(function(){var e,t=parseFloat(n.val());e=t<=i.params.choices.min?t:t-i.params.choices.step,n.val(e),n.trigger("change")}),n.on("change keyup paste click",function(){var e=jQuery(this).val();isNaN(e)&&(e=parseFloat(e,10),e=isNaN(e)?0:e,jQuery(this).attr("value",e)),kirki.setting.set(i.id,e)})}},image:{init:function(a){var t=kirki.setting.get(a.id),n=_.isUndefined(a.params.choices)||_.isUndefined(a.params.choices.save_as)?"url":a.params.choices.save_as,r=a.container.find(".placeholder, .thumbnail"),e="array"===n?t.url:t,s=a.container.find(".image-upload-remove-button"),o=a.container.find(".image-default-button");t="array"===n&&_.isString(t)?{url:t}:t,"id"!==n&&"ID"!==n||""===t||wp.media.attachment(t).fetch().then(function(){setTimeout(function(){var e=wp.media.attachment(t).get("url");r.removeClass().addClass("thumbnail thumbnail-image").html('<img src="'+e+'" alt="" />')},700)}),("url"===n&&""!==t||"array"===n&&!_.isUndefined(t.url)&&""!==t.url)&&a.container.find("image-default-button").hide(),("url"===n&&""===t||"array"===n&&(_.isUndefined(t.url)||""===t.url))&&s.hide(),t===a.params.default&&a.container.find("image-default-button").hide(),""!==e&&r.removeClass().addClass("thumbnail thumbnail-image").html('<img src="'+e+'" alt="" />'),a.container.on("click",".image-upload-button",function(e){var i=wp.media({multiple:!1}).open().on("select",function(){var e=i.state().get("selection").first().toJSON(),t=e.url;_.isUndefined(e.sizes)||(t=e.sizes.full.url,_.isUndefined(e.sizes.medium)?_.isUndefined(e.sizes.thumbnail)||(t=e.sizes.thumbnail.url):t=e.sizes.medium.url),"array"===n?kirki.setting.set(a.id,{id:e.id,url:e.sizes.full.url,width:e.width,height:e.height}):"id"===n?kirki.setting.set(a.id,e.id):kirki.setting.set(a.id,_.isUndefined(e.sizes)?e.url:e.sizes.full.url),r.length&&r.removeClass().addClass("thumbnail thumbnail-image").html('<img src="'+t+'" alt="" />'),s.length&&(s.show(),o.hide())});e.preventDefault()}),a.container.on("click",".image-upload-remove-button",function(e){var t,i,n;e.preventDefault(),kirki.setting.set(a.id,""),t=a.container.find(".placeholder, .thumbnail"),i=a.container.find(".image-upload-remove-button"),n=a.container.find(".image-default-button"),t.length&&t.removeClass().addClass("placeholder").html(kirkiL10n.noFileSelected),i.length&&(i.hide(),jQuery(n).hasClass("button")&&n.show())}),a.container.on("click",".image-default-button",function(e){var t,i,n;e.preventDefault(),kirki.setting.set(a.id,a.params.default),t=a.container.find(".placeholder, .thumbnail"),i=a.container.find(".image-upload-remove-button"),n=a.container.find(".image-default-button"),t.length&&t.removeClass().addClass("thumbnail thumbnail-image").html('<img src="'+a.params.default+'" alt="" />'),i.length&&(i.show(),n.hide())})}}}}))||{},kirki=(kirki=jQuery.extend(kirki,{setting:{get:function(e){var t=e.split("["),i="",n=0,a="";return _.each(t,function(e,t){e=e.replace("]",""),0===t?i=e:i+="["+e+"]",_.isUndefined(wp.customize.instance(i))||(a=wp.customize.instance(i).get(),n=t),n<t&&_.isObject(a)&&!_.isUndefined(a[e])&&(a=a[e])}),a},set:function(e,t,i){var n,a,r,s,o,c="",l="",u={};n=e,_.isObject(e)&&(n=jQuery(e).attr("data-id")?e.attr("data-id"):e.parents("[data-id]").attr("data-id")),void 0===wp.customize.control(n)?(a=n.split("["),_.each(a,function(e,t){e=e.replace("]",""),c=0===t?e:"["+e+"]",_.isUndefined(wp.customize.instance(c))||(l=c,r=wp.customize.instance(l).get())}),""!==(s=n.replace(l,""))?(_.isObject(r)||(r={}),"["===s.charAt(0)&&(s=s.replace("[","")),o=s.split("["),_.each(o,function(e,t){o[t]=e.replace("]","")}),i&&o.push(i),u='{"'+o.join('":{"')+'":"'+t+'"'+"}".repeat(o.length),u=JSON.parse(u),jQuery.extend(!0,r,u),t=r):i&&((r=_.isObject(r)?r:{})[i]=t,t=r),wp.customize.control(l).setting.set(t)):wp.customize.control(n).setting.set(t)}}}))||{};kirki=jQuery.extend(kirki,{util:{webfonts:{google:{fonts:{},initialize:function(){this.setFonts()},setFonts:function(){var t=this;_.isEmpty(t.fonts)&&jQuery.post(ajaxurl,{action:"kirki_fonts_google_all_get"},function(e){t.fonts=JSON.parse(e)})},getFont:function(e){var t=this.getFonts();return void 0!==t[e]&&t[e]},getFonts:function(e,i,t){var n=this,a={},r={},s={};return e="alpha"!==(e=e||"alpha")&&"popularity"!==e&&"trending"!==e?"alpha":e,t=t||0,t=parseInt(t,10),"alpha"===e?a=jQuery.extend({},n.fonts.items):_.each(n.fonts.order[e],function(e){a[e]=n.fonts.items[e]}),""!==i&&i?_.each(a,function(e,t){i===e.category&&(r[t]=e)}):r=a,0<t?(_.each(_.first(_.keys(r),t),function(e){s[e]=r[e]}),s):r},getVariants:function(e){var t=this.getFont(e);return!!t&&(!_.isUndefined(t.variants)&&t.variants)}},standard:{fonts:{},initialize:function(){this.setFonts()},setFonts:function(){var t=this;_.isEmpty(t.fonts)&&jQuery.post(ajaxurl,{action:"kirki_fonts_standard_all_get"},function(e){t.fonts=JSON.parse(e)})},getVariants:function(){return["regular","italic","700","700italic"]}},getFontType:function(e){return void 0!==this.standard.fonts[e]||void 0!==this.standard.fonts.stack&&void 0!==this.standard.fonts.stack[e]?"standard":void 0!==this.google.fonts.items[e]&&"google"}},validate:{cssValue:function(e){var t,i;return"string"!=typeof e||"number"!=typeof e||(0===e||"0"===e||"auto"===e||"inherit"===e||"initial"===e||(0<=e.indexOf("calc(")&&0<=e.indexOf(")")||(t=parseFloat(e),i=e.replace(t,""),e?!isNaN(t)&&-1<jQuery.inArray(i,["fr","rem","em","ex","%","px","cm","mm","in","pt","pc","ch","vh","vw","vmin","vmax"]):void 0)))}},parseHtmlEntities:function(e){return(new DOMParser).parseFromString("<!doctype html><body>"+e,"text/html").body.textContent}}}),function(){"use strict";wp.customize.kirkiDynamicControl=wp.customize.Control.extend({initialize:function(e,t){var i=t||{};i.params=i.params||{},i.params.type||(i.params.type="kirki-generic"),i.params.content||(i.params.content=jQuery("<li></li>"),i.params.content.attr("id","customize-control-"+e.replace(/]/g,"").replace(/\[/g,"-")),i.params.content.attr("class","customize-control customize-control-"+i.params.type)),this.propertyElements=[],wp.customize.Control.prototype.initialize.call(this,e,i)},_setUpSettingRootLinks:function(){var n=this;n.container.find("[data-customize-setting-link]").each(function(){var i=jQuery(this);wp.customize(i.data("customizeSettingLink"),function(e){var t=new wp.customize.Element(i);n.elements.push(t),t.sync(e),t.set(e())})})},_setUpSettingPropertyLinks:function(){var n=this;n.setting&&n.container.find("[data-customize-setting-property-link]").each(function(){var t,e=jQuery(this),i=e.data("customizeSettingPropertyLink");t=new wp.customize.Element(e),n.propertyElements.push(t),t.set(n.setting()[i]),t.bind(function(e){var t=n.setting();e!==t[i]&&((t=_.clone(t))[i]=e,n.setting.set(t))}),n.setting.bind(function(e){e[i]!==t.get()&&t.set(e[i])})})},ready:function(){var e=this;e._setUpSettingRootLinks(),e._setUpSettingPropertyLinks(),wp.customize.Control.prototype.ready.call(e),e.deferred.embedded.done(function(){e.initKirkiControl(e)})},embed:function(){var t=this,e=t.section();e&&wp.customize.section(e,function(e){"kirki-expanded"===e.params.type||e.expanded()||wp.customize.settings.autofocus.control===t.id?t.actuallyEmbed():e.expanded.bind(function(e){e&&t.actuallyEmbed()})})},actuallyEmbed:function(){"resolved"!==this.deferred.embedded.state()&&(this.renderContent(),this.deferred.embedded.resolve())},focus:function(e){this.actuallyEmbed(),wp.customize.Control.prototype.focus.call(this,e)},initKirkiControl:function(e){void 0===kirki.control[e.params.type]?this.container.on("change keyup paste click","input",function(){e.setting.set(jQuery(this).val())}):kirki.control[e.params.type].init(e)}})}(),_.each(kirki.control,function(e,t){wp.customize.controlConstructor[t]=wp.customize.kirkiDynamicControl.extend({})}),wp.customize.controlConstructor["kirki-background"]=wp.customize.Control.extend({ready:function(){"use strict";!_.isUndefined(window.kirkiControlLoader)&&_.isFunction(kirkiControlLoader)?kirkiControlLoader(this):this.initKirkiControl()},initKirkiControl:function(){var s=this,e=s.setting._value,t=s.container.find(".kirki-color-control");!_.isUndefined(e["background-image"])&&""!==e["background-image"]||(s.container.find(".background-wrapper > .background-repeat").hide(),s.container.find(".background-wrapper > .background-position").hide(),s.container.find(".background-wrapper > .background-size").hide(),s.container.find(".background-wrapper > .background-attachment").hide()),t.wpColorPicker({change:function(){setTimeout(function(){s.saveValue("background-color",t.val())},100)}}),s.container.on("change",".background-repeat select",function(){s.saveValue("background-repeat",jQuery(this).val())}),s.container.on("change click",".background-size input",function(){s.saveValue("background-size",jQuery(this).val())}),s.container.on("change",".background-position select",function(){s.saveValue("background-position",jQuery(this).val())}),s.container.on("change click",".background-attachment input",function(){s.saveValue("background-attachment",jQuery(this).val())}),s.container.on("click",".background-image-upload-button",function(e){var r=wp.media({multiple:!1}).open().on("select",function(){var e,t,i,n=r.state().get("selection").first(),a=n.toJSON().sizes.full.url;_.isUndefined(n.toJSON().sizes.medium)?_.isUndefined(n.toJSON().sizes.thumbnail)||(a=n.toJSON().sizes.thumbnail.url):a=n.toJSON().sizes.medium.url,e=n.toJSON().sizes.full.url,n.toJSON().id,n.toJSON().width,n.toJSON().height,""!==e&&s.container.find(".background-wrapper > .background-repeat, .background-wrapper > .background-position, .background-wrapper > .background-size, .background-wrapper > .background-attachment").show(),s.saveValue("background-image",e),t=s.container.find(".placeholder, .thumbnail"),i=s.container.find(".background-image-upload-remove-button"),t.length&&t.removeClass().addClass("thumbnail thumbnail-image").html('<img src="'+a+'" alt="" />'),i.length&&i.show()});e.preventDefault()}),s.container.on("click",".background-image-upload-remove-button",function(e){var t,i;e.preventDefault(),s.saveValue("background-image",""),t=s.container.find(".placeholder, .thumbnail"),i=s.container.find(".background-image-upload-remove-button"),s.container.find(".background-wrapper > .background-repeat").hide(),s.container.find(".background-wrapper > .background-position").hide(),s.container.find(".background-wrapper > .background-size").hide(),s.container.find(".background-wrapper > .background-attachment").hide(),t.length&&t.removeClass().addClass("placeholder").html("No file selected"),i.length&&i.hide()})},saveValue:function(e,t){var i=jQuery("#customize-control-"+this.id.replace("[","-").replace("]","")+" .background-hidden-value"),n=this.setting._value;n[e]=t,jQuery(i).attr("value",JSON.stringify(n)).trigger("change"),this.setting.set(n)}}),wp.customize.controlConstructor["kirki-color-palette"]=wp.customize.kirkiDynamicControl.extend({}),wp.customize.controlConstructor["kirki-dashicons"]=wp.customize.kirkiDynamicControl.extend({}),wp.customize.controlConstructor["kirki-date"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var e=this,t=e.selector+" input.datepicker";jQuery(t).datepicker({dateFormat:"yy-mm-dd"}),this.container.on("change keyup paste","input.datepicker",function(){e.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor["kirki-dimension"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var e,t=this;t.kirkiNotifications(),this.container.on("change keyup paste","input",function(){e=jQuery(this).val(),t.setting.set(e)})},kirkiNotifications:function(){var n=void 0!==this.params.choices&&void 0!==this.params.choices.accept_unitless&&!0===this.params.choices.accept_unitless;wp.customize(this.id,function(i){i.bind(function(e){var t="long_title";!1!==kirki.util.validate.cssValue(e)||n&&!isNaN(e)?i.notifications.remove(t):i.notifications.add(t,new wp.customize.Notification(t,{type:"warning",message:dimensionkirkiL10n["invalid-value"]}))})})}}),wp.customize.controlConstructor["kirki-dimensions"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var e,t=this.params.choices.controls,i={},n=[];for(_.each(t,function(e,t){!0===e&&n.push(t)}),e=0;e<n.length;e++)i[n[e]]=this.setting._value[n[e]],this.updateDimensionsValue(n[e],i)},updateDimensionsValue:function(e,t){var i=this;i.container.on("change keyup paste","."+e+" input",function(){t[e]=jQuery(this).val(),i.kirkiNotifications(),i.saveValue(t)})},saveValue:function(e){var i={};_.each(e,function(e,t){i[t]=e}),this.setting.set(i)},kirkiNotifications:function(){wp.customize(this.id,function(a){a.bind(function(e){var t,i="long_title",n={};if(a.notifications.remove(i),_.each(e,function(e,t){!1===kirki.util.validate.cssValue(e)?n[t]=e:delete n[t]}),!_.isEmpty(n))return t=dimensionskirkiL10n["invalid-value"]+" ("+_.values(n).toString()+") ",void a.notifications.add(i,new wp.customize.Notification(i,{type:"warning",message:t}));a.notifications.remove(i)})})}}),wp.customize.controlConstructor["kirki-editor"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var i,n=this,a=n.container.find("textarea"),e="kirki-editor-"+n.id.replace("[","").replace("]","");wp.editor.initialize(e,{tinymce:{wpautop:!0},quicktags:!0,mediaButtons:!0}),(i=tinyMCE.get(e))&&i.onChange.add(function(e){var t;e.save(),t=i.getContent(),a.val(t).trigger("change"),wp.customize.instance(n.id).set(t)})}}),wp.customize.controlConstructor["kirki-multicheck"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var n=this;n.container.on("change","input",function(){var t=[],i=0;jQuery.each(n.params.choices,function(e){n.container.find('input[value="'+e+'"]').is(":checked")?(n.container.find('input[value="'+e+'"]').parent().addClass("checked"),t[i]=e,i++):n.container.find('input[value="'+e+'"]').parent().removeClass("checked")}),n.setting.set(t)})}}),wp.customize.controlConstructor["kirki-multicolor"]=wp.customize.Control.extend({ready:function(){"use strict";!_.isUndefined(window.kirkiControlLoader)&&_.isFunction(kirkiControlLoader)?kirkiControlLoader(this):this.initKirkiControl()},initKirkiControl:function(){"use strict";var r=this.params.choices,e=Object.keys(r),t=(this.params.value,0);function i(e,t,i){var n=e.container.find(".multicolor-index-"+i),a={change:function(){setTimeout(function(){e.saveValue(i,n.val()),e.container.find(".multicolor-index-"+i).trigger("change")},100)}};_.isObject(r.irisArgs)&&_.each(r.irisArgs,function(e,t){a[t]=e}),n.wpColorPicker(a)}for(;t<Object.keys(r).length;)i(this,0,e[t]),t++},saveValue:function(e,t){var i=this.container.find(".multicolor-hidden-value"),n=this.setting._value;n[e]=t,jQuery(i).attr("value",JSON.stringify(n)).trigger("change"),this.setting.set(n)}}),wp.customize.controlConstructor["kirki-palette"]=wp.customize.kirkiDynamicControl.extend({}),wp.customize.controlConstructor["kirki-radio-buttonset"]=wp.customize.kirkiDynamicControl.extend({}),wp.customize.controlConstructor["kirki-radio-image"]=wp.customize.kirkiDynamicControl.extend({});var RepeaterRow=function(e,t,i,n){"use strict";var a=this;this.rowIndex=e,this.container=t,this.label=i,this.header=this.container.find(".repeater-row-header"),this.header.on("click",function(){a.toggleMinimize()}),this.container.on("click",".repeater-row-remove",function(){a.remove()}),this.header.on("mousedown",function(){a.container.trigger("row:start-dragging")}),this.container.on("keyup change","input, select, textarea",function(e){a.container.trigger("row:update",[a.rowIndex,jQuery(e.target).data("field"),e.target])}),this.setRowIndex=function(e){this.rowIndex=e,this.container.attr("data-row",e),this.container.data("row",e),this.updateLabel()},this.toggleMinimize=function(){this.container.toggleClass("minimized"),this.header.find(".dashicons").toggleClass("dashicons-arrow-up").toggleClass("dashicons-arrow-down")},this.remove=function(){this.container.slideUp(300,function(){jQuery(this).detach()}),this.container.trigger("row:remove",[this.rowIndex])},this.updateLabel=function(){var e,t,i;if("field"===this.label.type&&(e=this.container.find('.repeater-field [data-field="'+this.label.field+'"]'),_.isFunction(e.val)&&""!==(t=e.val())))return _.isUndefined(n.params.fields[this.label.field])||_.isUndefined(n.params.fields[this.label.field].type)||("select"===n.params.fields[this.label.field].type?_.isUndefined(n.params.fields[this.label.field].choices)||_.isUndefined(n.params.fields[this.label.field].choices[e.val()])||(t=n.params.fields[this.label.field].choices[e.val()]):"radio"!==n.params.fields[this.label.field].type&&"radio-image"!==n.params.fields[this.label.field].type||(i=n.selector+' [data-row="'+this.rowIndex+'"] .repeater-field [data-field="'+this.label.field+'"]:checked',t=jQuery(i).val())),void this.header.find(".repeater-row-label").text(t);this.header.find(".repeater-row-label").text(this.label.value+" "+(this.rowIndex+1))},this.updateLabel()};wp.customize.controlConstructor.repeater=wp.customize.Control.extend({ready:function(){"use strict";!_.isUndefined(window.kirkiControlLoader)&&_.isFunction(kirkiControlLoader)?kirkiControlLoader(this):this.initKirkiControl()},initKirkiControl:function(){"use strict";var t,i,n=this,e=this.params.value;this.settingField=this.container.find("[data-customize-setting-link]").first(),this.setValue([],!1),this.repeaterFieldsContainer=this.container.find(".repeater-fields").first(),this.currentIndex=0,this.rows=[],t=!1,_.isUndefined(this.params.choices.limit)||(t=!(this.params.choices.limit<=0)&&parseInt(this.params.choices.limit,10)),this.container.on("click","button.repeater-add",function(e){e.preventDefault(),!t||n.currentIndex<t?((i=n.addRow()).toggleMinimize(),n.initColorPicker(),n.initSelect(i)):jQuery(n.selector+" .limit").addClass("highlight")}),this.container.on("click",".repeater-row-remove",function(){n.currentIndex--,(!t||n.currentIndex<t)&&jQuery(n.selector+" .limit").removeClass("highlight")}),this.container.on("click keypress",".repeater-field-image .upload-button,.repeater-field-cropped_image .upload-button,.repeater-field-upload .upload-button",function(e){e.preventDefault(),n.$thisButton=jQuery(this),n.openFrame(e)}),this.container.on("click keypress",".repeater-field-image .remove-button,.repeater-field-cropped_image .remove-button",function(e){e.preventDefault(),n.$thisButton=jQuery(this),n.removeImage(e)}),this.container.on("click keypress",".repeater-field-upload .remove-button",function(e){e.preventDefault(),n.$thisButton=jQuery(this),n.removeFile(e)}),this.repeaterTemplate=_.memoize(function(){var t={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(e){return _.template(n.container.find(".customize-control-repeater-content").first().html(),null,t)(e)}}),e.length&&_.each(e,function(e){i=n.addRow(e),n.initColorPicker(),n.initSelect(i,e)}),this.setValue(e,!0,!0),this.repeaterFieldsContainer.sortable({handle:".repeater-row-header",update:function(){n.sort()}})},openFrame:function(e){"use strict";wp.customize.utils.isKeydownButNotEnterEvent(e)||(this.$thisButton.closest(".repeater-field").hasClass("repeater-field-cropped_image")?this.initCropperFrame():this.initFrame(),this.frame.open())},initFrame:function(){"use strict";var e=this.getMimeType();this.frame=wp.media({states:[new wp.media.controller.Library({library:wp.media.query({type:e}),multiple:!1,date:!1})]}),this.frame.on("select",this.onSelect,this)},initCropperFrame:function(){"use strict";var t=this.$thisButton.siblings("input.hidden-field").attr("data-field"),e=this.getMimeType();_.isString(t)&&""!==t&&_.isObject(this.params.fields[t])&&"cropped_image"===this.params.fields[t].type&&["width","height","flex_width","flex_height"].forEach(function(e){_.isUndefined(this.params.fields[t][e])||(this.params[e]=this.params.fields[t][e])}.bind(this)),this.frame=wp.media({button:{text:"Select and Crop",close:!1},states:[new wp.media.controller.Library({library:wp.media.query({type:e}),multiple:!1,date:!1,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelectForCrop,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){"use strict";var e=this.frame.state().get("selection").first().toJSON();this.$thisButton.closest(".repeater-field").hasClass("repeater-field-upload")?this.setFileInRepeaterField(e):this.setImageInRepeaterField(e)},onSelectForCrop:function(){"use strict";var e=this.frame.state().get("selection").first().toJSON();this.params.width!==e.width||this.params.height!==e.height||this.params.flex_width||this.params.flex_height?this.frame.setState("cropper"):this.setImageInRepeaterField(e)},onCropped:function(e){"use strict";this.setImageInRepeaterField(e)},calculateImageSelectOptions:function(e,t){"use strict";var i,n,a,r=t.get("control"),s=!!parseInt(r.params.flex_width,10),o=!!parseInt(r.params.flex_height,10),c=e.get("width"),l=e.get("height"),u=parseInt(r.params.width,10),d=parseInt(r.params.height,10),p=u/d,h=c,f=l;return t.set("canSkipCrop",!r.mustBeCropped(s,o,u,d,c,l)),p<h/f?u=(d=f)*p:d=(u=h)/p,!(a={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:c,imageHeight:l,x1:i=(h-u)/2,y1:n=(f-d)/2,x2:u+i,y2:d+n})==o&&!1==s&&(a.aspectRatio=u+":"+d),!1==o&&(a.maxHeight=d),!1==s&&(a.maxWidth=u),a},mustBeCropped:function(e,t,i,n,a,r){"use strict";return!(!0===e&&!0===t||!0===e&&n===r||!0===t&&i===a||i===a&&n===r||a<=i)},onSkippedCrop:function(){"use strict";var e=this.frame.state().get("selection").first().toJSON();this.setImageInRepeaterField(e)},setImageInRepeaterField:function(e){"use strict";var t=this.$thisButton.closest(".repeater-field-image,.repeater-field-cropped_image");t.find(".kirki-image-attachment").html('<img src="'+e.url+'">').hide().slideDown("slow"),t.find(".hidden-field").val(e.id),this.$thisButton.text(this.$thisButton.data("alt-label")),t.find(".remove-button").show(),t.find("input, textarea, select").trigger("change"),this.frame.close()},setFileInRepeaterField:function(e){"use strict";var t=this.$thisButton.closest(".repeater-field-upload");t.find(".kirki-file-attachment").html('<span class="file"><span class="dashicons dashicons-media-default"></span> '+e.filename+"</span>").hide().slideDown("slow"),t.find(".hidden-field").val(e.id),this.$thisButton.text(this.$thisButton.data("alt-label")),t.find(".upload-button").show(),t.find(".remove-button").show(),t.find("input, textarea, select").trigger("change"),this.frame.close()},getMimeType:function(){"use strict";var e=this.$thisButton.siblings("input.hidden-field").attr("data-field");return _.isString(e)&&""!==e&&_.isObject(this.params.fields[e])&&"upload"===this.params.fields[e].type&&!_.isUndefined(this.params.fields[e].mime_type)?this.params.fields[e].mime_type:"image"},removeImage:function(e){"use strict";var t,i;wp.customize.utils.isKeydownButNotEnterEvent(e)||(i=(t=this.$thisButton.closest(".repeater-field-image,.repeater-field-cropped_image,.repeater-field-upload")).find(".upload-button"),t.find(".kirki-image-attachment").slideUp("fast",function(){jQuery(this).show().html(jQuery(this).data("placeholder"))}),t.find(".hidden-field").val(""),i.text(i.data("label")),this.$thisButton.hide(),t.find("input, textarea, select").trigger("change"))},removeFile:function(e){"use strict";var t,i;wp.customize.utils.isKeydownButNotEnterEvent(e)||(i=(t=this.$thisButton.closest(".repeater-field-upload")).find(".upload-button"),t.find(".kirki-file-attachment").slideUp("fast",function(){jQuery(this).show().html(jQuery(this).data("placeholder"))}),t.find(".hidden-field").val(""),i.text(i.data("label")),this.$thisButton.hide(),t.find("input, textarea, select").trigger("change"))},getValue:function(){"use strict";return JSON.parse(decodeURI(this.setting.get()))},setValue:function(e,t,i){"use strict";var a=e,r=[];i&&(jQuery.each(this.params.fields,function(e,t){"image"!==t.type&&"cropped_image"!==t.type&&"upload"!==t.type||r.push(e)}),jQuery.each(e,function(i,n){jQuery.each(r,function(e,t){_.isUndefined(n[t])||_.isUndefined(n[t].id)||(a[i][t]=n[t].id)})})),this.setting.set(encodeURI(JSON.stringify(a))),t&&this.settingField.trigger("change")},addRow:function(e){"use strict";var t,a,i,r=this,n=r.repeaterTemplate(),s=this.getValue(),o={};if(n){if(t=jQuery.extend(!0,{},r.params.fields),e)for(i in e)e.hasOwnProperty(i)&&t.hasOwnProperty(i)&&(t[i].default=e[i]);for(i in t.index=this.currentIndex,n=n(t),(a=new RepeaterRow(r.currentIndex,jQuery(n).appendTo(r.repeaterFieldsContainer),r.params.row_label,r)).container.on("row:remove",function(e,t){r.deleteRow(t)}),a.container.on("row:update",function(e,t,i,n){r.updateField.call(r,e,t,i,n),a.updateLabel()}),this.rows[this.currentIndex]=a,t)t.hasOwnProperty(i)&&(o[i]=t[i].default);return s[this.currentIndex]=o,this.setValue(s,!0),this.currentIndex++,a}},sort:function(){"use strict";var i=this,e=this.repeaterFieldsContainer.find(".repeater-row"),n=[],a=i.getValue(),r=[],s=[];e.each(function(e,t){n.push(jQuery(t).data("row"))}),jQuery.each(n,function(e,t){r[e]=i.rows[t],r[e].setRowIndex(e),s[e]=a[t]}),i.rows=r,i.setValue(s)},deleteRow:function(e){"use strict";var t,i=this.getValue();for(t in i[e]&&this.rows[e]&&(delete i[e],delete this.rows[e],this.setValue(i,!0)),1,this.rows)this.rows.hasOwnProperty(t)&&this.rows[t]&&(this.rows[t].updateLabel(),0)},updateField:function(e,t,i,n){"use strict";var a,r,s;this.rows[t]&&this.params.fields[i]&&(a=this.params.fields[i].type,r=this.rows[t],s=this.getValue(),n=jQuery(n),_.isUndefined(s[r.rowIndex][i])||(s[r.rowIndex][i]="checkbox"===a?n.is(":checked"):n.val(),this.setValue(s,!0)))},initColorPicker:function(){"use strict";var r=this,e=r.container.find(".color-picker-hex"),t={},i=e.data("field");_.isUndefined(i)||_.isUndefined(r.params.fields[i])||_.isUndefined(r.params.fields[i].palettes)||!_.isObject(r.params.fields[i].palettes)||(t.palettes=r.params.fields[i].palettes),t.change=function(e,t){var i=jQuery(e.target),n=i.closest(".repeater-row").data("row"),a=r.getValue();a[n][i.data("field")]=t.color.toString(),r.setValue(a,!0)},0!==e.length&&e.wpColorPicker(t)},initSelect:function(e,t){"use strict";var i,n,a=this,r=e.container.find(".repeater-field select"),s={};0!==r.length&&(i=r.data("field"),"undefed"!==(n=jQuery(r).data("multiple"))&&jQuery.isNumeric(n)&&1<(n=parseInt(n,10))&&(s.maximumSelectionLength=n),(t=t||{})[i]=t[i]||"",jQuery(r).selectWoo(s).val(t[i]||jQuery(r).val()),this.container.on("change",".repeater-field select",function(e){var t=jQuery(e.target),i=t.closest(".repeater-row").data("row"),n=a.getValue();n[i][t.data("field")]=jQuery(this).val(),a.setValue(n)}))}}),wp.customize.controlConstructor["kirki-slider"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var e=this,t="postMessage"===e.setting.transport?"mousemove change":"change",i=e.container.find('input[type="range"]'),n=e.container.find('input[type="text"]'),a=e.setting._value;n.attr("value",a),i.on("mousemove change",function(){n.attr("value",i.val())}),i.on(t,function(){e.setting.set(i.val())}),n.on("input paste change",function(){i.attr("value",n.val()),e.setting.set(n.val())}),e.container.find(".slider-reset").on("click",function(){n.attr("value",e.params.default),i.attr("value",e.params.default),e.setting.set(n.val())})}}),wp.customize.controlConstructor["kirki-sortable"]=wp.customize.Control.extend({ready:function(){"use strict";var e=this;jQuery(e.container.find("ul.sortable").first()).sortable({update:function(){e.setting.set(e.getNewVal())}}).disableSelection().find("li").each(function(){jQuery(this).find("i.visibility").click(function(){jQuery(this).toggleClass("dashicons-visibility-faint").parents("li:eq(0)").toggleClass("invisible")})}).click(function(){e.setting.set(e.getNewVal())})},getNewVal:function(){var e=jQuery(this.container.find("li")),t=[];return _.each(e,function(e){jQuery(e).hasClass("invisible")||t.push(jQuery(e).data("value"))}),t}}),wp.customize.controlConstructor["kirki-switch"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){"use strict";var e=this,t=e.setting._value;this.container.on("change","input",function(){t=!!jQuery(this).is(":checked"),e.setting.set(t)})}}),wp.customize.controlConstructor["kirki-toggle"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var e=this,t=e.setting._value;this.container.on("change","input",function(){t=!!jQuery(this).is(":checked"),e.setting.set(t)})}}),wp.customize.controlConstructor["kirki-typography"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){"use strict";var e,t=this,i=t.setting._value;t.renderFontSelector(),t.renderBackupFontSelector(),t.renderVariantSelector(),void 0!==t.params.default["font-size"]&&this.container.on("change keyup paste",".font-size input",function(){t.saveValue("font-size",jQuery(this).val())}),void 0!==t.params.default["line-height"]&&this.container.on("change keyup paste",".line-height input",function(){t.saveValue("line-height",jQuery(this).val())}),void 0!==t.params.default["margin-top"]&&this.container.on("change keyup paste",".margin-top input",function(){t.saveValue("margin-top",jQuery(this).val())}),void 0!==t.params.default["margin-bottom"]&&this.container.on("change keyup paste",".margin-bottom input",function(){t.saveValue("margin-bottom",jQuery(this).val())}),void 0!==t.params.default["letter-spacing"]&&(i["letter-spacing"]=jQuery.isNumeric(i["letter-spacing"])?i["letter-spacing"]+"px":i["letter-spacing"],this.container.on("change keyup paste",".letter-spacing input",function(){i["letter-spacing"]=jQuery.isNumeric(jQuery(this).val())?jQuery(this).val()+"px":jQuery(this).val(),t.saveValue("letter-spacing",i["letter-spacing"])})),void 0!==t.params.default["word-spacing"]&&this.container.on("change keyup paste",".word-spacing input",function(){t.saveValue("word-spacing",jQuery(this).val())}),void 0!==t.params.default["text-align"]&&this.container.on("change",".text-align input",function(){t.saveValue("text-align",jQuery(this).val())}),void 0!==t.params.default["text-transform"]&&jQuery(t.selector+" .text-transform select").selectWoo().on("change",function(){t.saveValue("text-transform",jQuery(this).val())}),void 0!==t.params.default["text-decoration"]&&jQuery(t.selector+" .text-decoration select").selectWoo().on("change",function(){t.saveValue("text-decoration",jQuery(this).val())}),void 0!==t.params.default.color&&(e=this.container.find(".kirki-color-control")).wpColorPicker({change:function(){setTimeout(function(){t.saveValue("color",e.val())},100)}})},renderFontSelector:function(){var e,t,i=this,n=i.selector+" .font-family select",a=[],r=[],s=[],o=i.setting._value,c=i.getFonts();_.isUndefined(c.standard)||_.each(c.standard,function(e){r.push({id:e.family.replace(/&quot;/g,"&#39"),text:e.label})}),_.isUndefined(c.google)||_.each(c.google,function(e){s.push({id:e.family,text:e.family})}),t={},_.isUndefined(i.params)||_.isUndefined(i.params.choices)||_.isUndefined(i.params.choices.fonts)||_.isUndefined(i.params.choices.fonts.families)||(t=i.params.choices.fonts.families),a=jQuery.extend({},t,{default:{text:kirkiL10n.defaultCSSValues,children:[{id:"",text:kirkiL10n.defaultBrowserFamily},{id:"initial",text:"initial"},{id:"inherit",text:"inherit"}]},standard:{text:kirkiL10n.standardFonts,children:r},google:{text:kirkiL10n.googleFonts,children:s}}),kirkiL10n.isScriptDebug&&(console.info('Kirki Debug: Font families for control "'+i.id+'":'),console.info(a)),a=_.values(a),e=jQuery(n).selectWoo({data:a}),!o["font-family"]&&""!==o["font-family"]||(o["font-family"]=kirki.util.parseHtmlEntities(o["font-family"].replace(/'/g,'"')),e.val(o["font-family"]).trigger("change")),e.on("change",function(){i.saveValue("font-family",jQuery(this).val()),i.renderBackupFontSelector(),i.renderVariantSelector()})},renderBackupFontSelector:function(){var e,t=this,i=t.selector+" .font-backup select",n=[],a=t.setting._value,r=a["font-family"],s=t.getFonts();!_.isUndefined(a["font-backup"])&&null!==a["font-backup"]||(a["font-backup"]=""),"inherit"!==r&&"initial"!==r&&"google"===kirki.util.webfonts.getFontType(r)?(jQuery(t.selector+" .font-backup").show(),_.isUndefined(s.standard)||_.each(s.standard,function(e){n.push({id:e.family.replace(/&quot;/g,"&#39"),text:e.label})}),e=jQuery(i).selectWoo({data:n}),void 0!==a["font-backup"]&&e.val(a["font-backup"].replace(/'/g,'"')).trigger("change"),e.on("change",function(){t.saveValue("font-backup",jQuery(this).val())})):jQuery(t.selector+" .font-backup").hide()},renderVariantSelector:function(){var e,t,i,n=this,a=n.setting._value,r=a["font-family"],s=n.selector+" .variant select",o=[],c=!1,l=kirki.util.webfonts.getFontType(r),u=["","regular","italic","700","700italic"];if("google"===l&&(u=kirki.util.webfonts.google.getVariants(r)),_.isUndefined(n.params)||_.isUndefined(n.params.choices)||_.isUndefined(n.params.choices.fonts)||_.isUndefined(n.params.choices.fonts.variants)||_.isUndefined(n.params.choices.fonts.variants[r])||(u=n.params.choices.fonts.variants[r]),kirkiL10n.isScriptDebug&&(console.info('Kirki Debug: Font variants for font-family "'+r+'":'),console.info(u)),"inherit"!==r&&"initial"!==r&&""!==r||(a.variant="inherit",u=[""],jQuery(n.selector+" .variant").hide()),u.length<=1)return jQuery(n.selector+" .variant").hide(),a.variant=u[0],n.saveValue("variant",a.variant),i=""!==a.variant&&a.variant?(e=_.isString(a.variant)?a.variant.match(/\d/g):"400",e=_.isObject(e)?e.join(""):"400",a.variant&&-1!==a.variant.indexOf("italic")?"italic":"normal"):e="",n.saveValue("font-weight",e),void n.saveValue("font-style",i);jQuery(n.selector+" .font-backup").show(),jQuery(n.selector+" .variant").show(),_.each(u,function(e){a.variant===e&&(c=!0),o.push({id:e,text:e})}),c||(a.variant="regular"),jQuery(s).hasClass("select2-hidden-accessible")&&(jQuery(s).selectWoo("destroy"),jQuery(s).empty()),(t=jQuery(s).selectWoo({data:o})).val(a.variant).trigger("change"),t.on("change",function(){n.saveValue("variant",jQuery(this).val()),"string"!=typeof a.variant&&(a.variant=u[0]),e=_.isString(a.variant)?a.variant.match(/\d/g):"400",e=_.isObject(e)?e.join(""):"400",i=-1!==a.variant.indexOf("italic")?"italic":"normal",n.saveValue("font-weight",e),n.saveValue("font-style",i)})},getFonts:function(){var e=this,t=kirki.util.webfonts.google.getFonts(),i={},n="alpha",a=0,r={};return _.isEmpty(e.params.choices.fonts.google)?i=kirki.util.webfonts.google.getFonts(n,"",a):"alpha"===e.params.choices.fonts.google[0]||"popularity"===e.params.choices.fonts.google[0]||"trending"===e.params.choices.fonts.google[0]?(n=e.params.choices.fonts.google[0],isNaN(e.params.choices.fonts.google[1])||(a=parseInt(e.params.choices.fonts.google[1],10)),i=kirki.util.webfonts.google.getFonts(n,"",a)):_.each(e.params.choices.fonts.google,function(e){void 0===t[e]||_.isEmpty(t[e])||(i[e]=t[e])}),_.isEmpty(e.params.choices.fonts.standard)?_.each(kirki.util.webfonts.standard.fonts,function(e,t){r[t]={family:e.stack,label:e.label}}):_.each(e.params.choices.fonts.standard,function(e){void 0===kirki.util.webfonts.standard.fonts[e]||_.isEmpty(kirki.util.webfonts.standard.fonts[e])?r[e]={family:e,label:e}:(r[e]={},"undefined"===kirki.util.webfonts.standard.fonts[e].stack||_.isEmpty(kirki.util.webfonts.standard.fonts[e].stack)?r[e].family=i[e]:r[e].family=kirki.util.webfonts.standard.fonts[e].stack,"undefined"===kirki.util.webfonts.standard.fonts[e].label||_.isEmpty(kirki.util.webfonts.standard.fonts[e].label)?_.isEmpty(r[e])||(r[e].label=r[e]):r[e].label=kirki.util.webfonts.standard.fonts[e].label)}),{google:i,standard:r}},saveValue:function(e,t){var i=this.container.find(".typography-hidden-value"),n=this.setting._value;n[e]=t,jQuery(i).attr("value",JSON.stringify(n)).trigger("change"),this.setting.set(n)}});
1
+ if(_.isUndefined(window.kirkiSetSettingValue))var kirkiSetSettingValue={set:function(i,n){var e,a=this,t=wp.customize.settings.controls[i];if(_.isUndefined(t))return!0;switch(a.setValue(i,n),t.type){case"kirki-background":_.isUndefined(n["background-color"])||a.setColorPicker(a.findElement(i,".kirki-color-control"),n["background-color"]),a.findElement(i,".placeholder, .thumbnail").removeClass().addClass("placeholder").html("No file selected"),_.each(["background-repeat","background-position"],function(e){_.isUndefined(n[e])||a.setSelectWoo(a.findElement(i,"."+e+" select"),n[e])}),_.each(["background-size","background-attachment"],function(e){jQuery(a.findElement(i,"."+e+' input[value="'+n+'"]')).prop("checked",!0)}),e=JSON.stringify(n).replace(/'/g,"&#39"),jQuery(a.findElement(i,".background-hidden-value").attr("value",e)).trigger("change");break;case"kirki-code":jQuery(a.findElement(i,".CodeMirror"))[0].CodeMirror.setValue(n);break;case"checkbox":case"kirki-switch":case"kirki-toggle":n=1===n||"1"===n||!0===n,jQuery(a.findElement(i,"input")).prop("checked",n),wp.customize.instance(i).set(n);break;case"kirki-select":a.setSelectWoo(a.findElement(i,"select"),n);break;case"kirki-slider":jQuery(a.findElement(i,"input")).prop("value",n),jQuery(a.findElement(i,".kirki_range_value .value")).html(n);break;case"kirki-generic":(_.isUndefined(t.choices)||_.isUndefined(t.choices.element))&&(t.choices.element="input"),jQuery(a.findElement(i,t.choices.element)).prop("value",n);break;case"kirki-color":a.setColorPicker(a.findElement(i,".kirki-color-control"),n);break;case"kirki-multicheck":a.findElement(i,"input").each(function(){jQuery(this).prop("checked",!1)}),_.each(n,function(e,t){jQuery(a.findElement(i,'input[value="'+n[t]+'"]')).prop("checked",!0)});break;case"kirki-multicolor":_.each(n,function(e,t){a.setColorPicker(a.findElement(i,".multicolor-index-"+t),e)});break;case"kirki-radio-buttonset":case"kirki-radio-image":case"kirki-radio":case"kirki-dashicons":case"kirki-color-palette":case"kirki-palette":jQuery(a.findElement(i,'input[value="'+n+'"]')).prop("checked",!0);break;case"kirki-typography":_.each(["font-family","variant"],function(e){_.isUndefined(n[e])||a.setSelectWoo(a.findElement(i,"."+e+" select"),n[e])}),_.each(["font-size","line-height","letter-spacing","word-spacing"],function(e){_.isUndefined(n[e])||jQuery(a.findElement(i,"."+e+" input")).prop("value",n[e])}),_.isUndefined(n.color)||a.setColorPicker(a.findElement(i,".kirki-color-control"),n.color),e=JSON.stringify(n).replace(/'/g,"&#39"),jQuery(a.findElement(i,".typography-hidden-value").attr("value",e)).trigger("change");break;case"kirki-dimensions":_.each(n,function(e,t){jQuery(a.findElement(i,"."+t+" input")).prop("value",e)});break;case"kirki-repeater":case"kirki-custom":break;default:jQuery(a.findElement(i,"input")).prop("value",n)}},setColorPicker:function(e,t){e.attr("data-default-color",t).data("default-color",t).wpColorPicker("color",t)},setSelectWoo:function(e,t){jQuery(e).selectWoo().val(t).trigger("change")},setTextarea:function(e,t){jQuery(e).prop("value",t)},findElement:function(e,t){return wp.customize.control(e).container.find(t)},setValue:function(e,t,i){i=_.isUndefined(i)?100:parseInt(i,10),wp.customize.instance(e).set({}),setTimeout(function(){wp.customize.instance(e).set(t)},i)}};(kirki={initialized:!1,initialize:function(){this.initialized||(setTimeout(function(){kirki.util.webfonts.standard.initialize(),kirki.util.webfonts.google.initialize()},150),this.initialized=!0)}}).initialize();var kirki=kirki||{};kirki=(kirki=jQuery.extend(kirki,{control:{"kirki-radio":{init:function(e){this.template(e),kirki.input.radio.init(e)},template:function(e){var t=wp.template("kirki-input-radio");e.container.html(t({label:e.params.label,description:e.params.description,"data-id":e.id,inputAttrs:e.params.inputAttrs,default:e.params.default,value:kirki.setting.get(e.id),choices:e.params.choices}))}},"kirki-color":{init:function(e){this.template(e),kirki.input.color.init(e)},template:function(e){var t=wp.template("kirki-input-color");e.container.html(t({label:e.params.label,description:e.params.description,"data-id":e.id,mode:e.params.mode,inputAttrs:e.params.inputAttrs,"data-palette":e.params.palette,"data-default-color":e.params.default,"data-alpha":e.params.choices.alpha,value:kirki.setting.get(e.id)}))}},"kirki-generic":{init:function(e){this.template(e),_.isUndefined(e.params)||_.isUndefined(e.params.choices)||_.isUndefined(e.params.choices.element)||"textarea"!==e.params.choices.element?kirki.input.genericInput.init(e):kirki.input.textarea.init(e)},template:function(e){var t,i={label:e.params.label,description:e.params.description,"data-id":e.id,inputAttrs:e.params.inputAttrs,choices:e.params.choices,value:kirki.setting.get(e.id)};if(!_.isUndefined(e.params)&&!_.isUndefined(e.params.choices)&&!_.isUndefined(e.params.choices.element)&&"textarea"===e.params.choices.element)return t=wp.template("kirki-input-textarea"),void e.container.html(t(i));t=wp.template("kirki-input-generic"),e.container.html(t(i))}},"kirki-number":{init:function(e){this.template(e),kirki.input.number.init(e)},template:function(e){var t=wp.template("kirki-input-number");e.container.html(t(args={label:e.params.label,description:e.params.description,"data-id":e.id,inputAttrs:e.params.inputAttrs,choices:e.params.choices,value:kirki.setting.get(e.id)}))}},"kirki-image":{init:function(e){this.template(e),kirki.input.image.init(e)},template:function(e){var t=wp.template("kirki-input-image");e.container.html(t(args={label:e.params.label,description:e.params.description,"data-id":e.id,inputAttrs:e.params.inputAttrs,choices:e.params.choices,value:kirki.setting.get(e.id)}))}},"kirki-select":{init:function(e){this.template(e),kirki.input.select.init(e)},template:function(e){var t=wp.template("kirki-input-select");e.container.html(t({label:e.params.label,description:e.params.description,"data-id":e.id,inputAttrs:e.params.inputAttrs,choices:e.params.choices,value:kirki.setting.get(e.id),multiple:e.params.multiple||1,placeholder:e.params.placeholder}))}}}}))||{},kirki=(kirki=jQuery.extend(kirki,{input:{radio:{init:function(e){jQuery('input[data-id="'+e.id+'"]').on("change keyup paste click",function(){kirki.setting.set(e.id,jQuery(this).val())})}},color:{init:function(e){var t,i=jQuery('.kirki-color-control[data-id="'+e.id+'"]');e.choices=e.choices||{},_.isEmpty(e.choices)&&e.params.choices&&(e.choices=e.params.choices),_.isEmpty(e.choices)||i.wpColorPicker(e.choices),setTimeout(function(){(t=jQuery('.kirki-input-container[data-id="'+e.id+'"] .wp-picker-clear')).length&&t.click(function(){kirki.setting.set(e.id,"")})},200),i.wpColorPicker({change:function(){setTimeout(function(){kirki.setting.set(e.id,i.val())},20)}})}},genericInput:{init:function(e){jQuery('input[data-id="'+e.id+'"]').on("change keyup paste click",function(){kirki.setting.set(e.id,jQuery(this).val())})}},textarea:{init:function(e){jQuery('textarea[data-id="'+e.id+'"]').on("change keyup paste click",function(){kirki.setting.set(e.id,jQuery(this).val())})}},select:{init:function(e){var t,i=jQuery('select[data-id="'+e.id+'"]'),n=parseInt(i.data("multiple"),10),a={escapeMarkup:function(e){return e}};e.params.placeholder&&(a.placeholder=e.params.placeholder,a.allowClear=!0),1<n&&(a.maximumSelectionLength=n),jQuery(i).selectWoo(a).on("change",function(){t=null===(t=jQuery(this).val())&&1<n?[]:t,kirki.setting.set(e.id,t)})}},number:{init:function(i){var e,t,n=jQuery('input[data-id="'+i.id+'"]'),a=i.setting._value;i.params.choices=_.defaults(i.params.choices,{min:0,max:100,step:1}),!isNaN(a)&&""!==a||(a=i.params.choices.min<0&&0<i.params.choices.max?0:i.params.choices.min),a=parseFloat(a),i.params.choices.step="any"===i.params.choices.step?.001:i.params.choices.step,i.params.choices.min=parseFloat(i.params.choices.min),i.params.choices.max=parseFloat(i.params.choices.max),i.params.choices.step=parseFloat(i.params.choices.step),e=jQuery('.kirki-input-container[data-id="'+i.id+'"] .plus'),t=jQuery('.kirki-input-container[data-id="'+i.id+'"] .minus'),e.click(function(){var e,t=parseFloat(n.val());e=t>=i.params.choices.max?t:t+i.params.choices.step,n.val(e),n.trigger("change")}),t.click(function(){var e,t=parseFloat(n.val());e=t<=i.params.choices.min?t:t-i.params.choices.step,n.val(e),n.trigger("change")}),n.on("change keyup paste click",function(){var e=jQuery(this).val();isNaN(e)&&(e=parseFloat(e,10),e=isNaN(e)?0:e,jQuery(this).attr("value",e)),kirki.setting.set(i.id,e)})}},image:{init:function(a){var t=kirki.setting.get(a.id),n=_.isUndefined(a.params.choices)||_.isUndefined(a.params.choices.save_as)?"url":a.params.choices.save_as,r=a.container.find(".placeholder, .thumbnail"),e="array"===n?t.url:t,s=a.container.find(".image-upload-remove-button"),o=a.container.find(".image-default-button");t="array"===n&&_.isString(t)?{url:t}:t,"id"!==n&&"ID"!==n||""===t||wp.media.attachment(t).fetch().then(function(){setTimeout(function(){var e=wp.media.attachment(t).get("url");r.removeClass().addClass("thumbnail thumbnail-image").html('<img src="'+e+'" alt="" />')},700)}),("url"===n&&""!==t||"array"===n&&!_.isUndefined(t.url)&&""!==t.url)&&a.container.find("image-default-button").hide(),("url"===n&&""===t||"array"===n&&(_.isUndefined(t.url)||""===t.url))&&s.hide(),t===a.params.default&&a.container.find("image-default-button").hide(),""!==e&&r.removeClass().addClass("thumbnail thumbnail-image").html('<img src="'+e+'" alt="" />'),a.container.on("click",".image-upload-button",function(e){var i=wp.media({multiple:!1}).open().on("select",function(){var e=i.state().get("selection").first().toJSON(),t=e.url;_.isUndefined(e.sizes)||(t=e.sizes.full.url,_.isUndefined(e.sizes.medium)?_.isUndefined(e.sizes.thumbnail)||(t=e.sizes.thumbnail.url):t=e.sizes.medium.url),"array"===n?kirki.setting.set(a.id,{id:e.id,url:e.sizes.full.url,width:e.width,height:e.height}):"id"===n?kirki.setting.set(a.id,e.id):kirki.setting.set(a.id,_.isUndefined(e.sizes)?e.url:e.sizes.full.url),r.length&&r.removeClass().addClass("thumbnail thumbnail-image").html('<img src="'+t+'" alt="" />'),s.length&&(s.show(),o.hide())});e.preventDefault()}),a.container.on("click",".image-upload-remove-button",function(e){var t,i,n;e.preventDefault(),kirki.setting.set(a.id,""),t=a.container.find(".placeholder, .thumbnail"),i=a.container.find(".image-upload-remove-button"),n=a.container.find(".image-default-button"),t.length&&t.removeClass().addClass("placeholder").html(kirkiL10n.noFileSelected),i.length&&(i.hide(),jQuery(n).hasClass("button")&&n.show())}),a.container.on("click",".image-default-button",function(e){var t,i,n;e.preventDefault(),kirki.setting.set(a.id,a.params.default),t=a.container.find(".placeholder, .thumbnail"),i=a.container.find(".image-upload-remove-button"),n=a.container.find(".image-default-button"),t.length&&t.removeClass().addClass("thumbnail thumbnail-image").html('<img src="'+a.params.default+'" alt="" />'),i.length&&(i.show(),n.hide())})}}}}))||{},kirki=(kirki=jQuery.extend(kirki,{setting:{get:function(e){var t=e.split("["),i="",n=0,a="";return _.each(t,function(e,t){e=e.replace("]",""),0===t?i=e:i+="["+e+"]",_.isUndefined(wp.customize.instance(i))||(a=wp.customize.instance(i).get(),n=t),n<t&&_.isObject(a)&&!_.isUndefined(a[e])&&(a=a[e])}),a},set:function(e,t,i){var n,a,r,s,o,c="",l="",u={};n=e,_.isObject(e)&&(n=jQuery(e).attr("data-id")?e.attr("data-id"):e.parents("[data-id]").attr("data-id")),void 0===wp.customize.control(n)?(a=n.split("["),_.each(a,function(e,t){e=e.replace("]",""),c=0===t?e:"["+e+"]",_.isUndefined(wp.customize.instance(c))||(l=c,r=wp.customize.instance(l).get())}),""!==(s=n.replace(l,""))?(_.isObject(r)||(r={}),"["===s.charAt(0)&&(s=s.replace("[","")),o=s.split("["),_.each(o,function(e,t){o[t]=e.replace("]","")}),i&&o.push(i),u='{"'+o.join('":{"')+'":"'+t+'"'+"}".repeat(o.length),u=JSON.parse(u),jQuery.extend(!0,r,u),t=r):i&&((r=_.isObject(r)?r:{})[i]=t,t=r),wp.customize.control(l).setting.set(t)):wp.customize.control(n).setting.set(t)}}}))||{};kirki=jQuery.extend(kirki,{util:{webfonts:{google:{fonts:{},initialize:function(){this.setFonts()},setFonts:function(){var t=this;_.isEmpty(t.fonts)&&jQuery.post(ajaxurl,{action:"kirki_fonts_google_all_get"},function(e){t.fonts=JSON.parse(e)})},getFont:function(e){var t=this.getFonts();return void 0!==t[e]&&t[e]},getFonts:function(e,i,t){var n=this,a={},r={},s={};return e="alpha"!==(e=e||"alpha")&&"popularity"!==e&&"trending"!==e?"alpha":e,t=t||0,t=parseInt(t,10),"alpha"===e?a=jQuery.extend({},n.fonts.items):_.each(n.fonts.order[e],function(e){a[e]=n.fonts.items[e]}),""!==i&&i?_.each(a,function(e,t){i===e.category&&(r[t]=e)}):r=a,0<t?(_.each(_.first(_.keys(r),t),function(e){s[e]=r[e]}),s):r},getVariants:function(e){var t=this.getFont(e);return!!t&&(!_.isUndefined(t.variants)&&t.variants)}},standard:{fonts:{},initialize:function(){this.setFonts()},setFonts:function(){var t=this;_.isEmpty(t.fonts)&&jQuery.post(ajaxurl,{action:"kirki_fonts_standard_all_get"},function(e){t.fonts=JSON.parse(e)})},getVariants:function(){return["regular","italic","700","700italic"]}},getFontType:function(e){return void 0!==this.standard.fonts[e]||void 0!==this.standard.fonts.stack&&void 0!==this.standard.fonts.stack[e]?"standard":void 0!==this.google.fonts.items[e]&&"google"}},validate:{cssValue:function(e){var t,i;return"string"!=typeof e||"number"!=typeof e||(0===e||"0"===e||"auto"===e||"inherit"===e||"initial"===e||(0<=e.indexOf("calc(")&&0<=e.indexOf(")")||(t=parseFloat(e),i=e.replace(t,""),e?!isNaN(t)&&-1<jQuery.inArray(i,["fr","rem","em","ex","%","px","cm","mm","in","pt","pc","ch","vh","vw","vmin","vmax"]):void 0)))}},parseHtmlEntities:function(e){return(new DOMParser).parseFromString("<!doctype html><body>"+e,"text/html").body.textContent}}}),function(){"use strict";wp.customize.kirkiDynamicControl=wp.customize.Control.extend({initialize:function(e,t){var i=t||{};i.params=i.params||{},i.params.type||(i.params.type="kirki-generic"),i.params.content||(i.params.content=jQuery("<li></li>"),i.params.content.attr("id","customize-control-"+e.replace(/]/g,"").replace(/\[/g,"-")),i.params.content.attr("class","customize-control customize-control-"+i.params.type)),this.propertyElements=[],wp.customize.Control.prototype.initialize.call(this,e,i)},_setUpSettingRootLinks:function(){var n=this;n.container.find("[data-customize-setting-link]").each(function(){var i=jQuery(this);wp.customize(i.data("customizeSettingLink"),function(e){var t=new wp.customize.Element(i);n.elements.push(t),t.sync(e),t.set(e())})})},_setUpSettingPropertyLinks:function(){var n=this;n.setting&&n.container.find("[data-customize-setting-property-link]").each(function(){var t,e=jQuery(this),i=e.data("customizeSettingPropertyLink");t=new wp.customize.Element(e),n.propertyElements.push(t),t.set(n.setting()[i]),t.bind(function(e){var t=n.setting();e!==t[i]&&((t=_.clone(t))[i]=e,n.setting.set(t))}),n.setting.bind(function(e){e[i]!==t.get()&&t.set(e[i])})})},ready:function(){var e=this;e._setUpSettingRootLinks(),e._setUpSettingPropertyLinks(),wp.customize.Control.prototype.ready.call(e),e.deferred.embedded.done(function(){e.initKirkiControl(e)})},embed:function(){var t=this,e=t.section();e&&wp.customize.section(e,function(e){"kirki-expanded"===e.params.type||e.expanded()||wp.customize.settings.autofocus.control===t.id?t.actuallyEmbed():e.expanded.bind(function(e){e&&t.actuallyEmbed()})})},actuallyEmbed:function(){"resolved"!==this.deferred.embedded.state()&&(this.renderContent(),this.deferred.embedded.resolve())},focus:function(e){this.actuallyEmbed(),wp.customize.Control.prototype.focus.call(this,e)},initKirkiControl:function(e){void 0===kirki.control[e.params.type]?this.container.on("change keyup paste click","input",function(){e.setting.set(jQuery(this).val())}):kirki.control[e.params.type].init(e)}})}(),_.each(kirki.control,function(e,t){wp.customize.controlConstructor[t]=wp.customize.kirkiDynamicControl.extend({})}),wp.customize.controlConstructor["kirki-background"]=wp.customize.Control.extend({ready:function(){"use strict";!_.isUndefined(window.kirkiControlLoader)&&_.isFunction(kirkiControlLoader)?kirkiControlLoader(this):this.initKirkiControl()},initKirkiControl:function(){var s=this,e=s.setting._value,t=s.container.find(".kirki-color-control");!_.isUndefined(e["background-image"])&&""!==e["background-image"]||(s.container.find(".background-wrapper > .background-repeat").hide(),s.container.find(".background-wrapper > .background-position").hide(),s.container.find(".background-wrapper > .background-size").hide(),s.container.find(".background-wrapper > .background-attachment").hide()),t.wpColorPicker({change:function(){setTimeout(function(){s.saveValue("background-color",t.val())},100)}}),s.container.on("change",".background-repeat select",function(){s.saveValue("background-repeat",jQuery(this).val())}),s.container.on("change click",".background-size input",function(){s.saveValue("background-size",jQuery(this).val())}),s.container.on("change",".background-position select",function(){s.saveValue("background-position",jQuery(this).val())}),s.container.on("change click",".background-attachment input",function(){s.saveValue("background-attachment",jQuery(this).val())}),s.container.on("click",".background-image-upload-button",function(e){var r=wp.media({multiple:!1}).open().on("select",function(){var e,t,i,n=r.state().get("selection").first(),a=n.toJSON().sizes.full.url;_.isUndefined(n.toJSON().sizes.medium)?_.isUndefined(n.toJSON().sizes.thumbnail)||(a=n.toJSON().sizes.thumbnail.url):a=n.toJSON().sizes.medium.url,e=n.toJSON().sizes.full.url,n.toJSON().id,n.toJSON().width,n.toJSON().height,""!==e&&s.container.find(".background-wrapper > .background-repeat, .background-wrapper > .background-position, .background-wrapper > .background-size, .background-wrapper > .background-attachment").show(),s.saveValue("background-image",e),t=s.container.find(".placeholder, .thumbnail"),i=s.container.find(".background-image-upload-remove-button"),t.length&&t.removeClass().addClass("thumbnail thumbnail-image").html('<img src="'+a+'" alt="" />'),i.length&&i.show()});e.preventDefault()}),s.container.on("click",".background-image-upload-remove-button",function(e){var t,i;e.preventDefault(),s.saveValue("background-image",""),t=s.container.find(".placeholder, .thumbnail"),i=s.container.find(".background-image-upload-remove-button"),s.container.find(".background-wrapper > .background-repeat").hide(),s.container.find(".background-wrapper > .background-position").hide(),s.container.find(".background-wrapper > .background-size").hide(),s.container.find(".background-wrapper > .background-attachment").hide(),t.length&&t.removeClass().addClass("placeholder").html("No file selected"),i.length&&i.hide()})},saveValue:function(e,t){var i=jQuery("#customize-control-"+this.id.replace("[","-").replace("]","")+" .background-hidden-value"),n=this.setting._value;n[e]=t,jQuery(i).attr("value",JSON.stringify(n)).trigger("change"),this.setting.set(n)}}),wp.customize.controlConstructor["kirki-color-palette"]=wp.customize.kirkiDynamicControl.extend({}),wp.customize.controlConstructor["kirki-dashicons"]=wp.customize.kirkiDynamicControl.extend({}),wp.customize.controlConstructor["kirki-date"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var e=this,t=e.selector+" input.datepicker";jQuery(t).datepicker({dateFormat:"yy-mm-dd"}),this.container.on("change keyup paste","input.datepicker",function(){e.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor["kirki-dimension"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var e,t=this;t.kirkiNotifications(),this.container.on("change keyup paste","input",function(){e=jQuery(this).val(),t.setting.set(e)})},kirkiNotifications:function(){var n=void 0!==this.params.choices&&void 0!==this.params.choices.accept_unitless&&!0===this.params.choices.accept_unitless;wp.customize(this.id,function(i){i.bind(function(e){var t="long_title";!1!==kirki.util.validate.cssValue(e)||n&&!isNaN(e)?i.notifications.remove(t):i.notifications.add(t,new wp.customize.Notification(t,{type:"warning",message:dimensionkirkiL10n["invalid-value"]}))})})}}),wp.customize.controlConstructor["kirki-dimensions"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var e,t=this.params.choices.controls,i={},n=[];for(_.each(t,function(e,t){!0===e&&n.push(t)}),e=0;e<n.length;e++)i[n[e]]=this.setting._value[n[e]],this.updateDimensionsValue(n[e],i)},updateDimensionsValue:function(e,t){var i=this;i.container.on("change keyup paste","."+e+" input",function(){t[e]=jQuery(this).val(),i.kirkiNotifications(),i.saveValue(t)})},saveValue:function(e){var i={};_.each(e,function(e,t){i[t]=e}),this.setting.set(i)},kirkiNotifications:function(){wp.customize(this.id,function(a){a.bind(function(e){var t,i="long_title",n={};if(a.notifications.remove(i),_.each(e,function(e,t){!1===kirki.util.validate.cssValue(e)?n[t]=e:delete n[t]}),!_.isEmpty(n))return t=dimensionskirkiL10n["invalid-value"]+" ("+_.values(n).toString()+") ",void a.notifications.add(i,new wp.customize.Notification(i,{type:"warning",message:t}));a.notifications.remove(i)})})}}),wp.customize.controlConstructor["kirki-editor"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var i,n=this,a=n.container.find("textarea"),e="kirki-editor-"+n.id.replace("[","").replace("]","");wp.editor&&wp.editor.initialize&&wp.editor.initialize(e,{tinymce:{wpautop:!0},quicktags:!0,mediaButtons:!0}),(i=tinyMCE.get(e))&&i.onChange.add(function(e){var t;e.save(),t=i.getContent(),a.val(t).trigger("change"),wp.customize.instance(n.id).set(t)})}}),wp.customize.controlConstructor["kirki-multicheck"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var n=this;n.container.on("change","input",function(){var t=[],i=0;jQuery.each(n.params.choices,function(e){n.container.find('input[value="'+e+'"]').is(":checked")?(n.container.find('input[value="'+e+'"]').parent().addClass("checked"),t[i]=e,i++):n.container.find('input[value="'+e+'"]').parent().removeClass("checked")}),n.setting.set(t)})}}),wp.customize.controlConstructor["kirki-multicolor"]=wp.customize.Control.extend({ready:function(){"use strict";!_.isUndefined(window.kirkiControlLoader)&&_.isFunction(kirkiControlLoader)?kirkiControlLoader(this):this.initKirkiControl()},initKirkiControl:function(){"use strict";var r=this.params.choices,e=Object.keys(r),t=(this.params.value,0);function i(e,t,i){var n=e.container.find(".multicolor-index-"+i),a={change:function(){setTimeout(function(){e.saveValue(i,n.val()),e.container.find(".multicolor-index-"+i).trigger("change")},100)}};_.isObject(r.irisArgs)&&_.each(r.irisArgs,function(e,t){a[t]=e}),n.wpColorPicker(a)}for(;t<Object.keys(r).length;)i(this,0,e[t]),t++},saveValue:function(e,t){var i=this.container.find(".multicolor-hidden-value"),n=this.setting._value;n[e]=t,jQuery(i).attr("value",JSON.stringify(n)).trigger("change"),this.setting.set(n)}}),wp.customize.controlConstructor["kirki-palette"]=wp.customize.kirkiDynamicControl.extend({}),wp.customize.controlConstructor["kirki-radio-buttonset"]=wp.customize.kirkiDynamicControl.extend({}),wp.customize.controlConstructor["kirki-radio-image"]=wp.customize.kirkiDynamicControl.extend({});var RepeaterRow=function(e,t,i,n){"use strict";var a=this;this.rowIndex=e,this.container=t,this.label=i,this.header=this.container.find(".repeater-row-header"),this.header.on("click",function(){a.toggleMinimize()}),this.container.on("click",".repeater-row-remove",function(){a.remove()}),this.header.on("mousedown",function(){a.container.trigger("row:start-dragging")}),this.container.on("keyup change","input, select, textarea",function(e){a.container.trigger("row:update",[a.rowIndex,jQuery(e.target).data("field"),e.target])}),this.setRowIndex=function(e){this.rowIndex=e,this.container.attr("data-row",e),this.container.data("row",e),this.updateLabel()},this.toggleMinimize=function(){this.container.toggleClass("minimized"),this.header.find(".dashicons").toggleClass("dashicons-arrow-up").toggleClass("dashicons-arrow-down")},this.remove=function(){this.container.slideUp(300,function(){jQuery(this).detach()}),this.container.trigger("row:remove",[this.rowIndex])},this.updateLabel=function(){var e,t,i;if("field"===this.label.type&&(e=this.container.find('.repeater-field [data-field="'+this.label.field+'"]'),_.isFunction(e.val)&&""!==(t=e.val())))return _.isUndefined(n.params.fields[this.label.field])||_.isUndefined(n.params.fields[this.label.field].type)||("select"===n.params.fields[this.label.field].type?_.isUndefined(n.params.fields[this.label.field].choices)||_.isUndefined(n.params.fields[this.label.field].choices[e.val()])||(t=n.params.fields[this.label.field].choices[e.val()]):"radio"!==n.params.fields[this.label.field].type&&"radio-image"!==n.params.fields[this.label.field].type||(i=n.selector+' [data-row="'+this.rowIndex+'"] .repeater-field [data-field="'+this.label.field+'"]:checked',t=jQuery(i).val())),void this.header.find(".repeater-row-label").text(t);this.header.find(".repeater-row-label").text(this.label.value+" "+(this.rowIndex+1))},this.updateLabel()};wp.customize.controlConstructor.repeater=wp.customize.Control.extend({ready:function(){"use strict";!_.isUndefined(window.kirkiControlLoader)&&_.isFunction(kirkiControlLoader)?kirkiControlLoader(this):this.initKirkiControl()},initKirkiControl:function(){"use strict";var t,i,n=this,e=this.params.value;this.settingField=this.container.find("[data-customize-setting-link]").first(),this.setValue([],!1),this.repeaterFieldsContainer=this.container.find(".repeater-fields").first(),this.currentIndex=0,this.rows=[],t=!1,_.isUndefined(this.params.choices.limit)||(t=!(this.params.choices.limit<=0)&&parseInt(this.params.choices.limit,10)),this.container.on("click","button.repeater-add",function(e){e.preventDefault(),!t||n.currentIndex<t?((i=n.addRow()).toggleMinimize(),n.initColorPicker(),n.initSelect(i)):jQuery(n.selector+" .limit").addClass("highlight")}),this.container.on("click",".repeater-row-remove",function(){n.currentIndex--,(!t||n.currentIndex<t)&&jQuery(n.selector+" .limit").removeClass("highlight")}),this.container.on("click keypress",".repeater-field-image .upload-button,.repeater-field-cropped_image .upload-button,.repeater-field-upload .upload-button",function(e){e.preventDefault(),n.$thisButton=jQuery(this),n.openFrame(e)}),this.container.on("click keypress",".repeater-field-image .remove-button,.repeater-field-cropped_image .remove-button",function(e){e.preventDefault(),n.$thisButton=jQuery(this),n.removeImage(e)}),this.container.on("click keypress",".repeater-field-upload .remove-button",function(e){e.preventDefault(),n.$thisButton=jQuery(this),n.removeFile(e)}),this.repeaterTemplate=_.memoize(function(){var t={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(e){return _.template(n.container.find(".customize-control-repeater-content").first().html(),null,t)(e)}}),e.length&&_.each(e,function(e){i=n.addRow(e),n.initColorPicker(),n.initSelect(i,e)}),this.setValue(e,!0,!0),this.repeaterFieldsContainer.sortable({handle:".repeater-row-header",update:function(){n.sort()}})},openFrame:function(e){"use strict";wp.customize.utils.isKeydownButNotEnterEvent(e)||(this.$thisButton.closest(".repeater-field").hasClass("repeater-field-cropped_image")?this.initCropperFrame():this.initFrame(),this.frame.open())},initFrame:function(){"use strict";var e=this.getMimeType();this.frame=wp.media({states:[new wp.media.controller.Library({library:wp.media.query({type:e}),multiple:!1,date:!1})]}),this.frame.on("select",this.onSelect,this)},initCropperFrame:function(){"use strict";var t=this.$thisButton.siblings("input.hidden-field").attr("data-field"),e=this.getMimeType();_.isString(t)&&""!==t&&_.isObject(this.params.fields[t])&&"cropped_image"===this.params.fields[t].type&&["width","height","flex_width","flex_height"].forEach(function(e){_.isUndefined(this.params.fields[t][e])||(this.params[e]=this.params.fields[t][e])}.bind(this)),this.frame=wp.media({button:{text:"Select and Crop",close:!1},states:[new wp.media.controller.Library({library:wp.media.query({type:e}),multiple:!1,date:!1,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelectForCrop,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){"use strict";var e=this.frame.state().get("selection").first().toJSON();this.$thisButton.closest(".repeater-field").hasClass("repeater-field-upload")?this.setFileInRepeaterField(e):this.setImageInRepeaterField(e)},onSelectForCrop:function(){"use strict";var e=this.frame.state().get("selection").first().toJSON();this.params.width!==e.width||this.params.height!==e.height||this.params.flex_width||this.params.flex_height?this.frame.setState("cropper"):this.setImageInRepeaterField(e)},onCropped:function(e){"use strict";this.setImageInRepeaterField(e)},calculateImageSelectOptions:function(e,t){"use strict";var i,n,a,r=t.get("control"),s=!!parseInt(r.params.flex_width,10),o=!!parseInt(r.params.flex_height,10),c=e.get("width"),l=e.get("height"),u=parseInt(r.params.width,10),d=parseInt(r.params.height,10),p=u/d,h=c,f=l;return t.set("canSkipCrop",!r.mustBeCropped(s,o,u,d,c,l)),p<h/f?u=(d=f)*p:d=(u=h)/p,!(a={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:c,imageHeight:l,x1:i=(h-u)/2,y1:n=(f-d)/2,x2:u+i,y2:d+n})==o&&!1==s&&(a.aspectRatio=u+":"+d),!1==o&&(a.maxHeight=d),!1==s&&(a.maxWidth=u),a},mustBeCropped:function(e,t,i,n,a,r){"use strict";return!(!0===e&&!0===t||!0===e&&n===r||!0===t&&i===a||i===a&&n===r||a<=i)},onSkippedCrop:function(){"use strict";var e=this.frame.state().get("selection").first().toJSON();this.setImageInRepeaterField(e)},setImageInRepeaterField:function(e){"use strict";var t=this.$thisButton.closest(".repeater-field-image,.repeater-field-cropped_image");t.find(".kirki-image-attachment").html('<img src="'+e.url+'">').hide().slideDown("slow"),t.find(".hidden-field").val(e.id),this.$thisButton.text(this.$thisButton.data("alt-label")),t.find(".remove-button").show(),t.find("input, textarea, select").trigger("change"),this.frame.close()},setFileInRepeaterField:function(e){"use strict";var t=this.$thisButton.closest(".repeater-field-upload");t.find(".kirki-file-attachment").html('<span class="file"><span class="dashicons dashicons-media-default"></span> '+e.filename+"</span>").hide().slideDown("slow"),t.find(".hidden-field").val(e.id),this.$thisButton.text(this.$thisButton.data("alt-label")),t.find(".upload-button").show(),t.find(".remove-button").show(),t.find("input, textarea, select").trigger("change"),this.frame.close()},getMimeType:function(){"use strict";var e=this.$thisButton.siblings("input.hidden-field").attr("data-field");return _.isString(e)&&""!==e&&_.isObject(this.params.fields[e])&&"upload"===this.params.fields[e].type&&!_.isUndefined(this.params.fields[e].mime_type)?this.params.fields[e].mime_type:"image"},removeImage:function(e){"use strict";var t,i;wp.customize.utils.isKeydownButNotEnterEvent(e)||(i=(t=this.$thisButton.closest(".repeater-field-image,.repeater-field-cropped_image,.repeater-field-upload")).find(".upload-button"),t.find(".kirki-image-attachment").slideUp("fast",function(){jQuery(this).show().html(jQuery(this).data("placeholder"))}),t.find(".hidden-field").val(""),i.text(i.data("label")),this.$thisButton.hide(),t.find("input, textarea, select").trigger("change"))},removeFile:function(e){"use strict";var t,i;wp.customize.utils.isKeydownButNotEnterEvent(e)||(i=(t=this.$thisButton.closest(".repeater-field-upload")).find(".upload-button"),t.find(".kirki-file-attachment").slideUp("fast",function(){jQuery(this).show().html(jQuery(this).data("placeholder"))}),t.find(".hidden-field").val(""),i.text(i.data("label")),this.$thisButton.hide(),t.find("input, textarea, select").trigger("change"))},getValue:function(){"use strict";return JSON.parse(decodeURI(this.setting.get()))},setValue:function(e,t,i){"use strict";var a=e,r=[];i&&(jQuery.each(this.params.fields,function(e,t){"image"!==t.type&&"cropped_image"!==t.type&&"upload"!==t.type||r.push(e)}),jQuery.each(e,function(i,n){jQuery.each(r,function(e,t){_.isUndefined(n[t])||_.isUndefined(n[t].id)||(a[i][t]=n[t].id)})})),this.setting.set(encodeURI(JSON.stringify(a))),t&&this.settingField.trigger("change")},addRow:function(e){"use strict";var t,a,i,r=this,n=r.repeaterTemplate(),s=this.getValue(),o={};if(n){if(t=jQuery.extend(!0,{},r.params.fields),e)for(i in e)e.hasOwnProperty(i)&&t.hasOwnProperty(i)&&(t[i].default=e[i]);for(i in t.index=this.currentIndex,n=n(t),(a=new RepeaterRow(r.currentIndex,jQuery(n).appendTo(r.repeaterFieldsContainer),r.params.row_label,r)).container.on("row:remove",function(e,t){r.deleteRow(t)}),a.container.on("row:update",function(e,t,i,n){r.updateField.call(r,e,t,i,n),a.updateLabel()}),this.rows[this.currentIndex]=a,t)t.hasOwnProperty(i)&&(o[i]=t[i].default);return s[this.currentIndex]=o,this.setValue(s,!0),this.currentIndex++,a}},sort:function(){"use strict";var i=this,e=this.repeaterFieldsContainer.find(".repeater-row"),n=[],a=i.getValue(),r=[],s=[];e.each(function(e,t){n.push(jQuery(t).data("row"))}),jQuery.each(n,function(e,t){r[e]=i.rows[t],r[e].setRowIndex(e),s[e]=a[t]}),i.rows=r,i.setValue(s)},deleteRow:function(e){"use strict";var t,i=this.getValue();for(t in i[e]&&this.rows[e]&&(delete i[e],delete this.rows[e],this.setValue(i,!0)),1,this.rows)this.rows.hasOwnProperty(t)&&this.rows[t]&&(this.rows[t].updateLabel(),0)},updateField:function(e,t,i,n){"use strict";var a,r,s;this.rows[t]&&this.params.fields[i]&&(a=this.params.fields[i].type,r=this.rows[t],s=this.getValue(),n=jQuery(n),_.isUndefined(s[r.rowIndex][i])||(s[r.rowIndex][i]="checkbox"===a?n.is(":checked"):n.val(),this.setValue(s,!0)))},initColorPicker:function(){"use strict";var r=this,e=r.container.find(".color-picker-hex"),t={},i=e.data("field");_.isUndefined(i)||_.isUndefined(r.params.fields[i])||_.isUndefined(r.params.fields[i].palettes)||!_.isObject(r.params.fields[i].palettes)||(t.palettes=r.params.fields[i].palettes),t.change=function(e,t){var i=jQuery(e.target),n=i.closest(".repeater-row").data("row"),a=r.getValue();a[n][i.data("field")]=t.color.toString(),r.setValue(a,!0)},0!==e.length&&e.wpColorPicker(t)},initSelect:function(e,t){"use strict";var i,n,a=this,r=e.container.find(".repeater-field select"),s={};0!==r.length&&(i=r.data("field"),"undefed"!==(n=jQuery(r).data("multiple"))&&jQuery.isNumeric(n)&&1<(n=parseInt(n,10))&&(s.maximumSelectionLength=n),(t=t||{})[i]=t[i]||"",jQuery(r).selectWoo(s).val(t[i]||jQuery(r).val()),this.container.on("change",".repeater-field select",function(e){var t=jQuery(e.target),i=t.closest(".repeater-row").data("row"),n=a.getValue();n[i][t.data("field")]=jQuery(this).val(),a.setValue(n)}))}}),wp.customize.controlConstructor["kirki-slider"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var e=this,t="postMessage"===e.setting.transport?"mousemove change":"change",i=e.container.find('input[type="range"]'),n=e.container.find('input[type="text"]'),a=e.setting._value;n.attr("value",a),i.on("mousemove change",function(){n.attr("value",i.val())}),i.on(t,function(){e.setting.set(i.val())}),n.on("input paste change",function(){i.attr("value",n.val()),e.setting.set(n.val())}),e.container.find(".slider-reset").on("click",function(){n.attr("value",e.params.default),i.attr("value",e.params.default),e.setting.set(n.val())})}}),wp.customize.controlConstructor["kirki-sortable"]=wp.customize.Control.extend({ready:function(){"use strict";var e=this;jQuery(e.container.find("ul.sortable").first()).sortable({update:function(){e.setting.set(e.getNewVal())}}).disableSelection().find("li").each(function(){jQuery(this).find("i.visibility").click(function(){jQuery(this).toggleClass("dashicons-visibility-faint").parents("li:eq(0)").toggleClass("invisible")})}).click(function(){e.setting.set(e.getNewVal())})},getNewVal:function(){var e=jQuery(this.container.find("li")),t=[];return _.each(e,function(e){jQuery(e).hasClass("invisible")||t.push(jQuery(e).data("value"))}),t}}),wp.customize.controlConstructor["kirki-switch"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){"use strict";var e=this,t=e.setting._value;this.container.on("change","input",function(){t=!!jQuery(this).is(":checked"),e.setting.set(t)})}}),wp.customize.controlConstructor["kirki-toggle"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){var e=this,t=e.setting._value;this.container.on("change","input",function(){t=!!jQuery(this).is(":checked"),e.setting.set(t)})}}),wp.customize.controlConstructor["kirki-typography"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(){"use strict";var e,t=this,i=t.setting._value;t.renderFontSelector(),t.renderBackupFontSelector(),t.renderVariantSelector(),void 0!==t.params.default["font-size"]&&this.container.on("change keyup paste",".font-size input",function(){t.saveValue("font-size",jQuery(this).val())}),void 0!==t.params.default["line-height"]&&this.container.on("change keyup paste",".line-height input",function(){t.saveValue("line-height",jQuery(this).val())}),void 0!==t.params.default["margin-top"]&&this.container.on("change keyup paste",".margin-top input",function(){t.saveValue("margin-top",jQuery(this).val())}),void 0!==t.params.default["margin-bottom"]&&this.container.on("change keyup paste",".margin-bottom input",function(){t.saveValue("margin-bottom",jQuery(this).val())}),void 0!==t.params.default["letter-spacing"]&&(i["letter-spacing"]=jQuery.isNumeric(i["letter-spacing"])?i["letter-spacing"]+"px":i["letter-spacing"],this.container.on("change keyup paste",".letter-spacing input",function(){i["letter-spacing"]=jQuery.isNumeric(jQuery(this).val())?jQuery(this).val()+"px":jQuery(this).val(),t.saveValue("letter-spacing",i["letter-spacing"])})),void 0!==t.params.default["word-spacing"]&&this.container.on("change keyup paste",".word-spacing input",function(){t.saveValue("word-spacing",jQuery(this).val())}),void 0!==t.params.default["text-align"]&&this.container.on("change",".text-align input",function(){t.saveValue("text-align",jQuery(this).val())}),void 0!==t.params.default["text-transform"]&&jQuery(t.selector+" .text-transform select").selectWoo().on("change",function(){t.saveValue("text-transform",jQuery(this).val())}),void 0!==t.params.default["text-decoration"]&&jQuery(t.selector+" .text-decoration select").selectWoo().on("change",function(){t.saveValue("text-decoration",jQuery(this).val())}),void 0!==t.params.default.color&&(e=this.container.find(".kirki-color-control")).wpColorPicker({change:function(){setTimeout(function(){t.saveValue("color",e.val())},100)}})},renderFontSelector:function(){var e,t,i=this,n=i.selector+" .font-family select",a=[],r=[],s=[],o=i.setting._value,c=i.getFonts();_.isUndefined(c.standard)||_.each(c.standard,function(e){r.push({id:e.family.replace(/&quot;/g,"&#39"),text:e.label})}),_.isUndefined(c.google)||_.each(c.google,function(e){s.push({id:e.family,text:e.family})}),t={},_.isUndefined(i.params)||_.isUndefined(i.params.choices)||_.isUndefined(i.params.choices.fonts)||_.isUndefined(i.params.choices.fonts.families)||(t=i.params.choices.fonts.families),a=jQuery.extend({},t,{default:{text:kirkiL10n.defaultCSSValues,children:[{id:"",text:kirkiL10n.defaultBrowserFamily},{id:"initial",text:"initial"},{id:"inherit",text:"inherit"}]},standard:{text:kirkiL10n.standardFonts,children:r},google:{text:kirkiL10n.googleFonts,children:s}}),kirkiL10n.isScriptDebug&&(console.info('Kirki Debug: Font families for control "'+i.id+'":'),console.info(a)),a=_.values(a),e=jQuery(n).selectWoo({data:a}),!o["font-family"]&&""!==o["font-family"]||(o["font-family"]=kirki.util.parseHtmlEntities(o["font-family"].replace(/'/g,'"')),e.val(o["font-family"]).trigger("change")),e.on("change",function(){i.saveValue("font-family",jQuery(this).val()),i.renderBackupFontSelector(),i.renderVariantSelector()})},renderBackupFontSelector:function(){var e,t=this,i=t.selector+" .font-backup select",n=[],a=t.setting._value,r=a["font-family"],s=t.getFonts();!_.isUndefined(a["font-backup"])&&null!==a["font-backup"]||(a["font-backup"]=""),"inherit"!==r&&"initial"!==r&&"google"===kirki.util.webfonts.getFontType(r)?(jQuery(t.selector+" .font-backup").show(),_.isUndefined(s.standard)||_.each(s.standard,function(e){n.push({id:e.family.replace(/&quot;/g,"&#39"),text:e.label})}),e=jQuery(i).selectWoo({data:n}),void 0!==a["font-backup"]&&e.val(a["font-backup"].replace(/'/g,'"')).trigger("change"),e.on("change",function(){t.saveValue("font-backup",jQuery(this).val())})):jQuery(t.selector+" .font-backup").hide()},renderVariantSelector:function(){var e,t,i,n=this,a=n.setting._value,r=a["font-family"],s=n.selector+" .variant select",o=[],c=!1,l=kirki.util.webfonts.getFontType(r),u=["","regular","italic","700","700italic"];if("google"===l&&(u=kirki.util.webfonts.google.getVariants(r)),_.isUndefined(n.params)||_.isUndefined(n.params.choices)||_.isUndefined(n.params.choices.fonts)||_.isUndefined(n.params.choices.fonts.variants)||_.isUndefined(n.params.choices.fonts.variants[r])||(u=n.params.choices.fonts.variants[r]),kirkiL10n.isScriptDebug&&(console.info('Kirki Debug: Font variants for font-family "'+r+'":'),console.info(u)),"inherit"!==r&&"initial"!==r&&""!==r||(a.variant="inherit",u=[""],jQuery(n.selector+" .variant").hide()),u.length<=1)return jQuery(n.selector+" .variant").hide(),a.variant=u[0],n.saveValue("variant",a.variant),i=""!==a.variant&&a.variant?(e=_.isString(a.variant)?a.variant.match(/\d/g):"400",e=_.isObject(e)?e.join(""):"400",a.variant&&-1!==a.variant.indexOf("italic")?"italic":"normal"):e="",n.saveValue("font-weight",e),void n.saveValue("font-style",i);jQuery(n.selector+" .font-backup").show(),jQuery(n.selector+" .variant").show(),_.each(u,function(e){a.variant===e&&(c=!0),o.push({id:e,text:e})}),c||(a.variant="regular"),jQuery(s).hasClass("select2-hidden-accessible")&&(jQuery(s).selectWoo("destroy"),jQuery(s).empty()),(t=jQuery(s).selectWoo({data:o})).val(a.variant).trigger("change"),t.on("change",function(){n.saveValue("variant",jQuery(this).val()),"string"!=typeof a.variant&&(a.variant=u[0]),e=_.isString(a.variant)?a.variant.match(/\d/g):"400",e=_.isObject(e)?e.join(""):"400",i=-1!==a.variant.indexOf("italic")?"italic":"normal",n.saveValue("font-weight",e),n.saveValue("font-style",i)})},getFonts:function(){var e=this,t=kirki.util.webfonts.google.getFonts(),i={},n="alpha",a=0,r={};return _.isEmpty(e.params.choices.fonts.google)?i=kirki.util.webfonts.google.getFonts(n,"",a):"alpha"===e.params.choices.fonts.google[0]||"popularity"===e.params.choices.fonts.google[0]||"trending"===e.params.choices.fonts.google[0]?(n=e.params.choices.fonts.google[0],isNaN(e.params.choices.fonts.google[1])||(a=parseInt(e.params.choices.fonts.google[1],10)),i=kirki.util.webfonts.google.getFonts(n,"",a)):_.each(e.params.choices.fonts.google,function(e){void 0===t[e]||_.isEmpty(t[e])||(i[e]=t[e])}),_.isEmpty(e.params.choices.fonts.standard)?_.each(kirki.util.webfonts.standard.fonts,function(e,t){r[t]={family:e.stack,label:e.label}}):_.each(e.params.choices.fonts.standard,function(e){void 0===kirki.util.webfonts.standard.fonts[e]||_.isEmpty(kirki.util.webfonts.standard.fonts[e])?r[e]={family:e,label:e}:(r[e]={},"undefined"===kirki.util.webfonts.standard.fonts[e].stack||_.isEmpty(kirki.util.webfonts.standard.fonts[e].stack)?r[e].family=i[e]:r[e].family=kirki.util.webfonts.standard.fonts[e].stack,"undefined"===kirki.util.webfonts.standard.fonts[e].label||_.isEmpty(kirki.util.webfonts.standard.fonts[e].label)?_.isEmpty(r[e])||(r[e].label=r[e]):r[e].label=kirki.util.webfonts.standard.fonts[e].label)}),{google:i,standard:r}},saveValue:function(e,t){var i=this.container.find(".typography-hidden-value"),n=this.setting._value;n[e]=t,jQuery(i).attr("value",JSON.stringify(n)).trigger("change"),this.setting.set(n)}});
core/class-kirki-values.php CHANGED
@@ -47,7 +47,10 @@ class Kirki_Values {
47
48
// Combine font-family and font-backup.
49
if ( isset( $value['font-family'] ) && isset( $value['font-backup'] ) ) {
50
- $value['font-family'] .= ', ' . $value['font-backup'];
51
unset( $value['font-backup'] );
52
}
53
}
47
48
// Combine font-family and font-backup.
49
if ( isset( $value['font-family'] ) && isset( $value['font-backup'] ) ) {
50
+ $backup = trim( $value['font-backup'] );
51
+ if ( ! empty( $backup ) ) {
52
+ $value['font-family'] .= ', ' . $backup;
53
+ }
54
unset( $value['font-backup'] );
55
}
56
}
deprecated/filters.php CHANGED
@@ -103,10 +103,6 @@ add_filter( 'kirki_fonts_standard_fonts', function( $args ) {
103
return apply_filters( 'kirki/fonts/standard_fonts', $args );
104
}, 99 );
105
106
- add_filter( 'kirki_fonts_backup_fonts', function( $args ) {
107
- return apply_filters( 'kirki/fonts/backup_fonts', $args );
108
- }, 99 );
109
-
110
add_filter( 'kirki_fonts_google_fonts', function( $args ) {
111
return apply_filters( 'kirki/fonts/google_fonts', $args );
112
}, 99 );
103
return apply_filters( 'kirki/fonts/standard_fonts', $args );
104
}, 99 );
105
106
add_filter( 'kirki_fonts_google_fonts', function( $args ) {
107
return apply_filters( 'kirki/fonts/google_fonts', $args );
108
}, 99 );
kirki.php CHANGED
@@ -5,7 +5,7 @@
5
* Description: The Ultimate WordPress Customizer Framework
6
* Author: Ari Stathopoulos (@aristath)
7
* Author URI: https://aristath.github.io
8
- * Version: 3.0.44
9
* Text Domain: kirki
10
* Requires WP: 4.9
11
* Requires PHP: 5.3
@@ -40,7 +40,7 @@ if ( ! defined( 'KIRKI_PLUGIN_FILE' ) ) {
40
41
// Define the KIRKI_VERSION constant.
42
if ( ! defined( 'KIRKI_VERSION' ) ) {
43
- define( 'KIRKI_VERSION', '3.0.44' );
44
}
45
46
// Make sure the path is properly set.
5
* Description: The Ultimate WordPress Customizer Framework
6
* Author: Ari Stathopoulos (@aristath)
7
* Author URI: https://aristath.github.io
8
+ * Version: 3.0.45
9
* Text Domain: kirki
10
* Requires WP: 4.9
11
* Requires PHP: 5.3
40
41
// Define the KIRKI_VERSION constant.
42
if ( ! defined( 'KIRKI_VERSION' ) ) {
43
+ define( 'KIRKI_VERSION', '3.0.45' );
44
}
45
46
// Make sure the path is properly set.
modules/css-vars/class-kirki-modules-css-vars.php CHANGED
@@ -90,6 +90,11 @@ class Kirki_Modules_CSS_Vars {
90
continue;
91
}
92
$val = Kirki_Values::get_value( $args['kirki_config'], $id );
93
foreach ( $args['css_vars'] as $css_var ) {
94
if ( isset( $css_var[2] ) && is_array( $val ) && isset( $val[ $css_var[2] ] ) ) {
95
$this->vars[ $css_var[0] ] = str_replace( '#x27;, $val[ $css_var[2] ], $css_var[1] );
90
continue;
91
}
92
$val = Kirki_Values::get_value( $args['kirki_config'], $id );
93
+ if ( isset( $args['type'] ) && in_array( $args['type'], array( 'typography', 'kirki-typography' ), true ) ) {
94
+ if ( isset( $val['font-weight'] ) && 'regular' === $val['font-weight'] ) {
95
+ $val['font-weight'] = '400';
96
+ }
97
+ }
98
foreach ( $args['css_vars'] as $css_var ) {
99
if ( isset( $css_var[2] ) && is_array( $val ) && isset( $val[ $css_var[2] ] ) ) {
100
$this->vars[ $css_var[0] ] = str_replace( '#x27;, $val[ $css_var[2] ], $css_var[1] );
modules/css/class-kirki-modules-css-generator.php CHANGED
@@ -84,15 +84,6 @@ final class Kirki_Modules_CSS_Generator {
84
*/
85
public static $google_fonts = null;
86
87
- /**
88
- * Standard Fonts
89
- *
90
- * @static
91
- * @access public
92
- * @var array
93
- */
94
- public static $backup_fonts = null;
95
-
96
/**
97
* CSS
98
*
@@ -118,9 +109,6 @@ final class Kirki_Modules_CSS_Generator {
118
if ( is_null( self::$google_fonts ) ) {
119
self::$google_fonts = Kirki_Fonts::get_google_fonts();
120
}
121
- if ( is_null( self::$backup_fonts ) ) {
122
- self::$backup_fonts = Kirki_Fonts::get_backup_fonts();
123
- }
124
}
125
126
/**
84
*/
85
public static $google_fonts = null;
86
87
/**
88
* CSS
89
*
109
if ( is_null( self::$google_fonts ) ) {
110
self::$google_fonts = Kirki_Fonts::get_google_fonts();
111
}
112
}
113
114
/**
modules/css/property/class-kirki-output-property-font-family.php CHANGED
@@ -21,13 +21,10 @@ class Kirki_Output_Property_Font_Family extends Kirki_Output_Property {
21
*/
22
protected function process_value() {
23
$google_fonts_array = Kirki_Fonts::get_google_fonts();
24
- $backup_fonts = Kirki_Fonts::get_backup_fonts();
25
26
$family = $this->value;
27
- $backup = '';
28
if ( is_array( $this->value ) && isset( $this->value[0] ) && isset( $this->value[1] ) ) {
29
$family = $this->value[0];
30
- $backup = $this->value[1];
31
}
32
33
// Make sure the value is a string.
@@ -39,22 +36,6 @@ class Kirki_Output_Property_Font_Family extends Kirki_Output_Property {
39
// Hack for standard fonts.
40
$family = str_replace( '&quot;', '"', $family );
41
42
- // Add backup font.
43
- if ( Kirki_Fonts::is_google_font( $family ) ) {
44
-
45
- if ( '' === $backup && isset( $google_fonts_array[ $family ] ) && isset( $backup_fonts[ $google_fonts_array[ $family ]['category'] ] ) ) {
46
- $backup = $backup_fonts[ $google_fonts_array[ $family ]['category'] ];
47
- }
48
-
49
- // Add double quotes if needed.
50
- if ( false !== strpos( $family, ' ' ) && false === strpos( $family, '"' ) ) {
51
- $this->value = '"' . $family . '", ' . $backup;
52
- return;
53
- }
54
- $this->value = $family . ', ' . $backup;
55
- return;
56
- }
57
-
58
// Add double quotes if needed.
59
if ( false !== strpos( $family, ' ' ) && false === strpos( $family, '"' ) ) {
60
$this->value = '"' . $family . '"';
21
*/
22
protected function process_value() {
23
$google_fonts_array = Kirki_Fonts::get_google_fonts();
24
25
$family = $this->value;
26
if ( is_array( $this->value ) && isset( $this->value[0] ) && isset( $this->value[1] ) ) {
27
$family = $this->value[0];
28
}
29
30
// Make sure the value is a string.
36
// Hack for standard fonts.
37
$family = str_replace( '&quot;', '"', $family );
38
39
// Add double quotes if needed.
40
if ( false !== strpos( $family, ' ' ) && false === strpos( $family, '"' ) ) {
41
$this->value = '"' . $family . '"';
modules/custom-sections/sections.css CHANGED
@@ -1,22 +1,29 @@
1
#customize-theme-controls .control-section-kirki-expanded .accordion-section-title {
2
- display: none; }
3
#customize-theme-controls .control-section-kirki-expanded .customize-section-back {
4
- display: none; }
5
#customize-theme-controls .customize-pane-child.control-section-kirki-expanded {
6
position: relative;
7
visibility: visible;
8
height: auto;
9
- margin-left: -100%; }
10
- #customize-theme-controls .customize-pane-child.control-section-kirki-expanded h3 .customize-action {
11
- display: none; }
12
#customize-theme-controls .control-section-kirki-link .button {
13
- margin-top: -3px; }
14
15
#customize-theme-controls .customize-pane-child.current-section-parent,
16
.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel-parent {
17
- transform: translateX(-100%); }
18
19
.control-section-kirki-nested {
20
- margin: 0 -12px; }
21
22
/*# sourceMappingURL=sections.css.map */
1
#customize-theme-controls .control-section-kirki-expanded .accordion-section-title {
2
+ display: none;
3
+ }
4
#customize-theme-controls .control-section-kirki-expanded .customize-section-back {
5
+ display: none;
6
+ }
7
#customize-theme-controls .customize-pane-child.control-section-kirki-expanded {
8
position: relative;
9
visibility: visible;
10
height: auto;
11
+ margin-left: -100%;
12
+ }
13
+ #customize-theme-controls .customize-pane-child.control-section-kirki-expanded h3 .customize-action {
14
+ display: none;
15
+ }
16
#customize-theme-controls .control-section-kirki-link .button {
17
+ margin-top: -3px;
18
+ }
19
20
#customize-theme-controls .customize-pane-child.current-section-parent,
21
.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel-parent {
22
+ transform: translateX(-100%);
23
+ }
24
25
.control-section-kirki-nested {
26
+ margin: 0 -12px;
27
+ }
28
29
/*# sourceMappingURL=sections.css.map */
modules/tooltips/tooltip.css CHANGED
@@ -1,30 +1,36 @@
1
.tooltip-wrapper {
2
float: right;
3
- position: relative; }
4
- .tooltip-wrapper .tooltip-trigger {
5
- text-decoration: none;
6
- cursor: help; }
7
- .tooltip-wrapper .tooltip-content {
8
- position: absolute;
9
- width: 200px;
10
- height: auto;
11
- top: -10px;
12
- left: -225px;
13
- background: #FFC107;
14
- color: #000;
15
- padding: 10px;
16
- z-index: 99999;
17
- border-radius: 3px;
18
- line-height: 1.4em; }
19
- .tooltip-wrapper .tooltip-content a {
20
- color: #000; }
21
- .tooltip-wrapper .tooltip-content:after {
22
- content: "\f139";
23
- font-family: dashicons;
24
- position: absolute;
25
- right: -12px;
26
- top: 11px;
27
- color: #FFC107;
28
- font-size: 20px; }
29
30
/*# sourceMappingURL=tooltip.css.map */
1
+ @charset "UTF-8";
2
.tooltip-wrapper {
3
float: right;
4
+ position: relative;
5
+ }
6
+ .tooltip-wrapper .tooltip-trigger {
7
+ text-decoration: none;
8
+ cursor: help;
9
+ }
10
+ .tooltip-wrapper .tooltip-content {
11
+ position: absolute;
12
+ width: 200px;
13
+ height: auto;
14
+ top: -10px;
15
+ left: -225px;
16
+ background: #FFC107;
17
+ color: #000;
18
+ padding: 10px;
19
+ z-index: 99999;
20
+ border-radius: 3px;
21
+ line-height: 1.4em;
22
+ }
23
+ .tooltip-wrapper .tooltip-content a {
24
+ color: #000;
25
+ }
26
+ .tooltip-wrapper .tooltip-content:after {
27
+ content: "";
28
+ font-family: dashicons;
29
+ position: absolute;
30
+ right: -12px;
31
+ top: 11px;
32
+ color: #FFC107;
33
+ font-size: 20px;
34
+ }
35
36
/*# sourceMappingURL=tooltip.css.map */
modules/webfont-loader/vendor-typekit/src/closure.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/core/cssclassname.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/core/domhelper.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/core/eventdispatcher.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/core/font.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/core/fontmodule.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/core/fontmoduleloader.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/core/fontruler.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/core/fontwatcher.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/core/fontwatchrunner.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/core/initialize.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/core/nativefontwatchrunner.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/core/stylesheetwaiter.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/core/webfont.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/modules.yml CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/modules/custom.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/modules/fontdeck.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/modules/google/fontapiparser.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/modules/google/fontapiurlbuilder.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/modules/google/googlefontapi.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/modules/monotype.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/src/modules/typekit.js CHANGED
File without changes
modules/webfont-loader/vendor-typekit/webfontloader.js CHANGED
File without changes
modules/webfonts/class-kirki-fonts.php CHANGED
@@ -96,22 +96,6 @@ final class Kirki_Fonts {
96
return apply_filters( 'kirki_fonts_standard_fonts', $standard_fonts );
97