Version Description
- Add responsive layouts for cascading grid layout
- Add projects items ajax success loading callback
- Fixed bugs
Download this release
Release Info
Developer | TemplateMonster 2002 |
Plugin | Cherry Projects |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- cherry-framework/cherry-core.php +1 -1
- cherry-framework/config.json +9 -9
- cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php +3 -3
- cherry-framework/modules/cherry-customizer/cherry-customizer.php +13 -4
- cherry-framework/modules/cherry-customizer/inc/class-cherry-wp-customize-iconpicker.php +20 -7
- cherry-framework/modules/cherry-dynamic-css/cherry-dynamic-css.php +85 -19
- cherry-framework/modules/cherry-handler/assets/js/cherry-handler.js +2 -1
- cherry-framework/modules/cherry-handler/assets/js/min/cherry-handler.min.js +1 -1
- cherry-framework/modules/cherry-handler/cherry-handler.php +4 -13
- cherry-framework/modules/cherry-interface-builder/inc/assets/cherry-interface-builder.scss +2 -1
- cherry-framework/modules/cherry-interface-builder/inc/assets/min/cherry-interface-builder.min.css +1 -1
- cherry-framework/modules/cherry-template-manager/cherry-template-manager.php +5 -31
- cherry-framework/modules/cherry-template-manager/inc/cherry-template-loader.php +5 -31
- cherry-framework/modules/cherry-template-manager/inc/cherry-template-parser.php +1 -27
- cherry-framework/modules/cherry-ui-elements/cherry-ui-elements.php +2 -2
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/min/ui-button.min.css +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/ui-button.scss +56 -42
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/ui-kit/_mixins.scss +23 -163
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/ui-kit/_variables.scss +38 -17
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/ui-button.php +11 -11
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/view/button-view.php +2 -2
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/min/ui-checkbox.min.css +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/ui-checkbox.scss +4 -0
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/ui-kit/_mixins.scss +8 -6
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/min/ui-colorpicker.min.css +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/ui-colorpicker.scss +73 -34
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/ui-kit/_mixins.scss +8 -6
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/min/ui-iconpicker.min.css +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/min/ui-iconpicker.min.js +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-iconpicker.js +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-iconpicker.scss +6 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-kit/_mixins.scss +8 -6
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/ui-iconpicker.php +8 -5
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/min/ui-media.min.css +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-kit/_mixins.scss +31 -163
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-kit/_variables.scss +44 -15
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-media.scss +27 -60
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/ui-media.php +2 -2
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/min/ui-radio.min.css +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/min/ui-radio.min.js +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/ui-kit/_mixins.scss +25 -7
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/ui-radio.js +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-repeater/assets/min/ui-repeater.min.css +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-repeater/assets/ui-kit/_mixins.scss +21 -3
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-repeater/assets/ui-repeater.scss +6 -0
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/min/ui-select.min.css +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/min/ui-select.min.js +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-kit/_mixins.scss +6 -173
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-kit/_variables.scss +9 -21
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-select.js +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-select.scss +9 -8
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-slider/assets/min/ui-slider.min.css +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-slider/assets/ui-kit/_mixins.scss +8 -6
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/min/ui-stepper.min.css +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/ui-kit/_mixins.scss +7 -174
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/ui-kit/_variables.scss +5 -21
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/ui-stepper.scss +1 -2
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/min/ui-switcher.min.css +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/min/ui-switcher.min.js +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/ui-kit/_variables.scss +13 -21
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/ui-switcher.js +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/ui-switcher.scss +30 -14
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/assets/min/ui-text.min.css +1 -20
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/assets/ui-kit/_mixins.scss +5 -172
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/assets/ui-kit/_variables.scss +5 -21
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/assets/ui-text.scss +1 -1
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/assets/min/ui-textarea.min.css +1 -22
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/assets/ui-kit/_mixins.scss +5 -172
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/assets/ui-kit/_variables.scss +5 -21
- cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/assets/ui-textarea.scss +1 -1
- cherry-framework/modules/cherry-utility/cherry-utility.php +3 -3
- cherry-framework/modules/cherry-utility/inc/cherry-attributes-utilit.php +2 -1
- cherry-framework/modules/cherry-utility/inc/cherry-satellite-utilit.php +53 -6
- cherry-framework/modules/cherry5-insert-shortcode/assets/cherry-insert-shortcode.scss +17 -9
- cherry-framework/modules/cherry5-insert-shortcode/assets/min/cherry-insert-shortcode.min.css +1 -1
- cherry-framework/modules/cherry5-insert-shortcode/cherry5-insert-shortcode.php +5 -5
- cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-button.php +2 -2
- cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php +1 -1
- cherry-projects.php +6 -6
- languages/cherry-projects.pot +1042 -0
- public/assets/js/cherry-projects-plugin.js +31 -7
- public/assets/js/cherry-projects-scripts.js +30 -8
- public/includes/class-projects-data.php +31 -1
- readme.txt +8 -2
- wpml-config.xml +17 -3
cherry-framework/cherry-core.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Class Cherry Core
|
4 |
-
* Version: 1.4.
|
5 |
*
|
6 |
* @package Cherry_Framework
|
7 |
* @subpackage Class
|
1 |
<?php
|
2 |
/**
|
3 |
* Class Cherry Core
|
4 |
+
* Version: 1.4.2
|
5 |
*
|
6 |
* @package Cherry_Framework
|
7 |
* @subpackage Class
|
cherry-framework/config.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name" : "Cherry Framework",
|
3 |
-
"version" : "1.4.
|
4 |
"description" : "",
|
5 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs",
|
6 |
"git_link" : "https://github.com/CherryFramework/cherry-framework",
|
@@ -8,7 +8,7 @@
|
|
8 |
"cherry-breadcrumbs" : {
|
9 |
"name" : "Breadcrumb Trail",
|
10 |
"description" : "A breadcrumb menu script for WordPress.",
|
11 |
-
"version" : "1.1.
|
12 |
"doc_link" : "",
|
13 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-breadcrumbs",
|
14 |
"compatible" : ["theme", "plugin"],
|
@@ -19,7 +19,7 @@
|
|
19 |
"cherry-customizer" : {
|
20 |
"name" : "Customizer API",
|
21 |
"description" : "Customizer functionality.",
|
22 |
-
"version" : "1.1.
|
23 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/01.%20cherry-customizer.md",
|
24 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-customizer",
|
25 |
"compatible" : ["theme", "plugin"],
|
@@ -41,7 +41,7 @@
|
|
41 |
"cherry-dynamic-css" : {
|
42 |
"name" : "Dynamic CSS",
|
43 |
"description" : "Generate CSS.",
|
44 |
-
"version" : "1.
|
45 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/03.%20cherry-dynamic-css.md",
|
46 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-dynamic-css",
|
47 |
"compatible" : ["theme", "plugin"],
|
@@ -63,7 +63,7 @@
|
|
63 |
"cherry-handler" : {
|
64 |
"name" : "Cherry handler",
|
65 |
"description" : "Initialize handlers.",
|
66 |
-
"version" : "1.1.
|
67 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/02.%20cherry-handler.md",
|
68 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-handler",
|
69 |
"compatible" : ["theme", "plugin"],
|
@@ -118,7 +118,7 @@
|
|
118 |
"cherry-template-manager" : {
|
119 |
"name" : "Template Manager",
|
120 |
"description" : "Module for load and parse *.tmpl files.",
|
121 |
-
"version" : "1.0.
|
122 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/05.%20cherry-template-manager.md",
|
123 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-template-manager",
|
124 |
"compatible" : ["theme", "plugin"],
|
@@ -151,7 +151,7 @@
|
|
151 |
"cherry-ui-elements" : {
|
152 |
"name" : "UI Elements",
|
153 |
"description" : "UI Elements",
|
154 |
-
"version" : "1.
|
155 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/09.%20cherry-ui-elements.md",
|
156 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-ui-elements",
|
157 |
"compatible" : ["theme", "plugin"],
|
@@ -162,7 +162,7 @@
|
|
162 |
"cherry-utility" : {
|
163 |
"name" : "Utility",
|
164 |
"description" : "Multiple utility functions.",
|
165 |
-
"version" : "1.1.
|
166 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/08.%20cherry-utility.md",
|
167 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-utility",
|
168 |
"compatible" : ["theme", "plugin"],
|
@@ -184,7 +184,7 @@
|
|
184 |
"cherry5-insert-shortcode" : {
|
185 |
"name" : "Insert Shortcode",
|
186 |
"description" : "The module allows you to add shortcodes from editor tinyMCE.",
|
187 |
-
"version" : "1.0.
|
188 |
"doc_link" : "",
|
189 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry5-insert-shortcode",
|
190 |
"compatible" : [ "plugin" ],
|
1 |
{
|
2 |
"name" : "Cherry Framework",
|
3 |
+
"version" : "1.4.2",
|
4 |
"description" : "",
|
5 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs",
|
6 |
"git_link" : "https://github.com/CherryFramework/cherry-framework",
|
8 |
"cherry-breadcrumbs" : {
|
9 |
"name" : "Breadcrumb Trail",
|
10 |
"description" : "A breadcrumb menu script for WordPress.",
|
11 |
+
"version" : "1.1.3",
|
12 |
"doc_link" : "",
|
13 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-breadcrumbs",
|
14 |
"compatible" : ["theme", "plugin"],
|
19 |
"cherry-customizer" : {
|
20 |
"name" : "Customizer API",
|
21 |
"description" : "Customizer functionality.",
|
22 |
+
"version" : "1.1.7",
|
23 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/01.%20cherry-customizer.md",
|
24 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-customizer",
|
25 |
"compatible" : ["theme", "plugin"],
|
41 |
"cherry-dynamic-css" : {
|
42 |
"name" : "Dynamic CSS",
|
43 |
"description" : "Generate CSS.",
|
44 |
+
"version" : "1.4.0",
|
45 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/03.%20cherry-dynamic-css.md",
|
46 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-dynamic-css",
|
47 |
"compatible" : ["theme", "plugin"],
|
63 |
"cherry-handler" : {
|
64 |
"name" : "Cherry handler",
|
65 |
"description" : "Initialize handlers.",
|
66 |
+
"version" : "1.1.2",
|
67 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/02.%20cherry-handler.md",
|
68 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-handler",
|
69 |
"compatible" : ["theme", "plugin"],
|
118 |
"cherry-template-manager" : {
|
119 |
"name" : "Template Manager",
|
120 |
"description" : "Module for load and parse *.tmpl files.",
|
121 |
+
"version" : "1.0.2",
|
122 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/05.%20cherry-template-manager.md",
|
123 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-template-manager",
|
124 |
"compatible" : ["theme", "plugin"],
|
151 |
"cherry-ui-elements" : {
|
152 |
"name" : "UI Elements",
|
153 |
"description" : "UI Elements",
|
154 |
+
"version" : "1.4.1",
|
155 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/09.%20cherry-ui-elements.md",
|
156 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-ui-elements",
|
157 |
"compatible" : ["theme", "plugin"],
|
162 |
"cherry-utility" : {
|
163 |
"name" : "Utility",
|
164 |
"description" : "Multiple utility functions.",
|
165 |
+
"version" : "1.1.6",
|
166 |
"doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/08.%20cherry-utility.md",
|
167 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-utility",
|
168 |
"compatible" : ["theme", "plugin"],
|
184 |
"cherry5-insert-shortcode" : {
|
185 |
"name" : "Insert Shortcode",
|
186 |
"description" : "The module allows you to add shortcodes from editor tinyMCE.",
|
187 |
+
"version" : "1.0.1",
|
188 |
"doc_link" : "",
|
189 |
"git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry5-insert-shortcode",
|
190 |
"compatible" : [ "plugin" ],
|
cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Module Name: Breadcrumb Trail
|
4 |
* Description: A breadcrumb menu script for WordPress
|
5 |
-
* Version: 1.1.
|
6 |
* Author: Cherry Team
|
7 |
* Author URI: http://www.cherryframework.com/
|
8 |
* License: GPLv3
|
@@ -916,10 +916,10 @@ if ( ! class_exists( 'Cherry_Breadcrumbs' ) ) {
|
|
916 |
/* Get the post type object. */
|
917 |
$post_type_object = get_post_type_object( get_query_var( 'post_type' ) );
|
918 |
|
919 |
-
if ( false !== $post_type_object->rewrite ) {
|
920 |
|
921 |
/* If 'with_front' is true, add $wp_rewrite->front to the trail. */
|
922 |
-
if ( $post_type_object->rewrite['with_front'] ) {
|
923 |
$this->add_rewrite_front_items();
|
924 |
}
|
925 |
}
|
2 |
/**
|
3 |
* Module Name: Breadcrumb Trail
|
4 |
* Description: A breadcrumb menu script for WordPress
|
5 |
+
* Version: 1.1.3
|
6 |
* Author: Cherry Team
|
7 |
* Author URI: http://www.cherryframework.com/
|
8 |
* License: GPLv3
|
916 |
/* Get the post type object. */
|
917 |
$post_type_object = get_post_type_object( get_query_var( 'post_type' ) );
|
918 |
|
919 |
+
if ( ! empty( $post_type_object ) && false !== $post_type_object->rewrite ) {
|
920 |
|
921 |
/* If 'with_front' is true, add $wp_rewrite->front to the trail. */
|
922 |
+
if ( ! empty( $post_type_object->rewrite ) && $post_type_object->rewrite['with_front'] ) {
|
923 |
$this->add_rewrite_front_items();
|
924 |
}
|
925 |
}
|
cherry-framework/modules/cherry-customizer/cherry-customizer.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Module Name: Customizer
|
4 |
* Description: Customizer functionality.
|
5 |
-
* Version: 1.1.
|
6 |
* Author: Cherry Team
|
7 |
* Author URI: http://www.cherryframework.com/
|
8 |
* License: GPLv3
|
@@ -10,7 +10,7 @@
|
|
10 |
*
|
11 |
* @package Cherry_Framework
|
12 |
* @subpackage Modules
|
13 |
-
* @version 1.1.
|
14 |
* @author Cherry Team <cherryframework@gmail.com>
|
15 |
* @copyright Copyright (c) 2012 - 2016, Cherry Team
|
16 |
* @link http://www.cherryframework.com/
|
@@ -413,7 +413,14 @@ if ( ! class_exists( 'Cherry_Customizer' ) ) {
|
|
413 |
case 'iconpicker':
|
414 |
$control_class = 'Cherry_WP_Customize_Iconpicker';
|
415 |
$icon_data = ( isset( $args['icon_data'] ) ) ? $args['icon_data'] : array();
|
416 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
417 |
break;
|
418 |
|
419 |
default:
|
@@ -797,6 +804,8 @@ if ( ! class_exists( 'Cherry_Customizer' ) ) {
|
|
797 |
// Get step.
|
798 |
$step = ( isset( $atts['step'] ) ? $atts['step'] : 1 );
|
799 |
|
|
|
|
|
800 |
if ( is_float( $step ) ) {
|
801 |
|
802 |
// Ensure input is a float value.
|
@@ -805,7 +814,7 @@ if ( ! class_exists( 'Cherry_Customizer' ) ) {
|
|
805 |
} else {
|
806 |
|
807 |
// Ensure input is an absolute integer.
|
808 |
-
$number = absint( $number );
|
809 |
$checker = is_int( $number / $step );
|
810 |
}
|
811 |
|
2 |
/**
|
3 |
* Module Name: Customizer
|
4 |
* Description: Customizer functionality.
|
5 |
+
* Version: 1.1.7
|
6 |
* Author: Cherry Team
|
7 |
* Author URI: http://www.cherryframework.com/
|
8 |
* License: GPLv3
|
10 |
*
|
11 |
* @package Cherry_Framework
|
12 |
* @subpackage Modules
|
13 |
+
* @version 1.1.7
|
14 |
* @author Cherry Team <cherryframework@gmail.com>
|
15 |
* @copyright Copyright (c) 2012 - 2016, Cherry Team
|
16 |
* @link http://www.cherryframework.com/
|
413 |
case 'iconpicker':
|
414 |
$control_class = 'Cherry_WP_Customize_Iconpicker';
|
415 |
$icon_data = ( isset( $args['icon_data'] ) ) ? $args['icon_data'] : array();
|
416 |
+
$auto_parse = ( isset( $args['auto_parse'] ) ) ? $args['auto_parse'] : array();
|
417 |
+
$control_args = wp_parse_args(
|
418 |
+
array(
|
419 |
+
'icon_data' => $icon_data,
|
420 |
+
'auto_parse' => $auto_parse,
|
421 |
+
),
|
422 |
+
$control_args
|
423 |
+
);
|
424 |
break;
|
425 |
|
426 |
default:
|
804 |
// Get step.
|
805 |
$step = ( isset( $atts['step'] ) ? $atts['step'] : 1 );
|
806 |
|
807 |
+
$number = ( ! isset( $atts['min'] ) && 0 > $number ) ? $setting->default : $number ;
|
808 |
+
|
809 |
if ( is_float( $step ) ) {
|
810 |
|
811 |
// Ensure input is a float value.
|
814 |
} else {
|
815 |
|
816 |
// Ensure input is an absolute integer.
|
817 |
+
$number = ( isset( $atts['min'] ) && 0 > $atts['min'] && 0 > $number ) ? intval( $number ) : absint( $number );
|
818 |
$checker = is_int( $number / $step );
|
819 |
}
|
820 |
|
cherry-framework/modules/cherry-customizer/inc/class-cherry-wp-customize-iconpicker.php
CHANGED
@@ -18,12 +18,20 @@ if ( class_exists( 'WP_Customize_Control' ) ) {
|
|
18 |
class Cherry_WP_Customize_Iconpicker extends WP_Customize_Control {
|
19 |
|
20 |
/**
|
21 |
-
*
|
22 |
*
|
|
|
23 |
* @var array
|
24 |
*/
|
25 |
public $icon_data = array();
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
/**
|
28 |
* UI instance
|
29 |
*
|
@@ -40,7 +48,11 @@ if ( class_exists( 'WP_Customize_Control' ) ) {
|
|
40 |
<span class="customize-control-title">
|
41 |
<?php echo esc_html( $this->label ); ?>
|
42 |
</span>
|
43 |
-
|
|
|
|
|
|
|
|
|
44 |
</label>
|
45 |
<?php
|
46 |
echo str_replace(
|
@@ -62,11 +74,12 @@ if ( class_exists( 'WP_Customize_Control' ) ) {
|
|
62 |
);
|
63 |
|
64 |
$args = array(
|
65 |
-
'type'
|
66 |
-
'id'
|
67 |
-
'name'
|
68 |
-
'value'
|
69 |
-
'icon_data'
|
|
|
70 |
);
|
71 |
|
72 |
add_action( 'customize_controls_print_styles', array( $this, 'print_sets' ) );
|
18 |
class Cherry_WP_Customize_Iconpicker extends WP_Customize_Control {
|
19 |
|
20 |
/**
|
21 |
+
* Icons data array
|
22 |
*
|
23 |
+
* @see cherry-ui-elements/inc/ui-elements/ui-iconpicker/ui-iconpicker.php for data array format.
|
24 |
* @var array
|
25 |
*/
|
26 |
public $icon_data = array();
|
27 |
|
28 |
+
/**
|
29 |
+
* Trigger to try automatically pase icons from CSS file or not.
|
30 |
+
*
|
31 |
+
* @var boolean
|
32 |
+
*/
|
33 |
+
public $auto_parse = false;
|
34 |
+
|
35 |
/**
|
36 |
* UI instance
|
37 |
*
|
48 |
<span class="customize-control-title">
|
49 |
<?php echo esc_html( $this->label ); ?>
|
50 |
</span>
|
51 |
+
<?php if ( isset( $this->description ) ) : ?>
|
52 |
+
<span class="description customize-control-description">
|
53 |
+
<?php echo wp_kses_post( $this->description ); ?>
|
54 |
+
</span>
|
55 |
+
<?php endif; ?>
|
56 |
</label>
|
57 |
<?php
|
58 |
echo str_replace(
|
74 |
);
|
75 |
|
76 |
$args = array(
|
77 |
+
'type' => 'iconpicker',
|
78 |
+
'id' => $this->id,
|
79 |
+
'name' => $this->id,
|
80 |
+
'value' => $this->value(),
|
81 |
+
'icon_data' => $this->icon_data,
|
82 |
+
'auto_parse' => $this->auto_parse,
|
83 |
);
|
84 |
|
85 |
add_action( 'customize_controls_print_styles', array( $this, 'print_sets' ) );
|
cherry-framework/modules/cherry-dynamic-css/cherry-dynamic-css.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Module Name: Dynamic CSS
|
4 |
* Description: CSS parser which uses variables & functions for CSS code optimization
|
5 |
-
* Version: 1.
|
6 |
* Author: Cherry Team
|
7 |
* Author URI: http://www.cherryframework.com/
|
8 |
* License: GPLv3
|
@@ -10,9 +10,9 @@
|
|
10 |
*
|
11 |
* @package Cherry_Framework
|
12 |
* @subpackage Modules
|
13 |
-
* @version 1.
|
14 |
* @author Cherry Team <cherryframework@gmail.com>
|
15 |
-
* @copyright Copyright (c) 2012 -
|
16 |
* @link http://www.cherryframework.com/
|
17 |
* @license http://www.gnu.org/licenses/gpl-3.0.html
|
18 |
*/
|
@@ -72,6 +72,17 @@ if ( ! class_exists( 'Cherry_Dynamic_Css' ) ) {
|
|
72 |
*/
|
73 |
public static $collector = null;
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
/**
|
76 |
* Constructor for the module
|
77 |
*/
|
@@ -79,18 +90,46 @@ if ( ! class_exists( 'Cherry_Dynamic_Css' ) ) {
|
|
79 |
|
80 |
$this->core = $core;
|
81 |
$this->args = wp_parse_args( $args, array(
|
82 |
-
'prefix'
|
83 |
-
'type'
|
84 |
-
'
|
85 |
-
'
|
86 |
-
'
|
|
|
87 |
) );
|
88 |
|
89 |
-
|
90 |
-
|
91 |
$this->init_collector();
|
92 |
}
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
/**
|
95 |
* Initalize CSS collector class
|
96 |
*
|
@@ -296,12 +335,12 @@ if ( ! class_exists( 'Cherry_Dynamic_Css' ) ) {
|
|
296 |
}
|
297 |
|
298 |
/**
|
299 |
-
*
|
300 |
*
|
301 |
-
* @since 1.
|
302 |
-
* @return
|
303 |
*/
|
304 |
-
public function
|
305 |
|
306 |
if ( ! $this->args['css_files'] ) {
|
307 |
return false;
|
@@ -311,6 +350,14 @@ if ( ! class_exists( 'Cherry_Dynamic_Css' ) ) {
|
|
311 |
$this->args['css_files'] = array( $this->args['css_files'] );
|
312 |
}
|
313 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
314 |
ob_start();
|
315 |
|
316 |
foreach ( $this->args['css_files'] as $file ) {
|
@@ -344,6 +391,23 @@ if ( ! class_exists( 'Cherry_Dynamic_Css' ) ) {
|
|
344 |
*/
|
345 |
$parsed_css = apply_filters( 'cherry_dynamic_css_parsed_styles', $parsed_css, $this->args );
|
346 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
347 |
printf( '<style type="text/css">%s</style>', $parsed_css );
|
348 |
|
349 |
}
|
@@ -409,11 +473,13 @@ if ( ! class_exists( 'Cherry_Dynamic_Css' ) ) {
|
|
409 |
|
410 |
$functions = $this->get_css_functions();
|
411 |
|
412 |
-
// check if function exists and is not CSS
|
413 |
-
if ( ! array_key_exists( $matches[2], $functions )
|
414 |
-
|
415 |
-
|
416 |
-
|
|
|
|
|
417 |
}
|
418 |
|
419 |
$function = $functions[ $matches[2] ];
|
2 |
/**
|
3 |
* Module Name: Dynamic CSS
|
4 |
* Description: CSS parser which uses variables & functions for CSS code optimization
|
5 |
+
* Version: 1.4.0
|
6 |
* Author: Cherry Team
|
7 |
* Author URI: http://www.cherryframework.com/
|
8 |
* License: GPLv3
|
10 |
*
|
11 |
* @package Cherry_Framework
|
12 |
* @subpackage Modules
|
13 |
+
* @version 1.4.0
|
14 |
* @author Cherry Team <cherryframework@gmail.com>
|
15 |
+
* @copyright Copyright (c) 2012 - 2017, Cherry Team
|
16 |
* @link http://www.cherryframework.com/
|
17 |
* @license http://www.gnu.org/licenses/gpl-3.0.html
|
18 |
*/
|
72 |
*/
|
73 |
public static $collector = null;
|
74 |
|
75 |
+
/**
|
76 |
+
* Reserved words list
|
77 |
+
*
|
78 |
+
* @since 1.4.0
|
79 |
+
* @var array
|
80 |
+
*/
|
81 |
+
public $css_reserved = array(
|
82 |
+
'media',
|
83 |
+
'supports',
|
84 |
+
);
|
85 |
+
|
86 |
/**
|
87 |
* Constructor for the module
|
88 |
*/
|
90 |
|
91 |
$this->core = $core;
|
92 |
$this->args = wp_parse_args( $args, array(
|
93 |
+
'prefix' => 'blank',
|
94 |
+
'type' => 'theme_mod',
|
95 |
+
'parent_handle' => false,
|
96 |
+
'single' => true,
|
97 |
+
'css_files' => null,
|
98 |
+
'options' => array(),
|
99 |
) );
|
100 |
|
101 |
+
$this->init_dynamic_css();
|
|
|
102 |
$this->init_collector();
|
103 |
}
|
104 |
|
105 |
+
/**
|
106 |
+
* Initalize dynamic CSS with fallback compatibility.
|
107 |
+
*
|
108 |
+
* @since 1.3.0
|
109 |
+
* @return void
|
110 |
+
*/
|
111 |
+
public function init_dynamic_css() {
|
112 |
+
|
113 |
+
/**
|
114 |
+
* Not actual for now, required only for fallback compatibility.
|
115 |
+
*/
|
116 |
+
if ( empty( $this->args['parent_handle'] ) ) {
|
117 |
+
add_action( 'wp_head', array( $this, 'print_inline_css' ), 99 );
|
118 |
+
}
|
119 |
+
|
120 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'add_inline_css' ), 99 );
|
121 |
+
}
|
122 |
+
|
123 |
+
/**
|
124 |
+
* Adds inline CSS into queue
|
125 |
+
*
|
126 |
+
* @since 1.3.0
|
127 |
+
* @return void
|
128 |
+
*/
|
129 |
+
public function add_inline_css() {
|
130 |
+
wp_add_inline_style( $this->args['parent_handle'], $this->get_inline_css() );
|
131 |
+
}
|
132 |
+
|
133 |
/**
|
134 |
* Initalize CSS collector class
|
135 |
*
|
335 |
}
|
336 |
|
337 |
/**
|
338 |
+
* Returns complied dynamic CSS string.
|
339 |
*
|
340 |
+
* @since 1.3.0
|
341 |
+
* @return string|bool false
|
342 |
*/
|
343 |
+
public function get_inline_css() {
|
344 |
|
345 |
if ( ! $this->args['css_files'] ) {
|
346 |
return false;
|
350 |
$this->args['css_files'] = array( $this->args['css_files'] );
|
351 |
}
|
352 |
|
353 |
+
/**
|
354 |
+
* Filter CSS reserved words list
|
355 |
+
*
|
356 |
+
* @since 1.4.0
|
357 |
+
* @var array
|
358 |
+
*/
|
359 |
+
$this->css_reserved = apply_filters( 'cherry_dynamic_css_reserved_words_list', $this->css_reserved );
|
360 |
+
|
361 |
ob_start();
|
362 |
|
363 |
foreach ( $this->args['css_files'] as $file ) {
|
391 |
*/
|
392 |
$parsed_css = apply_filters( 'cherry_dynamic_css_parsed_styles', $parsed_css, $this->args );
|
393 |
|
394 |
+
return $parsed_css;
|
395 |
+
}
|
396 |
+
|
397 |
+
/**
|
398 |
+
* Print inline CSS after current theme stylesheet
|
399 |
+
*
|
400 |
+
* @since 1.0.0
|
401 |
+
* @return void|bool false
|
402 |
+
*/
|
403 |
+
public function print_inline_css() {
|
404 |
+
|
405 |
+
$parsed_css = $this->get_inline_css();
|
406 |
+
|
407 |
+
if ( empty( $parsed_css ) ) {
|
408 |
+
return false;
|
409 |
+
}
|
410 |
+
|
411 |
printf( '<style type="text/css">%s</style>', $parsed_css );
|
412 |
|
413 |
}
|
473 |
|
474 |
$functions = $this->get_css_functions();
|
475 |
|
476 |
+
// check if function exists and is not CSS-reserved word
|
477 |
+
if ( ! array_key_exists( $matches[2], $functions ) ) {
|
478 |
+
if ( is_array( $this->css_reserved ) && in_array( $matches[2], $this->css_reserved ) ) {
|
479 |
+
return $matches[0];
|
480 |
+
} else {
|
481 |
+
return $not_found;
|
482 |
+
}
|
483 |
}
|
484 |
|
485 |
$function = $functions[ $matches[2] ];
|
cherry-framework/modules/cherry-handler/assets/js/cherry-handler.js
CHANGED
@@ -21,6 +21,7 @@
|
|
21 |
'cache': false,
|
22 |
'processData': true,
|
23 |
'url': '',
|
|
|
24 |
'beforeSendCallback': function() {},
|
25 |
'errorCallback': function() {},
|
26 |
'successCallback': function() {},
|
@@ -109,7 +110,7 @@
|
|
109 |
dataType: self.handlerSettings.data_type,
|
110 |
processData: settings.processData,
|
111 |
beforeSend: function( jqXHR, ajaxSettings ) {
|
112 |
-
if ( null !== self.ajaxRequest ) {
|
113 |
self.ajaxRequest.abort();
|
114 |
}
|
115 |
|
21 |
'cache': false,
|
22 |
'processData': true,
|
23 |
'url': '',
|
24 |
+
'async': false,
|
25 |
'beforeSendCallback': function() {},
|
26 |
'errorCallback': function() {},
|
27 |
'successCallback': function() {},
|
110 |
dataType: self.handlerSettings.data_type,
|
111 |
processData: settings.processData,
|
112 |
beforeSend: function( jqXHR, ajaxSettings ) {
|
113 |
+
if ( null !== self.ajaxRequest && ! settings.async ) {
|
114 |
self.ajaxRequest.abort();
|
115 |
}
|
116 |
|
cherry-framework/modules/cherry-handler/assets/js/min/cherry-handler.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e,a){"use strict";a.utilites.namespace("CherryAjaxHandler"),a.CherryAjaxHandler=function(t){var n=this,r={handlerId:"",cache:!1,processData:!0,url:"",beforeSendCallback:function(){},errorCallback:function(){},successCallback:function(){},completeCallback:function(){}};return t&&e.extend(r,t),window[r.handlerId]?(n.handlerSettings=window[r.handlerId]||{},n.ajaxRequest=null,n.ajaxProcessing=!1,n.data={action:n.handlerSettings.action,nonce:n.handlerSettings.nonce},""===r.url&&("false"===n.handlerSettings.is_public?
|
1 |
+
!function(e,a){"use strict";a.utilites.namespace("CherryAjaxHandler"),a.CherryAjaxHandler=function(t){var n=this,r={handlerId:"",cache:!1,processData:!0,url:"",async:!1,beforeSendCallback:function(){},errorCallback:function(){},successCallback:function(){},completeCallback:function(){}};return t&&e.extend(r,t),window[r.handlerId]?(n.handlerSettings=window[r.handlerId]||{},n.ajaxRequest=null,n.ajaxProcessing=!1,n.data={action:n.handlerSettings.action,nonce:n.handlerSettings.nonce},""===r.url&&(r.url="false"===n.handlerSettings.is_public?window.ajaxurl:window.cherryHandlerAjaxUrl.ajax_url),n.send=function(){n.ajaxProcessing&&a.cherryHandlerUtils.noticeCreate("error-notice",n.handlerSettings.sys_messages.wait_processing,n.handlerSettings.is_public),n.ajaxProcessing=!0,n.ajaxRequest=jQuery.ajax({type:n.handlerSettings.type,url:r.url,data:n.data,cache:r.cache,dataType:n.handlerSettings.data_type,processData:r.processData,beforeSend:function(e,a){null===n.ajaxRequest||r.async||n.ajaxRequest.abort(),r.beforeSendCallback&&"function"==typeof r.beforeSendCallback&&r.beforeSendCallback(e,a)},error:function(a,t,n){e(document).trigger({type:"cherry-ajax-handler-error",jqXHR:a,textStatus:t,errorThrown:n}),r.errorCallback&&"function"==typeof r.errorCallback&&r.errorCallback(a,t,n)},success:function(t,c,s){n.ajaxProcessing=!1,e(document).trigger({type:"cherry-ajax-handler-success",response:t,jqXHR:s,textStatus:c}),r.successCallback&&"function"==typeof r.successCallback&&r.successCallback(t,c,s),a.cherryHandlerUtils.noticeCreate(t.type,t.message,n.handlerSettings.is_public)},complete:function(a,t){e(document).trigger({type:"cherry-ajax-handler-complete",jqXHR:a,textStatus:t}),r.completeCallback&&"function"==typeof r.completeCallback&&r.completeCallback(a,t)}})},n.sendData=function(e){var a=e||{};n.data={action:n.handlerSettings.action,nonce:n.handlerSettings.nonce,data:a},n.send()},void(n.sendFormData=function(t){var r,c=e(t);r=a.cherryHandlerUtils.serializeObject(c),n.sendData(r)})):(window.console&&window.console.warn("Handler id not found"),!1)},a.utilites.namespace("cherryHandlerUtils"),a.cherryHandlerUtils={noticeCreate:function(a,t,n){function r(){var a=100;e(".cherry-handler-notice").each(function(){e(this).css({top:a}),a+=e(this).outerHeight(!0)})}var c,s,i=0,o=n||!1;return t&&"true"!==o?(c=e('<div class="cherry-handler-notice '+a+'"><span class="dashicons"></span><div class="inner">'+t+"</div></div>"),e("body").prepend(c),r(),i=-1*(c.outerWidth(!0)+10),c.css({right:i}),s=setTimeout(function(){c.css({right:10}).addClass("show-state")},100),s=setTimeout(function(){i=-1*(c.outerWidth(!0)+10),c.css({right:i}).removeClass("show-state")},4e3),void(s=setTimeout(function(){c.remove(),clearTimeout(s)},4500))):!1},serializeObject:function(a){var t=this,n={},r={},c={validate:/^[a-zA-Z][a-zA-Z0-9_-]*(?:\[(?:\d*|[a-zA-Z0-9_-]+)\])*$/,key:/[a-zA-Z0-9_-]+|(?=\[\])/g,push:/^$/,fixed:/^\d+$/,named:/^[a-zA-Z0-9_-]+$/};return this.build=function(e,a,t){return e[a]=t,e},this.push_counter=function(e){return void 0===r[e]&&(r[e]=0),r[e]++},e.each(a.serializeArray(),function(){var a,r,s,i;if(c.validate.test(this.name)){for(r=this.name.match(c.key),s=this.value,i=this.name;void 0!==(a=r.pop());)i=i.replace(new RegExp("\\["+a+"\\]$"),""),a.match(c.push)?s=t.build([],t.push_counter(i),s):a.match(c.fixed)?s=t.build([],a,s):a.match(c.named)&&(s=t.build({},a,s));n=e.extend(!0,n,s)}}),n}}}(jQuery,window.CherryJsCore);
|
cherry-framework/modules/cherry-handler/cherry-handler.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Module Name: Cherry handler
|
4 |
* Description: Initializes handlers
|
5 |
-
* Version: 1.1.
|
6 |
* Author: Cherry Team
|
7 |
* Author URI: http://www.cherryframework.com/
|
8 |
* License: GPLv3
|
@@ -10,7 +10,7 @@
|
|
10 |
*
|
11 |
* @package Cherry_Framework
|
12 |
* @subpackage Modules
|
13 |
-
* @version 1.1.
|
14 |
* @author Cherry Team <cherryframework@gmail.com>
|
15 |
* @copyright Copyright (c) 2012 - 2016, Cherry Team
|
16 |
* @link http://www.cherryframework.com/
|
@@ -31,15 +31,6 @@ if ( ! class_exists( 'Cherry_Handler' ) ) {
|
|
31 |
*/
|
32 |
class Cherry_Handler {
|
33 |
|
34 |
-
/**
|
35 |
-
* A reference to an instance of this class.
|
36 |
-
*
|
37 |
-
* @since 1.0.0
|
38 |
-
* @access private
|
39 |
-
* @var object
|
40 |
-
*/
|
41 |
-
private static $handlers_list = array();
|
42 |
-
|
43 |
/**
|
44 |
* Default settings.
|
45 |
*
|
@@ -166,7 +157,7 @@ if ( ! class_exists( 'Cherry_Handler' ) ) {
|
|
166 |
'cherry-handler-js',
|
167 |
esc_url( Cherry_Core::base_url( 'assets/js/min/cherry-handler.min.js', __FILE__ ) ),
|
168 |
array( 'jquery' ),
|
169 |
-
'1.
|
170 |
true
|
171 |
);
|
172 |
|
@@ -174,7 +165,7 @@ if ( ! class_exists( 'Cherry_Handler' ) ) {
|
|
174 |
'cherry-handler-css',
|
175 |
esc_url( Cherry_Core::base_url( 'assets/css/cherry-handler-styles.min.css', __FILE__ ) ),
|
176 |
array(),
|
177 |
-
'1.
|
178 |
'all'
|
179 |
);
|
180 |
}
|
2 |
/**
|
3 |
* Module Name: Cherry handler
|
4 |
* Description: Initializes handlers
|
5 |
+
* Version: 1.1.3
|
6 |
* Author: Cherry Team
|
7 |
* Author URI: http://www.cherryframework.com/
|
8 |
* License: GPLv3
|
10 |
*
|
11 |
* @package Cherry_Framework
|
12 |
* @subpackage Modules
|
13 |
+
* @version 1.1.3
|
14 |
* @author Cherry Team <cherryframework@gmail.com>
|
15 |
* @copyright Copyright (c) 2012 - 2016, Cherry Team
|
16 |
* @link http://www.cherryframework.com/
|
31 |
*/
|
32 |
class Cherry_Handler {
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
/**
|
35 |
* Default settings.
|
36 |
*
|
157 |
'cherry-handler-js',
|
158 |
esc_url( Cherry_Core::base_url( 'assets/js/min/cherry-handler.min.js', __FILE__ ) ),
|
159 |
array( 'jquery' ),
|
160 |
+
'1.1.3',
|
161 |
true
|
162 |
);
|
163 |
|
165 |
'cherry-handler-css',
|
166 |
esc_url( Cherry_Core::base_url( 'assets/css/cherry-handler-styles.min.css', __FILE__ ) ),
|
167 |
array(),
|
168 |
+
'1.1.3',
|
169 |
'all'
|
170 |
);
|
171 |
}
|
cherry-framework/modules/cherry-interface-builder/inc/assets/cherry-interface-builder.scss
CHANGED
@@ -78,7 +78,8 @@ html{
|
|
78 |
color: $link-hover-color;
|
79 |
}
|
80 |
&:focus{
|
81 |
-
outline: 1px solid
|
|
|
82 |
}
|
83 |
}
|
84 |
&__description{
|
78 |
color: $link-hover-color;
|
79 |
}
|
80 |
&:focus{
|
81 |
+
outline: 1px solid rgba(41, 143, 252, .6);
|
82 |
+
box-shadow: 0px 0px 2px rgba(41,143,252,0.6);
|
83 |
}
|
84 |
}
|
85 |
&__description{
|
cherry-framework/modules/cherry-interface-builder/inc/assets/min/cherry-interface-builder.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cherry-ui-kit button *{pointer-events:none}.cherry-component__content .cherry-settings__content{display:none}.cherry-component__content .cherry-settings__content.show{display:inherit}html{font-size:13px}.cherry-ui-kit h1{font-weight:700;font-size:2.308rem;line-height:2.308rem}.cherry-ui-kit h1 .dashicons{font-size:3rem;line-height:inherit;width:20px;margin:0 20px 0 -5px}.cherry-ui-kit h2{font-weight:600;font-size:1.538rem;line-height:1.538rem}.cherry-ui-kit h2 .dashicons{font-size:2rem;line-height:inherit;width:20px;margin-right:20px}.cherry-ui-kit h3{font-weight:600;font-size:1.231rem;line-height:1.231rem}.cherry-ui-kit h3 .dashicons{font-size:1.7rem;line-height:inherit;margin-right:5px}.cherry-ui-kit h4{font-weight:500;font-size:1.077rem;line-height:1.077rem}.cherry-ui-kit h5{font-weight:500;font-size:1.077rem;line-height:1.077rem}.cherry-ui-kit h6{font-weight:400;font-size:1rem;line-height:1rem}.cherry-ui-kit a{color:#298ffc;text-decoration:none}.cherry-ui-kit a:hover{color:#23282d}.cherry-ui-kit a:focus{outline:1px solid #23282d}.cherry-ui-kit__description{font-size:0.9rem;color:#96989a;margin:10px 0}.cherry-ui-kit__title{margin:20px 0}.cherry-ui-kit.hide{display:none}.cherry-control+.cherry-control,.cherry-settings+.cherry-control{border-top:1px solid rgba(0,0,0,0.1)}.cherry-section{padding:10px;background-color:#fff;margin-left:-10px}.cherry-section__title,.cherry-section__description{margin:10px 0 0 0}.cherry-section+.cherry-ui-kit{border-top:1px solid rgba(0,0,0,0.1)}@media (min-width: 783px){.cherry-section{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1);padding:15px;margin:15px 15px 0 0}.cherry-section__holder{background-color:#efefef;border-radius:5px;padding:15px}.cherry-section__info{background-color:#fff;border-radius:5px;padding:15px;box-shadow:0px 5px 21px rgba(0,0,0,0.1);margin-bottom:15px}.cherry-section .cherry-settings{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1);background-color:#fff;margin-top:15px}.cherry-section .cherry-settings:first-child{margin-top:0}}@media (min-width: 961px){.cherry-section{padding:30px;margin:20px 20px 0 0}.cherry-section__info{padding:30px;margin-bottom:30px}.cherry-section__holder{padding:30px}.cherry-section .cherry-settings{margin-top:30px}}.cherry-component{padding:20px 0}@media (min-width: 783px){.cherry-component{padding:15px}}@media (min-width: 961px){.cherry-component{padding:30px}}.cherry-component+*{border-top:1px solid rgba(0,0,0,0.1)}.cherry-component__title{margin-top:0}.cherry-component .cherry-component__content .cherry-settings{padding:0;border-top:none}.cherry-component__button{display:block;min-height:45px;-webkit-transition:all 300ms cubic-bezier(0.55, 0.055, 0.675, 0.19);transition:all 300ms cubic-bezier(0.55, 0.055, 0.675, 0.19)}.cherry-component__button .cherry-ui-kit__title{color:inherit}.cherry-component__button.active,.cherry-component__button:hover{color:#298ffc;-webkit-transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry-component__button:focus{outline:none;box-shadow:inset 0px 0px 10px rgba(41,143,252,0.5);-webkit-transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275);transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275)}.cherry-component.cherry-accordion .cherry-component__button,.cherry-component.cherry-toggle .cherry-component__button{width:100%;padding:15px 20px;border:0;background:none;cursor:pointer;position:relative}.cherry-component.cherry-accordion .cherry-component__button .cherry-toggle__title,.cherry-component.cherry-toggle .cherry-component__button .cherry-toggle__title{font-weight:700;font-size:14px;float:left;margin:0}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"],.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"]{position:absolute;top:50%;right:5px;margin-top:-10px;font-size:25px;color:#b4b7ba;padding:5px 5px;width:10px;height:9px;text-align:left;overflow:hidden}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].hide-icon,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].hide-icon{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transition:all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);transition:all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275)}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].hide-icon:before,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].hide-icon:before{position:relative;top:-8px;left:-9px}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].show-icon,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].show-icon{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:all 300ms cubic-bezier(0.215, 0.61, 0.355, 1);transition:all 300ms cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].show-icon:before,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].show-icon:before{position:relative;top:-7px;left:-9px}.cherry-component.cherry-accordion .cherry-component__button.active>span[class*="icon"].show-icon,.cherry-component.cherry-toggle .cherry-component__button.active>span[class*="icon"].show-icon{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275);transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275)}.cherry-component.cherry-accordion .cherry-component__button.active>span[class*="icon"].hide-icon,.cherry-component.cherry-toggle .cherry-component__button.active>span[class*="icon"].hide-icon{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry-component.cherry-accordion .cherry-component__button+.cherry-settings__content,.cherry-component.cherry-toggle .cherry-component__button+.cherry-settings__content{border-top:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-accordion>.cherry-ui-kit__content>.cherry-settings+.cherry-settings,.cherry-component.cherry-toggle>.cherry-ui-kit__content>.cherry-settings+.cherry-settings{margin-top:10px}.cherry-component.cherry-accordion>.cherry-ui-kit__content>.cherry-settings,.cherry-component.cherry-toggle>.cherry-ui-kit__content>.cherry-settings{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__tabs{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-ms-flex-line-pack:start;align-content:flex-start;border-bottom:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0;-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%;-ms-flex-item-align:auto;-ms-grid-row-align:auto;align-self:auto;padding:15px 20px;border:0;background:none;cursor:pointer}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button.active{-ms-box-shadow:inset 0px -3px 0px 0px #298ffc;box-shadow:inset 0px -3px 0px 0px #298ffc}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button .cherry-tab__title{font-weight:700;font-size:14px;float:left;margin:0}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button+button{border-top:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__body{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1);background-color:#fff}.cherry-component.cherry-tab .cherry-tab__body .cherry-settings{box-shadow:none;border-radius:0;border:none;background-color:inherit;margin:0}@media (min-width: 783px){.cherry-component.cherry-tab .cherry-tab__tabs{border:solid 1px rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button+button{border-top:none}.cherry-component.cherry-tab .cherry-tab__body{border:none}.cherry-component.cherry-tab .cherry-tab__body .cherry-tab__content{border:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab--horizontal>.cherry-tab__body{border-radius:none}.cherry-component.cherry-tab--horizontal>.cherry-tab__body>.cherry-tab__tabs{-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;border-radius:5px 5px 0 0;border-bottom:none}.cherry-component.cherry-tab--horizontal>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.cherry-component.cherry-tab--horizontal>.cherry-tab__body>.cherry-tab__content{border-radius:0 0 5px 5px}.cherry-component.cherry-tab--vertical>.cherry-tab__body{display:-webkit-box;display:-ms-flexbox;display:flex;border-radius:none}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:0;-ms-flex:0 1 25%;flex:0 1 25%;border-radius:5px 0 0 5px;border-right:none}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button{text-align:right}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button .cherry-tab__title{width:100%}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button.active{box-shadow:inset -3px 0px 0px #298ffc}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__content{-webkit-box-flex:0;-ms-flex:0 1 75%;flex:0 1 75%;border-radius:0 5px 5px 0}}@media (min-width: 1200px){.cherry-component.cherry-tab--vertical .cherry-tab__tabs{-webkit-box-flex:0;-ms-flex:0 1 20%;flex:0 1 20%}.cherry-component.cherry-tab--vertical .cherry-tab__content{-webkit-box-flex:0;-ms-flex:0 1 80%;flex:0 1 80%}}.cherry-settings+.cherry-settings{border-top:1px solid rgba(0,0,0,0.1)}.cherry-settings .cherry-settings__title{margin-bottom:10px}.cherry-settings__description,.cherry-settings .cherry-settings__title{margin-left:10px}@media (min-width: 783px){.cherry-settings__description,.cherry-settings .cherry-settings__title{margin-left:15px}}@media (min-width: 961px){.cherry-settings__description,.cherry-settings .cherry-settings__title{margin-left:30px}}.cherry-control{padding:15px 20px}.cherry-control__title{margin:0 0 10px 0}.cherry-control__description{margin-top:0}.cherry-control .cherry-ui-container{margin:0}@media (min-width: 783px){.cherry-control{padding:15px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap}.cherry-control__info{-webkit-box-flex:0;-ms-flex:0 1 30%;flex:0 1 30%;padding-right:15px}.cherry-control__content{-webkit-box-flex:0;-ms-flex:0 1 70%;flex:0 1 70%}}@media (min-width: 961px){.cherry-control{padding:30px}}@media (min-width: 783px){.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner,.cherry-tab__content>.cherry-scroll,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content{max-height:700px;overflow-y:auto;position:relative}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar{width:10px;height:10px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-button,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-button,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-button,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-button{width:0px;height:0px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-thumb,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-thumb,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb{background-color:#298ffc;border:none;border-radius:5px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-thumb:hover,.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-thumb:active,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-thumb:hover,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-thumb:active,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:hover,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:active,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:hover,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:active{background:#206ff4}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-track,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-track,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-track,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-track{background-color:#fff;border:none;border-radius:5px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-corner,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-corner,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-corner,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-corner{background:transparent}}
|
1 |
+
.cherry-ui-kit button *{pointer-events:none}.cherry-component__content .cherry-settings__content{display:none}.cherry-component__content .cherry-settings__content.show{display:inherit}html{font-size:13px}.cherry-ui-kit h1{font-weight:700;font-size:2.308rem;line-height:2.308rem}.cherry-ui-kit h1 .dashicons{font-size:3rem;line-height:inherit;width:20px;margin:0 20px 0 -5px}.cherry-ui-kit h2{font-weight:600;font-size:1.538rem;line-height:1.538rem}.cherry-ui-kit h2 .dashicons{font-size:2rem;line-height:inherit;width:20px;margin-right:20px}.cherry-ui-kit h3{font-weight:600;font-size:1.231rem;line-height:1.231rem}.cherry-ui-kit h3 .dashicons{font-size:1.7rem;line-height:inherit;margin-right:5px}.cherry-ui-kit h4{font-weight:500;font-size:1.077rem;line-height:1.077rem}.cherry-ui-kit h5{font-weight:500;font-size:1.077rem;line-height:1.077rem}.cherry-ui-kit h6{font-weight:400;font-size:1rem;line-height:1rem}.cherry-ui-kit a{color:#298ffc;text-decoration:none}.cherry-ui-kit a:hover{color:#23282d}.cherry-ui-kit a:focus{outline:1px solid rgba(41,143,252,0.6);box-shadow:0px 0px 2px rgba(41,143,252,0.6)}.cherry-ui-kit__description{font-size:0.9rem;color:#96989a;margin:10px 0}.cherry-ui-kit__title{margin:20px 0}.cherry-ui-kit.hide{display:none}.cherry-control+.cherry-control,.cherry-settings+.cherry-control{border-top:1px solid rgba(0,0,0,0.1)}.cherry-section{padding:10px;background-color:#fff;margin-left:-10px}.cherry-section__title,.cherry-section__description{margin:10px 0 0 0}.cherry-section+.cherry-ui-kit{border-top:1px solid rgba(0,0,0,0.1)}@media (min-width: 783px){.cherry-section{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1);padding:15px;margin:15px 15px 0 0}.cherry-section__holder{background-color:#efefef;border-radius:5px;padding:15px}.cherry-section__info{background-color:#fff;border-radius:5px;padding:15px;box-shadow:0px 5px 21px rgba(0,0,0,0.1);margin-bottom:15px}.cherry-section .cherry-settings{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1);background-color:#fff;margin-top:15px}.cherry-section .cherry-settings:first-child{margin-top:0}}@media (min-width: 961px){.cherry-section{padding:30px;margin:20px 20px 0 0}.cherry-section__info{padding:30px;margin-bottom:30px}.cherry-section__holder{padding:30px}.cherry-section .cherry-settings{margin-top:30px}}.cherry-component{padding:20px 0}@media (min-width: 783px){.cherry-component{padding:15px}}@media (min-width: 961px){.cherry-component{padding:30px}}.cherry-component+*{border-top:1px solid rgba(0,0,0,0.1)}.cherry-component__title{margin-top:0}.cherry-component .cherry-component__content .cherry-settings{padding:0;border-top:none}.cherry-component__button{display:block;min-height:45px;-webkit-transition:all 300ms cubic-bezier(0.55, 0.055, 0.675, 0.19);transition:all 300ms cubic-bezier(0.55, 0.055, 0.675, 0.19)}.cherry-component__button .cherry-ui-kit__title{color:inherit}.cherry-component__button.active,.cherry-component__button:hover{color:#298ffc;-webkit-transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry-component__button:focus{outline:none;box-shadow:inset 0px 0px 10px rgba(41,143,252,0.5);-webkit-transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275);transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275)}.cherry-component.cherry-accordion .cherry-component__button,.cherry-component.cherry-toggle .cherry-component__button{width:100%;padding:15px 20px;border:0;background:none;cursor:pointer;position:relative}.cherry-component.cherry-accordion .cherry-component__button .cherry-toggle__title,.cherry-component.cherry-toggle .cherry-component__button .cherry-toggle__title{font-weight:700;font-size:14px;float:left;margin:0}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"],.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"]{position:absolute;top:50%;right:5px;margin-top:-10px;font-size:25px;color:#b4b7ba;padding:5px 5px;width:10px;height:9px;text-align:left;overflow:hidden}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].hide-icon,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].hide-icon{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transition:all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);transition:all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275)}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].hide-icon:before,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].hide-icon:before{position:relative;top:-8px;left:-9px}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].show-icon,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].show-icon{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:all 300ms cubic-bezier(0.215, 0.61, 0.355, 1);transition:all 300ms cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].show-icon:before,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].show-icon:before{position:relative;top:-7px;left:-9px}.cherry-component.cherry-accordion .cherry-component__button.active>span[class*="icon"].show-icon,.cherry-component.cherry-toggle .cherry-component__button.active>span[class*="icon"].show-icon{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275);transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275)}.cherry-component.cherry-accordion .cherry-component__button.active>span[class*="icon"].hide-icon,.cherry-component.cherry-toggle .cherry-component__button.active>span[class*="icon"].hide-icon{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry-component.cherry-accordion .cherry-component__button+.cherry-settings__content,.cherry-component.cherry-toggle .cherry-component__button+.cherry-settings__content{border-top:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-accordion>.cherry-ui-kit__content>.cherry-settings+.cherry-settings,.cherry-component.cherry-toggle>.cherry-ui-kit__content>.cherry-settings+.cherry-settings{margin-top:10px}.cherry-component.cherry-accordion>.cherry-ui-kit__content>.cherry-settings,.cherry-component.cherry-toggle>.cherry-ui-kit__content>.cherry-settings{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__tabs{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-ms-flex-line-pack:start;align-content:flex-start;border-bottom:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0;-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%;-ms-flex-item-align:auto;-ms-grid-row-align:auto;align-self:auto;padding:15px 20px;border:0;background:none;cursor:pointer}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button.active{-ms-box-shadow:inset 0px -3px 0px 0px #298ffc;box-shadow:inset 0px -3px 0px 0px #298ffc}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button .cherry-tab__title{font-weight:700;font-size:14px;float:left;margin:0}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button+button{border-top:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__body{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1);background-color:#fff}.cherry-component.cherry-tab .cherry-tab__body .cherry-settings{box-shadow:none;border-radius:0;border:none;background-color:inherit;margin:0}@media (min-width: 783px){.cherry-component.cherry-tab .cherry-tab__tabs{border:solid 1px rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button+button{border-top:none}.cherry-component.cherry-tab .cherry-tab__body{border:none}.cherry-component.cherry-tab .cherry-tab__body .cherry-tab__content{border:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab--horizontal>.cherry-tab__body{border-radius:none}.cherry-component.cherry-tab--horizontal>.cherry-tab__body>.cherry-tab__tabs{-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;border-radius:5px 5px 0 0;border-bottom:none}.cherry-component.cherry-tab--horizontal>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.cherry-component.cherry-tab--horizontal>.cherry-tab__body>.cherry-tab__content{border-radius:0 0 5px 5px}.cherry-component.cherry-tab--vertical>.cherry-tab__body{display:-webkit-box;display:-ms-flexbox;display:flex;border-radius:none}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:0;-ms-flex:0 1 25%;flex:0 1 25%;border-radius:5px 0 0 5px;border-right:none}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button{text-align:right}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button .cherry-tab__title{width:100%}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button.active{box-shadow:inset -3px 0px 0px #298ffc}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__content{-webkit-box-flex:0;-ms-flex:0 1 75%;flex:0 1 75%;border-radius:0 5px 5px 0}}@media (min-width: 1200px){.cherry-component.cherry-tab--vertical .cherry-tab__tabs{-webkit-box-flex:0;-ms-flex:0 1 20%;flex:0 1 20%}.cherry-component.cherry-tab--vertical .cherry-tab__content{-webkit-box-flex:0;-ms-flex:0 1 80%;flex:0 1 80%}}.cherry-settings+.cherry-settings{border-top:1px solid rgba(0,0,0,0.1)}.cherry-settings .cherry-settings__title{margin-bottom:10px}.cherry-settings__description,.cherry-settings .cherry-settings__title{margin-left:10px}@media (min-width: 783px){.cherry-settings__description,.cherry-settings .cherry-settings__title{margin-left:15px}}@media (min-width: 961px){.cherry-settings__description,.cherry-settings .cherry-settings__title{margin-left:30px}}.cherry-control{padding:15px 20px}.cherry-control__title{margin:0 0 10px 0}.cherry-control__description{margin-top:0}.cherry-control .cherry-ui-container{margin:0}@media (min-width: 783px){.cherry-control{padding:15px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap}.cherry-control__info{-webkit-box-flex:0;-ms-flex:0 1 30%;flex:0 1 30%;padding-right:15px}.cherry-control__content{-webkit-box-flex:0;-ms-flex:0 1 70%;flex:0 1 70%}}@media (min-width: 961px){.cherry-control{padding:30px}}@media (min-width: 783px){.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner,.cherry-tab__content>.cherry-scroll,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content{max-height:700px;overflow-y:auto;position:relative}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar{width:10px;height:10px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-button,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-button,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-button,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-button{width:0px;height:0px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-thumb,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-thumb,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb{background-color:#298ffc;border:none;border-radius:5px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-thumb:hover,.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-thumb:active,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-thumb:hover,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-thumb:active,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:hover,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:active,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:hover,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:active{background:#206ff4}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-track,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-track,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-track,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-track{background-color:#fff;border:none;border-radius:5px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-corner,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-corner,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-corner,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-corner{background:transparent}}
|
cherry-framework/modules/cherry-template-manager/cherry-template-manager.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Module Name: Template Manager
|
4 |
* Description: Module load and parse tmpl files.
|
5 |
-
* Version: 1.0.
|
6 |
* Author: Cherry Team
|
7 |
* Author URI: http://www.cherryframework.com/
|
8 |
* License: GPLv3
|
@@ -10,7 +10,7 @@
|
|
10 |
*
|
11 |
* @package Template_Manager
|
12 |
* @subpackage Modules
|
13 |
-
* @version 1.0.
|
14 |
* @author Cherry Team <cherryframework@gmail.com>
|
15 |
* @copyright Copyright (c) 2012 - 2016, Cherry Team
|
16 |
* @link http://www.cherryframework.com/
|
@@ -31,15 +31,6 @@ if ( ! class_exists( 'Cherry_Template_Manager' ) ) {
|
|
31 |
*/
|
32 |
class Cherry_Template_Manager {
|
33 |
|
34 |
-
/**
|
35 |
-
* A reference to an instance of this class.
|
36 |
-
*
|
37 |
-
* @since 1.0.0
|
38 |
-
* @access private
|
39 |
-
* @var object
|
40 |
-
*/
|
41 |
-
private static $instance = null;
|
42 |
-
|
43 |
/**
|
44 |
* Module arguments.
|
45 |
*
|
@@ -86,7 +77,7 @@ if ( ! class_exists( 'Cherry_Template_Manager' ) ) {
|
|
86 |
|
87 |
$this->include_class();
|
88 |
|
89 |
-
$this->args =
|
90 |
$args,
|
91 |
$this->args
|
92 |
);
|
@@ -114,25 +105,8 @@ if ( ! class_exists( 'Cherry_Template_Manager' ) ) {
|
|
114 |
* @return void
|
115 |
*/
|
116 |
public function set_class() {
|
117 |
-
$this->loader = Cherry_Template_Loader
|
118 |
-
$this->parser = Cherry_Template_Parser
|
119 |
-
}
|
120 |
-
|
121 |
-
/**
|
122 |
-
* Returns the instance.
|
123 |
-
*
|
124 |
-
* @since 1.0.0
|
125 |
-
* @access public
|
126 |
-
* @return object
|
127 |
-
*/
|
128 |
-
public static function get_instance( $core = null, $args = array() ) {
|
129 |
-
|
130 |
-
// If the single instance hasn't been set, set it now.
|
131 |
-
if ( null == self::$instance ) {
|
132 |
-
self::$instance = new self( $core, $args );
|
133 |
-
}
|
134 |
-
|
135 |
-
return self::$instance;
|
136 |
}
|
137 |
}
|
138 |
}
|
2 |
/**
|
3 |
* Module Name: Template Manager
|
4 |
* Description: Module load and parse tmpl files.
|
5 |
+
* Version: 1.0.2
|
6 |
* Author: Cherry Team
|
7 |
* Author URI: http://www.cherryframework.com/
|
8 |
* License: GPLv3
|
10 |
*
|
11 |
* @package Template_Manager
|
12 |
* @subpackage Modules
|
13 |
+
* @version 1.0.2
|
14 |
* @author Cherry Team <cherryframework@gmail.com>
|
15 |
* @copyright Copyright (c) 2012 - 2016, Cherry Team
|
16 |
* @link http://www.cherryframework.com/
|
31 |
*/
|
32 |
class Cherry_Template_Manager {
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
/**
|
35 |
* Module arguments.
|
36 |
*
|
77 |
|
78 |
$this->include_class();
|
79 |
|
80 |
+
$this->args = wp_parse_args(
|
81 |
$args,
|
82 |
$this->args
|
83 |
);
|
105 |
* @return void
|
106 |
*/
|
107 |
public function set_class() {
|
108 |
+
$this->loader = new Cherry_Template_Loader( $this->args, $this );
|
109 |
+
$this->parser = new Cherry_Template_Parser( $this->args, $this );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
}
|
111 |
}
|
112 |
}
|
cherry-framework/modules/cherry-template-manager/inc/cherry-template-loader.php
CHANGED
@@ -23,15 +23,6 @@ if ( ! class_exists( 'Cherry_Template_Loader' ) ) {
|
|
23 |
*/
|
24 |
class Cherry_Template_Loader {
|
25 |
|
26 |
-
/**
|
27 |
-
* A reference to an instance of this class.
|
28 |
-
*
|
29 |
-
* @since 1.0.0
|
30 |
-
* @access private
|
31 |
-
* @var object
|
32 |
-
*/
|
33 |
-
private static $instance = null;
|
34 |
-
|
35 |
/**
|
36 |
* A reference to an instance of this Cherry_Template_Manager class.
|
37 |
*
|
@@ -50,8 +41,8 @@ if ( ! class_exists( 'Cherry_Template_Loader' ) ) {
|
|
50 |
*/
|
51 |
private $args = array(
|
52 |
'template_dir' => 'templates/%1$s/%2$s.tmpl',
|
53 |
-
'slug' =>
|
54 |
-
'upload_dir' =>
|
55 |
);
|
56 |
|
57 |
/**
|
@@ -63,7 +54,7 @@ if ( ! class_exists( 'Cherry_Template_Loader' ) ) {
|
|
63 |
*/
|
64 |
public function __construct( $args = array(), $main_class = null ) {
|
65 |
|
66 |
-
$this->args =
|
67 |
$args,
|
68 |
$this->args
|
69 |
);
|
@@ -116,7 +107,7 @@ if ( ! class_exists( 'Cherry_Template_Loader' ) ) {
|
|
116 |
* @return string
|
117 |
*/
|
118 |
private function get_slug() {
|
119 |
-
$file_dir = wp_normalize_path( dirname( $this->cherry_template_manager_class->core->settings['
|
120 |
$product_dir = $this->get_project_root();
|
121 |
|
122 |
$slug = str_replace( $product_dir, '', $file_dir );
|
@@ -135,7 +126,7 @@ if ( ! class_exists( 'Cherry_Template_Loader' ) ) {
|
|
135 |
private function get_project_root() {
|
136 |
$themes_dir = wp_normalize_path( get_theme_root() );
|
137 |
$plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
|
138 |
-
$file_dir = wp_normalize_path( dirname( $this->cherry_template_manager_class->core->settings['
|
139 |
$project_root = ( false === strpos( $file_dir, $themes_dir ) ) ? $plugin_dir : $themes_dir;
|
140 |
|
141 |
return trailingslashit( $project_root );
|
@@ -198,22 +189,5 @@ if ( ! class_exists( 'Cherry_Template_Loader' ) ) {
|
|
198 |
return;
|
199 |
}
|
200 |
}
|
201 |
-
|
202 |
-
|
203 |
-
/**
|
204 |
-
* Returns the instance.
|
205 |
-
*
|
206 |
-
* @since 1.0.0
|
207 |
-
* @return object
|
208 |
-
*/
|
209 |
-
public static function get_instance( $args, $main_class ) {
|
210 |
-
|
211 |
-
// If the single instance hasn't been set, set it now.
|
212 |
-
if ( null == self::$instance ) {
|
213 |
-
self::$instance = new self( $args, $main_class );
|
214 |
-
}
|
215 |
-
|
216 |
-
return self::$instance;
|
217 |
-
}
|
218 |
}
|
219 |
}
|
23 |
*/
|
24 |
class Cherry_Template_Loader {
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
/**
|
27 |
* A reference to an instance of this Cherry_Template_Manager class.
|
28 |
*
|
41 |
*/
|
42 |
private $args = array(
|
43 |
'template_dir' => 'templates/%1$s/%2$s.tmpl',
|
44 |
+
'slug' => null,
|
45 |
+
'upload_dir' => null,
|
46 |
);
|
47 |
|
48 |
/**
|
54 |
*/
|
55 |
public function __construct( $args = array(), $main_class = null ) {
|
56 |
|
57 |
+
$this->args = wp_parse_args(
|
58 |
$args,
|
59 |
$this->args
|
60 |
);
|
107 |
* @return string
|
108 |
*/
|
109 |
private function get_slug() {
|
110 |
+
$file_dir = wp_normalize_path( dirname( $this->cherry_template_manager_class->core->settings['extra_base_dir'] ) );
|
111 |
$product_dir = $this->get_project_root();
|
112 |
|
113 |
$slug = str_replace( $product_dir, '', $file_dir );
|
126 |
private function get_project_root() {
|
127 |
$themes_dir = wp_normalize_path( get_theme_root() );
|
128 |
$plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
|
129 |
+
$file_dir = wp_normalize_path( dirname( $this->cherry_template_manager_class->core->settings['extra_base_dir'] ) );
|
130 |
$project_root = ( false === strpos( $file_dir, $themes_dir ) ) ? $plugin_dir : $themes_dir;
|
131 |
|
132 |
return trailingslashit( $project_root );
|
189 |
return;
|
190 |
}
|
191 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
}
|
193 |
}
|
cherry-framework/modules/cherry-template-manager/inc/cherry-template-parser.php
CHANGED
@@ -22,16 +22,6 @@ if ( ! class_exists( 'Cherry_Template_Parser' ) ) {
|
|
22 |
* @since 1.0.0
|
23 |
*/
|
24 |
class Cherry_Template_Parser {
|
25 |
-
|
26 |
-
/**
|
27 |
-
* A reference to an instance of this class.
|
28 |
-
*
|
29 |
-
* @since 1.0.0
|
30 |
-
* @access private
|
31 |
-
* @var object
|
32 |
-
*/
|
33 |
-
private static $instance = null;
|
34 |
-
|
35 |
/**
|
36 |
* A reference to an instance of this Cherry_Template_Manager class.
|
37 |
*
|
@@ -70,7 +60,7 @@ if ( ! class_exists( 'Cherry_Template_Parser' ) ) {
|
|
70 |
* @return void
|
71 |
*/
|
72 |
public function __construct( $args = array(), $main_class = null ) {
|
73 |
-
$this->args =
|
74 |
$args,
|
75 |
$this->args
|
76 |
);
|
@@ -202,21 +192,5 @@ if ( ! class_exists( 'Cherry_Template_Parser' ) ) {
|
|
202 |
return;
|
203 |
}
|
204 |
}
|
205 |
-
|
206 |
-
/**
|
207 |
-
* Returns the instance.
|
208 |
-
*
|
209 |
-
* @since 1.0.0
|
210 |
-
* @return object
|
211 |
-
*/
|
212 |
-
public static function get_instance( $args, $main_class ) {
|
213 |
-
|
214 |
-
// If the single instance hasn't been set, set it now.
|
215 |
-
if ( null == self::$instance ) {
|
216 |
-
self::$instance = new self( $args, $main_class );
|
217 |
-
}
|
218 |
-
|
219 |
-
return self::$instance;
|
220 |
-
}
|
221 |
}
|
222 |
}
|
22 |
* @since 1.0.0
|
23 |
*/
|
24 |
class Cherry_Template_Parser {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
/**
|
26 |
* A reference to an instance of this Cherry_Template_Manager class.
|
27 |
*
|
60 |
* @return void
|
61 |
*/
|
62 |
public function __construct( $args = array(), $main_class = null ) {
|
63 |
+
$this->args = wp_parse_args(
|
64 |
$args,
|
65 |
$this->args
|
66 |
);
|
192 |
return;
|
193 |
}
|
194 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
}
|
196 |
}
|
cherry-framework/modules/cherry-ui-elements/cherry-ui-elements.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Module Name: UI Elements
|
4 |
* Description: Class for the building ui elements
|
5 |
-
* Version: 1.
|
6 |
* Author: Cherry Team
|
7 |
* Author URI: http://www.cherryframework.com/
|
8 |
* License: GPLv3
|
@@ -10,7 +10,7 @@
|
|
10 |
*
|
11 |
* @package Cherry_Framework
|
12 |
* @subpackage Modules
|
13 |
-
* @version 1.
|
14 |
* @author Cherry Team <cherryframework@gmail.com>
|
15 |
* @copyright Copyright (c) 2012 - 2016, Cherry Team
|
16 |
* @link http://www.cherryframework.com/
|
2 |
/**
|
3 |
* Module Name: UI Elements
|
4 |
* Description: Class for the building ui elements
|
5 |
+
* Version: 1.4.1
|
6 |
* Author: Cherry Team
|
7 |
* Author URI: http://www.cherryframework.com/
|
8 |
* License: GPLv3
|
10 |
*
|
11 |
* @package Cherry_Framework
|
12 |
* @subpackage Modules
|
13 |
+
* @version 1.4.1
|
14 |
* @author Cherry Team <cherryframework@gmail.com>
|
15 |
* @copyright Copyright (c) 2012 - 2016, Cherry Team
|
16 |
* @link http://www.cherryframework.com/
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/min/ui-button.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ui-button{
|
1 |
+
.cherry5-ui-button{position:relative;display:inline-block;font-size:12px;line-height:18px;font-weight:900;letter-spacing:0.5px;text-decoration:none;padding:15px 20px;color:#23282d;text-transform:uppercase;border-radius:4px;border-width:1px;border-style:solid;outline:none;cursor:pointer;transition:all 200ms linear}.cherry5-ui-button:before{position:absolute;display:block;width:100%;height:100%;top:0;left:0;border-radius:4px;background-image:linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);content:''}.cherry5-ui-button:hover:before{background-image:linear-gradient(0deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%)}.cherry5-ui-button:active:before{opacity:0}.cherry5-ui-button.cherry5-ui-button-normal-style{color:#23282d;border-color:#d7d7d7 #b7b7b7 #b7b7b7 #d7d7d7;background-color:#f0f0f0}.cherry5-ui-button.cherry5-ui-button-normal-style:active{background-color:#e1e1e1;border-color:#9e9e9e #d7d7d7 #d7d7d7 #9e9e9e}.cherry5-ui-button.cherry5-ui-button-success-style{color:#fff;border-color:#49c56a #3a9e54 #3a9e54 #49c56a;background-color:#49c66a}.cherry5-ui-button.cherry5-ui-button-success-style:active{background-color:#3ba956;border-color:#2c7940 #49c56a #49c56a #2c7940}.cherry5-ui-button.cherry5-ui-button-primary-style{color:#fff;border-color:#5b9add #3e6a99 #3e6a99 #5b9add;background-color:#2a90fc}.cherry5-ui-button.cherry5-ui-button-primary-style:active{background-color:#206ff4;border-color:#2f5175 #5b9add #5b9add #2f5175}.cherry5-ui-button.cherry5-ui-button-secondary-style{color:#fff;border-color:#777879 #41464d #41464d #777879;background-color:#495159}.cherry5-ui-button.cherry5-ui-button-secondary-style:active{background-color:#495159;border-color:#2a2d31 #777879 #777879 #2a2d31}.cherry5-ui-button.cherry5-ui-button-danger-style{color:#fff;border-color:#e54444 #b83636 #b83636 #e54444;background-color:#e64545}.cherry5-ui-button.cherry5-ui-button-danger-style:active{background-color:#c73434;border-color:#912a2a #e54444 #e54444 #912a2a}.cherry5-ui-button.cherry5-ui-button-warning-style{color:#fff;border-color:#faa832 #c98627 #c98627 #faa832;background-color:#faa832}.cherry5-ui-button.cherry5-ui-button-warning-style:active{background-color:#ee8425;border-color:#9e6a1f #faa832 #faa832 #9e6a1f}
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/ui-button.scss
CHANGED
@@ -1,52 +1,66 @@
|
|
1 |
@import "ui-kit/variables";
|
2 |
@import "ui-kit/mixins";
|
3 |
|
4 |
-
.ui-button{
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
border: none;
|
15 |
-
transition: background 300ms ease-in-out;
|
16 |
-
&:hover{
|
17 |
-
background-color: $grey_color_4;
|
18 |
-
}
|
19 |
-
&:focus{
|
20 |
-
outline: none;
|
21 |
}
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
39 |
}
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
|
|
51 |
}
|
|
|
52 |
}
|
1 |
@import "ui-kit/variables";
|
2 |
@import "ui-kit/mixins";
|
3 |
|
4 |
+
.cherry5-ui-button{
|
5 |
+
@include button_base();
|
6 |
+
|
7 |
+
&.cherry5-ui-button-normal-style {
|
8 |
+
color: $dark_color;
|
9 |
+
border-color: $normal_outset_1 $normal_outset_2 $normal_outset_2 $normal_outset_1;
|
10 |
+
background-color: $normal_gradint_2;
|
11 |
+
&:active {
|
12 |
+
background-color: $normal_bg_color;
|
13 |
+
border-color: darken( $normal_outset_2, 10%) $normal_outset_1 $normal_outset_1 darken( $normal_outset_2, 10%);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
+
}
|
16 |
+
|
17 |
+
&.cherry5-ui-button-success-style {
|
18 |
+
color: $light_color;
|
19 |
+
border-color: $success_outset_1 $success_outset_2 $success_outset_2 $success_outset_1;
|
20 |
+
background-color: $success_gradint_2;
|
21 |
+
&:active {
|
22 |
+
background-color: $success_bg_color;
|
23 |
+
border-color: darken( $success_outset_2, 10%) $success_outset_1 $success_outset_1 darken( $success_outset_2, 10%);
|
24 |
}
|
25 |
+
}
|
26 |
+
|
27 |
+
&.cherry5-ui-button-primary-style {
|
28 |
+
color: $light_color;
|
29 |
+
border-color: $primary_outset_1 $primary_outset_2 $primary_outset_2 $primary_outset_1;
|
30 |
+
background-color: $primary_gradint_2;
|
31 |
+
&:active {
|
32 |
+
background-color: $primary_bg_color;
|
33 |
+
border-color: darken( $primary_outset_2, 10%) $primary_outset_1 $primary_outset_1 darken( $primary_outset_2, 10%);
|
34 |
}
|
35 |
+
}
|
36 |
+
|
37 |
+
&.cherry5-ui-button-secondary-style {
|
38 |
+
color: $light_color;
|
39 |
+
border-color: $secondary_outset_1 $secondary_outset_2 $secondary_outset_2 $secondary_outset_1;
|
40 |
+
background-color: $secondary_gradint_2;
|
41 |
+
&:active {
|
42 |
+
background-color: $secondary_bg_color;
|
43 |
+
border-color: darken( $secondary_outset_2, 10%) $secondary_outset_1 $secondary_outset_1 darken( $secondary_outset_2, 10%);
|
44 |
}
|
45 |
+
}
|
46 |
+
|
47 |
+
&.cherry5-ui-button-danger-style{
|
48 |
+
color: $light_color;
|
49 |
+
border-color: $danger_outset_1 $danger_outset_2 $danger_outset_2 $danger_outset_1;
|
50 |
+
background-color: $danger_gradint_2;
|
51 |
+
&:active {
|
52 |
+
background-color: $danger_bg_color;
|
53 |
+
border-color: darken( $danger_outset_2, 10%) $danger_outset_1 $danger_outset_1 darken( $danger_outset_2, 10%);
|
54 |
}
|
55 |
+
}
|
56 |
+
|
57 |
+
&.cherry5-ui-button-warning-style{
|
58 |
+
color: $light_color;
|
59 |
+
border-color: $warning_outset_1 $warning_outset_2 $warning_outset_2 $warning_outset_1;
|
60 |
+
background-color: $warning_gradint_2;
|
61 |
+
&:active {
|
62 |
+
background-color: $warning_bg_color;
|
63 |
+
border-color: darken( $warning_outset_2, 10%) $warning_outset_1 $warning_outset_1 darken( $warning_outset_2, 10%);
|
64 |
}
|
65 |
+
}
|
66 |
}
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/ui-kit/_mixins.scss
CHANGED
@@ -1,182 +1,42 @@
|
|
1 |
@mixin button_base() {
|
|
|
2 |
display: inline-block;
|
3 |
-
text-decoration: none;
|
4 |
font-size: 12px;
|
5 |
-
line-height:
|
6 |
-
font-weight:
|
|
|
|
|
7 |
padding: 15px 20px;
|
8 |
-
color:
|
9 |
text-transform: uppercase;
|
10 |
border-radius: $border_radius_small;
|
|
|
|
|
|
|
|
|
11 |
transition: all 200ms linear;
|
12 |
-
box-shadow: $box_shadow;
|
13 |
-
&:hover {
|
14 |
-
color: #fff;
|
15 |
-
box-shadow: none;
|
16 |
-
}
|
17 |
-
&:focus,
|
18 |
-
&:active {
|
19 |
-
outline: none;
|
20 |
-
box-shadow: none;
|
21 |
-
color: #fff;
|
22 |
-
}
|
23 |
-
}
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
background: $blue_color_h;
|
36 |
-
}
|
37 |
-
}
|
38 |
-
|
39 |
-
@mixin button_success() {
|
40 |
-
background: $green_color;
|
41 |
-
&:hover {
|
42 |
-
background: $green_color_h;
|
43 |
-
}
|
44 |
-
}
|
45 |
-
|
46 |
-
@mixin button_danger() {
|
47 |
-
background: $red_color;
|
48 |
-
&:hover {
|
49 |
-
background: $red_color_h;
|
50 |
}
|
51 |
-
}
|
52 |
|
53 |
-
@mixin button_warning() {
|
54 |
-
background: $orange_color;
|
55 |
&:hover {
|
56 |
-
|
57 |
-
|
58 |
-
}
|
59 |
-
|
60 |
-
@mixin input() {
|
61 |
-
font-size: 14px;
|
62 |
-
line-height: 20px;
|
63 |
-
color: $dark_color_1;
|
64 |
-
background-color: $grey_color_3;
|
65 |
-
border-radius: $border_radius_extra_small;
|
66 |
-
padding: 10px 20px;
|
67 |
-
min-height: 50px;
|
68 |
-
border: 1px solid $grey_color_3;
|
69 |
-
box-shadow: none;
|
70 |
-
&:focus{
|
71 |
-
border-color: rgba(72,197,105,.6);
|
72 |
-
box-shadow: 0 0 2px rgba(72,197,105,.6);
|
73 |
}
|
74 |
-
}
|
75 |
-
|
76 |
-
@mixin button_icon( $icon ) {
|
77 |
-
content: $icon;
|
78 |
-
display: inline-block;
|
79 |
-
font-family: dashicons;
|
80 |
-
font-size: 16px;
|
81 |
-
font-style: normal;
|
82 |
-
font-weight: 400;
|
83 |
-
height: 18px;
|
84 |
-
line-height: 18px;
|
85 |
-
text-align: center;
|
86 |
-
text-decoration: inherit;
|
87 |
-
transition: all 200ms linear;
|
88 |
-
vertical-align: middle;
|
89 |
-
}
|
90 |
-
|
91 |
-
@mixin button_icon_before( $icon ) {
|
92 |
-
&:before {
|
93 |
-
@include button_icon( $icon );
|
94 |
-
padding: 0 5px 0 0;
|
95 |
-
}
|
96 |
-
}
|
97 |
-
|
98 |
-
@mixin button_icon_after( $icon ) {
|
99 |
-
&:after {
|
100 |
-
@include button_icon( $icon );
|
101 |
-
padding: 0 0 0 5px;
|
102 |
-
}
|
103 |
-
}
|
104 |
-
|
105 |
-
@mixin button_icon_middle( $icon ) {
|
106 |
-
&:before {
|
107 |
-
@include button_icon( $icon );
|
108 |
-
margin: 0 -5px;
|
109 |
}
|
110 |
-
}
|
111 |
|
112 |
-
@mixin link() {
|
113 |
-
display: inline-block;
|
114 |
-
text-decoration: none;
|
115 |
-
font-size: 12px;
|
116 |
-
line-height: 20px;
|
117 |
-
font-weight: bold;
|
118 |
-
color: $blue_color;
|
119 |
-
text-transform: uppercase;
|
120 |
-
transition: all 200ms linear;
|
121 |
-
&:hover {
|
122 |
-
color: $dark_color_1;
|
123 |
-
box-shadow: none;
|
124 |
-
}
|
125 |
-
&:focus,
|
126 |
&:active {
|
127 |
-
outline: none;
|
128 |
-
box-shadow: none;
|
129 |
-
color: $blue_color;
|
130 |
-
}
|
131 |
-
}
|
132 |
-
|
133 |
-
@mixin link_icon_before( $icon ) {
|
134 |
-
&:before {
|
135 |
-
@include button_icon( $icon );
|
136 |
-
padding: 0 5px 0 0;
|
137 |
-
color: $grey_color_4;
|
138 |
-
}
|
139 |
-
&:hover {
|
140 |
&:before {
|
141 |
-
|
142 |
}
|
143 |
}
|
144 |
}
|
145 |
-
|
146 |
-
@mixin container() {
|
147 |
-
padding: 30px;
|
148 |
-
border: 2px solid $grey_color_2;
|
149 |
-
background: $grey_color_3;
|
150 |
-
border-radius: $border_radius_large;
|
151 |
-
}
|
152 |
-
|
153 |
-
@mixin container_heading() {
|
154 |
-
margin: -30px -30px 30px -30px;
|
155 |
-
border-radius: $border_radius_large $border_radius_large 0 0;
|
156 |
-
border-bottom: 1px solid $grey_color_2;
|
157 |
-
padding: 20px 30px;
|
158 |
-
font-weight: bold;
|
159 |
-
font-size: 16px;
|
160 |
-
line-height: 18px;
|
161 |
-
text-align: center;
|
162 |
-
background: #fff;
|
163 |
-
}
|
164 |
-
|
165 |
-
@mixin box() {
|
166 |
-
margin: 0 0 30px;
|
167 |
-
padding: 20px;
|
168 |
-
background: #fff;
|
169 |
-
box-shadow: $box_shadow_box;
|
170 |
-
border-radius: $border_radius;
|
171 |
-
}
|
172 |
-
|
173 |
-
@mixin box_heading() {
|
174 |
-
margin: -20px -20px 20px -20px;
|
175 |
-
border-radius: $border_radius_small $border_radius_small 0 0;
|
176 |
-
border-bottom: 1px solid $grey_color_2;
|
177 |
-
padding: 20px 30px;
|
178 |
-
font-weight: bold;
|
179 |
-
font-size: 16px;
|
180 |
-
line-height: 18px;
|
181 |
-
background: #fff;
|
182 |
-
}
|
1 |
@mixin button_base() {
|
2 |
+
position: relative;
|
3 |
display: inline-block;
|
|
|
4 |
font-size: 12px;
|
5 |
+
line-height: 18px;
|
6 |
+
font-weight: 900;
|
7 |
+
letter-spacing: 0.5px;
|
8 |
+
text-decoration: none;
|
9 |
padding: 15px 20px;
|
10 |
+
color: $dark_color;
|
11 |
text-transform: uppercase;
|
12 |
border-radius: $border_radius_small;
|
13 |
+
border-width: 1px;
|
14 |
+
border-style: solid;
|
15 |
+
outline: none;
|
16 |
+
cursor: pointer;
|
17 |
transition: all 200ms linear;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
+
&:before {
|
20 |
+
position: absolute;
|
21 |
+
display: block;
|
22 |
+
width: 100%;
|
23 |
+
height: 100%;
|
24 |
+
top: 0;
|
25 |
+
left: 0;
|
26 |
+
border-radius: $border_radius_small;
|
27 |
+
background-image: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
|
28 |
+
content: '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
}
|
|
|
30 |
|
|
|
|
|
31 |
&:hover {
|
32 |
+
&:before {
|
33 |
+
background-image: linear-gradient(0deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
|
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
&:active {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
&:before {
|
39 |
+
opacity: 0;
|
40 |
}
|
41 |
}
|
42 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/ui-kit/_variables.scss
CHANGED
@@ -1,20 +1,41 @@
|
|
1 |
-
$
|
2 |
-
$
|
3 |
-
|
4 |
-
$
|
5 |
-
$
|
6 |
-
$
|
7 |
-
$
|
8 |
-
$
|
9 |
-
|
10 |
-
$
|
11 |
-
$
|
12 |
-
$
|
13 |
-
$
|
14 |
-
$
|
15 |
-
|
16 |
-
$
|
17 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
$border_radius_extra_small: 2px;
|
20 |
$border_radius_small: 4px;
|
1 |
+
$light_color: #ffffff;
|
2 |
+
$dark_color: #23282d;
|
3 |
+
|
4 |
+
$normal_bg_color: #e1e1e1;
|
5 |
+
$normal_gradint_1: #ffffff;
|
6 |
+
$normal_gradint_2: #f0f0f0;
|
7 |
+
$normal_outset_1: #d7d7d7;
|
8 |
+
$normal_outset_2: #b7b7b7;
|
9 |
+
|
10 |
+
$primary_bg_color: #206ff4;
|
11 |
+
$primary_gradint_1: #5fadff;
|
12 |
+
$primary_gradint_2: #2a90fc;
|
13 |
+
$primary_outset_1: #5b9add;
|
14 |
+
$primary_outset_2: #3e6a99;
|
15 |
+
|
16 |
+
$secondary_bg_color: #495159;
|
17 |
+
$secondary_gradint_1: #4c5054;
|
18 |
+
$secondary_gradint_2: #495159;
|
19 |
+
$secondary_outset_1: #777879;
|
20 |
+
$secondary_outset_2: #41464d;
|
21 |
+
|
22 |
+
$success_bg_color: #3ba956;
|
23 |
+
$success_gradint_1: #71e18f;
|
24 |
+
$success_gradint_2: #49c66a;
|
25 |
+
$success_outset_1: #49c56a;
|
26 |
+
$success_outset_2: #3a9e54;
|
27 |
+
|
28 |
+
$danger_bg_color: #c73434;
|
29 |
+
$danger_gradint_1: #f98888;
|
30 |
+
$danger_gradint_2: #e64545;
|
31 |
+
$danger_outset_1: #e54444;
|
32 |
+
$danger_outset_2: #b83636;
|
33 |
+
|
34 |
+
$warning_bg_color: #ee8425;
|
35 |
+
$warning_gradint_1: #ffcb81;
|
36 |
+
$warning_gradint_2: #faa832;
|
37 |
+
$warning_outset_1: #faa832;
|
38 |
+
$warning_outset_2: #c98627;
|
39 |
|
40 |
$border_radius_extra_small: 2px;
|
41 |
$border_radius_small: 4px;
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/ui-button.php
CHANGED
@@ -29,17 +29,17 @@ if ( ! class_exists( 'UI_Button' ) ) {
|
|
29 |
* @var array
|
30 |
*/
|
31 |
private $defaults_settings = array(
|
32 |
-
'id'
|
33 |
-
'name'
|
34 |
-
'value'
|
35 |
-
'disabled'
|
36 |
-
'form'
|
37 |
-
'formaction'
|
38 |
-
'
|
39 |
-
'style'
|
40 |
-
'content'
|
41 |
-
'class'
|
42 |
-
'master'
|
43 |
);
|
44 |
|
45 |
/**
|
29 |
* @var array
|
30 |
*/
|
31 |
private $defaults_settings = array(
|
32 |
+
'id' => 'cherry-ui-button-id',
|
33 |
+
'name' => 'cherry-ui-button-name',
|
34 |
+
'value' => 'button',
|
35 |
+
'disabled' => false,
|
36 |
+
'form' => '',
|
37 |
+
'formaction' => '',
|
38 |
+
'button_type' => 'button',
|
39 |
+
'style' => 'normal',
|
40 |
+
'content' => 'Button',
|
41 |
+
'class' => '',
|
42 |
+
'master' => '',
|
43 |
);
|
44 |
|
45 |
/**
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/view/button-view.php
CHANGED
@@ -14,10 +14,10 @@
|
|
14 |
if ( ! defined( 'WPINC' ) ) {
|
15 |
die;
|
16 |
}
|
17 |
-
$class = trim( implode( ' ', array( 'ui-button', 'ui-button-' . $__data['style'] . '-style ', $__data['master'], $__data['class'] ) ) );
|
18 |
$attrs = Cherry_Toolkit::join(
|
19 |
array(
|
20 |
-
'type' => esc_attr( $__data['
|
21 |
'id' => esc_attr( $__data['id'] ),
|
22 |
'name' => esc_attr( $__data['name'] ),
|
23 |
'class' => esc_attr( $class ),
|
14 |
if ( ! defined( 'WPINC' ) ) {
|
15 |
die;
|
16 |
}
|
17 |
+
$class = trim( implode( ' ', array( 'cherry5-ui-button', 'cherry5-ui-button-' . $__data['style'] . '-style ', $__data['master'], $__data['class'], 'ui-button' ) ) );
|
18 |
$attrs = Cherry_Toolkit::join(
|
19 |
array(
|
20 |
+
'type' => esc_attr( $__data['button_type'] ),
|
21 |
'id' => esc_attr( $__data['id'] ),
|
22 |
'name' => esc_attr( $__data['name'] ),
|
23 |
'class' => esc_attr( $class ),
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/min/ui-checkbox.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.hide{display:none !important}.cherry-checkbox-item{width:26px;height:26px;display:inline-block;border-radius:2px;margin-right:10px;margin-bottom:6px;cursor:pointer;position:relative;background-color:#f1f1f1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1);transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1)}.cherry-checkbox-item .marker{position:absolute;width:26px;height:26px;top:0px;left:0px;color:#fff;font-size:28px;-webkit-transition:inherit;transition:inherit;-webkit-transform:scale(0)
|
1 |
+
.cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.hide{display:none !important}.cherry-checkbox-item{width:26px;height:26px;display:inline-block;border-radius:2px;margin-right:10px;margin-bottom:6px;cursor:pointer;position:relative;background-color:#f1f1f1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1);transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1)}.cherry-checkbox-item .marker{position:absolute;width:26px;height:26px;top:0px;left:0px;color:#fff;font-size:28px;-webkit-transition:inherit;transition:inherit;-webkit-transform:scale(0);transform:scale(0)}.cherry-checkbox-item .marker:before{-webkit-transition:inherit;transition:inherit;position:relative;left:-2px}.cherry-checkbox-input[checked]+.cherry-checkbox-item{background-color:#48c569}.cherry-checkbox-input[checked]+.cherry-checkbox-item .marker{-webkit-transform:scale(1);transform:scale(1)}.cherry-checkbox-label{display:inline-block;vertical-align:top;font-size:14px;line-height:26px;color:#23282d;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cherry-checkbox-label:focus{outline:1px solid rgba(41,143,252,0.6);box-shadow:0px 0px 2px rgba(41,143,252,0.6)}
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/ui-checkbox.scss
CHANGED
@@ -55,4 +55,8 @@ label.cherry-label{
|
|
55 |
line-height: 26px;
|
56 |
color: $dark_color_1;
|
57 |
user-select: none;
|
|
|
|
|
|
|
|
|
58 |
}
|
55 |
line-height: 26px;
|
56 |
color: $dark_color_1;
|
57 |
user-select: none;
|
58 |
+
&:focus{
|
59 |
+
outline: 1px solid rgba(41, 143, 252, .6);
|
60 |
+
box-shadow: 0px 0px 2px rgba(41,143,252,0.6);
|
61 |
+
}
|
62 |
}
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/ui-kit/_mixins.scss
CHANGED
@@ -17,7 +17,8 @@
|
|
17 |
&:focus,
|
18 |
&:active {
|
19 |
outline: none;
|
20 |
-
|
|
|
21 |
color: #fff;
|
22 |
}
|
23 |
}
|
@@ -64,12 +65,12 @@
|
|
64 |
background-color: $grey_color_3;
|
65 |
border-radius: $border_radius_extra_small;
|
66 |
padding: 10px 20px;
|
67 |
-
height: 50px;
|
68 |
border: 1px solid $grey_color_3;
|
69 |
box-shadow: none;
|
70 |
&:focus{
|
71 |
-
border-color: rgba(
|
72 |
-
box-shadow: 0 0 2px rgba(
|
73 |
}
|
74 |
}
|
75 |
|
@@ -125,7 +126,8 @@
|
|
125 |
&:focus,
|
126 |
&:active {
|
127 |
outline: none;
|
128 |
-
|
|
|
129 |
color: $blue_color;
|
130 |
}
|
131 |
}
|
@@ -179,4 +181,4 @@
|
|
179 |
font-size: 16px;
|
180 |
line-height: 18px;
|
181 |
background: #fff;
|
182 |
-
}
|
17 |
&:focus,
|
18 |
&:active {
|
19 |
outline: none;
|
20 |
+
border-color: rgba(41, 143, 252, .6);
|
21 |
+
box-shadow: 0 0 2px rgba(41, 143, 252, .6);
|
22 |
color: #fff;
|
23 |
}
|
24 |
}
|
65 |
background-color: $grey_color_3;
|
66 |
border-radius: $border_radius_extra_small;
|
67 |
padding: 10px 20px;
|
68 |
+
min-height: 50px;
|
69 |
border: 1px solid $grey_color_3;
|
70 |
box-shadow: none;
|
71 |
&:focus{
|
72 |
+
border-color: rgba(41, 143, 252, .6);
|
73 |
+
box-shadow: 0 0 2px rgba(41, 143, 252, .6);
|
74 |
}
|
75 |
}
|
76 |
|
126 |
&:focus,
|
127 |
&:active {
|
128 |
outline: none;
|
129 |
+
border-color: rgba(41, 143, 252, .6);
|
130 |
+
box-shadow: 0 0 2px rgba(41, 143, 252, .6);
|
131 |
color: $blue_color;
|
132 |
}
|
133 |
}
|
181 |
font-size: 16px;
|
182 |
line-height: 18px;
|
183 |
background: #fff;
|
184 |
+
}
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/min/ui-colorpicker.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.
|
1 |
+
.cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.cherry-ui-colorpicker-wrapper{background-color:#f1f1f1;padding:5px;max-width:230px;height:46px;box-sizing:border-box}.cherry-ui-colorpicker-wrapper .wp-picker-container,.customize-control-content .wp-picker-container{display:block;position:relative;z-index:1000}.cherry-ui-colorpicker-wrapper .wp-picker-container:active,.customize-control-content .wp-picker-container:active{display:block}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-color-result,.customize-control-content .wp-picker-container>.wp-color-result{margin:0;border-radius:2px;display:block;border:none;box-shadow:none;height:auto;padding-left:35px}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-color-result:after,.customize-control-content .wp-picker-container>.wp-color-result:after{padding:7px 0px;font-size:14px;border-left:none}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-color-result:focus,.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-color-result:active,.customize-control-content .wp-picker-container>.wp-color-result:focus,.customize-control-content .wp-picker-container>.wp-color-result:active{outline:none;border:1px solid rgba(41,143,252,0.6);box-shadow:0px 0px 2px rgba(41,143,252,0.6)}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-picker-input-wrap,.customize-control-content .wp-picker-container>.wp-picker-input-wrap{display:none;display:-webkit-box;display:-ms-flexbox;display:flex;width:calc(100% - 40px);max-width:calc(100% - 40px);float:right}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-picker-input-wrap:after,.customize-control-content .wp-picker-container>.wp-picker-input-wrap:after{content:'.';clear:both;visibility:hidden;height:0}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-picker-input-wrap input[type="text"],.customize-control-content .wp-picker-container>.wp-picker-input-wrap input[type="text"]{padding:8px 10px 9px;font-size:14px;max-width:100%;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-picker-input-wrap input[type="button"],.customize-control-content .wp-picker-container>.wp-picker-input-wrap input[type="button"]{height:auto;border:none;border-radius:2px;box-shadow:none;padding:6px 10px 7px;font-size:14px;margin-left:5px;-ms-flex-negative:0;flex-shrink:0}.cherry-ui-colorpicker-wrapper .wp-picker-container.wp-picker-active>.wp-color-result,.customize-control-content .wp-picker-container.wp-picker-active>.wp-color-result{height:35px;width:0;display:inline-block;margin-right:5px}.cherry-ui-colorpicker-wrapper .wp-picker-container.wp-picker-active>.wp-color-result:after,.customize-control-content .wp-picker-container.wp-picker-active>.wp-color-result:after{display:none}.cherry-ui-colorpicker-wrapper .wp-picker-container.wp-picker-active>.wp-picker-input-wrap,.customize-control-content .wp-picker-container.wp-picker-active>.wp-picker-input-wrap{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/ui-colorpicker.scss
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
@import "ui-kit/variables";
|
2 |
@import "ui-kit/mixins";
|
3 |
|
|
|
|
|
4 |
.cherry-ui-container{
|
5 |
margin: 10px 0 20px 0;
|
6 |
}
|
@@ -8,46 +10,83 @@ label.cherry-label{
|
|
8 |
margin: 0 0 5px 0;
|
9 |
display: block;
|
10 |
}
|
11 |
-
.
|
12 |
-
display: block;
|
13 |
background-color: $grey_color_3;
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
&:
|
26 |
-
|
27 |
-
border: medium none;
|
28 |
-
border-radius: 0;
|
29 |
-
line-height: 36px;
|
30 |
-
font-size: 14px;
|
31 |
-
color: $dark_color_1;
|
32 |
-
padding: 0 80px 0 20px;
|
33 |
}
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
&:after{
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
}
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
}
|
52 |
}
|
53 |
}
|
1 |
@import "ui-kit/variables";
|
2 |
@import "ui-kit/mixins";
|
3 |
|
4 |
+
$font_size: 14px;
|
5 |
+
|
6 |
.cherry-ui-container{
|
7 |
margin: 10px 0 20px 0;
|
8 |
}
|
10 |
margin: 0 0 5px 0;
|
11 |
display: block;
|
12 |
}
|
13 |
+
.cherry-ui-colorpicker-wrapper{
|
|
|
14 |
background-color: $grey_color_3;
|
15 |
+
padding: 5px;
|
16 |
+
max-width: 230px;
|
17 |
+
height: 46px;
|
18 |
+
box-sizing: border-box;
|
19 |
+
}
|
20 |
+
.cherry-ui-colorpicker-wrapper, .customize-control-content{
|
21 |
+
& .wp-picker-container{
|
22 |
+
display: block;
|
23 |
+
|
24 |
+
position: relative;
|
25 |
+
z-index: 1000;
|
26 |
+
&:active{
|
27 |
+
display: block;
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
+
> .wp-color-result{
|
30 |
+
margin: 0;
|
31 |
+
border-radius: $border_radius_extra_small;
|
32 |
+
display: block;
|
33 |
+
border: none;
|
34 |
+
box-shadow: none;
|
35 |
+
height: auto;
|
36 |
+
padding-left: 35px;
|
37 |
&:after{
|
38 |
+
padding:7px 0px;
|
39 |
+
font-size: $font_size;
|
40 |
+
border-left: none;
|
41 |
+
};
|
42 |
+
&:focus, &:active{
|
43 |
+
outline: none;
|
44 |
+
border: 1px solid rgba(41, 143, 252, .6);
|
45 |
+
box-shadow: 0px 0px 2px rgba(41,143,252,0.6);
|
46 |
}
|
47 |
}
|
48 |
+
> .wp-picker-input-wrap{
|
49 |
+
display: none;
|
50 |
+
display: flex;
|
51 |
+
width: calc(100% - 40px);
|
52 |
+
max-width: calc(100% - 40px);
|
53 |
+
float: right;
|
54 |
+
&:after{
|
55 |
+
content: '.';
|
56 |
+
clear: both;
|
57 |
+
visibility: hidden;
|
58 |
+
height: 0;
|
59 |
+
};
|
60 |
+
input[type="text"]{
|
61 |
+
padding: 8px 10px 9px;
|
62 |
+
font-size: $font_size;
|
63 |
+
max-width: 100%;
|
64 |
+
flex-grow: 1;
|
65 |
+
}
|
66 |
+
input[type="button"]{
|
67 |
+
height: auto;
|
68 |
+
border: none;
|
69 |
+
border-radius: $border_radius_extra_small;
|
70 |
+
box-shadow: none;
|
71 |
+
padding: 6px 10px 7px;
|
72 |
+
font-size: $font_size;
|
73 |
+
margin-left: 5px;
|
74 |
+
flex-shrink: 0;
|
75 |
+
}
|
76 |
}
|
77 |
+
&.wp-picker-active{
|
78 |
+
> .wp-color-result{
|
79 |
+
height: 35px;
|
80 |
+
width: 0;
|
81 |
+
display: inline-block;
|
82 |
+
margin-right: 5px;
|
83 |
+
&:after{
|
84 |
+
display: none;
|
85 |
+
}
|
86 |
+
}
|
87 |
+
> .wp-picker-input-wrap{
|
88 |
+
display: inline-flex;
|
89 |
+
}
|
90 |
}
|
91 |
}
|
92 |
}
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/ui-kit/_mixins.scss
CHANGED
@@ -17,7 +17,8 @@
|
|
17 |
&:focus,
|
18 |
&:active {
|
19 |
outline: none;
|
20 |
-
|
|
|
21 |
color: #fff;
|
22 |
}
|
23 |
}
|
@@ -64,12 +65,12 @@
|
|
64 |
background-color: $grey_color_3;
|
65 |
border-radius: $border_radius_extra_small;
|
66 |
padding: 10px 20px;
|
67 |
-
height: 50px;
|
68 |
border: 1px solid $grey_color_3;
|
69 |
box-shadow: none;
|
70 |
&:focus{
|
71 |
-
border-color: rgba(
|
72 |
-
box-shadow: 0 0 2px rgba(
|
73 |
}
|
74 |
}
|
75 |
|
@@ -125,7 +126,8 @@
|
|
125 |
&:focus,
|
126 |
&:active {
|
127 |
outline: none;
|
128 |
-
|
|
|
129 |
color: $blue_color;
|
130 |
}
|
131 |
}
|
@@ -179,4 +181,4 @@
|
|
179 |
font-size: 16px;
|
180 |
line-height: 18px;
|
181 |
background: #fff;
|
182 |
-
}
|
17 |
&:focus,
|
18 |
&:active {
|
19 |
outline: none;
|
20 |
+
border-color: rgba(41, 143, 252, .6);
|
21 |
+
box-shadow: 0 0 2px rgba(41, 143, 252, .6);
|
22 |
color: #fff;
|
23 |
}
|
24 |
}
|
65 |
background-color: $grey_color_3;
|
66 |
border-radius: $border_radius_extra_small;
|
67 |
padding: 10px 20px;
|
68 |
+
min-height: 50px;
|
69 |
border: 1px solid $grey_color_3;
|
70 |
box-shadow: none;
|
71 |
&:focus{
|
72 |
+
border-color: rgba(41, 143, 252, .6);
|
73 |
+
box-shadow: 0 0 2px rgba(41, 143, 252, .6);
|
74 |
}
|
75 |
}
|
76 |
|
126 |
&:focus,
|
127 |
&:active {
|
128 |
outline: none;
|
129 |
+
border-color: rgba(41, 143, 252, .6);
|
130 |
+
box-shadow: 0 0 2px rgba(41, 143, 252, .6);
|
131 |
color: $blue_color;
|
132 |
}
|
133 |
}
|
181 |
font-size: 16px;
|
182 |
line-height: 18px;
|
183 |
background: #fff;
|
184 |
+
}
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/min/ui-iconpicker.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cherry-ui-iconpicker-group{max-width:230px
|
1 |
+
.cherry-ui-iconpicker-group{position:relative}.full .cherry-ui-iconpicker-group{max-width:100%}.fixed .cherry-ui-iconpicker-group{max-width:230px}.cherry-ui-iconpicker-group .input-group-addon{position:absolute;width:36px;height:36px;left:0px;top:0px;background:#f1f1f1;font-size:14px;line-height:36px;text-align:center;border-radius:3px 0 0 3px;border-right:1px solid #dddcdc;margin:7px}.cherry-ui-iconpicker-group .input-group-addon .fa{line-height:36px}.cherry-ui-iconpicker-group .cherry-ui-text{font-size:14px;line-height:20px;color:#23282d;background-color:#f1f1f1;border-radius:2px;padding:10px 20px;min-height:50px;border:1px solid #f1f1f1;box-shadow:none;padding-left:60px}.cherry-ui-iconpicker-group .cherry-ui-text:focus{border-color:rgba(41,143,252,0.6);box-shadow:0 0 2px rgba(41,143,252,0.6)}.iconpicker-popover.popover{position:absolute;top:0;left:0;display:none;max-width:none;padding:1px;text-align:left;width:242px;background:#f0f0f0;z-index:999}.iconpicker-popover.popover.top,.iconpicker-popover.popover.topLeftCorner,.iconpicker-popover.popover.topLeft,.iconpicker-popover.popover.topRight,.iconpicker-popover.popover.topRightCorner{margin-top:-10px}.iconpicker-popover.popover.right,.iconpicker-popover.popover.rightTop,.iconpicker-popover.popover.rightBottom{margin-left:10px}.iconpicker-popover.popover.bottom,.iconpicker-popover.popover.bottomRightCorner,.iconpicker-popover.popover.bottomRight,.iconpicker-popover.popover.bottomLeft,.iconpicker-popover.popover.bottomLeftCorner{margin-top:10px}.iconpicker-popover.popover.left,.iconpicker-popover.popover.leftBottom,.iconpicker-popover.popover.leftTop{margin-left:-10px}.iconpicker-popover.popover.inline{margin:0 0 14px 0;position:relative;display:inline-block;opacity:1;top:auto;left:auto;bottom:auto;right:auto;max-width:100%;box-shadow:none;z-index:auto;vertical-align:top}.iconpicker-popover.popover.inline>.arrow{display:none}.dropdown-menu .iconpicker-popover.inline{margin:0;border:none}.dropdown-menu.iconpicker-container{padding:0}.iconpicker-popover.popover .popover-title{padding:14px;font-size:14px;line-height:16px;border-bottom:1px solid #ebebeb;background-color:#f0f0f0}.iconpicker-popover.popover .popover-title input[type=search].iconpicker-search{margin:0 0 2px 0}.iconpicker-popover.popover .popover-title-text ~ input[type=search].iconpicker-search{margin-top:14px}.iconpicker-popover.popover .popover-content{padding:0px;text-align:center}.iconpicker-popover .popover-footer{float:none;clear:both;padding:14px;text-align:right;margin:0;border-top:1px solid #ebebeb;background-color:#f0f0f0}.iconpicker-popover .popover-footer:before,.iconpicker-popover .popover-footer:after{content:" ";display:table}.iconpicker-popover .popover-footer:after{clear:both}.iconpicker-popover .popover-footer .iconpicker-btn{margin-left:10px}.iconpicker-popover .popover-footer input[type=search].iconpicker-search{margin-bottom:14px}.iconpicker-popover.popover>.arrow,.iconpicker-popover.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.iconpicker-popover.popover>.arrow{border-width:11px}.iconpicker-popover.popover>.arrow:after{border-width:10px;content:""}.iconpicker-popover.popover.top>.arrow,.iconpicker-popover.popover.topLeft>.arrow,.iconpicker-popover.popover.topRight>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#f0f0f0;bottom:-11px}.iconpicker-popover.popover.top>.arrow:after,.iconpicker-popover.popover.topLeft>.arrow:after,.iconpicker-popover.popover.topRight>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#ffffff}.iconpicker-popover.popover.topLeft>.arrow{left:14px;margin-left:0}.iconpicker-popover.popover.topRight>.arrow{left:auto;right:14px;margin-left:0}.iconpicker-popover.popover.right>.arrow,.iconpicker-popover.popover.rightTop>.arrow,.iconpicker-popover.popover.rightBottom>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#f0f0f0}.iconpicker-popover.popover.right>.arrow:after,.iconpicker-popover.popover.rightTop>.arrow:after,.iconpicker-popover.popover.rightBottom>.arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#ffffff}.iconpicker-popover.popover.rightTop>.arrow{top:auto;bottom:14px;margin-top:0}.iconpicker-popover.popover.rightBottom>.arrow{top:14px;margin-top:0}.iconpicker-popover.popover.bottom>.arrow,.iconpicker-popover.popover.bottomRight>.arrow,.iconpicker-popover.popover.bottomLeft>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#f0f0f0;top:-11px}.iconpicker-popover.popover.bottom>.arrow:after,.iconpicker-popover.popover.bottomRight>.arrow:after,.iconpicker-popover.popover.bottomLeft>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#f0f0f0}.iconpicker-popover.popover.bottomLeft>.arrow{left:14px;margin-left:0}.iconpicker-popover.popover.bottomRight>.arrow{left:auto;right:14px;margin-left:0}.iconpicker-popover.popover.left>.arrow,.iconpicker-popover.popover.leftBottom>.arrow,.iconpicker-popover.popover.leftTop>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#f0f0f0}.iconpicker-popover.popover.left>.arrow:after,.iconpicker-popover.popover.leftBottom>.arrow:after,.iconpicker-popover.popover.leftTop>.arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#ffffff;bottom:-10px}.iconpicker-popover.popover.leftBottom>.arrow{top:14px;margin-top:0}.iconpicker-popover.popover.leftTop>.arrow{top:auto;bottom:14px;margin-top:0}.iconpicker{position:relative;text-align:left;text-shadow:none;line-height:0;display:block;margin:0;overflow:hidden}.iconpicker *{box-sizing:content-box;position:relative}.iconpicker:before,.iconpicker:after{content:" ";display:table}.iconpicker:after{clear:both}.iconpicker .iconpicker-items{position:relative;clear:both;float:none;padding:10px 0 0 10px;background:#fff;margin:0;overflow:hidden;overflow-y:auto;min-height:55px;max-height:275px}.iconpicker .iconpicker-items:before,.iconpicker .iconpicker-items:after{content:" ";display:table}.iconpicker .iconpicker-items:after{clear:both}.iconpicker .iconpicker-item{float:left;width:28px;height:28px;line-height:28px;margin:0 7px 7px 0;text-align:center;cursor:pointer;border-radius:3px;font-size:18px;color:#444;box-shadow:0 0 0 1px #dddddd}.iconpicker .iconpicker-item .fa{line-height:28px}.iconpicker .iconpicker-item:hover:not(.iconpicker-selected){background-color:#eeeeee}.iconpicker .iconpicker-item.iconpicker-selected{box-shadow:none;background:#ddd}.iconpicker-component{cursor:pointer}
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/min/ui-iconpicker.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e,t,n){"use strict";t.utilites.namespace("ui_elements.iconpicker"),t.ui_elements.iconpicker={iconSets:{},iconSetsKey:"cherry5-icon-sets",init:function(){e(document).on("cherry-ajax-handler-success",this.setIconsSets.bind(this)).on("ready.iconpicker",this.setIconsSets.bind(this,window
|
1 |
+
!function(e,t,n){"use strict";t.utilites.namespace("ui_elements.iconpicker"),t.ui_elements.iconpicker={iconSets:{},iconSetsKey:"cherry5-icon-sets",init:function(){e(document).on("cherry-ajax-handler-success",this.setIconsSets.bind(this)).on("ready.iconpicker",this.setIconsSets.bind(this,window.cherry5IconSets)).on("ready.iconpicker",this.render.bind(this)).on("cherry-ui-elements-init",this.render.bind(this))},setIconsSets:function(e){var t,i=this;e&&(t=e.response?e.response.cherry5IconSets:e,n.each(t,function(e,t){i.iconSets[t]=e}),i.setState(i.iconSetsKey,i.iconSets))},getIconsSets:function(){var e=this.getState(this.iconSetsKey);e&&(this.iconSets=e)},render:function(t){var n,i,s,c=t._target?t._target:e("body"),o=e('.cherry-ui-iconpicker:not([name*="__i__"])',c),r=this;o[0]&&(this.getIconsSets(),o.each(function(){n=e(this),i=n.data("set"),s=r.iconSets[i],n.length&&s.icons&&n.iconpicker({icons:s.icons,iconBaseClass:s.iconBase,iconClassPrefix:s.iconPrefix,animation:!1,fullClassFormatter:function(e){return s.iconBase+" "+s.iconPrefix+e}}).on("iconpickerUpdated",function(){e(this).trigger("change")}),s&&e("head").append('<link rel="stylesheet" type="text/css" href="'+s.iconCSS+'"">')}))},getState:function(e){try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return!1}},setState:function(e,t){try{window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return!1}}},t.ui_elements.iconpicker.init()}(jQuery,window.CherryJsCore,window._);
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-iconpicker.js
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
init: function() {
|
13 |
$( document )
|
14 |
.on( 'cherry-ajax-handler-success', this.setIconsSets.bind( this ) )
|
15 |
-
.on( 'ready.iconpicker', this.setIconsSets.bind( this, window
|
16 |
.on( 'ready.iconpicker', this.render.bind( this ) )
|
17 |
.on( 'cherry-ui-elements-init', this.render.bind( this ) );
|
18 |
},
|
12 |
init: function() {
|
13 |
$( document )
|
14 |
.on( 'cherry-ajax-handler-success', this.setIconsSets.bind( this ) )
|
15 |
+
.on( 'ready.iconpicker', this.setIconsSets.bind( this, window.cherry5IconSets ) )
|
16 |
.on( 'ready.iconpicker', this.render.bind( this ) )
|
17 |
.on( 'cherry-ui-elements-init', this.render.bind( this ) );
|
18 |
},
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-iconpicker.scss
CHANGED
@@ -2,8 +2,13 @@
|
|
2 |
@import "ui-kit/mixins";
|
3 |
|
4 |
.cherry-ui-iconpicker-group {
|
5 |
-
max-width: 230px;
|
6 |
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
.input-group-addon {
|
8 |
position: absolute;
|
9 |
width: 36px;
|
2 |
@import "ui-kit/mixins";
|
3 |
|
4 |
.cherry-ui-iconpicker-group {
|
|
|
5 |
position: relative;
|
6 |
+
.full &{
|
7 |
+
max-width: 100%;
|
8 |
+
}
|
9 |
+
.fixed &{
|
10 |
+
max-width: 230px;
|
11 |
+
}
|
12 |
.input-group-addon {
|
13 |
position: absolute;
|
14 |
width: 36px;
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-kit/_mixins.scss
CHANGED
@@ -17,7 +17,8 @@
|
|
17 |
&:focus,
|
18 |
&:active {
|
19 |
outline: none;
|
20 |
-
|
|
|
21 |
color: #fff;
|
22 |
}
|
23 |
}
|
@@ -64,12 +65,12 @@
|
|
64 |
background-color: $grey_color_3;
|
65 |
border-radius: $border_radius_extra_small;
|
66 |
padding: 10px 20px;
|
67 |
-
height: 50px;
|
68 |
border: 1px solid $grey_color_3;
|
69 |
box-shadow: none;
|
70 |
&:focus{
|
71 |
-
border-color: rgba(
|
72 |
-
box-shadow: 0 0 2px rgba(
|
73 |
}
|
74 |
}
|
75 |
|
@@ -125,7 +126,8 @@
|
|
125 |
&:focus,
|
126 |
&:active {
|
127 |
outline: none;
|
128 |
-
|
|
|
129 |
color: $blue_color;
|
130 |
}
|
131 |
}
|
@@ -179,4 +181,4 @@
|
|
179 |
font-size: 16px;
|
180 |
line-height: 18px;
|
181 |
background: #fff;
|
182 |
-
}
|
17 |
&:focus,
|
18 |
&:active {
|
19 |
outline: none;
|
20 |
+
border-color: rgba(41, 143, 252, .6);
|
21 |
+
box-shadow: 0 0 2px rgba(41, 143, 252, .6);
|
22 |
color: #fff;
|
23 |
}
|
24 |
}
|
65 |
background-color: $grey_color_3;
|
66 |
border-radius: $border_radius_extra_small;
|
67 |
padding: 10px 20px;
|
68 |
+
min-height: 50px;
|
69 |
border: 1px solid $grey_color_3;
|
70 |
box-shadow: none;
|
71 |
&:focus{
|
72 |
+
border-color: rgba(41, 143, 252, .6);
|
73 |
+
box-shadow: 0 0 2px rgba(41, 143, 252, .6);
|
74 |
}
|
75 |
}
|
76 |
|
126 |
&:focus,
|
127 |
&:active {
|
128 |
outline: none;
|
129 |
+
border-color: rgba(41, 143, 252, .6);
|
130 |
+
box-shadow: 0 0 2px rgba(41, 143, 252, .6);
|
131 |
color: $blue_color;
|
132 |
}
|
133 |
}
|
181 |
font-size: 16px;
|
182 |
line-height: 18px;
|
183 |
background: #fff;
|
184 |
+
}
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/ui-iconpicker.php
CHANGED
@@ -39,6 +39,7 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
|
|
39 |
'label' => '',
|
40 |
'class' => '',
|
41 |
'master' => '',
|
|
|
42 |
'required' => false,
|
43 |
);
|
44 |
|
@@ -110,7 +111,7 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
|
|
110 |
*/
|
111 |
public function render() {
|
112 |
$html = '';
|
113 |
-
$class = $this->settings['class'];
|
114 |
$class .= ' ' . $this->settings['master'];
|
115 |
|
116 |
$html .= '<div class="cherry-ui-container ' . esc_attr( $class ) . '">';
|
@@ -123,8 +124,6 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
|
|
123 |
$this->default_icon_data
|
124 |
);
|
125 |
|
126 |
-
$this->maybe_parse_set_from_css();
|
127 |
-
|
128 |
$html .= '<div class="cherry-ui-iconpicker-group">';
|
129 |
|
130 |
if ( $this->validate_icon_data( $this->settings['icon_data'] ) ) {
|
@@ -168,6 +167,10 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
|
|
168 |
*/
|
169 |
public function prepare_icon_set() {
|
170 |
|
|
|
|
|
|
|
|
|
171 |
if ( ! array_key_exists( $this->settings['icon_data']['icon_set'], self::$sets ) ) {
|
172 |
self::$sets[ $this->settings['icon_data']['icon_set'] ] = array(
|
173 |
'iconCSS' => $this->settings['icon_data']['icon_css'],
|
@@ -198,7 +201,7 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
|
|
198 |
|
199 |
$result = ob_get_clean();
|
200 |
|
201 |
-
preg_match_all( '/\.([-
|
202 |
|
203 |
if ( ! is_array( $matches ) || empty( $matches[1] ) ) {
|
204 |
return;
|
@@ -277,7 +280,7 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
|
|
277 |
self::$printed_sets[] = $set;
|
278 |
$json = json_encode( $data );
|
279 |
|
280 |
-
printf( '<script> if ( ! window
|
281 |
}
|
282 |
|
283 |
}
|
39 |
'label' => '',
|
40 |
'class' => '',
|
41 |
'master' => '',
|
42 |
+
'width' => 'fixed', // full, fixed
|
43 |
'required' => false,
|
44 |
);
|
45 |
|
111 |
*/
|
112 |
public function render() {
|
113 |
$html = '';
|
114 |
+
$class = $this->settings['class'] . $this->settings['width'] ;
|
115 |
$class .= ' ' . $this->settings['master'];
|
116 |
|
117 |
$html .= '<div class="cherry-ui-container ' . esc_attr( $class ) . '">';
|
124 |
$this->default_icon_data
|
125 |
);
|
126 |
|
|
|
|
|
127 |
$html .= '<div class="cherry-ui-iconpicker-group">';
|
128 |
|
129 |
if ( $this->validate_icon_data( $this->settings['icon_data'] ) ) {
|
167 |
*/
|
168 |
public function prepare_icon_set() {
|
169 |
|
170 |
+
if ( empty( $this->settings['icon_data']['icons'] ) ) {
|
171 |
+
$this->maybe_parse_set_from_css();
|
172 |
+
}
|
173 |
+
|
174 |
if ( ! array_key_exists( $this->settings['icon_data']['icon_set'], self::$sets ) ) {
|
175 |
self::$sets[ $this->settings['icon_data']['icon_set'] ] = array(
|
176 |
'iconCSS' => $this->settings['icon_data']['icon_css'],
|
201 |
|
202 |
$result = ob_get_clean();
|
203 |
|
204 |
+
preg_match_all( '/\.([-_a-zA-Z0-9]+):before[, {]/', $result, $matches );
|
205 |
|
206 |
if ( ! is_array( $matches ) || empty( $matches[1] ) ) {
|
207 |
return;
|
280 |
self::$printed_sets[] = $set;
|
281 |
$json = json_encode( $data );
|
282 |
|
283 |
+
printf( '<script> if ( ! window.cherry5IconSets ) { window.cherry5IconSets = {} } window.cherry5IconSets.%1$s = %2$s</script>', $set, $json );
|
284 |
}
|
285 |
|
286 |
}
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/min/ui-media.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.cherry-ui-media-wrap .cherry-upload-preview{display:block;margin:0 0 5px 0}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap{position:relative;display:inline-block;vertical-align:top;width:120px;height:120px}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner{width:110px;height:110px;margin:3px;position:relative;border:2px solid #298ffc;border-radius:2px;overflow:hidden}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder{width:100%;height:100%;position:relative;background:#f1f1f1;box-sizing:border-box}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder .centered{position:absolute;width:100%;height:100%;top:0;left:0;-webkit-transform:translate(50%, 50%)
|
1 |
+
.cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.cherry-ui-media-wrap .cherry-upload-preview{display:block;margin:0 0 5px 0}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap{position:relative;display:inline-block;vertical-align:top;width:120px;height:120px}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner{width:110px;height:110px;margin:3px;position:relative;border:2px solid #298ffc;border-radius:2px;overflow:hidden}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder{width:100%;height:100%;position:relative;background:#f1f1f1;box-sizing:border-box}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder .centered{position:absolute;width:100%;height:100%;top:0;left:0;-webkit-transform:translate(50%, 50%);transform:translate(50%, 50%)}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder img{max-width:100%;height:auto;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder span{width:auto;height:auto;font-size:60px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .title{position:absolute;width:100%;padding:5px 0;bottom:0;left:0;color:#fff;background:rgba(41,143,252,0.8);text-align:center;font-size:11px;overflow:hidden}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap:hover .cherry-remove-image{display:block}.cherry-ui-media-wrap .cherry-upload-preview .cherry-media-thumb-sortable-placeholder{width:112px;height:112px;margin:3px;vertical-align:top;border:1px dashed #dcdcdc;display:inline-block;background-color:#f1f1f1}.cherry-ui-media-wrap .upload-button{float:left}.cherry-ui-media-wrap .cherry-remove-image{width:30px;height:30px;color:#e54343;display:block;position:absolute;top:0;right:0;cursor:pointer;text-decoration:none;outline:0;display:none}.cherry-ui-media-wrap .cherry-remove-image i{width:30px;height:30px;font-size:30px}.cherry-ui-media-wrap .cherry-remove-image:hover{color:#d71e1e}.cherry-ui-media-wrap .cherry-bgsetting{float:left;width:32%;margin-right:1%}.cherry-ui-media-wrap .cherry-bgsetting:nth-child(3n+1){width:34%;margin-right:0}.cherry-ui-media-wrap .cherry-bgsetting select{margin-bottom:10px}.button-default_{position:relative;display:inline-block;font-size:12px;line-height:18px;font-weight:900;letter-spacing:0.5px;text-decoration:none;padding:15px 20px;color:#23282d;text-transform:uppercase;border-radius:4px;border-width:1px;border-style:solid;outline:none;cursor:pointer;transition:all 200ms linear;color:#fff;border-color:#777879 #2f343a #2f343a #777879;background-color:#495159}.button-default_:before{position:absolute;display:block;width:100%;height:100%;top:0;left:0;border-radius:4px;background-image:linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);content:''}.button-default_:hover:before{background-image:linear-gradient(0deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%)}.button-default_:active:before{opacity:0}.button-default_:active{background-color:#495159;border-color:#181b1e #777879 #777879 #181b1e}
|
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-kit/_mixins.scss
CHANGED
@@ -1,184 +1,52 @@
|
|
1 |
@mixin button_base() {
|
|
|
2 |
display: inline-block;
|
3 |
-
text-decoration: none;
|
4 |
font-size: 12px;
|
5 |
-
line-height:
|
6 |
-
font-weight:
|
|
|
|
|
7 |
padding: 15px 20px;
|
8 |
-
color:
|
9 |
text-transform: uppercase;
|
10 |
border-radius: $border_radius_small;
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
cursor: pointer;
|
15 |
-
&:hover {
|
16 |
-
color: #fff;
|
17 |
-
box-shadow: none;
|
18 |
-
}
|
19 |
-
&:focus,
|
20 |
-
&:active {
|
21 |
-
outline: none;
|
22 |
-
box-shadow: none;
|
23 |
-
color: #fff;
|
24 |
-
}
|
25 |
-
}
|
26 |
-
|
27 |
-
@mixin button_normal() {
|
28 |
-
background: $dark_color_2;
|
29 |
-
&:hover {
|
30 |
-
background: $dark_color_2_h;
|
31 |
-
}
|
32 |
-
}
|
33 |
-
|
34 |
-
@mixin button_primary() {
|
35 |
-
background: $blue_color;
|
36 |
-
&:hover {
|
37 |
-
background: $blue_color_h;
|
38 |
-
}
|
39 |
-
}
|
40 |
-
|
41 |
-
@mixin button_success() {
|
42 |
-
background: $green_color;
|
43 |
-
&:hover {
|
44 |
-
background: $green_color_h;
|
45 |
-
}
|
46 |
-
}
|
47 |
-
|
48 |
-
@mixin button_danger() {
|
49 |
-
background: $red_color;
|
50 |
-
&:hover {
|
51 |
-
background: $red_color_h;
|
52 |
-
}
|
53 |
-
}
|
54 |
-
|
55 |
-
@mixin button_warning() {
|
56 |
-
background: $orange_color;
|
57 |
-
&:hover {
|
58 |
-
background: $orange_color_h;
|
59 |
-
}
|
60 |
-
}
|
61 |
-
|
62 |
-
@mixin input() {
|
63 |
-
font-size: 14px;
|
64 |
-
line-height: 20px;
|
65 |
-
color: $dark_color_1;
|
66 |
-
background-color: $grey_color_3;
|
67 |
-
border-radius: $border_radius_extra_small;
|
68 |
-
padding: 10px 20px;
|
69 |
-
height: 50px;
|
70 |
-
border: 1px solid $grey_color_3;
|
71 |
-
box-shadow: none;
|
72 |
-
&:focus{
|
73 |
-
border-color: rgba(72,197,105,.6);
|
74 |
-
box-shadow: 0 0 2px rgba(72,197,105,.6);
|
75 |
-
}
|
76 |
-
}
|
77 |
-
|
78 |
-
@mixin button_icon( $icon ) {
|
79 |
-
content: $icon;
|
80 |
-
display: inline-block;
|
81 |
-
font-family: dashicons;
|
82 |
-
font-size: 16px;
|
83 |
-
font-style: normal;
|
84 |
-
font-weight: 400;
|
85 |
-
height: 18px;
|
86 |
-
line-height: 18px;
|
87 |
-
text-align: center;
|
88 |
-
text-decoration: inherit;
|
89 |
transition: all 200ms linear;
|
90 |
-
vertical-align: middle;
|
91 |
-
}
|
92 |
|
93 |
-
@mixin button_icon_before( $icon ) {
|
94 |
&:before {
|
95 |
-
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
}
|
98 |
-
}
|
99 |
|
100 |
-
@mixin button_icon_after( $icon ) {
|
101 |
-
&:after {
|
102 |
-
@include button_icon( $icon );
|
103 |
-
padding: 0 0 0 5px;
|
104 |
-
}
|
105 |
-
}
|
106 |
-
|
107 |
-
@mixin button_icon_middle( $icon ) {
|
108 |
-
&:before {
|
109 |
-
@include button_icon( $icon );
|
110 |
-
margin: 0 -5px;
|
111 |
-
}
|
112 |
-
}
|