Fixes document overflow and proportion when using gallery mode in item single page.
This commit is contained in:
parent
fe6ffc9409
commit
fa45fc325d
|
@ -578,6 +578,9 @@
|
||||||
}
|
}
|
||||||
.single-item-collection--gallery {
|
.single-item-collection--gallery {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
|
.slick-list {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.slick-track {
|
.slick-track {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -587,6 +590,13 @@
|
||||||
img {
|
img {
|
||||||
max-height: 60vh;
|
max-height: 60vh;
|
||||||
}
|
}
|
||||||
|
video {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
iframe {
|
||||||
|
min-height: 200px;
|
||||||
|
height: 60vh;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.slick-slide {
|
.slick-slide {
|
||||||
max-height: 60vh;
|
max-height: 60vh;
|
||||||
|
|
|
@ -203,7 +203,7 @@ function tainacan_customize_register( $wp_customize ) {
|
||||||
) );
|
) );
|
||||||
$wp_customize->add_control( 'tainacan_hide_site_title_on_header_banner', array(
|
$wp_customize->add_control( 'tainacan_hide_site_title_on_header_banner', array(
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'priority' => 99, // Within the section.
|
'priority' => 98, // Within the section.
|
||||||
'section' => 'header_image',
|
'section' => 'header_image',
|
||||||
'label' => __( 'Hide the header banner site title', 'tainacan-interface' ),
|
'label' => __( 'Hide the header banner site title', 'tainacan-interface' ),
|
||||||
'description' => __( 'Toggle to hide the site title row that appears over the header banner', 'tainacan-interface' )
|
'description' => __( 'Toggle to hide the site title row that appears over the header banner', 'tainacan-interface' )
|
||||||
|
@ -221,7 +221,7 @@ function tainacan_customize_register( $wp_customize ) {
|
||||||
) );
|
) );
|
||||||
$wp_customize->add_control( 'tainacan_hide_header_banner', array(
|
$wp_customize->add_control( 'tainacan_hide_header_banner', array(
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'priority' => 98, // Within the section.
|
'priority' => 99, // Within the section.
|
||||||
'section' => 'header_image',
|
'section' => 'header_image',
|
||||||
'label' => __( 'Hide the header banner completely', 'tainacan-interface' ),
|
'label' => __( 'Hide the header banner completely', 'tainacan-interface' ),
|
||||||
'description' => __( 'Toggle to hide the header banner from all pages of the site', 'tainacan-interface' )
|
'description' => __( 'Toggle to hide the header banner from all pages of the site', 'tainacan-interface' )
|
||||||
|
@ -315,7 +315,7 @@ function tainacan_customize_register( $wp_customize ) {
|
||||||
'type' => 'theme_mod',
|
'type' => 'theme_mod',
|
||||||
'capability' => 'edit_theme_options',
|
'capability' => 'edit_theme_options',
|
||||||
'default' => false,
|
'default' => false,
|
||||||
'transport' => 'postMessage'
|
'transport' => 'refresh'
|
||||||
) );
|
) );
|
||||||
$wp_customize->add_control( 'tainacan_single_item_gallery_mode', array(
|
$wp_customize->add_control( 'tainacan_single_item_gallery_mode', array(
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
|
@ -324,11 +324,6 @@ function tainacan_customize_register( $wp_customize ) {
|
||||||
'label' => __( 'Show "Documents" section: Document and Attachments grouped in one slider.', 'tainacan-interface' ),
|
'label' => __( 'Show "Documents" section: Document and Attachments grouped in one slider.', 'tainacan-interface' ),
|
||||||
'description' => __( 'Toggle to show the document and attachments in the same list, a carousel with the current item on top.', 'tainacan-interface' )
|
'description' => __( 'Toggle to show the document and attachments in the same list, a carousel with the current item on top.', 'tainacan-interface' )
|
||||||
) );
|
) );
|
||||||
$wp_customize->selective_refresh->add_partial( 'tainacan_single_item_gallery_mode', array(
|
|
||||||
'selector' => '.single-item-collection--gallery, .single-item-collection--attachments',
|
|
||||||
'render_callback' => '__return_false',
|
|
||||||
'fallback_refresh' => true
|
|
||||||
) );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds option to configure Document section label.
|
* Adds option to configure Document section label.
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue