<?php
/**
 * Hasium color option
 *
 * @package hasium
 */

// Primary color option.
Kirki::add_field(
	'hasium_config', array(
		'type'     => 'color',
		'settings' => 'hasium_color_primary',
		'label'    => esc_html__( 'Primary Color', 'hasium' ),
		'section'  => 'hasium_section_color',
		'default'  => '#de7b85',
		'output'   => array(
			array(
				'element'  => array(
					'a:hover',
					'a:focus',
					'a:active',
				),
				'function' => 'css',
				'property' => 'color',
			),
			array(
				'element'  => array(
					'.button:hover',
					'button:hover',
					'input[type="button"]:hover',
					'input[type="reset"]:hover',
					'input[type="submit"]:hover',
				),
				'function' => 'css',
				'property' => 'background-color',
			),
			array(
				'element'  => array(
					'.entry-footer .tags-links a:hover',
				),
				'function' => 'css',
				'property' => 'border-color',
			),
		),
	)
);
