プロパティー | 発音 |
---|---|
background-attachment |
バックグラウンド・アタッチメント |
background-color |
バックグラウンド・カラー |
background-image |
バックグラウンド・イメージ |
background-position |
バックグラウンド・ポジション |
background-repeat |
バックグラウンド・リピート |
background |
バックグラウンド |
border-collapse |
ボーダー・コラプス |
border-color |
ボーダー・カラー |
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
// ---- | |
// libsass (v3.3.6) | |
// ---- | |
$z-index:( | |
// ↑レイヤー上 | |
child, | |
pulldown, | |
nav, | |
header |
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 reverse($list) { | |
$result: (); | |
@for $i from length($list)*-1 through -1 { | |
$result: append($result, nth($list, abs($i)), comma); | |
} | |
@return $result; | |
} |
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 | |
//キャプションにaria-labelledbyを付ける | |
add_shortcode('caption', 'my_img_caption_shortcode'); | |
function my_img_caption_shortcode( $attr, $content = null ) { | |
// New-style shortcode with the caption inside the shortcode with the link and image tags. | |
if ( ! isset( $attr['caption'] ) ) { | |
if ( preg_match( '#((?:<a [^>]+>\s*)?<img [^>]+>(?:\s*</a>)?)(.*)#is', $content, $matches ) ) { | |
$content = $matches[1]; | |
$attr['caption'] = trim( $matches[2] ); |
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 | |
//パンくずのリッチスニペット対応 | |
function rich_bread_crumb($output, $args) { | |
if ($args['type'] == 'list') { | |
$output = preg_replace('|<li\s+(.*?)>|mi','<li ${1} itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">',$output); | |
$output = preg_replace('|<li\s+class="(.*?current.*?)".*?>|mi','<li class="${1}">',$output); | |
$output = preg_replace('|<a\s+(.*?)>|mi','<a ${1} itemprop="url"><span itemprop="title">',$output); | |
$output = str_replace('</a>','</span></a>',$output); | |
} elseif ($args['type'] == 'string') { | |
$output = preg_replace('|<a\s+(.*?)>|mi','<span itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><a ${1} itemprop="url"><span itemprop=”title”>',$output); |
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-cli | |
complete -c wp -l cache --description 'Manage the object cache.' | |
complete -c wp -l cap --description 'Manage user capabilities.' | |
complete -c wp -l cli --description 'Get information about WP-CLI itself.' | |
complete -c wp -l comment --description 'Manage comments.' | |
complete -c wp -l core --description 'Download, install, update and otherwise manage WordPress proper.' | |
complete -c wp -l cron --description 'Manage WP-Cron events and schedules.' | |
complete -c wp -l db --description 'Perform basic database operations.' | |
complete -c wp -l eval --description 'Execute arbitrary PHP code.' | |
complete -c wp -l eval-file --description 'Load and execute a PHP file.' |
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
// ---- | |
// Sass (v3.4.20) | |
// Compass (v1.0.3) | |
// ---- | |
.wrap { | |
@media (min-width: 769px) { | |
display: block; | |
@at-root (without: media){ | |
.box { |
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
do ($=jQuery) -> | |
namespace = 'pluginName' | |
$.fn[namespace] = (options) -> | |
if @length == 0 | |
return false | |
settings = $.extend( | |
# settings default | |
foo: 'fuga' | |
bar: 'hoge' |
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
Show hidden characters
{ | |
//お約束 | |
"snippets": { | |
"variables": { | |
"lang": "ja", | |
"locale": "ja-JP" | |
} | |
}, | |
// 補完のスコープ対象にSassファイルを追加 |
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
#sass | |
complete -f -c sass -s c -l check --description "" | |
complete -f -c sass -s C -l no-cache --description "" | |
complete -f -c sass -s g -l debug-info --description "" | |
complete -f -c sass -s h -l help --description "" | |
complete -f -c sass -s i -l interactive --description "" | |
complete -f -c sass -s l -l line-comments -l line-numbers --description "" | |
complete -f -c sass -s s -l stdin --description "" | |
complete -f -c sass -s t -l style --description "" | |
complete -f -c sass -s v -l version --description "" |
NewerOlder