<?php
/**
 * Block styles.
 *
 * @package nexter-fse
 * @since 1.0.0
 */

/**
 * Register block styles
 *
 * @return void
 * .hide-on-mobile{
 * display:none ;
 * } * @since 1.0.0
 *
 */
function nexter_fse_register_block_styles() {
    //todo remove inline style
    register_block_style( // phpcs:ignore WPThemeReview.PluginTerritory.ForbiddenFunctions.editor_blocks_register_block_style
        'core/core/query-pagination',
        array(
            'name' => 'nexter-fse-filled-pagination',
            'label' => __('Filled Pagination', 'nexter-fse'),
        )
    );

    register_block_style( // phpcs:ignore WPThemeReview.PluginTerritory.ForbiddenFunctions.editor_blocks_register_block_style
        'core/post-terms',
        array(
            'name' => 'nexter-fse-pilled-terms',
            'label' => __('Pilled Terms', 'nexter-fse'),
            'inline_style' => '
				.is-style-nexter-fse-pilled-terms a {
					padding:5px 15px;
					background-color: var(--wp--preset--color--primary);
					border-radius: 64px;
					text-decoration:none;
					color:white;
				}
				.is-style-nexter-fse-pilled-terms a:not(:last-child){
				    margin-right:0.5rem;
				}
				.is-style-nexter-fse-pilled-terms .wp-block-post-terms__separator{
				    display :none;
				}
				.is-style-nexter-fse-pilled-terms a:hover{
					text-decoration:inherit;
				}
			'
        )
    );
}

add_action('init', 'nexter_fse_register_block_styles');