• Raindrops1.331がライブになりました

    Raindrops1.331がライブになりました

    今回の変更は
    html要素、em i u kbd detail のスタイルを調整

    新しいCSSクラス 
    sectioned(ol要素の入れ子表示用)rd-alert,rd-info,rd-noticeクラスを追加しました

    使用例は、以下を参照してください。

    version:1.331

    Overview of Changes

    Modified Add styles rules em i u kbd detail

    Modified Add New CSS Class sectioned for ol element

    Modified Add a class that represents the state of the content

    rd-alert, rd-info, rd-notice

    Modified Add editor style for japanese language

    Modified Add styles for google fonts material-icons

    Fixed hard coded text to translatable ( searchform.php )


  • 予告:Raindrops1.331 ol 要素 sectioned クラスを改良します

    項以下のリスト表示を修正します

    1. レベル1
      1. レベル2
      2. レベル2
      3. レベル2
    2. レベル1
      1. レベル2
        1. レベル2
        2. レベル2
          1. test ul
          2. test
          3. test
        3. レベル2
          • test ul
          • test
          • test
            • test ul
            • test
            • test
      2. レベル2
      3. レベル2
    3. レベル1
      1. レベル2
      2. レベル2
      3. レベル2
    4. レベル1
      1. レベル2
      2. レベル2
      3. レベル2
    5. レベル1
      1. レベル2
      2. レベル2
      3. レベル2
    <ol class="sectioned">
    	<li>レベル1
    <ol>
    	<li>レベル2</li>
    	<li>レベル2</li>
    	<li>レベル2</li>
    </ol>
    </li>
    	<li>レベル1
    <ol>
    	<li>レベル2
    <ol>
    	<li>レベル2</li>
    	<li>レベル2
    <ol>
    	<li>test ul</li>
    	<li>test</li>
    	<li>test</li>
    </ol>
    </li>
    	<li>レベル2
    <ul>
    	<li>test ul</li>
    	<li>test</li>
    	<li>test
    <ul>
    	<li>test ul</li>
    	<li>test</li>
    	<li>test</li>
    </ul>
    </li>
    </ul>
    </li>
    </ol>
    </li>
    	<li>レベル2</li>
    	<li>レベル2</li>
    </ol>
    </li>
    	<li>レベル1
    <ol>
    	<li>レベル2</li>
    	<li>レベル2</li>
    	<li>レベル2</li>
    </ol>
    </li>
    	<li>レベル1
    <ol>
    	<li>レベル2</li>
    	<li>レベル2</li>
    	<li>レベル2</li>
    </ol>
    </li>
    	<li>レベル1
    <ol>
    	<li>レベル2</li>
    	<li>レベル2</li>
    	<li>レベル2</li>
    </ol>
    </li>
    </ol>

  • 予告:Raindrops1.331 kbd要素のスタイルを追加します。

    esc1234567890-^\bs

    tabqwertyuiop@[enter

    controlasdfghjkl;:]

    shiftzxcvbnm,./\shift

    <div style="text-align: center;">
    
    <p><kbd><a href="https://www.tenman.info">esc</a></kbd><kbd>1</kbd><kbd>2</kbd><kbd>3</kbd><kbd>4</kbd><kbd>5</kbd><kbd>6</kbd><kbd>7</kbd><kbd>8</kbd><kbd>9</kbd><kbd>0</kbd><kbd>-</kbd><kbd>^</kbd><kbd>\</kbd><kbd>bs</kbd></p>
    
    <p><kbd>tab</kbd><kbd>q</kbd><kbd>w</kbd><kbd>e</kbd><kbd>r</kbd><kbd>t</kbd><kbd>y</kbd><kbd>u</kbd><kbd>i</kbd><kbd>o</kbd><kbd>p</kbd><kbd>@</kbd><kbd>[</kbd><kbd>enter</kbd></p>
    
    <p><kbd>control</kbd><kbd>a</kbd><kbd>s</kbd><kbd>d</kbd><kbd>f</kbd><kbd>g</kbd><kbd>h</kbd><kbd>j</kbd><kbd>k</kbd><kbd>l</kbd><kbd>;</kbd><kbd>:</kbd><kbd>]</kbd></p>
    
    <p><kbd>shift</kbd><kbd>z</kbd><kbd>x</kbd><kbd>c</kbd><kbd>v</kbd><kbd>b</kbd><kbd>n</kbd><kbd>m</kbd><kbd>,</kbd><kbd>.</kbd><kbd>/</kbd><kbd>\</kbd><kbd>shift</kbd></p>
    
    </div>

  • 予告:Raindrops1.331 Google Material icons 使い方

    Raindrops1.331では、Google Material icons を簡単に使うことが出来るようになります。

    explore Google Material icons とは

    Material icons で公開されているアイコンフォントです まずは、お試しで、このアイコンを使ってみましょう。

     

     

    WEBページでアイコンをクリックすると

    material-icon-popup

    ページの下部に、ダイアログボックスが表示されます。

    explore Step1について

    Raindropsの場合、投稿本文に以下のコードを記述してください。

    <span class="google-font-material-icons"></span>

    以上で、アイコンフォントをロードする準備は、終了です。

    explore Step2について

    <i class="material-icons">android</i>

    好きなアイコンのコードをコピーして、投稿本文に貼り付けると、アイコンが表示されます。

    次に、このアイコンを、Raindropsテーマの組み込み済みのCSSクラスと組み合わせて、実用的な表現方法を考えてみたいと思います。

    Raindrops 1.331で追加されたステータスクラスと組み合わせてみます

    3d_rotation 3d_rotationexplore explorenew_releases new_releases

    <i class="material-icons rd-info row">3d_rotation </i>3d_rotation
    <i class="material-icons rd-alert">explore </i>explore
    <i class="material-icons red">new_releases </i>new_releases

    rd-info row,rd-alert,rd-notice クラスを組み合わせた表現です。

    explore Raindrops 1.331で追加されたステータスクラスと組み合わせてみます さらに、枠線クラスを追加してみます。

    3d_rotation 3d_rotation

    explore explore

    new_releases new_releases

    <p class="rd-info row f26"><i class="material-icons">3d_rotation </i>3d_rotation</p>
    <p class="rd-alert f26"><i class="material-icons rd-alert">explore </i>explore</p>
    <p class="rd-notice f26 corner"><i class="material-icons red">new_releases </i>new_releases</p>

    rd-border, corner クラスと組み合わせてみました。

    explore ダイアログ風のボックスを組み合わせてみましょう

    explore hello world

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    <div class="gradient-2">
    
    <h3 class="gradient-4 block pad-m" style="margin: 0;"><i class="material-icons rd-alert">explore </i>hello world</h3>
    
    
    <div class="content" style="margin: 1em;">
    
    
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    
    
    </div>
    
    </div>

    explore gradient クラス color クラスと組み合わせた表現も可能です

    以下はcolorクラスの例です。gradient クラスは、ソースを貼り付けてテストしてみてください。

    3d_rotation 3d_rotation color-4

    3d_rotation 3d_rotation color-3

    3d_rotation 3d_rotation color-2

    3d_rotation 3d_rotation color-1

    3d_rotation 3d_rotation color1

    3d_rotation 3d_rotation color2

    3d_rotation 3d_rotation color3

    3d_rotation 3d_rotation color4

    new_releases new_releases

    <p class="rd-info row f26 "><i class="material-icons gradient-4 pad-m">3d_rotation </i> 3d_rotation gradient-4</p>
    <p class="rd-info row f26 "><i class="material-icons gradient-3 pad-m">3d_rotation </i> 3d_rotation gradient-3</p>
    <p class="rd-info row f26 "><i class="material-icons gradient-2 pad-m">3d_rotation </i> 3d_rotation gradient-2</p>
    <p class="rd-info row f26 "><i class="material-icons gradient-1 pad-m">3d_rotation </i> 3d_rotation gradient-1</p>
    <p class="rd-info row f26 "><i class="material-icons gradient1 pad-m">3d_rotation </i> 3d_rotation gradient1</p>
    <p class="rd-info row f26 "><i class="material-icons gradient2 pad-m">3d_rotation </i> 3d_rotation gradient2</p>
    <p class="rd-info row f26 "><i class="material-icons gradient3 pad-m">3d_rotation </i> 3d_rotation gradient3</p>
    <p class="rd-info row f26 "><i class="material-icons gradient4 pad-m">3d_rotation </i> 3d_rotation gradient4</p>
    &amp;nbsp;
    <p class="rd-info row f26 "><i class="material-icons color-4 pad-m">3d_rotation </i> 3d_rotation color-4</p>
    <p class="rd-info row f26 "><i class="material-icons color-3 pad-m">3d_rotation </i> 3d_rotation color-3</p>
    <p class="rd-info row f26 "><i class="material-icons color-2 pad-m">3d_rotation </i> 3d_rotation color-2</p>
    <p class="rd-info row f26 "><i class="material-icons color-1 pad-m">3d_rotation </i> 3d_rotation color-1</p>
    <p class="rd-info row f26 "><i class="material-icons color1 pad-m">3d_rotation </i> 3d_rotation color1</p>
    <p class="rd-info row f26 "><i class="material-icons color2 pad-m">3d_rotation </i> 3d_rotation color2</p>
    <p class="rd-info row f26 "><i class="material-icons color3 pad-m">3d_rotation </i> 3d_rotation color3</p>
    <p class="rd-info row f26 "><i class="material-icons color4 pad-m">3d_rotation </i> 3d_rotation color4</p>
    <p class="rd-info row f26 "><i class="material-icons red">new_releases </i>new_releases</p>

    f26は、フォントサイズをコントロールするクラスです。

    以上で、コンテンツにどのような効果を与えるか、大体の事は理解していただけるものと思います。

    なを、実際にサイトで運用する場合には、冒頭の

    <span class="google-font-material-icons"></span>
    

    を削除していただき

    functions.phpに以下のようにコードを追加していただくと良いと考えています。

    <?php
    //start add material_icons
    add_action( 'after_setup_theme', 'material_icons_setup' );
    
    function material_icons_setup() {
    
    	add_action( 'wp_enqueue_scripts', 'register_material_icons' );
    }
    
    function register_material_icons() {
    
    	global $raindrops_current_data_version;
    
    	$font_url = 'https://fonts.googleapis.com/icon?family=Material+Icons';
    
    	wp_register_style( 'material_icons', $font_url, array(), $raindrops_current_data_version, 'all' );
    	wp_enqueue_style( 'material_icons' );
    }
    //end add material_icons
    /**
     *
     *
     * @package Raindrops
     * @since Raindrops 0.1
     */
    if ( !defined( 'ABSPATH' ) ) {
    	exit;
    }

    start add material_icons から、end add material_icons の範囲をfunctions.phpの最初に追加してください。

    Note:start add material_icons 以下のコードが、間違っていましたので修正しました


  • Raindrops1.329がライブになりました

    Raindrops1.329がライブになりました

    今回の変更は、

    Raindrops1.328で、リンクテキストがURLだった場合に、デコードしたURLを表示する機能を追加しました。

    残念ですが、バグが見つかりました「デコードされたリンクの後方のhtmlに、再度リンクが追加されます」

    • cropped-raindrops-32.png
    • 予告:Raindrops1.329 blockquote要素の表示

      Raindrops1.329では、blockquote要素の表示が若干変更になります 従来の引用元リンクは cite:http://www….. と国際化対応をしていませんでしたが 1.329より…

    Fixed raindrops_current_url() typo

    Modified CSS important rule removed ( .raindrops-comment-link )

    Modified blockquote label cite: translatable.

    Modified New CSS class sectioned for nested lists


  • 予告:Raindrops1.329 blockquote要素の表示

    Raindrops1.329では、blockquote要素の表示が若干変更になります

    従来の引用元リンクは cite:http://www….. と国際化対応をしていませんでしたが
    1.329より翻訳対応が行われ、引用元:http://www…..といった日本語での表示になります。

    Raindrops1.329では、入れ子(ネスト)構造用のリスト用の新しいクラス sectioned を追加します

    このクラスを ol要素に追加した場合(<ol class=”sectioned”>)以下のように表示されます

    html source

    <blockquote cite="https://www.tenman.info/wp3/raindrops/2015/10/15/%E4%BA%88%E5%91%8A%EF%BC%9Araindrops1-329%E3%80%80%E3%83%8D%E3%82%B9%E3%83%88%E3%81%95%E3%82%8C%E3%81%9F%E3%83%AA%E3%82%B9%E3%83%88%E7%94%A8%E3%81%AE%E6%96%B0%E3%81%97%E3%81%84%E3%82%AF%E3%83%A9/">
    <p>Raindrops1.329では、入れ子(ネスト)構造用のリスト用の新しいクラス sectioned を追加します</p>
    <p>このクラスを ol要素に追加した場合(<ol class="sectioned">)以下のように表示されます</p>
    </blockquote>

  • 予告:Raindrops1.329 ネストされたリスト用の新しいクラス

    Raindrops1.329では、入れ子(ネスト)構造用のリスト用の新しいクラス sectioned を追加します

    このクラスを ol要素に追加した場合(<ol class=”sectioned”>)以下のように表示されます

    日本語環境の場合

    1. level 1
      1. level 2
      2. level 2
      3. level 2
      4. level 2
        1. level 3
        2. level 3
        3. level 3
        4. level 3
    2. level 1
      1. 英語環境の場合

        sectioned

        html source

        <ol class="sectioned">
        <li>level 1
        	<ol>
        		<li>level 2</li>
        		<li>level 2</li>
        		<li>level 2</li>
        		<li>
        			level 2
        			<ol>
        				<li>level 3</li>
        				<li>level 3</li>
        				<li>level 3</li>
        				<li>level 3</li>
        			</ol>
        		</li>
        	</ol>
        </li>
        <li>level 1</li>
        <ol>

  • Raindrops1.328 Bug Report

    Raindrops1.328で、リンクテキストがURLだった場合に、デコードしたURLを表示する機能を追加しました。

    残念ですが、バグが見つかりました「デコードされたリンクの後方のhtmlに、再度リンクが追加されます」

    Quick Fix

    functions.php(child themeをお使いの場合は、child theme / functions.php )を開いていただき

    ファイルの先頭に

    code add start から endまでの範囲の関数をコピーペーストしてください。

    このバグは、Raindrops1.329で修正予定です。