/* 
Theme Name: Lightning Child Sample
Theme URI: https://theme-url.com/
Description: 子テーマ
Author: theme author
Author URI: https://author-url.com/
Template: lightning
Version: 0.6.0
Text Domain: Lightning child Sample
Tags: flexible-header, custom-colors, custom-menu, custom-logo
*/


/* 全体設定 */
.wp-block-buttons .wp-block-button__link {
    border-radius: var(--vk-size-radius);
    background-color: var(--vk-color-primary-vivid);
}

.page-header {
    background:linear-gradient(90deg, rgb(100, 100, 100), rgb(0, 0, 0), rgb(100, 100, 100));
}

/* headder*/



/* topページ */


/* フィルターフック */
/**
 * 投稿一覧画面で表示する投稿情報を改変する
 * @param array  $options : 1件分の表示形式に関する設定配列.
 * @param object $post : 1件分の投稿情報.
 */
add_filter(
    'vk_post_options',
    function( $options, $post ) {
		
		// $options の 'display_image' の値を上書き
        $options['display_image'] = false;

        // $options の 'btn_text' の値を上書き
        $options['btn_text'] = '詳しくはこちら';

        // 改変した $options を返す
        return $options;
    },
    10,
    2
);

/* コンクール */
@media screen and (min-width:480px) { 
    /*　画面サイズが480pxからはここを読み込む　*/
.cn-table { width: 50%;}
}
@media screen and (max-width:480px) { 
    /*　画面サイズが480pxまではここを読み込む　*/
.cn-table { width: 100%;}
}