Kirki - Version 3.0.9

Version Description

July 8 2017, dev time: 7 hours.

  • Fix: Add alpha option to multicolor control. Props @danielortiz #1321, #1449
  • Fix: Googlefonts output when default argument contains font-weight instead of variant #1443
  • Fix: Removed the Kirki_Custom_Build class.
  • Fix: Plugin does not exist error when Kirki is embedded in a theme #1448
  • Fix: Code simplifications and optimizations.
Download this release

Release Info

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

Code changes from version 3.0.8 to 3.0.9

Files changed (104) hide show
  1. assets/vendor/select2/kirki.css.map +0 -7
  2. assets/vendor/select2/kirki.scss +0 -47
  3. controls/background/background.css.map +0 -7
  4. controls/background/background.scss +0 -99
  5. controls/background/class-kirki-control-background.php +2 -8
  6. controls/code/code.css.map +0 -7
  7. controls/code/code.scss +0 -561
  8. controls/color-palette/class-kirki-control-color-palette.php +2 -10
  9. controls/color-palette/color-palette.css.map +0 -7
  10. controls/color-palette/color-palette.scss +0 -122
  11. controls/color/class-kirki-control-color.php +2 -11
  12. controls/color/color.css.map +0 -7
  13. controls/color/color.scss +0 -60
  14. controls/dashicons/class-kirki-control-dashicons.php +2 -9
  15. controls/dashicons/dashicons.css.map +0 -7
  16. controls/dashicons/dashicons.scss +0 -96
  17. controls/date/class-kirki-control-date.php +2 -10
  18. controls/date/date.css.map +0 -7
  19. controls/date/date.scss +0 -150
  20. controls/dimension/class-kirki-control-dimension.php +3 -12
  21. controls/dimension/dimension.css.map +0 -7
  22. controls/dimension/dimension.scss +0 -60
  23. controls/dimensions/class-kirki-control-dimensions.php +3 -12
  24. controls/dimensions/dimensions.css.map +0 -7
  25. controls/dimensions/dimensions.scss +0 -83
  26. controls/editor/class-kirki-control-editor.php +3 -12
  27. controls/editor/editor.css.map +0 -7
  28. controls/editor/editor.scss +0 -95
  29. controls/fontawesome/class-kirki-control-fontawesome.php +4 -15
  30. controls/fontawesome/fontawesome.css.map +0 -7
  31. controls/fontawesome/fontawesome.scss +0 -60
  32. controls/generic/class-kirki-control-generic.php +2 -9
  33. controls/generic/generic.css.map +0 -7
  34. controls/generic/generic.scss +0 -67
  35. controls/gradient/class-kirki-control-gradient.php +35 -23
  36. controls/gradient/gradient.css +26 -6
  37. controls/gradient/gradient.css.map +0 -7
  38. controls/gradient/gradient.js +65 -21
  39. controls/gradient/gradient.scss +0 -158
  40. controls/image/class-kirki-control-image.php +2 -8
  41. controls/image/image.css.map +0 -7
  42. controls/image/image.scss +0 -60
  43. controls/multicheck/class-kirki-control-multicheck.php +2 -9
  44. controls/multicheck/multicheck.css.map +0 -7
  45. controls/multicheck/multicheck.scss +0 -74
  46. controls/multicolor/class-kirki-control-multicolor.php +13 -12
  47. controls/multicolor/multicolor.css.map +0 -7
  48. controls/multicolor/multicolor.scss +0 -98
  49. controls/number/class-kirki-control-number.php +3 -14
  50. controls/number/number.css.map +0 -7
  51. controls/number/number.scss +0 -115
  52. controls/palette/class-kirki-control-palette.php +2 -10
  53. controls/palette/palette.css.map +0 -7
  54. controls/palette/palette.scss +0 -111
  55. controls/preset/class-kirki-control-preset.php +3 -10
  56. controls/preset/preset.css.map +0 -7
  57. controls/preset/preset.scss +0 -60
  58. controls/radio-buttonset/class-kirki-control-radio-buttonset.php +2 -9
  59. controls/radio-buttonset/radio-buttonset.css.map +0 -7
  60. controls/radio-buttonset/radio-buttonset.scss +0 -86
  61. controls/radio-image/class-kirki-control-radio-image.php +2 -9
  62. controls/radio-image/radio-image.css.map +0 -7
  63. controls/radio-image/radio-image.scss +0 -117
  64. controls/radio/class-kirki-control-radio.php +2 -9
  65. controls/radio/radio.css.map +0 -7
  66. controls/radio/radio.scss +0 -83
  67. controls/repeater/class-kirki-control-repeater.php +1 -0
  68. controls/repeater/repeater.css.map +0 -7
  69. controls/repeater/repeater.scss +0 -254
  70. controls/select/class-kirki-control-select.php +2 -11
  71. controls/select/select.css.map +0 -7
  72. controls/select/select.scss +0 -60
  73. controls/slider/class-kirki-control-slider.php +2 -9
  74. controls/slider/slider.css.map +0 -7
  75. controls/slider/slider.scss +0 -155
  76. controls/sortable/class-kirki-control-sortable.php +2 -11
  77. controls/sortable/sortable.css.map +0 -7
  78. controls/sortable/sortable.scss +0 -87
  79. controls/switch/class-kirki-control-switch.php +2 -9
  80. controls/switch/switch.css.map +0 -7
  81. controls/switch/switch.scss +0 -147
  82. controls/toggle/class-kirki-control-toggle.php +2 -9
  83. controls/toggle/toggle.css.map +0 -7
  84. controls/toggle/toggle.scss +0 -139
  85. controls/typography/class-kirki-control-typography.php +6 -22
  86. controls/typography/typography.css.map +0 -7
  87. controls/typography/typography.scss +0 -101
  88. core/class-kirki-custom-build.php +0 -98
  89. core/class-kirki-field.php +6 -12
  90. core/class-kirki-helper.php +7 -2
  91. core/class-kirki-init.php +20 -168
  92. core/class-kirki-util.php +203 -0
  93. field/class-kirki-field-gradient.php +27 -10
  94. field/class-kirki-field-typography.php +93 -79
  95. kirki.php +2 -2
  96. l10n.php +1 -1
  97. modules/css/class-kirki-modules-css-generator.php +1 -0
  98. modules/css/class-kirki-modules-css.php +1 -0
  99. modules/css/class-kirki-output.php +57 -41
  100. modules/css/field/class-kirki-output-field-gradient.php +52 -0
  101. modules/field-dependencies/field-dependencies.js +6 -2
  102. modules/postmessage/class-kirki-modules-postmessage.php +19 -5
  103. modules/webfonts/webfonts.php +1 -1
  104. readme.txt +863 -849
assets/vendor/select2/kirki.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AAAA,iBAAkB;EAChB,YAAY,EAAE,kBAAc;EAC5B,aAAa,EAAE,CAAC;;AAGlB,kBAAmB;EACjB,SAAS,EAAE,KAAK;EAChB,KAAK,EAAE,eAAe;EAGpB;mDACyB;IACvB,OAAO,EAAE,OAAO;IAChB,SAAS,EAAE,KAAK;EAMhB,4EAAuB;IACrB,YAAY,EAAE,kBAAc;EAK9B,gHACU;IACR,YAAY,EAAE,kBAAc;IAC5B,aAAa,EAAE,CAAC;EAIhB,mFAA2B;IACzB,gBAAgB,EAAE,sBAAmB;IACrC,gBAAgB,EAAE,WAAW;IAC7B,MAAM,EAAE,IAAI;IACZ,aAAa,EAAE,CAAC;;AAO1B,iCAAkC;EAEhC,OAAO,EAAE,iBAAiB",
4
- "sources": ["kirki.scss"],
5
- "names": [],
6
- "file": "kirki.css"
7
- }
assets/vendor/select2/kirki.scss DELETED
@@ -1,47 +0,0 @@
1
- .select2-dropdown {
2
- border-color: rgba(0,0,0,.1);
3
- border-radius: 0;
4
- }
5
-
6
- .select2-container {
7
- min-width: 100px;
8
- width: 100% !important;
9
-
10
- &--open {
11
- .select2-dropdown--above,
12
- .select2-dropdown--below {
13
- z-index: 9999999;
14
- min-width: 100px;
15
- }
16
- }
17
-
18
- &--default {
19
- .select2-search--dropdown {
20
- .select2-search__field {
21
- border-color: rgba(0,0,0,.1);
22
- }
23
- }
24
-
25
- .select2-selection {
26
- &--multiple,
27
- &--single {
28
- border-color: rgba(0,0,0,.1);
29
- border-radius: 0;
30
- }
31
-
32
- &--multiple {
33
- .select2-selection__choice {
34
- background-color: rgba(255,255,255,0);
35
- background-color: transparent;
36
- border: none;
37
- border-radius: 0;
38
- }
39
- }
40
- }
41
- }
42
- }
43
-
44
- .wp-customizer .select2-container {
45
- // @See https://github.com/aristath/kirki/issues/1418
46
- z-index: 999999 !important;
47
- }
controls/background/background.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AAAA,mCAAoC;EAClC,QAAQ,EAAE,QAAQ;EAOhB;;;;yDAAG;IACD,aAAa,EAAE,GAAG;EAMpB;iEAAW;IACT,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;IAEf;iFAAc;MACZ,UAAU,EAAE,mBAAe;MAC3B,MAAM,EAAE,4BAAwB;MAChC,KAAK,EAAE,IAAI;MACX,OAAO,EAAE,SAAS;MAClB,MAAM,EAAE,CAAC;MACT,UAAU,EAAE,MAAM;MAClB,SAAS,EAAE,CAAC;IAOV;yGAAgB;MACd,gBAAgB,EAAE,OAAO;MACzB,KAAK,EAAE,IAAI;EAOrB,mEAAgC;IAC9B,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,GAAG;IACZ,UAAU,EAAE,MAAM;IAClB,gBAAgB,EAAE,IAAI;IAEtB,yEAAM;MACJ,UAAU,EAAE,IAAI;MAChB,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,IAAI;MACZ,gBAAgB,EAAE,IAAI;MACtB,aAAa,EAAE,IAAI;MACnB,OAAO,EAAE,YAAY;MACrB,iBAAiB,EAAE,+CAA+C;MAClE,SAAS,EAAE,+CAA+C;IAG5D,4EAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;IAGzB,4EAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;;AAI7B,mCAUC;EATC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;EAG7B,GAAI;IACF,iBAAiB,EAAE,QAAU;AAGjC,2BAYC;EAXC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;IAC3B,SAAS,EAAE,QAAQ;EAGrB,GAAI;IACF,iBAAiB,EAAE,QAAU;IAC7B,SAAS,EAAE,QAAU",
4
- "sources": ["background.scss"],
5
- "names": [],
6
- "file": "background.css"
7
- }
controls/background/background.scss DELETED
@@ -1,99 +0,0 @@
1
- .customize-control-kirki-background {
2
- position: relative;
3
-
4
- .background-attachment,
5
- .background-color,
6
- .background-position,
7
- .background-repeat,
8
- .background-size {
9
- h4 {
10
- margin-bottom: 5px;
11
- }
12
- }
13
-
14
- .background-attachment,
15
- .background-size {
16
- .buttonset {
17
- display: flex;
18
- flex-wrap: wrap;
19
-
20
- .switch-label {
21
- background: rgba(0,0,0,.05);
22
- border: 1px solid rgba(0,0,0,.1);
23
- color: #555;
24
- padding: 0.5em 1em;
25
- margin: 0;
26
- text-align: center;
27
- flex-grow: 1;
28
-
29
- &:last-child {}
30
- }
31
-
32
- .switch-input {
33
- &:checked {
34
- + .switch-label {
35
- background-color: #3498DB;
36
- color: #fff;
37
- }
38
- }
39
- }
40
- }
41
- }
42
-
43
- .kirki-controls-loading-spinner {
44
- position: absolute;
45
- top: 0;
46
- left: 0;
47
- margin: 0;
48
- width: 100%;
49
- height: 100%;
50
- z-index: 999;
51
- text-align: center;
52
- background-color: #eee;
53
-
54
- > div {
55
- margin-top: 20px;
56
- width: 18px;
57
- height: 18px;
58
- background-color: #333;
59
- border-radius: 100%;
60
- display: inline-block;
61
- -webkit-animation: kirkibouncedelay 1.4s infinite ease-in-out both;
62
- animation: kirkibouncedelay 1.4s infinite ease-in-out both;
63
- }
64
-
65
- .bounce1 {
66
- -webkit-animation-delay: -0.32s;
67
- animation-delay: -0.32s;
68
- }
69
-
70
- .bounce2 {
71
- -webkit-animation-delay: -0.16s;
72
- animation-delay: -0.16s;
73
- }
74
- }
75
- }
76
- @-webkit-keyframes kirkibouncedelay {
77
- 0%,
78
- 100%,
79
- 80% {
80
- -webkit-transform: scale(0);
81
- }
82
-
83
- 40% {
84
- -webkit-transform: scale(1.0);
85
- }
86
- }
87
- @keyframes kirkibouncedelay {
88
- 0%,
89
- 100%,
90
- 80% {
91
- -webkit-transform: scale(0);
92
- transform: scale(0);
93
- }
94
-
95
- 40% {
96
- -webkit-transform: scale(1.0);
97
- transform: scale(1.0);
98
- }
99
- }
controls/background/class-kirki-control-background.php CHANGED
@@ -48,17 +48,11 @@ class Kirki_Control_Background extends WP_Customize_Control {
48
*/
49
public function enqueue() {
50
51
- if ( class_exists( 'Kirki_Custom_Build' ) ) {
52
- Kirki_Custom_Build::register_dependency( 'jquery' );
53
- Kirki_Custom_Build::register_dependency( 'wp-color-picker' );
54
- }
55
wp_enqueue_style( 'wp-color-picker-alpha' );
56
wp_enqueue_script( 'wp-color-picker-alpha', trailingslashit( Kirki::$url ) . 'assets/vendor/wp-color-picker-alpha/wp-color-picker-alpha.js', array( 'wp-color-picker' ), '1.2', true );
57
58
- if ( ! class_exists( 'Kirki_Custom_Build' ) || ! Kirki_Custom_Build::is_custom_build() ) {
59
- wp_enqueue_script( 'kirki-background', trailingslashit( Kirki::$url ) . 'controls/background/background.js', array( 'jquery', 'wp-color-picker-alpha' ) );
60
- wp_enqueue_style( 'kirki-background', trailingslashit( Kirki::$url ) . 'controls/background/background.css', null );
61
- }
62
}
63
64
/**
48
*/
49
public function enqueue() {
50
51
wp_enqueue_style( 'wp-color-picker-alpha' );
52
wp_enqueue_script( 'wp-color-picker-alpha', trailingslashit( Kirki::$url ) . 'assets/vendor/wp-color-picker-alpha/wp-color-picker-alpha.js', array( 'wp-color-picker' ), '1.2', true );
53
54
+ wp_enqueue_script( 'kirki-background', trailingslashit( Kirki::$url ) . 'controls/background/background.js', array( 'jquery', 'wp-color-picker-alpha' ) );
55
+ wp_enqueue_style( 'kirki-background', trailingslashit( Kirki::$url ) . 'controls/background/background.css', null );
56
}
57
58
/**
controls/code/code.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AAAA,6BAA8B;EAC5B,QAAQ,EAAE,QAAQ;EAElB,yCAAY;IACV,WAAW,EAAE,KAAK;IAClB,YAAY,EAAE,KAAK;EAGrB,6DAAgC;IAC9B,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,GAAG;IACZ,UAAU,EAAE,MAAM;IAClB,gBAAgB,EAAE,IAAI;IAEtB,mEAAM;MACJ,UAAU,EAAE,IAAI;MAChB,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,IAAI;MACZ,gBAAgB,EAAE,IAAI;MACtB,aAAa,EAAE,IAAI;MACnB,OAAO,EAAE,YAAY;MACrB,iBAAiB,EAAE,+C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GrB,aAAc;EACZ,UAAU,EAAE,IAAI;EAChB,UAAU,EAAE,sBAAqB;;AAEnC,yEAAyE;AACzE,gBAAiB;EACf,eAAe,EAAE,WAAW;;AAE9B,6CAA6C;AAC7C,gBAAiB;EACf,aAAa,EAAE,KAAK;;AAEtB,YAAa;EACX,mCAAmC;EACnC,kCAAmC;IACjC,UAAU,EAAE,MAAM;AAGtB,qBAAqB;AACrB,uBAAwB;EACtB,OAAO,EAAE,EAAE;;AAEb,kEAAkE;AAClE,4BAA6B;EAC3B,UAAU,EAAE,IAAI",
4
- "sources": ["code.scss"],
5
- "names": [],
6
- "file": "code.css"
7
- }
controls/code/code.scss DELETED
@@ -1,561 +0,0 @@
1
- .customize-control-kirki-code {
2
- position: relative;
3
-
4
- .CodeMirror {
5
- margin-left: -12px;
6
- margin-right: -12px;
7
- }
8
-
9
- .kirki-controls-loading-spinner {
10
- position: absolute;
11
- top: 0;
12
- left: 0;
13
- margin: 0;
14
- width: 100%;
15
- height: 100%;
16
- z-index: 999;
17
- text-align: center;
18
- background-color: #eee;
19
-
20
- > div {
21
- margin-top: 20px;
22
- width: 18px;
23
- height: 18px;
24
- background-color: #333;
25
- border-radius: 100%;
26
- display: inline-block;
27
- -webkit-animation: kirkibouncedelay 1.4s infinite ease-in-out both;
28
- animation: kirkibouncedelay 1.4s infinite ease-in-out both;
29
- }
30
-
31
- .bounce1 {
32
- -webkit-animation-delay: -0.32s;
33
- animation-delay: -0.32s;
34
- }
35
-
36
- .bounce2 {
37
- -webkit-animation-delay: -0.16s;
38
- animation-delay: -0.16s;
39
- }
40
- }
41
- }
42
- @-webkit-keyframes kirkibouncedelay {
43
- 0%,
44
- 100%,
45
- 80% {
46
- -webkit-transform: scale(0);
47
- }
48
-
49
- 40% {
50
- -webkit-transform: scale(1.0);
51
- }
52
- }
53
- @keyframes kirkibouncedelay {
54
- 0%,
55
- 100%,
56
- 80% {
57
- -webkit-transform: scale(0);
58
- transform: scale(0);
59
- }
60
-
61
- 40% {
62
- -webkit-transform: scale(1.0);
63
- transform: scale(1.0);
64
- }
65
- }
66
-
67
- .CodeMirror {
68
- /* Set height, width, borders, and global font properties here */
69
- font-family: monospace;
70
- // height: 300px;
71
- color: black;
72
- }
73
- /* PADDING */
74
- .CodeMirror-lines {
75
- padding: 4px 0;
76
- /* Vertical padding around content */
77
- }
78
-
79
- .CodeMirror pre {
80
- padding: 0 4px;
81
- /* Horizontal padding of content */
82
- }
83
-
84
- .CodeMirror-gutter-filler,
85
- .CodeMirror-scrollbar-filler {
86
- background-color: white;
87
- /* The little square between H and V scrollbars */
88
- }
89
- /* GUTTER */
90
- .CodeMirror-gutters {
91
- border-right: 1px solid #ddd;
92
- background-color: #f7f7f7;
93
- white-space: nowrap;
94
- height: 100% !important;
95
- }
96
-
97
- .CodeMirror-linenumbers {}
98
-
99
- .CodeMirror-linenumber {
100
- padding: 0 3px 0 5px;
101
- min-width: 20px;
102
- text-align: right;
103
- color: #999;
104
- white-space: nowrap;
105
- }
106
-
107
- .CodeMirror-guttermarker {
108
- color: black;
109
- }
110
-
111
- .CodeMirror-guttermarker-subtle {
112
- color: #999;
113
- }
114
- /* CURSOR */
115
- .CodeMirror-cursor {
116
- border-left: 1px solid black;
117
- border-right: none;
118
- width: 0;
119
- }
120
- /* Shown when moving in bi-directional text */
121
- .CodeMirror div.CodeMirror-secondarycursor {
122
- border-left: 1px solid silver;
123
- }
124
-
125
- .cm-fat-cursor .CodeMirror-cursor {
126
- width: auto;
127
- border: 0;
128
- background: #7e7;
129
- }
130
-
131
- .cm-fat-cursor div.CodeMirror-cursors {
132
- z-index: 1;
133
- }
134
-
135
- .cm-animate-fat-cursor {
136
- width: auto;
137
- border: 0;
138
- -webkit-animation: blink 1.06s steps(1) infinite;
139
- -moz-animation: blink 1.06s steps(1) infinite;
140
- animation: blink 1.06s steps(1) infinite;
141
- background-color: #7e7;
142
- }
143
- @-moz-keyframes blink {
144
- 0% {}
145
-
146
- 50% {
147
- background-color: transparent;
148
- }
149
-
150
- 100% {}
151
- }
152
- @-webkit-keyframes blink {
153
- 0% {}
154
-
155
- 50% {
156
- background-color: transparent;
157
- }
158
-
159
- 100% {}
160
- }
161
- @keyframes blink {
162
- 0% {}
163
-
164
- 50% {
165
- background-color: transparent;
166
- }
167
-
168
- 100% {}
169
- }
170
- /* Can style cursor different in overwrite (non-insert) mode */
171
- .CodeMirror-overwrite .CodeMirror-cursor {}
172
-
173
- .cm-tab {
174
- display: inline-block;
175
- text-decoration: inherit;
176
- }
177
-
178
- .CodeMirror-ruler {
179
- border-left: 1px solid #ccc;
180
- position: absolute;
181
- }
182
- /* DEFAULT THEME */
183
- .cm-s-default .cm-header {
184
- color: blue;
185
- }
186
-
187
- .cm-s-default .cm-quote {
188
- color: #090;
189
- }
190
-
191
- .cm-negative {
192
- color: #d44;
193
- }
194
-
195
- .cm-positive {
196
- color: #292;
197
- }
198
-
199
- .cm-header,
200
- .cm-strong {
201
- font-weight: bold;
202
- }
203
-
204
- .cm-em {
205
- font-style: italic;
206
- }
207
-
208
- .cm-link {
209
- text-decoration: underline;
210
- }
211
-
212
- .cm-strikethrough {
213
- text-decoration: line-through;
214
- }
215
-
216
- .cm-s-default .cm-keyword {
217
- color: #708;
218
- }
219
-
220
- .cm-s-default .cm-atom {
221
- color: #219;
222
- }
223
-
224
- .cm-s-default .cm-number {
225
- color: #164;
226
- }
227
-
228
- .cm-s-default .cm-def {
229
- color: #00f;
230
- }
231
-
232
- .cm-s-default .cm-operator,
233
- .cm-s-default .cm-property,
234
- .cm-s-default .cm-punctuation,
235
- .cm-s-default .cm-variable {}
236
-
237
- .cm-s-default .cm-variable-2 {
238
- color: #05a;
239
- }
240
-
241
- .cm-s-default .cm-variable-3 {
242
- color: #085;
243
- }
244
-
245
- .cm-s-default .cm-comment {
246
- color: #a50;
247
- }
248
-
249
- .cm-s-default .cm-string {
250
- color: #a11;
251
- }
252
-
253
- .cm-s-default .cm-string-2 {
254
- color: #f50;
255
- }
256
-
257
- .cm-s-default .cm-meta {
258
- color: #555;
259
- }
260
-
261
- .cm-s-default .cm-qualifier {
262
- color: #555;
263
- }
264
-
265
- .cm-s-default .cm-builtin {
266
- color: #30a;
267
- }
268
-
269
- .cm-s-default .cm-bracket {
270
- color: #997;
271
- }
272
-
273
- .cm-s-default .cm-tag {
274
- color: #170;
275
- }
276
-
277
- .cm-s-default .cm-attribute {
278
- color: #00c;
279
- }
280
-
281
- .cm-s-default .cm-hr {
282
- color: #999;
283
- }
284
-
285
- .cm-s-default .cm-link {
286
- color: #00c;
287
- }
288
-
289
- .cm-s-default .cm-error {
290
- color: #f00;
291
- }
292
-
293
- .cm-invalidchar {
294
- color: #f00;
295
- }
296
-
297
- .CodeMirror-composing {
298
- border-bottom: 2px solid;
299
- }
300
- /* Default styles for common addons */
301
- div.CodeMirror span.CodeMirror-matchingbracket {
302
- color: #0f0;
303
- }
304
-
305
- div.CodeMirror span.CodeMirror-nonmatchingbracket {
306
- color: #f22;
307
- }
308
-
309
- .CodeMirror-matchingtag {
310
- background: rgba(255, 150, 0, .3);
311
- }
312
-
313
- .CodeMirror-activeline-background {
314
- background: #e8f2ff;
315
- }
316
- /* STOP */
317
- /* The rest of this file contains styles related to the mechanics of
318
- the editor. You probably shouldn't touch them. */
319
- .CodeMirror {
320
- position: relative;
321
- overflow: hidden;
322
- background: white;
323
- }
324
-
325
- .CodeMirror-scroll {
326
- overflow: scroll !important;
327
- /* Things will break if this is overridden */
328
- /* 30px is the magic margin used to hide the element's real scrollbars */
329
- /* See overflow: hidden in .CodeMirror */
330
- margin-bottom: -30px;
331
- margin-right: -30px;
332
- padding-bottom: 30px;
333
- height: 100%;
334
- outline: none;
335
- /* Prevent dragging from highlighting the element */
336
- position: relative;
337
- }
338
-
339
- .CodeMirror-sizer {
340
- position: relative;
341
- border-right: 30px solid transparent;
342
- }
343
- /* The fake, visible scrollbars. Used to force redraw during scrolling
344
- before actuall scrolling happens, thus preventing shaking and
345
- flickering artifacts. */
346
- .CodeMirror-gutter-filler,
347
- .CodeMirror-hscrollbar,
348
- .CodeMirror-scrollbar-filler,
349
- .CodeMirror-vscrollbar {
350
- position: absolute;
351
- z-index: 6;
352
- display: none;
353
- }
354
-
355
- .CodeMirror-vscrollbar {
356
- right: 0;
357
- top: 0;
358
- overflow-x: hidden;
359
- overflow-y: scroll;
360
- }
361
-
362
- .CodeMirror-hscrollbar {
363
- bottom: 0;
364
- left: 0;
365
- overflow-y: hidden;
366
- overflow-x: scroll;
367
- }
368
-
369
- .CodeMirror-scrollbar-filler {
370
- right: 0;
371
- bottom: 0;
372
- }
373
-
374
- .CodeMirror-gutter-filler {
375
- left: 0;
376
- bottom: 0;
377
- }
378
-
379
- .CodeMirror-gutters {
380
- position: absolute;
381
- left: 0;
382
- top: 0;
383
- z-index: 3;
384
- }
385
-
386
- .CodeMirror-gutter {
387
- white-space: normal;
388
- margin-bottom: -30px;
389
- /* Hack to make IE7 behave */
390
- *zoom: 1;
391
- *display: inline;
392
- }
393
-
394
- .CodeMirror-gutter-wrapper {
395
- position: absolute;
396
- z-index: 4;
397
- background: none !important;
398
- border: none !important;
399
- }
400
-
401
- .CodeMirror-gutter-background {
402
- position: absolute;
403
- top: 0;
404
- bottom: 0;
405
- z-index: 4;
406
- }
407
-
408
- .CodeMirror-gutter-elt {
409
- position: absolute;
410
- cursor: default;
411
- z-index: 4;
412
- }
413
-
414
- .CodeMirror-gutter-wrapper {
415
- -webkit-user-select: none;
416
- -moz-user-select: none;
417
- user-select: none;
418
- }
419
-
420
- .CodeMirror-lines {
421
- cursor: text;
422
- min-height: 1px;
423
- /* prevents collapsing before first draw */
424
- }
425
-
426
- .CodeMirror pre {
427
- /* Reset some styles that the rest of the page might have set */
428
- -moz-border-radius: 0;
429
- -webkit-border-radius: 0;
430
- border-radius: 0;
431
- border-width: 0;
432
- background: transparent;
433
- font-family: inherit;
434
- font-size: inherit;
435
- margin: 0;
436
- white-space: pre;
437
- word-wrap: normal;
438
- line-height: inherit;
439
- color: inherit;
440
- z-index: 2;
441
- position: relative;
442
- overflow: visible;
443
- -webkit-tap-highlight-color: transparent;
444
- }
445
-
446
- .CodeMirror-wrap pre {
447
- word-wrap: break-word;
448
- white-space: pre-wrap;
449
- word-break: normal;
450
- }
451
-
452
- .CodeMirror-linebackground {
453
- position: absolute;
454
- left: 0;
455
- right: 0;
456
- top: 0;
457
- bottom: 0;
458
- z-index: 0;
459
- }
460
-
461
- .CodeMirror-linewidget {
462
- position: relative;
463
- z-index: 2;
464
- overflow: auto;
465
- }
466
-
467
- .CodeMirror-widget {}
468
-
469
- .CodeMirror-code {
470
- outline: none;
471
- }
472
- /* Force content-box sizing for the elements where we expect it */
473
- .CodeMirror-gutter,
474
- .CodeMirror-gutters,
475
- .CodeMirror-linenumber,
476
- .CodeMirror-scroll,
477
- .CodeMirror-sizer {
478
- -moz-box-sizing: content-box;
479
- box-sizing: content-box;
480
- }
481
-
482
- .CodeMirror-measure {
483
- position: absolute;
484
- width: 100%;
485
- height: 0;
486
- overflow: hidden;
487
- visibility: hidden;
488
- }
489
-
490
- .CodeMirror-cursor {
491
- position: absolute;
492
- }
493
-
494
- .CodeMirror-measure pre {
495
- position: static;
496
- }
497
-
498
- div.CodeMirror-cursors {
499
- visibility: hidden;
500
- position: relative;
501
- z-index: 3;
502
- }
503
-
504
- div.CodeMirror-dragcursors {
505
- visibility: visible;
506
- }
507
-
508
- .CodeMirror-focused div.CodeMirror-cursors {
509
- visibility: visible;
510
- }
511
-
512
- .CodeMirror-selected {
513
- background: #d9d9d9;
514
- }
515
-
516
- .CodeMirror-focused .CodeMirror-selected {
517
- background: #d7d4f0;
518
- }
519
-
520
- .CodeMirror-crosshair {
521
- cursor: crosshair;
522
- }
523
-
524
- .CodeMirror-line > span > span::selection,
525
- .CodeMirror-line > span::selection,
526
- .CodeMirror-line::selection {
527
- background: #d7d4f0;
528
- }
529
-
530
- .CodeMirror-line > span > span::-moz-selection,
531
- .CodeMirror-line > span::-moz-selection,
532
- .CodeMirror-line::-moz-selection {
533
- background: #d7d4f0;
534
- }
535
-
536
- .cm-searching {
537
- background: #ffa;
538
- background: rgba(255, 255, 0, .4);
539
- }
540
- /* IE7 hack to prevent it from returning funny offsetTops on the spans */
541
- .CodeMirror span {
542
- *vertical-align: text-bottom;
543
- }
544
- /* Used to force a border model for a node */
545
- .cm-force-border {
546
- padding-right: 0.1px;
547
- }
548
- @media print {
549
- /* Hide the cursor when printing */
550
- .CodeMirror div.CodeMirror-cursors {
551
- visibility: hidden;
552
- }
553
- }
554
- /* See issue #2901 */
555
- .cm-tab-wrap-hack:after {
556
- content: '';
557
- }
558
- /* Help users use markselection to safely style text background */
559
- span.CodeMirror-selectedtext {
560
- background: none;
561
- }
controls/color-palette/class-kirki-control-color-palette.php CHANGED
@@ -51,16 +51,8 @@ class Kirki_Control_Color_Palette extends WP_Customize_Control {
51
*/
52
public function enqueue() {
53
54
- if ( class_exists( 'Kirki_Custom_Build' ) ) {
55
- Kirki_Custom_Build::register_dependency( 'jquery' );
56
- Kirki_Custom_Build::register_dependency( 'customize-base' );
57
- Kirki_Custom_Build::register_dependency( 'jquery-ui-button' );
58
- }
59
-
60
- if ( ! class_exists( 'Kirki_Custom_Build' ) || ! Kirki_Custom_Build::is_custom_build() ) {
61
- wp_enqueue_script( 'kirki-color-palette', trailingslashit( Kirki::$url ) . 'controls/color-palette/color-palette.js', array( 'jquery', 'customize-base', 'jquery-ui-button' ), false, true );
62
- wp_enqueue_style( 'kirki-color-palette-css', trailingslashit( Kirki::$url ) . 'controls/color-palette/color-palette.css', null );
63
- }
64
}
65
66
/**
51
*/
52
public function enqueue() {
53
54
+ wp_enqueue_script( 'kirki-color-palette', trailingslashit( Kirki::$url ) . 'controls/color-palette/color-palette.js', array( 'jquery', 'customize-base', 'jquery-ui-button' ), false, true );
55
+ wp_enqueue_style( 'kirki-color-palette-css', trailingslashit( Kirki::$url ) . 'controls/color-palette/color-palette.css', null );
56
}
57
58
/**
controls/color-palette/color-palette.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
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EAAE,YAAY;MACrB,iBAAiB,EAAE,+CAA+C;MAClE,SAAS,EAAE,+CAA+C;IAG5D,+EAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;IAGzB,+EAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;;AAI7B,mCAUC;EATC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;EAG7B,GAAI;IACF,iBAAiB,EAAE,QAAU;AAGjC,2BAYC;EAXC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;IAC3B,SAAS,EAAE,QAAQ;EAGrB,GAAI;IACF,iBAAiB,EAAE,QAAU;IAC7B,SAAS,EAAE,QAAU",
4
- "sources": ["color-palette.scss"],
5
- "names": [],
6
- "file": "color-palette.css"
7
- }
controls/color-palette/color-palette.scss DELETED
@@ -1,122 +0,0 @@
1
- .customize-control-kirki-color-palette {
2
- position: relative;
3
-
4
- label {
5
- position: relative;
6
- display: inline-block;
7
- padding: 0;
8
- margin-right: -2px;
9
- margin-top: -1px;
10
- }
11
-
12
- .colors-wrapper {
13
- max-height: 300px;
14
- overflow-y: auto;
15
- padding: 10px;
16
-
17
- .color-palette-color {
18
- color: transparent;
19
- display: block;
20
- width: 100%;
21
- height: 100%;
22
- overflow: hidden;
23
- border: 1px solid rgba(0,0,0,.2);
24
- }
25
-
26
- &.round {
27
- .color-palette-color {
28
- border-radius: 50%;
29
- }
30
- }
31
-
32
- &.box-shadow {
33
- .color-palette-color {
34
- box-shadow: inset 3px 3px 13px 2px rgba(0,0,0,.22);
35
- }
36
- }
37
-
38
- input:checked + label .color-palette-color {
39
- border: 0;
40
- width: 150%;
41
- height: 150%;
42
- position: relative;
43
- left: -25%;
44
- top: -25%;
45
- z-index: 99;
46
- }
47
-
48
- &.with-margin {
49
- label {
50
- margin: 3px;
51
- }
52
- }
53
-
54
- input {
55
- display: none;
56
-
57
- &:checked {
58
- + label .color-palette-color {
59
- box-shadow: 1px 1px 10px 1px #333333;
60
- border: 1px solid rgba(0,0,0,.3);
61
- }
62
- }
63
- }
64
- }
65
-
66
- .kirki-controls-loading-spinner {
67
- position: absolute;
68
- top: 0;
69
- left: 0;
70
- margin: 0;
71
- width: 100%;
72
- height: 100%;
73
- z-index: 999;
74
- text-align: center;
75
- background-color: #eee;
76
-
77
- > div {
78
- margin-top: 20px;
79
- width: 18px;
80
- height: 18px;
81
- background-color: #333;
82
- border-radius: 100%;
83
- display: inline-block;
84
- -webkit-animation: kirkibouncedelay 1.4s infinite ease-in-out both;
85
- animation: kirkibouncedelay 1.4s infinite ease-in-out both;
86
- }
87
-
88
- .bounce1 {
89
- -webkit-animation-delay: -0.32s;
90
- animation-delay: -0.32s;
91
- }
92
-
93
- .bounce2 {
94
- -webkit-animation-delay: -0.16s;
95
- animation-delay: -0.16s;
96
- }
97
- }
98
- }
99
- @-webkit-keyframes kirkibouncedelay {
100
- 0%,
101
- 100%,
102
- 80% {
103
- -webkit-transform: scale(0);
104
- }
105
-
106
- 40% {
107
- -webkit-transform: scale(1.0);
108
- }
109
- }
110
- @keyframes kirkibouncedelay {
111
- 0%,
112
- 100%,
113
- 80% {
114
- -webkit-transform: scale(0);
115
- transform: scale(0);
116
- }
117
-
118
- 40% {
119
- -webkit-transform: scale(1.0);
120
- transform: scale(1.0);
121
- }
122
- }
controls/color/class-kirki-control-color.php CHANGED
@@ -134,18 +134,9 @@ class Kirki_Control_Color extends WP_Customize_Control {
134
*/
135
public function enqueue_scripts() {
136
137
- if ( class_exists( 'Kirki_Custom_Build' ) ) {
138
- Kirki_Custom_Build::register_dependency( 'jquery' );
139
- Kirki_Custom_Build::register_dependency( 'wp-color-picker-alpha' );
140
- Kirki_Custom_Build::register_dependency( 'customize-base' );
141
- }
142
-
143
wp_enqueue_script( 'wp-color-picker-alpha', trailingslashit( Kirki::$url ) . 'assets/vendor/wp-color-picker-alpha/wp-color-picker-alpha.js', array( 'wp-color-picker' ), '1.2', true );
144
-
145
- if ( ! class_exists( 'Kirki_Custom_Build' ) || ! Kirki_Custom_Build::is_custom_build() ) {
146
- wp_enqueue_script( 'kirki-color', trailingslashit( Kirki::$url ) . 'controls/color/color.js', array( 'jquery', 'customize-base', 'wp-color-picker-alpha' ), false, true );
147
- wp_enqueue_style( 'kirki-color-css', trailingslashit( Kirki::$url ) . 'controls/color/color.css', null );
148
- }
149
wp_enqueue_style( 'wp-color-picker' );
150
}
151
134
*/
135
public function enqueue_scripts() {
136
137
wp_enqueue_script( 'wp-color-picker-alpha', trailingslashit( Kirki::$url ) . 'assets/vendor/wp-color-picker-alpha/wp-color-picker-alpha.js', array( 'wp-color-picker' ), '1.2', true );
138
+ wp_enqueue_script( 'kirki-color', trailingslashit( Kirki::$url ) . 'controls/color/color.js', array( 'jquery', 'customize-base', 'wp-color-picker-alpha' ), false, true );
139
+ wp_enqueue_style( 'kirki-color-css', trailingslashit( Kirki::$url ) . 'controls/color/color.css', null );
140
wp_enqueue_style( 'wp-color-picker' );
141
}
142
controls/color/color.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AAAA,8BAA+B;EAC7B,QAAQ,EAAE,QAAQ;EAElB,8DAAgC;IAC9B,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,GAAG;IACZ,UAAU,EAAE,MAAM;IAClB,gBAAgB,EAAE,IAAI;IAEtB,oEAAM;MACJ,UAAU,EAAE,IAAI;MAChB,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,IAAI;MACZ,gBAAgB,EAAE,IAAI;MACtB,aAAa,EAAE,IAAI;MACnB,OAAO,EAAE,YAAY;MACrB,iBAAiB,EAAE,+CAA+C;MAClE,SAAS,EAAE,+CAA+C;IAG5D,uEAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;IAGzB,uEAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;;AAI7B,mCAUC;EATC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;EAG7B,GAAI;IACF,iBAAiB,EAAE,QAAU;AAGjC,2BAYC;EAXC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;IAC3B,SAAS,EAAE,QAAQ;EAGrB,GAAI;IACF,iBAAiB,EAAE,QAAU;IAC7B,SAAS,EAAE,QAAU",
4
- "sources": ["color.scss"],
5
- "names": [],
6
- "file": "color.css"
7
- }
controls/color/color.scss DELETED
@@ -1,60 +0,0 @@
1
- .customize-control-kirki-color {
2
- position: relative;
3
-
4
- .kirki-controls-loading-spinner {
5
- position: absolute;
6
- top: 0;
7
- left: 0;
8
- margin: 0;
9
- width: 100%;
10
- height: 100%;
11
- z-index: 999;
12
- text-align: center;
13
- background-color: #eee;
14
-
15
- > div {
16
- margin-top: 20px;
17
- width: 18px;
18
- height: 18px;
19
- background-color: #333;
20
- border-radius: 100%;
21
- display: inline-block;
22
- -webkit-animation: kirkibouncedelay 1.4s infinite ease-in-out both;
23
- animation: kirkibouncedelay 1.4s infinite ease-in-out both;
24
- }
25
-
26
- .bounce1 {
27
- -webkit-animation-delay: -0.32s;
28
- animation-delay: -0.32s;
29
- }
30
-
31
- .bounce2 {
32
- -webkit-animation-delay: -0.16s;
33
- animation-delay: -0.16s;
34
- }
35
- }
36
- }
37
- @-webkit-keyframes kirkibouncedelay {
38
- 0%,
39
- 100%,
40
- 80% {
41
- -webkit-transform: scale(0);
42
- }
43
-
44
- 40% {
45
- -webkit-transform: scale(1.0);
46
- }
47
- }
48
- @keyframes kirkibouncedelay {
49
- 0%,
50
- 100%,
51
- 80% {
52
- -webkit-transform: scale(0);
53
- transform: scale(0);
54
- }
55
-
56
- 40% {
57
- -webkit-transform: scale(1.0);
58
- transform: scale(1.0);
59
- }
60
- }
controls/dashicons/class-kirki-control-dashicons.php CHANGED
@@ -75,15 +75,8 @@ class Kirki_Control_Dashicons extends WP_Customize_Control {
75
*/
76
public function enqueue() {
77
78
- if ( class_exists( 'Kirki_Custom_Build' ) ) {
79
- Kirki_Custom_Build::register_dependency( 'jquery' );
80
- Kirki_Custom_Build::register_dependency( 'customize-base' );
81
- }
82
-
83
- if ( ! class_exists( 'Kirki_Custom_Build' ) || ! Kirki_Custom_Build::is_custom_build() ) {
84
- wp_enqueue_script( 'kirki-dashicons', trailingslashit( Kirki::$url ) . 'controls/dashicons/dashicons.js', array( 'jquery', 'customize-base' ), false, true );
85
- wp_enqueue_style( 'kirki-dashicons-css', trailingslashit( Kirki::$url ) . 'controls/dashicons/dashicons.css', null );
86
- }
87
}
88
89
/**
75
*/
76
public function enqueue() {
77
78
+ wp_enqueue_script( 'kirki-dashicons', trailingslashit( Kirki::$url ) . 'controls/dashicons/dashicons.js', array( 'jquery', 'customize-base' ), false, true );
79
+ wp_enqueue_style( 'kirki-dashicons-css', trailingslashit( Kirki::$url ) . 'controls/dashicons/dashicons.css', null );
80
}
81
82
/**
controls/dashicons/dashicons.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AAAA,kCAAmC;EACjC,QAAQ,EAAE,QAAQ;EAElB,wCAAM;IACJ,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,YAAY;EAGvB,iDAAe;IACb,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,MAAM;IAElB,oDAAG;MACD,WAAW,EAAE,GAAG;MAChB,MAAM,EAAE,OAAO;IAGjB,4DAAW;MACT,OAAO,EAAE,GAAG;MACZ,SAAS,EAAE,IAAI;MACf,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,IAAI;MACZ,MAAM,EAAE,qBAAqB;IAG/B,uDAAM;MACJ,OAAO,EAAE,IAAI;MAIT,kFAAW;QACT,MAAM,EAAE,iBAAiB;QACzB,KAAK,EAAE,IAAI;EAOrB,kEAAgC;IAC9B,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,GAAG;IACZ,UAAU,EAAE,MAAM;IAClB,gBAAgB,EAAE,IAAI;IAEtB,wEAAM;MACJ,UAAU,EAAE,IAAI;MAChB,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,IAAI;MACZ,gBAAgB,EAAE,IAAI;MACtB,aAAa,EAAE,IAAI;MACnB,OAAO,EAAE,YAAY;MACrB,iBAAiB,EAAE,+CAA+C;MAClE,SAAS,EAAE,+CAA+C;IAG5D,2EAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;IAGzB,2EAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;;AAI7B,mCAUC;EATC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;EAG7B,GAAI;IACF,iBAAiB,EAAE,QAAU;AAGjC,2BAYC;EAXC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;IAC3B,SAAS,EAAE,QAAQ;EAGrB,GAAI;IACF,iBAAiB,EAAE,QAAU;IAC7B,SAAS,EAAE,QAAU",
4
- "sources": ["dashicons.scss"],
5
- "names": [],
6
- "file": "dashicons.css"
7
- }
controls/dashicons/dashicons.scss DELETED
@@ -1,96 +0,0 @@
1
- .customize-control-kirki-dashicons {
2
- position: relative;
3
-
4
- label {
5
- position: relative;
6
- display: inline-block;
7
- }
8
-
9
- .icons-wrapper {
10
- max-height: 300px;
11
- overflow-y: scroll;
12
-
13
- h4 {
14
- font-weight: 300;
15
- margin: 0.7em 0;
16
- }
17
-
18
- .dashicons {
19
- padding: 3px;
20
- font-size: 25px;
21
- width: 25px;
22
- height: 25px;
23
- border: 1px solid transparent;
24
- }
25
-
26
- input {
27
- display: none;
28
-
29
- &:checked {
30
- + label {
31
- .dashicons {
32
- border: 1px solid #3498DB;
33
- color: #000;
34
- }
35
- }
36
- }
37
- }
38
- }
39
-
40
- .kirki-controls-loading-spinner {
41
- position: absolute;
42
- top: 0;
43
- left: 0;
44
- margin: 0;
45
- width: 100%;
46
- height: 100%;
47
- z-index: 999;
48
- text-align: center;
49
- background-color: #eee;
50
-
51
- > div {
52
- margin-top: 20px;
53
- width: 18px;
54
- height: 18px;
55
- background-color: #333;
56
- border-radius: 100%;
57
- display: inline-block;
58
- -webkit-animation: kirkibouncedelay 1.4s infinite ease-in-out both;
59
- animation: kirkibouncedelay 1.4s infinite ease-in-out both;
60
- }
61
-
62
- .bounce1 {
63
- -webkit-animation-delay: -0.32s;
64
- animation-delay: -0.32s;
65
- }
66
-
67
- .bounce2 {
68
- -webkit-animation-delay: -0.16s;
69
- animation-delay: -0.16s;
70
- }
71
- }
72
- }
73
- @-webkit-keyframes kirkibouncedelay {
74
- 0%,
75
- 100%,
76
- 80% {
77
- -webkit-transform: scale(0);
78
- }
79
-
80
- 40% {
81
- -webkit-transform: scale(1.0);
82
- }
83
- }
84
- @keyframes kirkibouncedelay {
85
- 0%,
86
- 100%,
87
- 80% {
88
- -webkit-transform: scale(0);
89
- transform: scale(0);
90
- }
91
-
92
- 40% {
93
- -webkit-transform: scale(1.0);
94
- transform: scale(1.0);
95
- }
96
- }
controls/date/class-kirki-control-date.php CHANGED
@@ -50,16 +50,8 @@ class Kirki_Control_Date extends WP_Customize_Control {
50
*/
51
public function enqueue() {
52
53
- if ( class_exists( 'Kirki_Custom_Build' ) ) {
54
- Kirki_Custom_Build::register_dependency( 'jquery' );
55
- Kirki_Custom_Build::register_dependency( 'customize-base' );
56
- Kirki_Custom_Build::register_dependency( 'jquery-ui-datepicker' );
57
- }
58
-
59
- if ( ! class_exists( 'Kirki_Custom_Build' ) || ! Kirki_Custom_Build::is_custom_build() ) {
60
- wp_enqueue_script( 'kirki-date', trailingslashit( Kirki::$url ) . 'controls/date/date.js', array( 'jquery', 'customize-base', 'jquery-ui-datepicker' ), false, true );
61
- wp_enqueue_style( 'kirki-date-css', trailingslashit( Kirki::$url ) . 'controls/date/date.css', null );
62
- }
63
}
64
65
/**
50
*/
51
public function enqueue() {
52
53
+ wp_enqueue_script( 'kirki-date', trailingslashit( Kirki::$url ) . 'controls/date/date.js', array( 'jquery', 'customize-base', 'jquery-ui-datepicker' ), false, true );
54
+ wp_enqueue_style( 'kirki-date-css', trailingslashit( Kirki::$url ) . 'controls/date/date.css', null );
55
}
56
57
/**
controls/date/date.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AAAA,gCAAiC;EAC/B,OAAO,EAAE,iBAAiB;EAC1B,KAAK,EAAE,KAAK;EACZ,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,iBAAiB;EAEzB,sDAAsB;IACpB,OAAO,EAAE,IAAI;IACb,UAAU,EAAE,OAAO;IACnB,aAAa,EAAE,cAAc;IAE7B;8EACoB;MAClB,OAAO,EAAE,KAAK;MACd,QAAQ,EAAE,QAAQ;MAClB,KAAK,EAAE,GAAG;MACV,QAAQ,EAAE,MAAM;MAEhB;;uFACS;QACP,WAAW,EAAE,SAAS;QAEtB;;+FAAQ;UACN,MAAM,EAAE,OAAO;MAInB;yFAAS;QACP,OAAO,EAAE,IAAI;IAIjB,0EAAoB;MAClB,IAAI,EAAE,IAAI;MAEV,iFAAS;QACP,OAAO,EAAE,OAAO;IAIpB,0EAAoB;MAClB,KAAK,EAAE,IAAI;MAEX,gFAAQ;QACN,OAAO,EAAE,OAAO;IAIpB,2EAAqB;MACnB,UAAU,EAAE,MAAM;EAItB,wDAAwB;IACtB,eAAe,EAAE,QAAQ;IACzB,KAAK,EAAE,IAAI;IAEX,8DAAM;MACJ,UAAU,EAAE,OAAO;MACnB,OAAO,EAAE,GAAG;IAIZ,8DAAG;MACD,UAAU,EAAE,MAAM;MAElB,gEAAE;QACA,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,GAAG;QACZ,KAAK,EAAE,IAAI;QACX,eAAe,EAAE,IAAI;QAErB,wJACQ;UACN,KAAK,EAAE,IAAI;UACX,gBAAgB,EAAE,OAAO;MAM3B,wLAAE;QACA,KAAK,EAAE,IAAI;;AAQvB,6BAA8B;EAC5B,QAAQ,EAAE,QAAQ;EAElB,6DAAgC;IAC9B,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,GAAG;IACZ,UAAU,EAAE,MAAM;IAClB,gBAAgB,EAAE,IAAI;IAEtB,mEAAM;MACJ,UAAU,EAAE,IAAI;MAChB,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,IAAI;MACZ,gBAAgB,EAAE,IAAI;MACtB,aAAa,EAAE,IAAI;MACnB,OAAO,EAAE,YAAY;MACrB,iBAAiB,EAAE,+CAA+C;MAClE,SAAS,EAAE,+CAA+C;IAG5D,sEAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;IAGzB,sEAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;;AAI7B,mCAUC;EATC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;EAG7B,GAAI;IACF,iBAAiB,EAAE,QAAU;AAGjC,2BAYC;EAXC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;IAC3B,SAAS,EAAE,QAAQ;EAGrB,GAAI;IACF,iBAAiB,EAAE,QAAU;IAC7B,SAAS,EAAE,QAAU",
4
- "sources": ["date.scss"],
5
- "names": [],
6
- "file": "date.css"
7
- }
controls/date/date.scss DELETED
@@ -1,150 +0,0 @@
1
- .wp-customizer div.ui-datepicker {
2
- z-index: 500001 !important;
3
- width: 255px;
4
- background: #fff;
5
- border: 1px solid #dedede;
6
-
7
- .ui-datepicker-header {
8
- padding: 10px;
9
- background: #e5e5e5;
10
- border-bottom: 1px solid #fff;
11
-
12
- .ui-datepicker-next,
13
- .ui-datepicker-prev {
14
- display: block;
15
- position: absolute;
16
- width: 1em;
17
- overflow: hidden;
18
-
19
- &:after,
20
- &:before {
21
- font-family: dashicons;
22
-
23
- &:hover {
24
- cursor: pointer;
25
- }
26
- }
27
-
28
- .ui-icon {
29
- display: none;
30
- }
31
- }
32
-
33
- .ui-datepicker-prev {
34
- left: 10px;
35
-
36
- &:before {
37
- content: "\f341";
38
- }
39
- }
40
-
41
- .ui-datepicker-next {
42
- right: 10px;
43
-
44
- &:after {
45
- content: "\f345";
46
- }
47
- }
48
-
49
- .ui-datepicker-title {
50
- text-align: center;
51
- }
52
- }
53
-
54
- .ui-datepicker-calendar {
55
- border-collapse: collapse;
56
- width: 100%;
57
-
58
- thead {
59
- background: #e5e5e5;
60
- padding: 5px;
61
- }
62
-
63
- tr {
64
- td {
65
- text-align: center;
66
-
67
- a {
68
- display: block;
69
- padding: 5px;
70
- color: #333;
71
- text-decoration: none;
72
-
73
- &.ui-state-active,
74
- &:hover {
75
- color: #fff;
76
- background-color: #0073aa;
77
- }
78
- }
79
-
80
- &.ui-state-disabled,
81
- &.ui-state-disabled .ui-state-default {
82
- a {
83
- color: #999;
84
- }
85
- }
86
- }
87
- }
88
- }
89
- }
90
-
91
- .customize-control-kirki-date {
92
- position: relative;
93
-
94
- .kirki-controls-loading-spinner {
95
- position: absolute;
96
- top: 0;
97
- left: 0;
98
- margin: 0;
99
- width: 100%;
100
- height: 100%;
101
- z-index: 999;
102
- text-align: center;
103
- background-color: #eee;
104
-
105
- > div {
106
- margin-top: 20px;
107
- width: 18px;
108
- height: 18px;
109
- background-color: #333;
110
- border-radius: 100%;
111
- display: inline-block;
112
- -webkit-animation: kirkibouncedelay 1.4s infinite ease-in-out both;
113
- animation: kirkibouncedelay 1.4s infinite ease-in-out both;
114
- }
115
-
116
- .bounce1 {
117
- -webkit-animation-delay: -0.32s;
118
- animation-delay: -0.32s;
119
- }
120
-
121
- .bounce2 {
122
- -webkit-animation-delay: -0.16s;
123
- animation-delay: -0.16s;
124
- }
125
- }
126
- }
127
- @-webkit-keyframes kirkibouncedelay {
128
- 0%,
129
- 100%,
130
- 80% {
131
- -webkit-transform: scale(0);
132
- }
133
-
134
- 40% {
135
- -webkit-transform: scale(1.0);
136
- }
137
- }
138
- @keyframes kirkibouncedelay {
139
- 0%,
140
- 100%,
141
- 80% {
142
- -webkit-transform: scale(0);
143
- transform: scale(0);
144
- }
145
-
146
- 40% {
147
- -webkit-transform: scale(1.0);
148
- transform: scale(1.0);
149
- }
150
- }
controls/dimension/class-kirki-control-dimension.php CHANGED
@@ -58,18 +58,9 @@ class Kirki_Control_Dimension extends WP_Customize_Control {
58
*/
59
public function enqueue() {
60
61
- if ( class_exists( 'Kirki_Custom_Build' ) ) {
62
- Kirki_Custom_Build::register_dependency( 'jquery' );
63
- Kirki_Custom_Build::register_dependency( 'customize-base' );
64
- }
65
-
66
- $script_to_localize = 'kirki-build';
67
- if ( ! class_exists( 'Kirki_Custom_Build' ) || ! Kirki_Custom_Build::is_custom_build() ) {
68
- $script_to_localize = 'kirki-dimension';
69
- wp_enqueue_script( 'kirki-dimension', trailingslashit( Kirki::$url ) . 'controls/dimension/dimension.js', array( 'jquery', 'customize-base' ), false, true );
70
- wp_enqueue_style( 'kirki-dimension-css', trailingslashit( Kirki::$url ) . 'controls/dimension/dimension.css', null );
71
- }
72
- wp_localize_script( $script_to_localize, 'dimensionkirkiL10n', array(
73
'invalid-value' => esc_attr__( 'Invalid Value', 'kirki' ),
74
) );
75
}
58
*/
59
public function enqueue() {
60
61
+ wp_enqueue_script( 'kirki-dimension', trailingslashit( Kirki::$url ) . 'controls/dimension/dimension.js', array( 'jquery', 'customize-base' ), false, true );
62
+ wp_enqueue_style( 'kirki-dimension-css', trailingslashit( Kirki::$url ) . 'controls/dimension/dimension.css', null );
63
+ wp_localize_script( 'kirki-dimension', 'dimensionkirkiL10n', array(
64
'invalid-value' => esc_attr__( 'Invalid Value', 'kirki' ),
65
) );
66
}
controls/dimension/dimension.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AAAA,kCAAmC;EACjC,QAAQ,EAAE,QAAQ;EAElB,kEAAgC;IAC9B,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,GAAG;IACZ,UAAU,EAAE,MAAM;IAClB,gBAAgB,EAAE,IAAI;IAEtB,wEAAM;MACJ,UAAU,EAAE,IAAI;MAChB,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,IAAI;MACZ,gBAAgB,EAAE,IAAI;MACtB,aAAa,EAAE,IAAI;MACnB,OAAO,EAAE,YAAY;MACrB,iBAAiB,EAAE,+CAA+C;MAClE,SAAS,EAAE,+CAA+C;IAG5D,2EAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;IAGzB,2EAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;;AAI7B,mCAUC;EATC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;EAG7B,GAAI;IACF,iBAAiB,EAAE,QAAU;AAGjC,2BAYC;EAXC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;IAC3B,SAAS,EAAE,QAAQ;EAGrB,GAAI;IACF,iBAAiB,EAAE,QAAU;IAC7B,SAAS,EAAE,QAAU",
4
- "sources": ["dimension.scss"],
5
- "names": [],
6
- "file": "dimension.css"
7
- }
controls/dimension/dimension.scss DELETED
@@ -1,60 +0,0 @@
1
- .customize-control-kirki-dimension {
2
- position: relative;
3
-
4
- .kirki-controls-loading-spinner {
5
- position: absolute;
6
- top: 0;
7
- left: 0;
8
- margin: 0;
9
- width: 100%;
10
- height: 100%;
11
- z-index: 999;
12
- text-align: center;
13
- background-color: #eee;
14
-
15
- > div {
16
- margin-top: 20px;
17
- width: 18px;
18
- height: 18px;
19
- background-color: #333;
20
- border-radius: 100%;
21
- display: inline-block;
22
- -webkit-animation: kirkibouncedelay 1.4s infinite ease-in-out both;
23
- animation: kirkibouncedelay 1.4s infinite ease-in-out both;
24
- }
25
-
26
- .bounce1 {
27
- -webkit-animation-delay: -0.32s;
28
- animation-delay: -0.32s;
29
- }
30
-
31
- .bounce2 {
32
- -webkit-animation-delay: -0.16s;
33
- animation-delay: -0.16s;
34
- }
35
- }
36
- }
37
- @-webkit-keyframes kirkibouncedelay {
38
- 0%,
39
- 100%,
40
- 80% {
41
- -webkit-transform: scale(0);
42
- }
43
-
44
- 40% {
45
- -webkit-transform: scale(1.0);
46
- }
47
- }
48
- @keyframes kirkibouncedelay {
49
- 0%,
50
- 100%,
51
- 80% {
52
- -webkit-transform: scale(0);
53
- transform: scale(0);
54
- }
55
-
56
- 40% {
57
- -webkit-transform: scale(1.0);
58
- transform: scale(1.0);
59
- }
60
- }
controls/dimensions/class-kirki-control-dimensions.php CHANGED
@@ -99,18 +99,9 @@ class Kirki_Control_Dimensions extends WP_Customize_Control {
99
*/
100
public function enqueue() {
101
102
- if ( class_exists( 'Kirki_Custom_Build' ) ) {
103
- Kirki_Custom_Build::register_dependency( 'jquery' );
104
- Kirki_Custom_Build::register_dependency( 'customize-base' );
105
- }
106
-
107
- $script_to_localize = 'kirki-build';
108
- if ( ! class_exists( 'Kirki_Custom_Build' ) || ! Kirki_Custom_Build::is_custom_build() ) {
109
- $script_to_localize = 'kirki-dimensions';
110
- wp_enqueue_script( 'kirki-dimensions', trailingslashit( Kirki::$url ) . 'controls/dimensions/dimensions.js', array( 'jquery', 'customize-base' ), false, true );
111
- wp_enqueue_style( 'kirki-dimensions-css', trailingslashit( Kirki::$url ) . 'controls/dimensions/dimensions.css', null );
112
- }
113
- wp_localize_script( $script_to_localize, 'dimensionskirkiL10n', $this->l10n() );
114
}
115
116
/**
99
*/
100
public function enqueue() {
101
102
+ wp_enqueue_script( 'kirki-dimensions', trailingslashit( Kirki::$url ) . 'controls/dimensions/dimensions.js', array( 'jquery', 'customize-base' ), false, true );
103
+ wp_enqueue_style( 'kirki-dimensions-css', trailingslashit( Kirki::$url ) . 'controls/dimensions/dimensions.css', null );
104
+ wp_localize_script( 'kirki-dimensions', 'dimensionskirkiL10n', $this->l10n() );
105
}
106
107
/**
controls/dimensions/dimensions.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AAAA,mCAAoC;EAClC,QAAQ,EAAE,QAAQ;EAElB,4CAAS;IACP,MAAM,EAAE,4BAAwB;IAChC,OAAO,EAAE,IAAI;IAEb,qDAAS;MACP,OAAO,EAAE,IAAI;MACb,SAAS,EAAE,IAAI;MACf,eAAe,EAAE,aAAa;MAE9B,2DAAM;QACJ,KAAK,EAAE,GAAG;QAEV,8DAAG;UACD,MAAM,EAAE,UAAU;QAGpB,kEAAO;UACL,OAAO,EAAE,IAAI;EAMrB,mEAAgC;IAC9B,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,GAAG;IACZ,UAAU,EAAE,MAAM;IAClB,gBAAgB,EAAE,IAAI;IAEtB,yEAAM;MACJ,UAAU,EAAE,IAAI;MAChB,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,IAAI;MACZ,gBAAgB,EAAE,IAAI;MACtB,aAAa,EAAE,IAAI;MACnB,OAAO,EAAE,YAAY;MACrB,iBAAiB,EAAE,+CAA+C;MAClE,SAAS,EAAE,+CAA+C;IAG5D,4EAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;IAGzB,4EAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;;AAI7B,mCAUC;EATC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;EAG7B,GAAI;IACF,iBAAiB,EAAE,QAAU;AAGjC,2BAYC;EAXC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;IAC3B,SAAS,EAAE,QAAQ;EAGrB,GAAI;IACF,iBAAiB,EAAE,QAAU;IAC7B,SAAS,EAAE,QAAU",
4
- "sources": ["dimensions.scss"],
5
- "names": [],
6
- "file": "dimensions.css"
7
- }
controls/dimensions/dimensions.scss DELETED
@@ -1,83 +0,0 @@
1
- .customize-control-kirki-dimensions {
2
- position: relative;
3
-
4
- .wrapper {
5
- border: 1px solid rgba(0,0,0,.1);
6
- padding: 10px;
7
-
8
- .control {
9
- display: flex;
10
- flex-wrap: wrap;
11
- justify-content: space-between;
12
-
13
- > div {
14
- width: 48%;
15
-
16
- h5 {
17
- margin: 10px 0 7px;
18
- }
19
-
20
- .inner {
21
- display: flex;
22
- }
23
- }
24
- }
25
- }
26
-
27
- .kirki-controls-loading-spinner {
28
- position: absolute;
29
- top: 0;
30
- left: 0;
31
- margin: 0;
32
- width: 100%;
33
- height: 100%;
34
- z-index: 999;
35
- text-align: center;
36
- background-color: #eee;
37
-
38
- > div {
39
- margin-top: 20px;
40
- width: 18px;
41
- height: 18px;
42
- background-color: #333;
43
- border-radius: 100%;
44
- display: inline-block;
45
- -webkit-animation: kirkibouncedelay 1.4s infinite ease-in-out both;
46
- animation: kirkibouncedelay 1.4s infinite ease-in-out both;
47
- }
48
-
49
- .bounce1 {
50
- -webkit-animation-delay: -0.32s;
51
- animation-delay: -0.32s;
52
- }
53
-
54
- .bounce2 {
55
- -webkit-animation-delay: -0.16s;
56
- animation-delay: -0.16s;
57
- }
58
- }
59
- }
60
- @-webkit-keyframes kirkibouncedelay {
61
- 0%,
62
- 100%,
63
- 80% {
64
- -webkit-transform: scale(0);
65
- }
66
-
67
- 40% {
68
- -webkit-transform: scale(1.0);
69
- }
70
- }
71
- @keyframes kirkibouncedelay {
72
- 0%,
73
- 100%,
74
- 80% {
75
- -webkit-transform: scale(0);
76
- transform: scale(0);
77
- }
78
-
79
- 40% {
80
- -webkit-transform: scale(1.0);
81
- transform: scale(1.0);
82
- }
83
- }
controls/editor/class-kirki-control-editor.php CHANGED
@@ -60,18 +60,9 @@ class Kirki_Control_Editor extends WP_Customize_Control {
60
*/
61
public function enqueue() {
62
63
- if ( class_exists( 'Kirki_Custom_Build' ) ) {
64
- Kirki_Custom_Build::register_dependency( 'jquery' );
65
- Kirki_Custom_Build::register_dependency( 'customize-base' );
66
- }
67
-
68
- $script_to_localize = 'kirki-build';
69
- if ( ! class_exists( 'Kirki_Custom_Build' ) || ! Kirki_Custom_Build::is_custom_build() ) {
70
- $script_to_localize = 'kirki-editor';
71
- wp_enqueue_script( 'kirki-editor', trailingslashit( Kirki::$url ) . 'controls/editor/editor.js', array( 'jquery', 'customize-base' ), false, true );
72
- wp_enqueue_style( 'kirki-editor-css', trailingslashit( Kirki::$url ) . 'controls/editor/editor.css', null );
73
- }
74
- wp_localize_script( $script_to_localize, 'editorKirkiL10n', array(
75
'open-editor' => esc_attr__( 'Open Editor', 'kirki' ),
76
'close-editor' => esc_attr__( 'Close Editor', 'kirki' ),
77
'switch-editor' => esc_attr__( 'Switch Editor', 'kirki' ),
60
*/
61
public function enqueue() {
62
63
+ wp_enqueue_script( 'kirki-editor', trailingslashit( Kirki::$url ) . 'controls/editor/editor.js', array( 'jquery', 'customize-base' ), false, true );
64
+ wp_enqueue_style( 'kirki-editor-css', trailingslashit( Kirki::$url ) . 'controls/editor/editor.css', null );
65
+ wp_localize_script( 'kirki-editor', 'editorKirkiL10n', array(
66
'open-editor' => esc_attr__( 'Open Editor', 'kirki' ),
67
'close-editor' => esc_attr__( 'Close Editor', 'kirki' ),
68
'switch-editor' => esc_attr__( 'Switch Editor', 'kirki' ),
controls/editor/editor.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AAAA,+BAAgC;EAC9B,QAAQ,EAAE,QAAQ;EAElB,+DAAgC;IAC9B,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,C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"editor.css"
7
- }
controls/editor/editor.scss DELETED
@@ -1,95 +0,0 @@
1
- .customize-control-kirki-editor {
2
- position: relative;
3
-
4
- .kirki-controls-loading-spinner {
5
- position: absolute;
6
- top: 0;
7
- left: 0;
8
- margin: 0;
9
- width: 100%;
10
- height: 100%;
11
- z-index: 999;
12
- text-align: center;
13
- background-color: #eee;
14
-
15
- > div {
16
- margin-top: 20px;
17
- width: 18px;
18
- height: 18px;
19
- background-color: #333;
20
- border-radius: 100%;
21
- display: inline-block;
22
- -webkit-animation: kirkibouncedelay 1.4s infinite ease-in-out both;
23
- animation: kirkibouncedelay 1.4s infinite ease-in-out both;
24
- }
25
-
26
- .bounce1 {
27
- -webkit-animation-delay: -0.32s;
28
- animation-delay: -0.32s;
29
- }
30
-
31
- .bounce2 {
32
- -webkit-animation-delay: -0.16s;
33
- animation-delay: -0.16s;
34
- }
35
- }
36
- }
37
- @-webkit-keyframes kirkibouncedelay {
38
- 0%,
39
- 100%,
40
- 80% {
41
- -webkit-transform: scale(0);
42
- }
43
-
44
- 40% {
45
- -webkit-transform: scale(1.0);
46
- }
47
- }
48
- @keyframes kirkibouncedelay {
49
- 0%,
50
- 100%,
51
- 80% {
52
- -webkit-transform: scale(0);
53
- transform: scale(0);
54
- }
55
-
56
- 40% {
57
- -webkit-transform: scale(1.0);
58
- transform: scale(1.0);
59
- }
60
- }
61
-
62
- #kirki_editor_pane {
63
- background: rgba(255,255,255,.6);
64
- // z-index: 1;
65
- padding-top: 5px;
66
- border-top: 1px solid #dedede;
67
- position: absolute;
68
- bottom: 0;
69
- width: 100%;
70
- -webkit-transition: bottom 0.2s;
71
- -moz-transition: bottom 0.2s;
72
- -ms-transition: bottom 0.2s;
73
- -o-transition: bottom 0.2s;
74
- transition: bottom 0.2s;
75
-
76
- &.hide {
77
- bottom: -301px;
78
- }
79
- }
80
-
81
- div.mce-inline-toolbar-grp {
82
- z-index: 500000 !important;
83
- }
84
-
85
- .ui-autocomplete {
86
- &.wplink-autocomplete {
87
- z-index: 500000 !important;
88
- }
89
- }
90
-
91
- #customize-preview {
92
- &.is-kirki-editor-open{
93
- height: calc(100% - 301px);
94
- }
95
- }
controls/fontawesome/class-kirki-control-fontawesome.php CHANGED
@@ -50,20 +50,9 @@ class Kirki_Control_FontAwesome extends WP_Customize_Control {
50
*/
51
public function enqueue() {
52
53
- if ( class_exists( 'Kirki_Custom_Build' ) ) {
54
- Kirki_Custom_Build::register_dependency( 'jquery' );
55
- Kirki_Custom_Build::register_dependency( 'customize-base' );
56
- Kirki_Custom_Build::register_dependency( 'select2' );
57
- Kirki_Custom_Build::register_dependency( 'jquery-ui-sortable' );
58
- }
59
-
60
- $script_to_localize = 'kirki-build';
61
- if ( ! class_exists( 'Kirki_Custom_Build' ) || ! Kirki_Custom_Build::is_custom_build() ) {
62
- $script_to_localize = 'kirki-fontawesome';
63
- wp_enqueue_script( 'kirki-fontawesome', trailingslashit( Kirki::$url ) . 'controls/fontawesome/fontawesome.js', array( 'jquery', 'customize-base', 'select2', 'jquery-ui-sortable' ), false, true );
64
- wp_enqueue_style( 'kirki-fontawesome-css', trailingslashit( Kirki::$url ) . 'controls/fontawesome/fontawesome.css', null );
65
- wp_enqueue_style( 'kirki-fontawesome-font-css', trailingslashit( Kirki::$url ) . 'controls/fontawesome/font-awesome.css', null );
66
- }
67
wp_enqueue_script( 'select2', trailingslashit( Kirki::$url ) . 'assets/vendor/select2/js/select2.full.js', array( 'jquery' ), '4.0.3', true );
68
wp_enqueue_style( 'select2', trailingslashit( Kirki::$url ) . 'assets/vendor/select2/css/select2.css', array(), '4.0.3' );
69
wp_enqueue_style( 'kirki-select2', trailingslashit( Kirki::$url ) . 'assets/vendor/select2/kirki.css', null );
@@ -71,7 +60,7 @@ class Kirki_Control_FontAwesome extends WP_Customize_Control {
71
$json_path = wp_normalize_path( dirname( __FILE__ ) . '/fontawesome.json' );
72
include( $json_path );
73
$font_awesome_json = ob_get_clean();
74
- wp_localize_script( $script_to_localize, 'fontAwesomeJSON', $font_awesome_json );
75
}
76
77
/**
50
*/
51
public function enqueue() {
52
53
+ wp_enqueue_script( 'kirki-fontawesome', trailingslashit( Kirki::$url ) . 'controls/fontawesome/fontawesome.js', array( 'jquery', 'customize-base', 'select2', 'jquery-ui-sortable' ), false, true );
54
+ wp_enqueue_style( 'kirki-fontawesome-css', trailingslashit( Kirki::$url ) . 'controls/fontawesome/fontawesome.css', null );
55
+ wp_enqueue_style( 'kirki-fontawesome-font-css', trailingslashit( Kirki::$url ) . 'controls/fontawesome/font-awesome.css', null );
56
wp_enqueue_script( 'select2', trailingslashit( Kirki::$url ) . 'assets/vendor/select2/js/select2.full.js', array( 'jquery' ), '4.0.3', true );
57
wp_enqueue_style( 'select2', trailingslashit( Kirki::$url ) . 'assets/vendor/select2/css/select2.css', array(), '4.0.3' );
58
wp_enqueue_style( 'kirki-select2', trailingslashit( Kirki::$url ) . 'assets/vendor/select2/kirki.css', null );
60
$json_path = wp_normalize_path( dirname( __FILE__ ) . '/fontawesome.json' );
61
include( $json_path );
62
$font_awesome_json = ob_get_clean();
63
+ wp_localize_script( 'kirki-fontawesome', 'fontAwesomeJSON', $font_awesome_json );
64
}
65
66
/**
controls/fontawesome/fontawesome.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AAAA,oCAAqC;EACnC,QAAQ,EAAE,QAAQ;EAElB,oEAAgC;IAC9B,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,GAAG;IACZ,UAAU,EAAE,MAAM;IAClB,gBAAgB,EAAE,IAAI;IAEtB,0EAAM;MACJ,UAAU,EAAE,IAAI;MAChB,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,IAAI;MACZ,gBAAgB,EAAE,IAAI;MACtB,aAAa,EAAE,IAAI;MACnB,OAAO,EAAE,YAAY;MACrB,iBAAiB,EAAE,+CAA+C;MAClE,SAAS,EAAE,+CAA+C;IAG5D,6EAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;IAGzB,6EAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;;AAI7B,mCAUC;EATC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;EAG7B,GAAI;IACF,iBAAiB,EAAE,QAAU;AAGjC,2BAYC;EAXC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;IAC3B,SAAS,EAAE,QAAQ;EAGrB,GAAI;IACF,iBAAiB,EAAE,QAAU;IAC7B,SAAS,EAAE,QAAU",
4
- "sources": ["fontawesome.scss"],
5
- "names": [],
6
- "file": "fontawesome.css"
7
- }
controls/fontawesome/fontawesome.scss DELETED
@@ -1,60 +0,0 @@
1
- .customize-control-kirki-fontawesome {
2
- position: relative;
3
-
4
- .kirki-controls-loading-spinner {
5
- position: absolute;
6
- top: 0;
7
- left: 0;
8
- margin: 0;
9
- width: 100%;
10
- height: 100%;
11
- z-index: 999;
12
- text-align: center;
13
- background-color: #eee;
14
-
15
- > div {
16
- margin-top: 20px;
17
- width: 18px;
18
- height: 18px;
19
- background-color: #333;
20
- border-radius: 100%;
21
- display: inline-block;
22
- -webkit-animation: kirkibouncedelay 1.4s infinite ease-in-out both;
23
- animation: kirkibouncedelay 1.4s infinite ease-in-out both;
24
- }
25
-
26
- .bounce1 {
27
- -webkit-animation-delay: -0.32s;
28
- animation-delay: -0.32s;
29
- }
30
-
31
- .bounce2 {
32
- -webkit-animation-delay: -0.16s;
33
- animation-delay: -0.16s;
34
- }
35
- }
36
- }
37
- @-webkit-keyframes kirkibouncedelay {
38
- 0%,
39
- 100%,
40
- 80% {
41
- -webkit-transform: scale(0);
42
- }
43
-
44
- 40% {
45
- -webkit-transform: scale(1.0);
46
- }
47
- }
48
- @keyframes kirkibouncedelay {
49
- 0%,
50
- 100%,
51
- 80% {
52
- -webkit-transform: scale(0);
53
- transform: scale(0);
54
- }
55
-
56
- 40% {
57
- -webkit-transform: scale(1.0);
58
- transform: scale(1.0);
59
- }
60
- }
controls/generic/class-kirki-control-generic.php CHANGED
@@ -51,15 +51,8 @@ class Kirki_Control_Generic extends WP_Customize_Control {
51
*/
52
public function enqueue() {
53
54
- if ( class_exists( 'Kirki_Custom_Build' ) ) {
55
- Kirki_Custom_Build::register_dependency( 'jquery' );
56
- Kirki_Custom_Build::register_dependency( 'customize-base' );
57
- }
58
-
59
- if ( ! class_exists( 'Kirki_Custom_Build' ) || ! Kirki_Custom_Build::is_custom_build() ) {
60
- wp_enqueue_script( 'kirki-generic', trailingslashit( Kirki::$url ) . 'controls/generic/generic.js', array( 'jquery', 'customize-base' ), false, true );
61
- wp_enqueue_style( 'kirki-generic-css', trailingslashit( Kirki::$url ) . 'controls/generic/generic.css', null );
62
- }
63
}
64
65
/**
51
*/
52
public function enqueue() {
53
54
+ wp_enqueue_script( 'kirki-generic', trailingslashit( Kirki::$url ) . 'controls/generic/generic.js', array( 'jquery', 'customize-base' ), false, true );
55
+ wp_enqueue_style( 'kirki-generic-css', trailingslashit( Kirki::$url ) . 'controls/generic/generic.css', null );
56
}
57
58
/**
controls/generic/generic.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AAAA,gCAAiC;EAC/B,QAAQ,EAAE,QAAQ;EAElB,yCAAS;IACP,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,4BAAwB;IAChC,kBAAkB,EAAE,IAAI;IACxB,UAAU,EAAE,IAAI;EAGlB,gEAAgC;IAC9B,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,GAAG;IACZ,UAAU,EAAE,MAAM;IAClB,gBAAgB,EAAE,IAAI;IAEtB,sEAAM;MACJ,UAAU,EAAE,IAAI;MAChB,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,IAAI;MACZ,gBAAgB,EAAE,IAAI;MACtB,aAAa,EAAE,IAAI;MACnB,OAAO,EAAE,YAAY;MACrB,iBAAiB,EAAE,+CAA+C;MAClE,SAAS,EAAE,+CAA+C;IAG5D,yEAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;IAGzB,yEAAS;MACP,uBAAuB,EAAE,MAAM;MAC/B,eAAe,EAAE,MAAM;;AAI7B,mCAUC;EATC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;EAG7B,GAAI;IACF,iBAAiB,EAAE,QAAU;AAGjC,2BAYC;EAXC;;KAEI;IACF,iBAAiB,EAAE,QAAQ;IAC3B,SAAS,EAAE,QAAQ;EAGrB,GAAI;IACF,iBAAiB,EAAE,QAAU;IAC7B,SAAS,EAAE,QAAU",
4
- "sources": ["generic.scss"],
5
- "names": [],
6
- "file": "generic.css"
7
- }
controls/generic/generic.scss DELETED
@@ -1,67 +0,0 @@
1
- .customize-control-kirki-generic {
2
- position: relative;
3
-
4
- textarea {
5
- width: 100%;
6
- border: 1px solid rgba(0,0,0,.1);
7
- -webkit-box-shadow: none;
8
- box-shadow: none;
9
- }
10
-
11
- .kirki-controls-loading-spinner {
12
- position: absolute;
13
- top: 0;
14
- left: 0;
15
- margin: 0;
16
- width: 100%;
17
- height: 100%;
18
- z-index: 999;
19
- text-align: center;
20
- background-color: #eee;
21
-
22
- > div {
23
- margin-top: 20px;
24
- width: 18px;
25
- height: 18px;
26
- background-color: #333;
27
- border-radius: 100%;
28
- display: inline-block;
29
- -webkit-animation: kirkibouncedelay 1.4s infinite ease-in-out both;
30
- animation: kirkibouncedelay 1.4s infinite ease-in-out both;
31
- }
32
-
33
- .bounce1 {
34
- -webkit-animation-delay: -0.32s;
35
- animation-delay: -0.32s;
36
- }
37
-
38
- .bounce2 {
39
- -webkit-animation-delay: -0.16s;
40
- animation-delay: -0.16s;
41
- }
42
- }
43
- }
44
- @-webkit-keyframes kirkibouncedelay {
45
- 0%,
46
- 100%,
47
- 80% {
48
- -webkit-transform: scale(0);
49
- }
50
-
51
- 40% {
52
- -webkit-transform: scale(1.0);
53
- }
54
- }
55
- @keyframes kirkibouncedelay {
56
- 0%,
57
- 100%,
58
- 80% {
59
- -webkit-transform: scale(0);
60
- transform: scale(0);
61
- }
62
-
63
- 40% {
64
- -webkit-transform: scale(1.0);
65
- transform: scale(1.0);
66
- }
67
- }