This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ratio_space-golden | |
img.ratio_space__img(src="./img/main.jpg") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function() { | |
var elem = document.createElement('canvas') | |
if (!!(elem.getContext && elem.getContext('2d'))) { | |
// was able or not to get WebP representation | |
return elem.toDataURL('image/webp').indexOf('data:image/webp') == 0 | |
} | |
// very old browser like IE 8, canvas not supported | |
return false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>My test page</title> | |
<link rel="stylesheet" href="./style.css"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$theme-colors: ( | |
primary: #3D7CE4, | |
); | |
$grid-breakpoints: ( | |
// Extra small screen / phone | |
xs: 0, | |
// Small screen / phone | |
sm: 576px, | |
// Medium screen / tablet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wp-block-cgb-block-fukidashi-block { | |
padding: 0.1rem; | |
display: flex; | |
justify-content: space-between; | |
align-items: flex-start; | |
background-color: transparent; | |
.image { | |
width: 70px; | |
.wp-block-image:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.aligncenter), | |
.aligncenter { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fukidashi_block_cgb_block_assets() { // phpcs:ignore | |
// Register block styles for both frontend + backend. | |
$block_url = get_stylesheet_directory_uri() . "/fukidashi-block/dist"; | |
wp_register_style( | |
'fukidashi_block-cgb-style-css', // Handle. | |
"$block_url/blocks.style.build.css", | |
array( 'wp-editor' ), // Dependency to include the CSS after it. | |
null // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.style.build.css' ) // Version: File modification time. | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* BLOCK: fukidashi-block | |
* | |
* フキダシ表示ができるブロック | |
*/ | |
// Import CSS. | |
import './editor.scss'; | |
import './style.scss'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); | |
function theme_enqueue_styles() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<?php if ( have_posts() ): ?> | |
<?php while ( have_posts() ) : the_post();?> | |
<?php get_template_part( 'template-parts/item', 'news' ); ?> | |
<?php endwhile; ?> | |
<?php endif;?> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cptui_register_my_cpts_news() { | |
/** | |
* Post Type: 新着情報. | |
*/ | |
$labels = [ | |
"name" => __( "新着情報", "twentytwenty" ), | |
"singular_name" => __( "新着情報", "twentytwenty" ), | |
]; |
NewerOlder