Fixes document overflow and proportion when using gallery mode in item single page.

This commit is contained in:
mateuswetah 2020-04-30 18:45:50 -03:00
parent fe6ffc9409
commit fa45fc325d
3 changed files with 14 additions and 9 deletions

View File

@ -578,6 +578,9 @@
}
.single-item-collection--gallery {
margin-bottom: 24px;
.slick-list {
overflow: visible;
}
.slick-track {
display: flex;
align-items: center;
@ -587,6 +590,13 @@
img {
max-height: 60vh;
}
video {
width: auto;
}
iframe {
min-height: 200px;
height: 60vh;
}
}
.slick-slide {
max-height: 60vh;

View File

@ -203,7 +203,7 @@ function tainacan_customize_register( $wp_customize ) {
) );
$wp_customize->add_control( 'tainacan_hide_site_title_on_header_banner', array(
'type' => 'checkbox',
'priority' => 99, // Within the section.
'priority' => 98, // Within the section.
'section' => 'header_image',
'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' )
@ -221,7 +221,7 @@ function tainacan_customize_register( $wp_customize ) {
) );
$wp_customize->add_control( 'tainacan_hide_header_banner', array(
'type' => 'checkbox',
'priority' => 98, // Within the section.
'priority' => 99, // Within the section.
'section' => 'header_image',
'label' => __( 'Hide the header banner completely', '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',
'capability' => 'edit_theme_options',
'default' => false,
'transport' => 'postMessage'
'transport' => 'refresh'
) );
$wp_customize->add_control( 'tainacan_single_item_gallery_mode', array(
'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' ),
'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.

File diff suppressed because one or more lines are too long