More tweaks to collection extra form options.

This commit is contained in:
mateuswetah 2022-05-11 16:52:00 -03:00
parent 1b073a3aa1
commit 98309de800
2 changed files with 5 additions and 4 deletions

View File

@ -79,7 +79,7 @@
border: 1px solid #dbdbdb; border: 1px solid #dbdbdb;
width: 94px; width: 94px;
opacity: 0.8; opacity: 0.8;
transition: border 0.2s ease, opacity 0.2s ease; transition: border 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
} }
.metadata-section-options label:hover img, .metadata-section-options label:hover img,
@ -90,7 +90,8 @@
.metadata-section-options label input:checked+img { .metadata-section-options label input:checked+img {
opacity: 1.0; opacity: 1.0;
border: 2px solid var(--tainacan-interface--link-color, #298596); border: 1px solid var(--tainacan-interface--link-color, #298596);
box-shadow: 0 0 0px 1px var(--tainacan-interface--link-color, #298596)
} }
.metadata-section-options label input { .metadata-section-options label input {

View File

@ -16,7 +16,7 @@ class TainacanInterfaceCollectionSettings {
function action_tainacan_enqueue_admin_scripts() { function action_tainacan_enqueue_admin_scripts() {
wp_enqueue_script( 'tainacan_colorWell', get_template_directory_uri() . '/assets/js/collection-color.js', false, false, true ); wp_enqueue_script( 'tainacan_colorWell', get_template_directory_uri() . '/assets/js/collection-color.js', false, false, true );
wp_enqueue_style( 'tainacan_colorWellStyle', get_template_directory_uri() . '/assets/css/collection-color.css', [], TAINACAN_INTERFACE_VERSION ); wp_enqueue_style( 'tainacan_collection_extra_options', get_template_directory_uri() . '/assets/css/collection-extra-options.css', [], TAINACAN_INTERFACE_VERSION );
wp_localize_script( 'tainacan_colorWell', 'tainacan_colorPickerVars', array( wp_localize_script( 'tainacan_colorWell', 'tainacan_colorPickerVars', array(
'cancelText' => __( 'Cancel', 'tainacan-interface' ), 'cancelText' => __( 'Cancel', 'tainacan-interface' ),
'chooseText' => __( 'Choose', 'tainacan-interface' ), 'chooseText' => __( 'Choose', 'tainacan-interface' ),
@ -32,7 +32,7 @@ class TainacanInterfaceCollectionSettings {
function register_hook() { function register_hook() {
if ( function_exists( 'tainacan_register_admin_hook' ) ) { if ( function_exists( 'tainacan_register_admin_hook' ) ) {
tainacan_register_admin_hook( 'collection', array( $this, 'form' ) ); tainacan_register_admin_hook( 'collection', array( $this, 'form' ), 'end-right' );
} }
} }