カテゴリー: Web

cssやらweb関係を大してわかりもしないのに書いてますよ。

  • Preprosが今のところwindowsで最も使い勝手の良いscss(sass)のコンパイラじゃないの!

    Preprosが今のところwindowsで最も使い勝手の良いscss(sass)のコンパイラじゃないの!

    ※この記事はsass, compassっていうなんか便利そうだけど難しそうなのをちょっとでもやってみようなwindowsユーザー向けですー。

    以前scss(sass)のことを書いた際koala がオススメだよ!っと書きました。( windowsユーザーですのでね…

    しかしながら今一番使いやすいんじゃないかと思うのが今回書いた Prepros というコンパイル(プリプロセッサ)アプリ。

    なんでこれを紹介するかって、compassで画像スプライトを作るという記事を書きたいからなんですよ。

    compassRuby入れてインストールしてあーだこーだ、ってのはちょっと敷居が高いので前もってコンパイラを紹介しておく手口。

     

    Preprosにできること

    • だいたいのプリプロセッサ言語に対応 (sass, compass, cofee script などなど)
    • ライブブラウザ対応
    • コンパイル時に通知してくれる
    • @import 監視
    • httpサーバー内蔵

    という至れり尽くせりの極み、正直こんな使いこなされへんレベル。

     

    Prepropsのダウンロード、インストール

    Prepropsサイトへ行ってちょっと下にスクロール、Download Preprops 【バージョン】 ※2013.06.19 現在 1.7.0

    この画像だと左下
    この画像だと左下

    exeファイルをダウンロードしてインストール。

    指示に従うだけなので割愛。

     

    起動からのちょっと使ってみたり

    機能がてんこもり過ぎて全く紹介しきれないですけども。

    流れとしてはプロジェクト追加→起動してる状態でファイル保存→勝手にコンパイルしてくれる!

    です。さていきましょう。

     

    プロジェクト追加

    フォルダまたはファイルごとドラッグ&ドロップすればいけます。

    D&D
    D&D

    左下 +マークでも可。

     

    プロジェクト画面

    プロジェクトを追加すると左サイドバーにプロジェクト、中央にファイル。

    ファイルをクリックでファイルごとの設定ができます。

    Preprops_eyecatch
    とにかくなんでもできる

    その他諸機能は触ればわかると思います(つд⊂) (反響があったらちゃんと書きますので

     

    ということで使ってみるよ

    ぼくは最近使い始めたのでそんなに慣れてないところがポイント!

    /**
     * Preprops 使ってみたサンプル
     */
    
    // compass ready (このサンプルだと一切関係ないです)
    @import "compass";
    
    $pink: #f01d4f;
    
    $link-color: $pink;
    $link-hover: darken($link-color, 9%);
    
    $base-width: 980px;
    
    // sample class
    .sample {
    	width: $base-width;
    
    	a {
    		color: $link-color;
    	}
    	&:hover {
    		color: $link-hover;
    	}
    
    }

    ↑ これをコンパイル、というかPrepropsが監視してくれているのでコンパイル自動でされると ↓

    @charset "UTF-8";
    /**
     * Preprops 使ってみたサンプル
     */
    .sample {
      width: 980px;
    }
    .sample a {
      color: #f01d4f;
    }
    .sample:hover {
      color: #d10e3c;
    }

    はい、ちゃんとできました。通知でお知らせしてくれます。

    成功のお知らせ
    成功のお知らせ

    もし何かエラーがあると…

    エラーだってさ
    エラーだってさ

    こちらもちゃんとお知らせしてくれました。

     

    ホホまとめ

    cssをある程度書けて多少なりとも興味があるならばcompass, sassは是非とも使うべきだと思います。

    以前ちらりと書いた scss (sass) + compassがスーパー便利でびっくりしすぎて今さら環境を作ったり を是非見て頂ければ。

    ちなみにぼくはRubyにcompassインストールして使ってますけども、こうも簡単ならアプリに乗り換えること充分検討できます。

    まぁ何にせよ、ようやくスプライト画像をcompassで実現する、という記事を書く用意ができたということで。

  • css2sass。cssを1分かからずしゅっとscss(sass)に変換してくれる素晴らしいサービスがそこに。

    css2sass。cssを1分かからずしゅっとscss(sass)に変換してくれる素晴らしいサービスがそこに。

    以前 scss (sass) + compassがスーパー便利でびっくりしすぎて今さら環境を作ったり。 というのを書いてから調子に乗ってさすさすしてます。

    もはやcssをcssとして書くのなんてやってられないどころかイヤすぎるほど素晴らしいscss(sass)。

    でも今までのcssをわざわざ書き直すのなんてめんどうだなぁと思いますよね、思いました。

    WordPressのテーマとかだとcssしかなかったり。

    変換ツール作ったらいいやん!っと思ったら海外の偉い人がもう作ってるよ!ってGoogle検索さんが。

    それがこちら、css2sass

    まぁすっきりしたデザイン。匠の技ですね(適当に褒めとく

    css2sassの使い方

    使い方も何も、頗る簡単。やってみましょう。

    今回はWordPress2012デフォルトテーマであるtwentytwelveのstyle.cssをサンプルに。

    /*
    Theme Name: Twenty Twelve
    Theme URI: http://wordpress.org/themes/twentytwelve
    Author: the WordPress team
    Author URI: http://wordpress.org/
    Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background.
    Version: 1.1.1
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: light, gray, white, one-column, two-columns, right-sidebar, flexible-width, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
    Text Domain: twentytwelve
    
    This theme, like WordPress, is licensed under the GPL.
    Use it to make something cool, have fun, and share what you've learned with others.
    */
    
    /* =Notes
    --------------------------------------------------------------
    This stylesheet uses rem values with a pixel fallback. The rem
    values (and line heights) are calculated using two variables:
    
    $rembase:     14;
    $line-height: 24;
    
    ---------- Examples
    
    * Use a pixel value with a rem fallback for font-size, padding, margins, etc.
    	padding: 5px 0;
    	padding: 0.357142857rem 0; (5 / $rembase)
    
    * Set a font-size and then set a line-height based on the font-size
    	font-size: 16px
    	font-size: 1.142857143rem; (16 / $rembase)
    	line-height: 1.5; ($line-height / 16)
    
    ---------- Vertical spacing
    
    Vertical spacing between most elements should use 24px or 48px
    to maintain vertical rhythm:
    
    .my-new-div {
    	margin: 24px 0;
    	margin: 1.714285714rem 0; ( 24 / $rembase )
    }
    
    ---------- Further reading
    
    http://snook.ca/archives/html_and_css/font-size-with-rem
    http://blog.typekit.com/2011/11/09/type-study-sizing-the-legible-letter/
    
    /* =Reset
    -------------------------------------------------------------- */
    
    html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    	margin: 0;
    	padding: 0;
    	border: 0;
    	font-size: 100%;
    	vertical-align: baseline;
    }
    body {
    	line-height: 1;
    }
    ol,
    ul {
    	list-style: none;
    }
    blockquote,
    q {
    	quotes: none;
    }
    blockquote:before,
    blockquote:after,
    q:before,
    q:after {
    	content: '';
    	content: none;
    }
    table {
    	border-collapse: collapse;
    	border-spacing: 0;
    }
    caption,
    th,
    td {
    	font-weight: normal;
    	text-align: left;
    }
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
    	clear: both;
    }
    html {
    	overflow-y: scroll;
    	font-size: 100%;
    	-webkit-text-size-adjust: 100%;
    	-ms-text-size-adjust: 100%;
    }
    a:focus {
    	outline: thin dotted;
    }
    article,
    aside,
    details,
    figcaption,
    figure,
    footer,
    header,
    hgroup,
    nav,
    section {
    	display: block;
    }
    audio,
    canvas,
    video {
    	display: inline-block;
    }
    audio:not([controls]) {
    	display: none;
    }
    del {
    	color: #333;
    }
    ins {
    	background: #fff9c0;
    	text-decoration: none;
    }
    hr {
    	background-color: #ccc;
    	border: 0;
    	height: 1px;
    	margin: 24px;
    	margin-bottom: 1.714285714rem;
    }
    sub,
    sup {
    	font-size: 75%;
    	line-height: 0;
    	position: relative;
    	vertical-align: baseline;
    }
    sup {
    	top: -0.5em;
    }
    sub {
    	bottom: -0.25em;
    }
    small {
    	font-size: smaller;
    }
    img {
    	border: 0;
    	-ms-interpolation-mode: bicubic;
    }
    
    /* Clearing floats */
    .clear:after,
    .wrapper:after,
    .format-status .entry-header:after {
    	clear: both;
    }
    .clear:before,
    .clear:after,
    .wrapper:before,
    .wrapper:after,
    .format-status .entry-header:before,
    .format-status .entry-header:after {
    	display: table;
    	content: "";
    }
    
    /* =Repeatable patterns
    -------------------------------------------------------------- */
    
    /* Small headers */
    .archive-title,
    .page-title,
    .widget-title,
    .entry-content th,
    .comment-content th {
    	font-size: 11px;
    	font-size: 0.785714286rem;
    	line-height: 2.181818182;
    	font-weight: bold;
    	text-transform: uppercase;
    	color: #636363;
    }
    
    /* Shared Post Format styling */
    article.format-quote footer.entry-meta,
    article.format-link footer.entry-meta,
    article.format-status footer.entry-meta {
    	font-size: 11px;
    	font-size: 0.785714286rem;
    	line-height: 2.181818182;
    }
    
    /* Form fields, general styles first */
    button,
    input,
    textarea {
    	border: 1px solid #ccc;
    	border-radius: 3px;
    	font-family: inherit;
    	padding: 6px;
    	padding: 0.428571429rem;
    }
    button,
    input {
    	line-height: normal;
    }
    textarea {
    	font-size: 100%;
    	overflow: auto;
    	vertical-align: top;
    }
    
    /* Reset non-text input types */
    input[type="checkbox"],
    input[type="radio"],
    input[type="file"],
    input[type="hidden"],
    input[type="image"],
    input[type="color"] {
    	border: 0;
    	border-radius: 0;
    	padding: 0;
    }
    
    /* Buttons */
    .menu-toggle,
    input[type="submit"],
    input[type="button"],
    input[type="reset"],
    article.post-password-required input[type=submit],
    .bypostauthor cite span {
    	padding: 6px 10px;
    	padding: 0.428571429rem 0.714285714rem;
    	font-size: 11px;
    	font-size: 0.785714286rem;
    	line-height: 1.428571429;
    	font-weight: normal;
    	color: #7c7c7c;
    	background-color: #e6e6e6;
    	background-repeat: repeat-x;
    	background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6);
    	background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6);
    	background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6);
    	background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);
    	background-image: linear-gradient(top, #f4f4f4, #e6e6e6);
    	border: 1px solid #d2d2d2;
    	border-radius: 3px;
    	box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
    }
    .menu-toggle,
    button,
    input[type="submit"],
    input[type="button"],
    input[type="reset"] {
    	cursor: pointer;
    }
    button[disabled],
    input[disabled] {
    	cursor: default;
    }
    .menu-toggle:hover,
    button:hover,
    input[type="submit"]:hover,
    input[type="button"]:hover,
    input[type="reset"]:hover,
    article.post-password-required input[type=submit]:hover {
    	color: #5e5e5e;
    	background-color: #ebebeb;
    	background-repeat: repeat-x;
    	background-image: -moz-linear-gradient(top, #f9f9f9, #ebebeb);
    	background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb);
    	background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb);
    	background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb);
    	background-image: linear-gradient(top, #f9f9f9, #ebebeb);
    }
    .menu-toggle:active,
    .menu-toggle.toggled-on,
    button:active,
    input[type="submit"]:active,
    input[type="button"]:active,
    input[type="reset"]:active {
    	color: #757575;
    	background-color: #e1e1e1;
    	background-repeat: repeat-x;
    	background-image: -moz-linear-gradient(top, #ebebeb, #e1e1e1);
    	background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1);
    	background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1);
    	background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1);
    	background-image: linear-gradient(top, #ebebeb, #e1e1e1);
    	box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4;
    	border-color: transparent;
    }
    .bypostauthor cite span {
    	color: #fff;
    	background-color: #21759b;
    	background-image: none;
    	border: 1px solid #1f6f93;
    	border-radius: 2px;
    	box-shadow: none;
    	padding: 0;
    }
    
    /* Responsive images */
    .entry-content img,
    .comment-content img,
    .widget img {
    	max-width: 100%; /* Fluid images for posts, comments, and widgets */
    }
    img[class*="align"],
    img[class*="wp-image-"],
    img[class*="attachment-"] {
    	height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
    }
    img.size-full,
    img.size-large,
    img.header-image,
    img.wp-post-image {
    	max-width: 100%;
    	height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
    }
    
    /* Make sure videos and embeds fit their containers */
    embed,
    iframe,
    object,
    video {
    	max-width: 100%;
    }
    .entry-content .twitter-tweet-rendered {
    	max-width: 100% !important; /* Override the Twitter embed fixed width */
    }
    
    /* Images */
    .alignleft {
    	float: left;
    }
    .alignright {
    	float: right;
    }
    .aligncenter {
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    }
    .entry-content img,
    .comment-content img,
    .widget img,
    img.header-image,
    .author-avatar img,
    img.wp-post-image {
    	/* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */
    	border-radius: 3px;
    	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }
    .wp-caption {
    	max-width: 100%; /* Keep wide captions from overflowing their container. */
    	padding: 4px;
    }
    .wp-caption .wp-caption-text,
    .gallery-caption,
    .entry-caption {
    	font-style: italic;
    	font-size: 12px;
    	font-size: 0.857142857rem;
    	line-height: 2;
    	color: #757575;
    }
    img.wp-smiley,
    .rsswidget img {
    	border: 0;
    	border-radius: 0;
    	box-shadow: none;
    	margin-bottom: 0;
    	margin-top: 0;
    	padding: 0;
    }
    .entry-content dl.gallery-item {
    	margin: 0;
    }
    .gallery-item a,
    .gallery-caption {
    	width: 90%;
    }
    .gallery-item a {
    	display: block;
    }
    .gallery-caption a {
    	display: inline;
    }
    .gallery-columns-1 .gallery-item a {
    	max-width: 100%;
    	width: auto;
    }
    .gallery .gallery-icon img {
    	height: auto;
    	max-width: 90%;
    	padding: 5%;
    }
    .gallery-columns-1 .gallery-icon img {
    	padding: 3%;
    }
    
    /* Navigation */
    .site-content nav {
    	clear: both;
    	line-height: 2;
    	overflow: hidden;
    }
    #nav-above {
    	padding: 24px 0;
    	padding: 1.714285714rem 0;
    }
    #nav-above {
    	display: none;
    }
    .paged #nav-above {
    	display: block;
    }
    .nav-previous,
    .previous-image {
    	float: left;
    	width: 50%;
    }
    .nav-next,
    .next-image {
    	float: right;
    	text-align: right;
    	width: 50%;
    }
    .nav-single + .comments-area,
    #comment-nav-above {
    	margin: 48px 0;
    	margin: 3.428571429rem 0;
    }
    
    /* Author profiles */
    .author .archive-header {
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    }
    .author-info {
    	border-top: 1px solid #ededed;
    	margin: 24px 0;
    	margin: 1.714285714rem 0;
    	padding-top: 24px;
    	padding-top: 1.714285714rem;
    	overflow: hidden;
    }
    .author-description p {
    	color: #757575;
    	font-size: 13px;
    	font-size: 0.928571429rem;
    	line-height: 1.846153846;
    }
    .author.archive .author-info {
    	border-top: 0;
    	margin: 0 0 48px;
    	margin: 0 0 3.428571429rem;
    }
    .author.archive .author-avatar {
    	margin-top: 0;
    }
    
    /* =Basic structure
    -------------------------------------------------------------- */
    
    /* Body, links, basics */
    html {
    	font-size: 87.5%;
    }
    body {
    	font-size: 14px;
    	font-size: 1rem;
    	font-family: Helvetica, Arial, sans-serif;
    	text-rendering: optimizeLegibility;
    	color: #444;
    }
    body.custom-font-enabled {
    	font-family: "Open Sans", Helvetica, Arial, sans-serif;
    }
    a {
    	outline: none;
    	color: #21759b;
    }
    a:hover {
    	color: #0f3647;
    }
    
    /* Assistive text */
    .assistive-text,
    .site .screen-reader-text {
    	position: absolute !important;
    	clip: rect(1px, 1px, 1px, 1px);
    }
    .main-navigation .assistive-text:focus {
    	background: #fff;
    	border: 2px solid #333;
    	border-radius: 3px;
    	clip: auto !important;
    	color: #000;
    	display: block;
    	font-size: 12px;
    	padding: 12px;
    	position: absolute;
    	top: 5px;
    	left: 5px;
    	z-index: 100000; /* Above WP toolbar */
    }
    
    /* Page structure */
    .site {
    	padding: 0 24px;
    	padding: 0 1.714285714rem;
    	background-color: #fff;
    }
    .site-content {
    	margin: 24px 0 0;
    	margin: 1.714285714rem 0 0;
    }
    .widget-area {
    	margin: 24px 0 0;
    	margin: 1.714285714rem 0 0;
    }
    
    /* Header */
    .site-header {
    	padding: 24px 0;
    	padding: 1.714285714rem 0;
    }
    .site-header h1,
    .site-header h2 {
    	text-align: center;
    }
    .site-header h1 a,
    .site-header h2 a {
    	color: #515151;
    	display: inline-block;
    	text-decoration: none;
    }
    .site-header h1 a:hover,
    .site-header h2 a:hover {
    	color: #21759b;
    }
    .site-header h1 {
    	font-size: 24px;
    	font-size: 1.714285714rem;
    	line-height: 1.285714286;
    	margin-bottom: 14px;
    	margin-bottom: 1rem;
    }
    .site-header h2 {
    	font-weight: normal;
    	font-size: 13px;
    	font-size: 0.928571429rem;
    	line-height: 1.846153846;
    	color: #757575;
    }
    .header-image {
    	margin-top: 24px;
    	margin-top: 1.714285714rem;
    }
    
    /* Navigation Menu */
    .main-navigation {
    	margin-top: 24px;
    	margin-top: 1.714285714rem;
    	text-align: center;
    }
    .main-navigation li {
    	margin-top: 24px;
    	margin-top: 1.714285714rem;
    	font-size: 12px;
    	font-size: 0.857142857rem;
    	line-height: 1.42857143;
    }
    .main-navigation a {
    	color: #5e5e5e;
    }
    .main-navigation a:hover {
    	color: #21759b;
    }
    .main-navigation ul.nav-menu,
    .main-navigation div.nav-menu > ul {
    	display: none;
    }
    .main-navigation ul.nav-menu.toggled-on,
    .menu-toggle {
    	display: inline-block;
    }
    
    /* Banner */
    section[role="banner"] {
    	margin-bottom: 48px;
    	margin-bottom: 3.428571429rem;
    }
    
    /* Sidebar */
    .widget-area .widget {
    	-webkit-hyphens: auto;
    	-moz-hyphens: auto;
    	hyphens: auto;
    	margin-bottom: 48px;
    	margin-bottom: 3.428571429rem;
    	word-wrap: break-word;
    }
    .widget-area .widget h3 {
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    }
    .widget-area .widget p,
    .widget-area .widget li,
    .widget-area .widget .textwidget {
    	font-size: 13px;
    	font-size: 0.928571429rem;
    	line-height: 1.846153846;
    }
    .widget-area .widget p {
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    }
    .widget-area .textwidget ul {
    	list-style: disc outside;
    	margin: 0 0 24px;
    	margin: 0 0 1.714285714rem;
    }
    .widget-area .textwidget li {
    	margin-left: 36px;
    	margin-left: 2.571428571rem;
    }
    .widget-area .widget a {
    	color: #757575;
    }
    .widget-area .widget a:hover {
    	color: #21759b;
    }
    .widget-area .widget a:visited {
    	color: #9f9f9f;
    }
    .widget-area #s {
    	width: 53.66666666666%; /* define a width to avoid dropping a wider submit button */
    }
    
    /* Footer */
    footer[role="contentinfo"] {
    	border-top: 1px solid #ededed;
    	clear: both;
    	font-size: 12px;
    	font-size: 0.857142857rem;
    	line-height: 2;
    	max-width: 960px;
    	max-width: 68.571428571rem;
    	margin-top: 24px;
    	margin-top: 1.714285714rem;
    	margin-left: auto;
    	margin-right: auto;
    	padding: 24px 0;
    	padding: 1.714285714rem 0;
    }
    footer[role="contentinfo"] a {
    	color: #686868;
    }
    footer[role="contentinfo"] a:hover {
    	color: #21759b;
    }
    
    /* =Main content and comment content
    -------------------------------------------------------------- */
    
    .entry-meta {
    	clear: both;
    }
    .entry-header {
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    }
    .entry-header img.wp-post-image {
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    }
    .entry-header .entry-title {
    	font-size: 20px;
    	font-size: 1.428571429rem;
    	line-height: 1.2;
    	font-weight: normal;
    }
    .entry-header .entry-title a {
    	text-decoration: none;
    }
    .entry-header .entry-format {
    	margin-top: 24px;
    	margin-top: 1.714285714rem;
    	font-weight: normal;
    }
    .entry-header .comments-link {
    	margin-top: 24px;
    	margin-top: 1.714285714rem;
    	font-size: 13px;
    	font-size: 0.928571429rem;
    	line-height: 1.846153846;
    	color: #757575;
    }
    .comments-link a,
    .entry-meta a {
    	color: #757575;
    }
    .comments-link a:hover,
    .entry-meta a:hover {
    	color: #21759b;
    }
    article.sticky .featured-post {
    	border-top: 4px double #ededed;
    	border-bottom: 4px double #ededed;
    	color: #757575;
    	font-size: 13px;
    	font-size: 0.928571429rem;
    	line-height: 3.692307692;
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    	text-align: center;
    }
    .entry-content,
    .entry-summary,
    .mu_register {
    	line-height: 1.714285714;
    }
    .entry-content h1,
    .comment-content h1,
    .entry-content h2,
    .comment-content h2,
    .entry-content h3,
    .comment-content h3,
    .entry-content h4,
    .comment-content h4,
    .entry-content h5,
    .comment-content h5,
    .entry-content h6,
    .comment-content h6 {
    	margin: 24px 0;
    	margin: 1.714285714rem 0;
    	line-height: 1.714285714;
    }
    .entry-content h1,
    .comment-content h1 {
    	font-size: 21px;
    	font-size: 1.5rem;
    	line-height: 1.5;
    }
    .entry-content h2,
    .comment-content h2,
    .mu_register h2 {
    	font-size: 18px;
    	font-size: 1.285714286rem;
    	line-height: 1.6;
    }
    .entry-content h3,
    .comment-content h3 {
    	font-size: 16px;
    	font-size: 1.142857143rem;
    	line-height: 1.846153846;
    }
    .entry-content h4,
    .comment-content h4 {
    	font-size: 14px;
    	font-size: 1rem;
    	line-height: 1.846153846;
    }
    .entry-content h5,
    .comment-content h5 {
    	font-size: 13px;
    	font-size: 0.928571429rem;
    	line-height: 1.846153846;
    }
    .entry-content h6,
    .comment-content h6 {
    	font-size: 12px;
    	font-size: 0.857142857rem;
    	line-height: 1.846153846;
    }
    .entry-content p,
    .entry-summary p,
    .comment-content p,
    .mu_register p {
    	margin: 0 0 24px;
    	margin: 0 0 1.714285714rem;
    	line-height: 1.714285714;
    }
    .entry-content a:visited,
    .comment-content a:visited {
    	color: #9f9f9f;
    }
    .entry-content ol,
    .comment-content ol,
    .entry-content ul,
    .comment-content ul,
    .mu_register ul {
    	margin: 0 0 24px;
    	margin: 0 0 1.714285714rem;
    	line-height: 1.714285714;
    }
    .entry-content ul ul,
    .comment-content ul ul,
    .entry-content ol ol,
    .comment-content ol ol,
    .entry-content ul ol,
    .comment-content ul ol,
    .entry-content ol ul,
    .comment-content ol ul {
    	margin-bottom: 0;
    }
    .entry-content ul,
    .comment-content ul,
    .mu_register ul {
    	list-style: disc outside;
    }
    .entry-content ol,
    .comment-content ol {
    	list-style: decimal outside;
    }
    .entry-content li,
    .comment-content li,
    .mu_register li {
    	margin: 0 0 0 36px;
    	margin: 0 0 0 2.571428571rem;
    }
    .entry-content blockquote,
    .comment-content blockquote {
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    	padding: 24px;
    	padding: 1.714285714rem;
    	font-style: italic;
    }
    .entry-content blockquote p:last-child,
    .comment-content blockquote p:last-child {
    	margin-bottom: 0;
    }
    .entry-content code,
    .comment-content code {
    	font-family: Consolas, Monaco, Lucida Console, monospace;
    	font-size: 12px;
    	font-size: 0.857142857rem;
    	line-height: 2;
    }
    .entry-content pre,
    .comment-content pre {
    	border: 1px solid #ededed;
    	color: #666;
    	font-family: Consolas, Monaco, Lucida Console, monospace;
    	font-size: 12px;
    	font-size: 0.857142857rem;
    	line-height: 1.714285714;
    	margin: 24px 0;
    	margin: 1.714285714rem 0;
    	overflow: auto;
    	padding: 24px;
    	padding: 1.714285714rem;
    }
    .entry-content pre code,
    .comment-content pre code {
    	display: block;
    }
    .entry-content abbr,
    .comment-content abbr,
    .entry-content dfn,
    .comment-content dfn,
    .entry-content acronym,
    .comment-content acronym {
    	border-bottom: 1px dotted #666;
    	cursor: help;
    }
    .entry-content address,
    .comment-content address {
    	display: block;
    	line-height: 1.714285714;
    	margin: 0 0 24px;
    	margin: 0 0 1.714285714rem;
    }
    img.alignleft,
    .wp-caption.alignleft {
    	margin: 12px 24px 12px 0;
    	margin: 0.857142857rem 1.714285714rem 0.857142857rem 0;
    }
    img.alignright,
    .wp-caption.alignright {
    	margin: 12px 0 12px 24px;
    	margin: 0.857142857rem 0 0.857142857rem 1.714285714rem;
    }
    img.aligncenter,
    .wp-caption.aligncenter {
    	clear: both;
    	margin-top: 12px;
    	margin-top: 0.857142857rem;
    	margin-bottom: 12px;
    	margin-bottom: 0.857142857rem;
    }
    .entry-content embed,
    .entry-content iframe,
    .entry-content object,
    .entry-content video {
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    }
    .entry-content dl,
    .comment-content dl {
    	margin: 0 24px;
    	margin: 0 1.714285714rem;
    }
    .entry-content dt,
    .comment-content dt {
    	font-weight: bold;
    	line-height: 1.714285714;
    }
    .entry-content dd,
    .comment-content dd {
    	line-height: 1.714285714;
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    }
    .entry-content table,
    .comment-content table {
    	border-bottom: 1px solid #ededed;
    	color: #757575;
    	font-size: 12px;
    	font-size: 0.857142857rem;
    	line-height: 2;
    	margin: 0 0 24px;
    	margin: 0 0 1.714285714rem;
    	width: 100%;
    }
    .entry-content table caption,
    .comment-content table caption {
    	font-size: 16px;
    	font-size: 1.142857143rem;
    	margin: 24px 0;
    	margin: 1.714285714rem 0;
    }
    .entry-content td,
    .comment-content td {
    	border-top: 1px solid #ededed;
    	padding: 6px 10px 6px 0;
    }
    .site-content article {
    	border-bottom: 4px double #ededed;
    	margin-bottom: 72px;
    	margin-bottom: 5.142857143rem;
    	padding-bottom: 24px;
    	padding-bottom: 1.714285714rem;
    	word-wrap: break-word;
    	-webkit-hyphens: auto;
    	-moz-hyphens: auto;
    	hyphens: auto;
    }
    .page-links {
    	clear: both;
    	line-height: 1.714285714;
    }
    footer.entry-meta {
    	margin-top: 24px;
    	margin-top: 1.714285714rem;
    	font-size: 13px;
    	font-size: 0.928571429rem;
    	line-height: 1.846153846;
    	color: #757575;
    }
    .single-author .entry-meta .by-author {
    	display: none;
    }
    .mu_register h2 {
    	color: #757575;
    	font-weight: normal;
    }
    
    /* =Archives
    -------------------------------------------------------------- */
    
    .archive-header,
    .page-header {
    	margin-bottom: 48px;
    	margin-bottom: 3.428571429rem;
    	padding-bottom: 22px;
    	padding-bottom: 1.571428571rem;
    	border-bottom: 1px solid #ededed;
    }
    .archive-meta {
    	color: #757575;
    	font-size: 12px;
    	font-size: 0.857142857rem;
    	line-height: 2;
    	margin-top: 22px;
    	margin-top: 1.571428571rem;
    }
    
    /* =Single image attachment view
    -------------------------------------------------------------- */
    
    .article.attachment {
    	overflow: hidden;
    }
    .image-attachment div.attachment {
    	text-align: center;
    }
    .image-attachment div.attachment p {
    	text-align: center;
    }
    .image-attachment div.attachment img {
    	display: block;
    	height: auto;
    	margin: 0 auto;
    	max-width: 100%;
    }
    .image-attachment .entry-caption {
    	margin-top: 8px;
    	margin-top: 0.571428571rem;
    }
    
    /* =Aside post format
    -------------------------------------------------------------- */
    
    article.format-aside h1 {
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    }
    article.format-aside h1 a {
    	text-decoration: none;
    	color: #4d525a;
    }
    article.format-aside h1 a:hover {
    	color: #2e3542;
    }
    article.format-aside .aside {
    	padding: 24px 24px 0;
    	padding: 1.714285714rem;
    	background: #d2e0f9;
    	border-left: 22px solid #a8bfe8;
    }
    article.format-aside p {
    	font-size: 13px;
    	font-size: 0.928571429rem;
    	line-height: 1.846153846;
    	color: #4a5466;
    }
    article.format-aside blockquote:last-child,
    article.format-aside p:last-child {
    	margin-bottom: 0;
    }
    
    /* =Post formats
    -------------------------------------------------------------- */
    
    /* Image posts */
    article.format-image footer h1 {
    	font-size: 13px;
    	font-size: 0.928571429rem;
    	line-height: 1.846153846;
    	font-weight: normal;
    }
    article.format-image footer h2 {
    	font-size: 11px;
    	font-size: 0.785714286rem;
    	line-height: 2.181818182;
    }
    article.format-image footer a h2 {
    	font-weight: normal;
    }
    
    /* Link posts */
    article.format-link header {
    	padding: 0 10px;
    	padding: 0 0.714285714rem;
    	float: right;
    	font-size: 11px;
    	font-size: 0.785714286rem;
    	line-height: 2.181818182;
    	font-weight: bold;
    	font-style: italic;
    	text-transform: uppercase;
    	color: #848484;
    	background-color: #ebebeb;
    	border-radius: 3px;
    }
    article.format-link .entry-content {
    	max-width: 80%;
    	float: left;
    }
    article.format-link .entry-content a {
    	font-size: 22px;
    	font-size: 1.571428571rem;
    	line-height: 1.090909091;
    	text-decoration: none;
    }
    
    /* Quote posts */
    article.format-quote .entry-content p {
    	margin: 0;
    	padding-bottom: 24px;
    	padding-bottom: 1.714285714rem;
    }
    article.format-quote .entry-content blockquote {
    	display: block;
    	padding: 24px 24px 0;
    	padding: 1.714285714rem 1.714285714rem 0;
    	font-size: 15px;
    	font-size: 1.071428571rem;
    	line-height: 1.6;
    	font-style: normal;
    	color: #6a6a6a;
    	background: #efefef;
    }
    
    /* Status posts */
    .format-status .entry-header {
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    }
    .format-status .entry-header header {
    	display: inline-block;
    }
    .format-status .entry-header h1 {
    	font-size: 15px;
    	font-size: 1.071428571rem;
    	font-weight: normal;
    	line-height: 1.6;
    	margin: 0;
    }
    .format-status .entry-header h2 {
    	font-size: 12px;
    	font-size: 0.857142857rem;
    	font-weight: normal;
    	line-height: 2;
    	margin: 0;
    }
    .format-status .entry-header header a {
    	color: #757575;
    }
    .format-status .entry-header header a:hover {
    	color: #21759b;
    }
    .format-status .entry-header img {
    	float: left;
    	margin-right: 21px;
    	margin-right: 1.5rem;
    }
    
    /* =Comments
    -------------------------------------------------------------- */
    
    .comments-title {
    	margin-bottom: 48px;
    	margin-bottom: 3.428571429rem;
    	font-size: 16px;
    	font-size: 1.142857143rem;
    	line-height: 1.5;
    	font-weight: normal;
    }
    .comments-area article {
    	margin: 24px 0;
    	margin: 1.714285714rem 0;
    }
    .comments-area article header {
    	margin: 0 0 48px;
    	margin: 0 0 3.428571429rem;
    	overflow: hidden;
    	position: relative;
    }
    .comments-area article header img {
    	float: left;
    	padding: 0;
    	line-height: 0;
    }
    .comments-area article header cite,
    .comments-area article header time {
    	display: block;
    	margin-left: 85px;
    	margin-left: 6.071428571rem;
    }
    .comments-area article header cite {
    	font-style: normal;
    	font-size: 15px;
    	font-size: 1.071428571rem;
    	line-height: 1.42857143;
    }
    .comments-area cite b {
    	font-weight: normal;
    }
    .comments-area article header time {
    	line-height: 1.714285714;
    	text-decoration: none;
    	font-size: 12px;
    	font-size: 0.857142857rem;
    	color: #5e5e5e;
    }
    .comments-area article header a {
    	text-decoration: none;
    	color: #5e5e5e;
    }
    .comments-area article header a:hover {
    	color: #21759b;
    }
    .comments-area article header cite a {
    	color: #444;
    }
    .comments-area article header cite a:hover {
    	text-decoration: underline;
    }
    .comments-area article header h4 {
    	position: absolute;
    	top: 0;
    	right: 0;
    	padding: 6px 12px;
    	padding: 0.428571429rem 0.857142857rem;
    	font-size: 12px;
    	font-size: 0.857142857rem;
    	font-weight: normal;
    	color: #fff;
    	background-color: #0088d0;
    	background-repeat: repeat-x;
    	background-image: -moz-linear-gradient(top, #009cee, #0088d0);
    	background-image: -ms-linear-gradient(top, #009cee, #0088d0);
    	background-image: -webkit-linear-gradient(top, #009cee, #0088d0);
    	background-image: -o-linear-gradient(top, #009cee, #0088d0);
    	background-image: linear-gradient(top, #009cee, #0088d0);
    	border-radius: 3px;
    	border: 1px solid #007cbd;
    }
    .comments-area .bypostauthor cite span {
    	position: absolute;
    	margin-left: 5px;
    	margin-left: 0.357142857rem;
    	padding: 2px 5px;
    	padding: 0.142857143rem 0.357142857rem;
    	font-size: 10px;
    	font-size: 0.714285714rem;
    }
    .comments-area .bypostauthor cite b {
    	font-weight: bold;
    }
    a.comment-reply-link,
    a.comment-edit-link {
    	color: #686868;
    	font-size: 13px;
    	font-size: 0.928571429rem;
    	line-height: 1.846153846;
    }
    a.comment-reply-link:hover,
    a.comment-edit-link:hover {
    	color: #21759b;
    }
    .commentlist .pingback {
    	line-height: 1.714285714;
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    }
    
    /* Comment form */
    #respond {
    	margin-top: 48px;
    	margin-top: 3.428571429rem;
    }
    #respond h3#reply-title {
    	font-size: 16px;
    	font-size: 1.142857143rem;
    	line-height: 1.5;
    }
    #respond h3#reply-title #cancel-comment-reply-link {
    	margin-left: 10px;
    	margin-left: 0.714285714rem;
    	font-weight: normal;
    	font-size: 12px;
    	font-size: 0.857142857rem;
    }
    #respond form {
    	margin: 24px 0;
    	margin: 1.714285714rem 0;
    }
    #respond form p {
    	margin: 11px 0;
    	margin: 0.785714286rem 0;
    }
    #respond form p.logged-in-as {
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    }
    #respond form label {
    	display: block;
    	line-height: 1.714285714;
    }
    #respond form input[type="text"],
    #respond form textarea {
    	-moz-box-sizing: border-box;
    	box-sizing: border-box;
    	font-size: 12px;
    	font-size: 0.857142857rem;
    	line-height: 1.714285714;
    	padding: 10px;
    	padding: 0.714285714rem;
    	width: 100%;
    }
    #respond form p.form-allowed-tags {
    	margin: 0;
    	font-size: 12px;
    	font-size: 0.857142857rem;
    	line-height: 2;
    	color: #5e5e5e;
    }
    .required {
    	color: red;
    }
    
    /* =Front page template
    -------------------------------------------------------------- */
    
    .entry-page-image {
    	margin-bottom: 14px;
    	margin-bottom: 1rem;
    }
    .template-front-page .site-content article {
    	border: 0;
    	margin-bottom: 0;
    }
    .template-front-page .widget-area {
    	clear: both;
    	float: none;
    	width: auto;
    	padding-top: 24px;
    	padding-top: 1.714285714rem;
    	border-top: 1px solid #ededed;
    }
    .template-front-page .widget-area .widget li {
    	margin: 8px 0 0;
    	margin: 0.571428571rem 0 0;
    	font-size: 13px;
    	font-size: 0.928571429rem;
    	line-height: 1.714285714;
    	list-style-type: square;
    	list-style-position: inside;
    }
    .template-front-page .widget-area .widget li a {
    	color: #757575;
    }
    .template-front-page .widget-area .widget li a:hover {
    	color: #21759b;
    }
    .template-front-page .widget-area .widget_text img {
    	float: left;
    	margin: 8px 24px 8px 0;
    	margin: 0.571428571rem 1.714285714rem 0.571428571rem 0;
    }
    
    /* =Widgets
    -------------------------------------------------------------- */
    
    .widget-area .widget ul ul {
    	margin-left: 12px;
    	margin-left: 0.857142857rem;
    }
    .widget_rss li {
    	margin: 12px 0;
    	margin: 0.857142857rem 0;
    }
    .widget_recent_entries .post-date,
    .widget_rss .rss-date {
    	color: #aaa;
    	font-size: 11px;
    	font-size: 0.785714286rem;
    	margin-left: 12px;
    	margin-left: 0.857142857rem;
    }
    #wp-calendar {
    	margin: 0;
    	width: 100%;
    	font-size: 13px;
    	font-size: 0.928571429rem;
    	line-height: 1.846153846;
    	color: #686868;
    }
    #wp-calendar th,
    #wp-calendar td,
    #wp-calendar caption {
    	text-align: left;
    }
    #wp-calendar #next {
    	padding-right: 24px;
    	padding-right: 1.714285714rem;
    	text-align: right;
    }
    .widget_search label {
    	display: block;
    	font-size: 13px;
    	font-size: 0.928571429rem;
    	line-height: 1.846153846;
    }
    .widget_twitter li {
    	list-style-type: none;
    }
    .widget_twitter .timesince {
    	display: block;
    	text-align: right;
    }
    
    /* =Plugins
    ----------------------------------------------- */
    
    img#wpstats {
    	display: block;
    	margin: 0 auto 24px;
    	margin: 0 auto 1.714285714rem;
    }
    
    /* =Media queries
    -------------------------------------------------------------- */
    
    /* Minimum width of 600 pixels. */
    @media screen and (min-width: 600px) {
    	.author-avatar {
    		float: left;
    		margin-top: 8px;
    		margin-top: 0.571428571rem;
    	}
    	.author-description {
    		float: right;
    		width: 80%;
    	}
    	.site {
    		margin: 0 auto;
    		max-width: 960px;
    		max-width: 68.571428571rem;
    		overflow: hidden;
    	}
    	.site-content {
    		float: left;
    		width: 65.104166667%;
    	}
    	body.template-front-page .site-content,
    	body.single-attachment .site-content,
    	body.full-width .site-content {
    		width: 100%;
    	}
    	.widget-area {
    		float: right;
    		width: 26.041666667%;
    	}
    	.site-header h1,
    	.site-header h2 {
    		text-align: left;
    	}
    	.site-header h1 {
    		font-size: 26px;
    		font-size: 1.857142857rem;
    		line-height: 1.846153846;
    		margin-bottom: 0;
    	}
    	.main-navigation ul.nav-menu,
    	.main-navigation div.nav-menu > ul {
    		border-bottom: 1px solid #ededed;
    		border-top: 1px solid #ededed;
    		display: inline-block !important;
    		text-align: left;
    		width: 100%;
    	}
    	.main-navigation ul {
    		margin: 0;
    		text-indent: 0;
    	}
    	.main-navigation li a,
    	.main-navigation li {
    		display: inline-block;
    		text-decoration: none;
    	}
    	.main-navigation li a {
    		border-bottom: 0;
    		color: #6a6a6a;
    		line-height: 3.692307692;
    		text-transform: uppercase;
    		white-space: nowrap;
    	}
    	.main-navigation li a:hover {
    		color: #000;
    	}
    	.main-navigation li {
    		margin: 0 40px 0 0;
    		margin: 0 2.857142857rem 0 0;
    		position: relative;
    	}
    	.main-navigation li ul {
    		display: none;
    		margin: 0;
    		padding: 0;
    		position: absolute;
    		top: 100%;
    		z-index: 1;
    	}
    	.main-navigation li ul ul {
    		top: 0;
    		left: 100%;
    	}
    	.main-navigation ul li:hover > ul {
    		border-left: 0;
    		display: block;
    	}
    	.main-navigation li ul li a {
    		background: #efefef;
    		border-bottom: 1px solid #ededed;
    		display: block;
    		font-size: 11px;
    		font-size: 0.785714286rem;
    		line-height: 2.181818182;
    		padding: 8px 10px;
    		padding: 0.571428571rem 0.714285714rem;
    		width: 180px;
    		width: 12.85714286rem;
    		white-space: normal;
    	}
    	.main-navigation li ul li a:hover {
    		background: #e3e3e3;
    		color: #444;
    	}
    	.main-navigation .current-menu-item > a,
    	.main-navigation .current-menu-ancestor > a,
    	.main-navigation .current_page_item > a,
    	.main-navigation .current_page_ancestor > a {
    		color: #636363;
    		font-weight: bold;
    	}
    	.menu-toggle {
    		display: none;
    	}
    	.entry-header .entry-title {
    		font-size: 22px;
    		font-size: 1.571428571rem;
    	}
    	#respond form input[type="text"] {
    		width: 46.333333333%;
    	}
    	#respond form textarea.blog-textarea {
    		width: 79.666666667%;
    	}
    	.template-front-page .site-content,
    	.template-front-page article {
    		overflow: hidden;
    	}
    	.template-front-page.has-post-thumbnail article {
    		float: left;
    		width: 47.916666667%;
    	}
    	.entry-page-image {
    		float: right;
    		margin-bottom: 0;
    		width: 47.916666667%;
    	}
    	.template-front-page .widget-area .widget,
    	.template-front-page.two-sidebars .widget-area .front-widgets {
    		float: left;
    		width: 51.875%;
    		margin-bottom: 24px;
    		margin-bottom: 1.714285714rem;
    	}
    	.template-front-page .widget-area .widget:nth-child(odd) {
    		clear: right;
    	}
    	.template-front-page .widget-area .widget:nth-child(even),
    	.template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets {
    		float: right;
    		width: 39.0625%;
    		margin: 0 0 24px;
    		margin: 0 0 1.714285714rem;
    	}
    	.template-front-page.two-sidebars .widget,
    	.template-front-page.two-sidebars .widget:nth-child(even) {
    		float: none;
    		width: auto;
    	}
    	.commentlist .children {
    		margin-left: 48px;
    		margin-left: 3.428571429rem;
    	}
    }
    
    /* Minimum width of 960 pixels. */
    @media screen and (min-width: 960px) {
    	body {
    		background-color: #e6e6e6;
    	}
    	body .site {
    		padding: 0 40px;
    		padding: 0 2.857142857rem;
    		margin-top: 48px;
    		margin-top: 3.428571429rem;
    		margin-bottom: 48px;
    		margin-bottom: 3.428571429rem;
    		box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
    	}
    	body.custom-background-empty {
    		background-color: #fff;
    	}
    	body.custom-background-empty .site,
    	body.custom-background-white .site {
    		padding: 0;
    		margin-top: 0;
    		margin-bottom: 0;
    		box-shadow: none;
    	}
    }
    
    /* =Print
    ----------------------------------------------- */
    
    @media print {
    	body {
    		background: none !important;
    		color: #000;
    		font-size: 10pt;
    	}
    	footer a[rel=bookmark]:link:after,
    	footer a[rel=bookmark]:visited:after {
    		content: " [" attr(href) "] "; /* Show URLs */
    	}
    	a {
    		text-decoration: none;
    	}
    	.entry-content img,
    	.comment-content img,
    	.author-avatar img,
    	img.wp-post-image {
    		border-radius: 0;
    		box-shadow: none;
    	}
    	.site {
    		clear: both !important;
    		display: block !important;
    		float: none !important;
    		max-width: 100%;
    		position: relative !important;
    	}
    	.site-header {
    		margin-bottom: 72px;
    		margin-bottom: 5.142857143rem;
    		text-align: left;
    	}
    	.site-header h1 {
    		font-size: 21pt;
    		line-height: 1;
    		text-align: left;
    	}
    	.site-header h2 {
    		color: #000;
    		font-size: 10pt;
    		text-align: left;
    	}
    	.site-header h1 a,
    	.site-header h2 a {
    		color: #000;
    	}
    	.author-avatar,
    	#colophon,
    	#respond,
    	.commentlist .comment-edit-link,
    	.commentlist .reply,
    	.entry-header .comments-link,
    	.entry-meta .edit-link a,
    	.page-link,
    	.site-content nav,
    	.widget-area,
    	img.header-image,
    	.main-navigation {
    		display: none;
    	}
    	.wrapper {
    		border-top: none;
    		box-shadow: none;
    	}
    	.site-content {
    		margin: 0;
    		width: auto;
    	}
    	.singular .entry-header .entry-meta {
    		position: static;
    	}
    	.singular .site-content,
    	.singular .entry-header,
    	.singular .entry-content,
    	.singular footer.entry-meta,
    	.singular .comments-title {
    		margin: 0;
    		width: 100%;
    	}
    	.entry-header .entry-title,
    	.entry-title,
    	.singular .entry-title {
    		font-size: 21pt;
    	}
    	footer.entry-meta,
    	footer.entry-meta a {
    		color: #444;
    		font-size: 10pt;
    	}
    	.author-description {
    		float: none;
    		width: auto;
    	}
    
    	/* Comments */
    	.commentlist > li.comment {
    		background: none;
    		position: relative;
    		width: auto;
    	}
    	.commentlist .avatar {
    		height: 39px;
    		left: 2.2em;
    		top: 2.2em;
    		width: 39px;
    	}
    	.comments-area article header cite,
    	.comments-area article header time {
    		margin-left: 50px;
    		margin-left: 3.57142857rem;
    	}
    }

     

    1,728行ありますね(∩´∀`)∩!

    1, エディタでcssを開き、全部コピー。

    windows & linux なら Ctrl + a キー、mac なら Command + a キーで全選択。

    全部コピー
    全部コピー

    2, css2sass の上っかわテキストエリアに貼り付け

    貼り付けてやりましょう
    貼り付けてやりましょう

    3, Convert 2 ~を押して変換!

    scss か sass変換したいどちらかをクリック、すれば変換されます。すごい。

    今回はscssにしてみたよ
    今回はscssにしてみたよ

    変換されたコードはこちら。

    /*
    Theme Name: Twenty Twelve
    Theme URI: http://wordpress.org/themes/twentytwelve
    Author: the WordPress team
    Author URI: http://wordpress.org/
    Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background.
    Version: 1.1.1
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: light, gray, white, one-column, two-columns, right-sidebar, flexible-width, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
    Text Domain: twentytwelve
    
    This theme, like WordPress, is licensed under the GPL.
    Use it to make something cool, have fun, and share what you've learned with others.
    */
    
    /* =Notes
    --------------------------------------------------------------
    This stylesheet uses rem values with a pixel fallback. The rem
    values (and line heights) are calculated using two variables:
    
    $rembase:     14;
    $line-height: 24;
    
    ---------- Examples
    
    * Use a pixel value with a rem fallback for font-size, padding, margins, etc.
    	padding: 5px 0;
    	padding: 0.357142857rem 0; (5 / $rembase)
    
    * Set a font-size and then set a line-height based on the font-size
    	font-size: 16px
    	font-size: 1.142857143rem; (16 / $rembase)
    	line-height: 1.5; ($line-height / 16)
    
    ---------- Vertical spacing
    
    Vertical spacing between most elements should use 24px or 48px
    to maintain vertical rhythm:
    
    .my-new-div {
    	margin: 24px 0;
    	margin: 1.714285714rem 0; ( 24 / $rembase )
    }
    
    ---------- Further reading
    
    http://snook.ca/archives/html_and_css/font-size-with-rem
    http://blog.typekit.com/2011/11/09/type-study-sizing-the-legible-letter/
    
    /* =Reset
    -------------------------------------------------------------- */
    
    html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
      margin: 0;
      padding: 0;
      border: 0;
      font-size: 100%;
      vertical-align: baseline;
    }
    
    body {
      line-height: 1;
    }
    
    ol, ul {
      list-style: none;
    }
    
    blockquote, q {
      quotes: none;
    }
    
    blockquote {
      &:before, &:after {
        content: '';
        content: none;
      }
    }
    
    q {
      &:before, &:after {
        content: '';
        content: none;
      }
    }
    
    table {
      border-collapse: collapse;
      border-spacing: 0;
    }
    
    caption, th, td {
      font-weight: normal;
      text-align: left;
    }
    
    h1, h2, h3, h4, h5, h6 {
      clear: both;
    }
    
    html {
      overflow-y: scroll;
      font-size: 100%;
      -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
    }
    
    a:focus {
      outline: thin dotted;
    }
    
    article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
      display: block;
    }
    
    audio, canvas, video {
      display: inline-block;
    }
    
    audio:not([controls]) {
      display: none;
    }
    
    del {
      color: #333;
    }
    
    ins {
      background: #fff9c0;
      text-decoration: none;
    }
    
    hr {
      background-color: #ccc;
      border: 0;
      height: 1px;
      margin: 24px;
      margin-bottom: 1.714285714rem;
    }
    
    sub {
      font-size: 75%;
      line-height: 0;
      position: relative;
      vertical-align: baseline;
    }
    
    sup {
      font-size: 75%;
      line-height: 0;
      position: relative;
      vertical-align: baseline;
      top: -0.5em;
    }
    
    sub {
      bottom: -0.25em;
    }
    
    small {
      font-size: smaller;
    }
    
    img {
      border: 0;
      -ms-interpolation-mode: bicubic;
    }
    
    /* Clearing floats */
    
    .clear:after, .wrapper:after, .format-status .entry-header:after {
      clear: both;
    }
    
    .clear {
      &:before, &:after {
        display: table;
        content: "";
      }
    }
    
    .wrapper {
      &:before, &:after {
        display: table;
        content: "";
      }
    }
    
    .format-status .entry-header {
      &:before, &:after {
        display: table;
        content: "";
      }
    }
    
    /* =Repeatable patterns
    -------------------------------------------------------------- */
    
    /* Small headers */
    
    .archive-title, .page-title, .widget-title, .entry-content th, .comment-content th {
      font-size: 11px;
      font-size: 0.785714286rem;
      line-height: 2.181818182;
      font-weight: bold;
      text-transform: uppercase;
      color: #636363;
    }
    
    /* Shared Post Format styling */
    
    article {
      &.format-quote footer.entry-meta, &.format-link footer.entry-meta, &.format-status footer.entry-meta {
        font-size: 11px;
        font-size: 0.785714286rem;
        line-height: 2.181818182;
      }
    }
    
    /* Form fields, general styles first */
    
    button, input, textarea {
      border: 1px solid #ccc;
      border-radius: 3px;
      font-family: inherit;
      padding: 6px;
      padding: 0.428571429rem;
    }
    
    button, input {
      line-height: normal;
    }
    
    textarea {
      font-size: 100%;
      overflow: auto;
      vertical-align: top;
    }
    
    /* Reset non-text input types */
    
    input {
      &[type="checkbox"], &[type="radio"], &[type="file"], &[type="hidden"], &[type="image"], &[type="color"] {
        border: 0;
        border-radius: 0;
        padding: 0;
      }
    }
    
    /* Buttons */
    
    .menu-toggle {
      padding: 6px 10px;
      padding: 0.428571429rem 0.714285714rem;
      font-size: 11px;
      font-size: 0.785714286rem;
      line-height: 1.428571429;
      font-weight: normal;
      color: #7c7c7c;
      background-color: #e6e6e6;
      background-repeat: repeat-x;
      background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6);
      background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6);
      background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6);
      background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);
      background-image: linear-gradient(top, #f4f4f4, #e6e6e6);
      border: 1px solid #d2d2d2;
      border-radius: 3px;
      box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
    }
    
    input {
      &[type="submit"], &[type="button"], &[type="reset"] {
        padding: 6px 10px;
        padding: 0.428571429rem 0.714285714rem;
        font-size: 11px;
        font-size: 0.785714286rem;
        line-height: 1.428571429;
        font-weight: normal;
        color: #7c7c7c;
        background-color: #e6e6e6;
        background-repeat: repeat-x;
        background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6);
        background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6);
        background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6);
        background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);
        background-image: linear-gradient(top, #f4f4f4, #e6e6e6);
        border: 1px solid #d2d2d2;
        border-radius: 3px;
        box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
      }
    }
    
    article.post-password-required input[type=submit], .bypostauthor cite span {
      padding: 6px 10px;
      padding: 0.428571429rem 0.714285714rem;
      font-size: 11px;
      font-size: 0.785714286rem;
      line-height: 1.428571429;
      font-weight: normal;
      color: #7c7c7c;
      background-color: #e6e6e6;
      background-repeat: repeat-x;
      background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6);
      background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6);
      background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6);
      background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);
      background-image: linear-gradient(top, #f4f4f4, #e6e6e6);
      border: 1px solid #d2d2d2;
      border-radius: 3px;
      box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
    }
    
    .menu-toggle, button {
      cursor: pointer;
    }
    
    input {
      &[type="submit"], &[type="button"], &[type="reset"] {
        cursor: pointer;
      }
    }
    
    button[disabled], input[disabled] {
      cursor: default;
    }
    
    .menu-toggle:hover, button:hover {
      color: #5e5e5e;
      background-color: #ebebeb;
      background-repeat: repeat-x;
      background-image: -moz-linear-gradient(top, #f9f9f9, #ebebeb);
      background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb);
      background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb);
      background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb);
      background-image: linear-gradient(top, #f9f9f9, #ebebeb);
    }
    
    input {
      &[type="submit"]:hover, &[type="button"]:hover, &[type="reset"]:hover {
        color: #5e5e5e;
        background-color: #ebebeb;
        background-repeat: repeat-x;
        background-image: -moz-linear-gradient(top, #f9f9f9, #ebebeb);
        background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb);
        background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb);
        background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb);
        background-image: linear-gradient(top, #f9f9f9, #ebebeb);
      }
    }
    
    article.post-password-required input[type=submit]:hover {
      color: #5e5e5e;
      background-color: #ebebeb;
      background-repeat: repeat-x;
      background-image: -moz-linear-gradient(top, #f9f9f9, #ebebeb);
      background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb);
      background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb);
      background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb);
      background-image: linear-gradient(top, #f9f9f9, #ebebeb);
    }
    
    .menu-toggle {
      &:active, &.toggled-on {
        color: #757575;
        background-color: #e1e1e1;
        background-repeat: repeat-x;
        background-image: -moz-linear-gradient(top, #ebebeb, #e1e1e1);
        background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1);
        background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1);
        background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1);
        background-image: linear-gradient(top, #ebebeb, #e1e1e1);
        box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4;
        border-color: transparent;
      }
    }
    
    button:active {
      color: #757575;
      background-color: #e1e1e1;
      background-repeat: repeat-x;
      background-image: -moz-linear-gradient(top, #ebebeb, #e1e1e1);
      background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1);
      background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1);
      background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1);
      background-image: linear-gradient(top, #ebebeb, #e1e1e1);
      box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4;
      border-color: transparent;
    }
    
    input {
      &[type="submit"]:active, &[type="button"]:active, &[type="reset"]:active {
        color: #757575;
        background-color: #e1e1e1;
        background-repeat: repeat-x;
        background-image: -moz-linear-gradient(top, #ebebeb, #e1e1e1);
        background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1);
        background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1);
        background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1);
        background-image: linear-gradient(top, #ebebeb, #e1e1e1);
        box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4;
        border-color: transparent;
      }
    }
    
    .bypostauthor cite span {
      color: #fff;
      background-color: #21759b;
      background-image: none;
      border: 1px solid #1f6f93;
      border-radius: 2px;
      box-shadow: none;
      padding: 0;
    }
    
    /* Responsive images */
    
    .entry-content img, .comment-content img, .widget img {
      max-width: 100%;
      /* Fluid images for posts, comments, and widgets */
    }
    
    img {
      &[class*="align"], &[class*="wp-image-"], &[class*="attachment-"] {
        height: auto;
        /* Make sure images with WordPress-added height and width attributes are scaled correctly */
      }
      &.size-full, &.size-large, &.header-image, &.wp-post-image {
        max-width: 100%;
        height: auto;
        /* Make sure images with WordPress-added height and width attributes are scaled correctly */
      }
    }
    
    /* Make sure videos and embeds fit their containers */
    
    embed, iframe, object, video {
      max-width: 100%;
    }
    
    .entry-content .twitter-tweet-rendered {
      max-width: 100% !important;
      /* Override the Twitter embed fixed width */
    }
    
    /* Images */
    
    .alignleft {
      float: left;
    }
    
    .alignright {
      float: right;
    }
    
    .aligncenter {
      display: block;
      margin-left: auto;
      margin-right: auto;
    }
    
    .entry-content img, .comment-content img, .widget img, img.header-image, .author-avatar img, img.wp-post-image {
      /* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */
      border-radius: 3px;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }
    
    .wp-caption {
      max-width: 100%;
      /* Keep wide captions from overflowing their container. */
      padding: 4px;
      .wp-caption-text {
        font-style: italic;
        font-size: 12px;
        font-size: 0.857142857rem;
        line-height: 2;
        color: #757575;
      }
    }
    
    .gallery-caption, .entry-caption {
      font-style: italic;
      font-size: 12px;
      font-size: 0.857142857rem;
      line-height: 2;
      color: #757575;
    }
    
    img.wp-smiley, .rsswidget img {
      border: 0;
      border-radius: 0;
      box-shadow: none;
      margin-bottom: 0;
      margin-top: 0;
      padding: 0;
    }
    
    .entry-content dl.gallery-item {
      margin: 0;
    }
    
    .gallery-item a, .gallery-caption {
      width: 90%;
    }
    
    .gallery-item a {
      display: block;
    }
    
    .gallery-caption a {
      display: inline;
    }
    
    .gallery-columns-1 .gallery-item a {
      max-width: 100%;
      width: auto;
    }
    
    .gallery .gallery-icon img {
      height: auto;
      max-width: 90%;
      padding: 5%;
    }
    
    .gallery-columns-1 .gallery-icon img {
      padding: 3%;
    }
    
    /* Navigation */
    
    .site-content nav {
      clear: both;
      line-height: 2;
      overflow: hidden;
    }
    
    #nav-above {
      padding: 24px 0;
      padding: 1.714285714rem 0;
      display: none;
    }
    
    .paged #nav-above {
      display: block;
    }
    
    .nav-previous, .previous-image {
      float: left;
      width: 50%;
    }
    
    .nav-next, .next-image {
      float: right;
      text-align: right;
      width: 50%;
    }
    
    .nav-single + .comments-area, #comment-nav-above {
      margin: 48px 0;
      margin: 3.428571429rem 0;
    }
    
    /* Author profiles */
    
    .author .archive-header {
      margin-bottom: 24px;
      margin-bottom: 1.714285714rem;
    }
    
    .author-info {
      border-top: 1px solid #ededed;
      margin: 24px 0;
      margin: 1.714285714rem 0;
      padding-top: 24px;
      padding-top: 1.714285714rem;
      overflow: hidden;
    }
    
    .author-description p {
      color: #757575;
      font-size: 13px;
      font-size: 0.928571429rem;
      line-height: 1.846153846;
    }
    
    .author.archive {
      .author-info {
        border-top: 0;
        margin: 0 0 48px;
        margin: 0 0 3.428571429rem;
      }
      .author-avatar {
        margin-top: 0;
      }
    }
    
    /* =Basic structure
    -------------------------------------------------------------- */
    
    /* Body, links, basics */
    
    html {
      font-size: 87.5%;
    }
    
    body {
      font-size: 14px;
      font-size: 1rem;
      font-family: Helvetica, Arial, sans-serif;
      text-rendering: optimizeLegibility;
      color: #444;
      &.custom-font-enabled {
        font-family: "Open Sans", Helvetica, Arial, sans-serif;
      }
    }
    
    a {
      outline: none;
      color: #21759b;
      &:hover {
        color: #0f3647;
      }
    }
    
    /* Assistive text */
    
    .assistive-text, .site .screen-reader-text {
      position: absolute !important;
      clip: rect(1px, 1px, 1px, 1px);
    }
    
    .main-navigation .assistive-text:focus {
      background: #fff;
      border: 2px solid #333;
      border-radius: 3px;
      clip: auto !important;
      color: #000;
      display: block;
      font-size: 12px;
      padding: 12px;
      position: absolute;
      top: 5px;
      left: 5px;
      z-index: 100000;
      /* Above WP toolbar */
    }
    
    /* Page structure */
    
    .site {
      padding: 0 24px;
      padding: 0 1.714285714rem;
      background-color: #fff;
    }
    
    .site-content, .widget-area {
      margin: 24px 0 0;
      margin: 1.714285714rem 0 0;
    }
    
    /* Header */
    
    .site-header {
      padding: 24px 0;
      padding: 1.714285714rem 0;
      h1, h2 {
        text-align: center;
      }
      h1 a, h2 a {
        color: #515151;
        display: inline-block;
        text-decoration: none;
      }
      h1 a:hover, h2 a:hover {
        color: #21759b;
      }
      h1 {
        font-size: 24px;
        font-size: 1.714285714rem;
        line-height: 1.285714286;
        margin-bottom: 14px;
        margin-bottom: 1rem;
      }
      h2 {
        font-weight: normal;
        font-size: 13px;
        font-size: 0.928571429rem;
        line-height: 1.846153846;
        color: #757575;
      }
    }
    
    .header-image {
      margin-top: 24px;
      margin-top: 1.714285714rem;
    }
    
    /* Navigation Menu */
    
    .main-navigation {
      margin-top: 24px;
      margin-top: 1.714285714rem;
      text-align: center;
      li {
        margin-top: 24px;
        margin-top: 1.714285714rem;
        font-size: 12px;
        font-size: 0.857142857rem;
        line-height: 1.42857143;
      }
      a {
        color: #5e5e5e;
        &:hover {
          color: #21759b;
        }
      }
      ul.nav-menu, div.nav-menu > ul {
        display: none;
      }
      ul.nav-menu.toggled-on {
        display: inline-block;
      }
    }
    
    .menu-toggle {
      display: inline-block;
    }
    
    /* Banner */
    
    section[role="banner"] {
      margin-bottom: 48px;
      margin-bottom: 3.428571429rem;
    }
    
    /* Sidebar */
    
    .widget-area {
      .widget {
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
        margin-bottom: 48px;
        margin-bottom: 3.428571429rem;
        word-wrap: break-word;
        h3 {
          margin-bottom: 24px;
          margin-bottom: 1.714285714rem;
        }
        p, li, .textwidget {
          font-size: 13px;
          font-size: 0.928571429rem;
          line-height: 1.846153846;
        }
        p {
          margin-bottom: 24px;
          margin-bottom: 1.714285714rem;
        }
      }
      .textwidget {
        ul {
          list-style: disc outside;
          margin: 0 0 24px;
          margin: 0 0 1.714285714rem;
        }
        li {
          margin-left: 36px;
          margin-left: 2.571428571rem;
        }
      }
      .widget a {
        color: #757575;
        &:hover {
          color: #21759b;
        }
        &:visited {
          color: #9f9f9f;
        }
      }
      #s {
        width: 53.66666666666%;
        /* define a width to avoid dropping a wider submit button */
      }
    }
    
    /* Footer */
    
    footer[role="contentinfo"] {
      border-top: 1px solid #ededed;
      clear: both;
      font-size: 12px;
      font-size: 0.857142857rem;
      line-height: 2;
      max-width: 960px;
      max-width: 68.571428571rem;
      margin-top: 24px;
      margin-top: 1.714285714rem;
      margin-left: auto;
      margin-right: auto;
      padding: 24px 0;
      padding: 1.714285714rem 0;
      a {
        color: #686868;
        &:hover {
          color: #21759b;
        }
      }
    }
    
    /* =Main content and comment content
    -------------------------------------------------------------- */
    
    .entry-meta {
      clear: both;
    }
    
    .entry-header {
      margin-bottom: 24px;
      margin-bottom: 1.714285714rem;
      img.wp-post-image {
        margin-bottom: 24px;
        margin-bottom: 1.714285714rem;
      }
      .entry-title {
        font-size: 20px;
        font-size: 1.428571429rem;
        line-height: 1.2;
        font-weight: normal;
        a {
          text-decoration: none;
        }
      }
      .entry-format {
        margin-top: 24px;
        margin-top: 1.714285714rem;
        font-weight: normal;
      }
      .comments-link {
        margin-top: 24px;
        margin-top: 1.714285714rem;
        font-size: 13px;
        font-size: 0.928571429rem;
        line-height: 1.846153846;
        color: #757575;
      }
    }
    
    .comments-link a, .entry-meta a {
      color: #757575;
    }
    
    .comments-link a:hover, .entry-meta a:hover {
      color: #21759b;
    }
    
    article.sticky .featured-post {
      border-top: 4px double #ededed;
      border-bottom: 4px double #ededed;
      color: #757575;
      font-size: 13px;
      font-size: 0.928571429rem;
      line-height: 3.692307692;
      margin-bottom: 24px;
      margin-bottom: 1.714285714rem;
      text-align: center;
    }
    
    .entry-content, .entry-summary, .mu_register {
      line-height: 1.714285714;
    }
    
    .entry-content h1, .comment-content h1, .entry-content h2, .comment-content h2, .entry-content h3, .comment-content h3, .entry-content h4, .comment-content h4, .entry-content h5, .comment-content h5, .entry-content h6, .comment-content h6 {
      margin: 24px 0;
      margin: 1.714285714rem 0;
      line-height: 1.714285714;
    }
    
    .entry-content h1, .comment-content h1 {
      font-size: 21px;
      font-size: 1.5rem;
      line-height: 1.5;
    }
    
    .entry-content h2, .comment-content h2, .mu_register h2 {
      font-size: 18px;
      font-size: 1.285714286rem;
      line-height: 1.6;
    }
    
    .entry-content h3, .comment-content h3 {
      font-size: 16px;
      font-size: 1.142857143rem;
      line-height: 1.846153846;
    }
    
    .entry-content h4, .comment-content h4 {
      font-size: 14px;
      font-size: 1rem;
      line-height: 1.846153846;
    }
    
    .entry-content h5, .comment-content h5 {
      font-size: 13px;
      font-size: 0.928571429rem;
      line-height: 1.846153846;
    }
    
    .entry-content h6, .comment-content h6 {
      font-size: 12px;
      font-size: 0.857142857rem;
      line-height: 1.846153846;
    }
    
    .entry-content p, .entry-summary p, .comment-content p, .mu_register p {
      margin: 0 0 24px;
      margin: 0 0 1.714285714rem;
      line-height: 1.714285714;
    }
    
    .entry-content a:visited, .comment-content a:visited {
      color: #9f9f9f;
    }
    
    .entry-content ol, .comment-content ol, .entry-content ul, .comment-content ul, .mu_register ul {
      margin: 0 0 24px;
      margin: 0 0 1.714285714rem;
      line-height: 1.714285714;
    }
    
    .entry-content ul ul, .comment-content ul ul, .entry-content ol ol, .comment-content ol ol, .entry-content ul ol, .comment-content ul ol, .entry-content ol ul, .comment-content ol ul {
      margin-bottom: 0;
    }
    
    .entry-content ul, .comment-content ul, .mu_register ul {
      list-style: disc outside;
    }
    
    .entry-content ol, .comment-content ol {
      list-style: decimal outside;
    }
    
    .entry-content li, .comment-content li, .mu_register li {
      margin: 0 0 0 36px;
      margin: 0 0 0 2.571428571rem;
    }
    
    .entry-content blockquote, .comment-content blockquote {
      margin-bottom: 24px;
      margin-bottom: 1.714285714rem;
      padding: 24px;
      padding: 1.714285714rem;
      font-style: italic;
    }
    
    .entry-content blockquote p:last-child, .comment-content blockquote p:last-child {
      margin-bottom: 0;
    }
    
    .entry-content code, .comment-content code {
      font-family: Consolas, Monaco, Lucida Console, monospace;
      font-size: 12px;
      font-size: 0.857142857rem;
      line-height: 2;
    }
    
    .entry-content pre, .comment-content pre {
      border: 1px solid #ededed;
      color: #666;
      font-family: Consolas, Monaco, Lucida Console, monospace;
      font-size: 12px;
      font-size: 0.857142857rem;
      line-height: 1.714285714;
      margin: 24px 0;
      margin: 1.714285714rem 0;
      overflow: auto;
      padding: 24px;
      padding: 1.714285714rem;
    }
    
    .entry-content pre code, .comment-content pre code {
      display: block;
    }
    
    .entry-content abbr, .comment-content abbr, .entry-content dfn, .comment-content dfn, .entry-content acronym, .comment-content acronym {
      border-bottom: 1px dotted #666;
      cursor: help;
    }
    
    .entry-content address, .comment-content address {
      display: block;
      line-height: 1.714285714;
      margin: 0 0 24px;
      margin: 0 0 1.714285714rem;
    }
    
    img.alignleft, .wp-caption.alignleft {
      margin: 12px 24px 12px 0;
      margin: 0.857142857rem 1.714285714rem 0.857142857rem 0;
    }
    
    img.alignright, .wp-caption.alignright {
      margin: 12px 0 12px 24px;
      margin: 0.857142857rem 0 0.857142857rem 1.714285714rem;
    }
    
    img.aligncenter, .wp-caption.aligncenter {
      clear: both;
      margin-top: 12px;
      margin-top: 0.857142857rem;
      margin-bottom: 12px;
      margin-bottom: 0.857142857rem;
    }
    
    .entry-content {
      embed, iframe, object, video {
        margin-bottom: 24px;
        margin-bottom: 1.714285714rem;
      }
      dl {
        margin: 0 24px;
        margin: 0 1.714285714rem;
      }
    }
    
    .comment-content dl {
      margin: 0 24px;
      margin: 0 1.714285714rem;
    }
    
    .entry-content dt, .comment-content dt {
      font-weight: bold;
      line-height: 1.714285714;
    }
    
    .entry-content dd, .comment-content dd {
      line-height: 1.714285714;
      margin-bottom: 24px;
      margin-bottom: 1.714285714rem;
    }
    
    .entry-content table, .comment-content table {
      border-bottom: 1px solid #ededed;
      color: #757575;
      font-size: 12px;
      font-size: 0.857142857rem;
      line-height: 2;
      margin: 0 0 24px;
      margin: 0 0 1.714285714rem;
      width: 100%;
    }
    
    .entry-content table caption, .comment-content table caption {
      font-size: 16px;
      font-size: 1.142857143rem;
      margin: 24px 0;
      margin: 1.714285714rem 0;
    }
    
    .entry-content td, .comment-content td {
      border-top: 1px solid #ededed;
      padding: 6px 10px 6px 0;
    }
    
    .site-content article {
      border-bottom: 4px double #ededed;
      margin-bottom: 72px;
      margin-bottom: 5.142857143rem;
      padding-bottom: 24px;
      padding-bottom: 1.714285714rem;
      word-wrap: break-word;
      -webkit-hyphens: auto;
      -moz-hyphens: auto;
      hyphens: auto;
    }
    
    .page-links {
      clear: both;
      line-height: 1.714285714;
    }
    
    footer.entry-meta {
      margin-top: 24px;
      margin-top: 1.714285714rem;
      font-size: 13px;
      font-size: 0.928571429rem;
      line-height: 1.846153846;
      color: #757575;
    }
    
    .single-author .entry-meta .by-author {
      display: none;
    }
    
    .mu_register h2 {
      color: #757575;
      font-weight: normal;
    }
    
    /* =Archives
    -------------------------------------------------------------- */
    
    .archive-header, .page-header {
      margin-bottom: 48px;
      margin-bottom: 3.428571429rem;
      padding-bottom: 22px;
      padding-bottom: 1.571428571rem;
      border-bottom: 1px solid #ededed;
    }
    
    .archive-meta {
      color: #757575;
      font-size: 12px;
      font-size: 0.857142857rem;
      line-height: 2;
      margin-top: 22px;
      margin-top: 1.571428571rem;
    }
    
    /* =Single image attachment view
    -------------------------------------------------------------- */
    
    .article.attachment {
      overflow: hidden;
    }
    
    .image-attachment {
      div.attachment {
        text-align: center;
        p {
          text-align: center;
        }
        img {
          display: block;
          height: auto;
          margin: 0 auto;
          max-width: 100%;
        }
      }
      .entry-caption {
        margin-top: 8px;
        margin-top: 0.571428571rem;
      }
    }
    
    /* =Aside post format
    -------------------------------------------------------------- */
    
    article {
      &.format-aside {
        h1 {
          margin-bottom: 24px;
          margin-bottom: 1.714285714rem;
          a {
            text-decoration: none;
            color: #4d525a;
            &:hover {
              color: #2e3542;
            }
          }
        }
        .aside {
          padding: 24px 24px 0;
          padding: 1.714285714rem;
          background: #d2e0f9;
          border-left: 22px solid #a8bfe8;
        }
        p {
          font-size: 13px;
          font-size: 0.928571429rem;
          line-height: 1.846153846;
          color: #4a5466;
        }
        blockquote:last-child, p:last-child {
          margin-bottom: 0;
        }
      }
      &.format-image footer {
        h1 {
          font-size: 13px;
          font-size: 0.928571429rem;
          line-height: 1.846153846;
          font-weight: normal;
        }
        h2 {
          font-size: 11px;
          font-size: 0.785714286rem;
          line-height: 2.181818182;
        }
        a h2 {
          font-weight: normal;
        }
      }
      &.format-link {
        header {
          padding: 0 10px;
          padding: 0 0.714285714rem;
          float: right;
          font-size: 11px;
          font-size: 0.785714286rem;
          line-height: 2.181818182;
          font-weight: bold;
          font-style: italic;
          text-transform: uppercase;
          color: #848484;
          background-color: #ebebeb;
          border-radius: 3px;
        }
        .entry-content {
          max-width: 80%;
          float: left;
          a {
            font-size: 22px;
            font-size: 1.571428571rem;
            line-height: 1.090909091;
            text-decoration: none;
          }
        }
      }
      &.format-quote .entry-content {
        p {
          margin: 0;
          padding-bottom: 24px;
          padding-bottom: 1.714285714rem;
        }
        blockquote {
          display: block;
          padding: 24px 24px 0;
          padding: 1.714285714rem 1.714285714rem 0;
          font-size: 15px;
          font-size: 1.071428571rem;
          line-height: 1.6;
          font-style: normal;
          color: #6a6a6a;
          background: #efefef;
        }
      }
    }
    
    /* =Post formats
    -------------------------------------------------------------- */
    
    /* Image posts */
    
    /* Link posts */
    
    /* Quote posts */
    
    /* Status posts */
    
    .format-status .entry-header {
      margin-bottom: 24px;
      margin-bottom: 1.714285714rem;
      header {
        display: inline-block;
      }
      h1 {
        font-size: 15px;
        font-size: 1.071428571rem;
        font-weight: normal;
        line-height: 1.6;
        margin: 0;
      }
      h2 {
        font-size: 12px;
        font-size: 0.857142857rem;
        font-weight: normal;
        line-height: 2;
        margin: 0;
      }
      header a {
        color: #757575;
        &:hover {
          color: #21759b;
        }
      }
      img {
        float: left;
        margin-right: 21px;
        margin-right: 1.5rem;
      }
    }
    
    /* =Comments
    -------------------------------------------------------------- */
    
    .comments-title {
      margin-bottom: 48px;
      margin-bottom: 3.428571429rem;
      font-size: 16px;
      font-size: 1.142857143rem;
      line-height: 1.5;
      font-weight: normal;
    }
    
    .comments-area {
      article {
        margin: 24px 0;
        margin: 1.714285714rem 0;
        header {
          margin: 0 0 48px;
          margin: 0 0 3.428571429rem;
          overflow: hidden;
          position: relative;
          img {
            float: left;
            padding: 0;
            line-height: 0;
          }
          cite, time {
            display: block;
            margin-left: 85px;
            margin-left: 6.071428571rem;
          }
          cite {
            font-style: normal;
            font-size: 15px;
            font-size: 1.071428571rem;
            line-height: 1.42857143;
          }
        }
      }
      cite b {
        font-weight: normal;
      }
      article header {
        time {
          line-height: 1.714285714;
          text-decoration: none;
          font-size: 12px;
          font-size: 0.857142857rem;
          color: #5e5e5e;
        }
        a {
          text-decoration: none;
          color: #5e5e5e;
          &:hover {
            color: #21759b;
          }
        }
        cite a {
          color: #444;
          &:hover {
            text-decoration: underline;
          }
        }
        h4 {
          position: absolute;
          top: 0;
          right: 0;
          padding: 6px 12px;
          padding: 0.428571429rem 0.857142857rem;
          font-size: 12px;
          font-size: 0.857142857rem;
          font-weight: normal;
          color: #fff;
          background-color: #0088d0;
          background-repeat: repeat-x;
          background-image: -moz-linear-gradient(top, #009cee, #0088d0);
          background-image: -ms-linear-gradient(top, #009cee, #0088d0);
          background-image: -webkit-linear-gradient(top, #009cee, #0088d0);
          background-image: -o-linear-gradient(top, #009cee, #0088d0);
          background-image: linear-gradient(top, #009cee, #0088d0);
          border-radius: 3px;
          border: 1px solid #007cbd;
        }
      }
      .bypostauthor cite {
        span {
          position: absolute;
          margin-left: 5px;
          margin-left: 0.357142857rem;
          padding: 2px 5px;
          padding: 0.142857143rem 0.357142857rem;
          font-size: 10px;
          font-size: 0.714285714rem;
        }
        b {
          font-weight: bold;
        }
      }
    }
    
    a {
      &.comment-reply-link, &.comment-edit-link {
        color: #686868;
        font-size: 13px;
        font-size: 0.928571429rem;
        line-height: 1.846153846;
      }
      &.comment-reply-link:hover, &.comment-edit-link:hover {
        color: #21759b;
      }
    }
    
    .commentlist .pingback {
      line-height: 1.714285714;
      margin-bottom: 24px;
      margin-bottom: 1.714285714rem;
    }
    
    /* Comment form */
    
    #respond {
      margin-top: 48px;
      margin-top: 3.428571429rem;
      h3#reply-title {
        font-size: 16px;
        font-size: 1.142857143rem;
        line-height: 1.5;
        #cancel-comment-reply-link {
          margin-left: 10px;
          margin-left: 0.714285714rem;
          font-weight: normal;
          font-size: 12px;
          font-size: 0.857142857rem;
        }
      }
      form {
        margin: 24px 0;
        margin: 1.714285714rem 0;
        p {
          margin: 11px 0;
          margin: 0.785714286rem 0;
          &.logged-in-as {
            margin-bottom: 24px;
            margin-bottom: 1.714285714rem;
          }
        }
        label {
          display: block;
          line-height: 1.714285714;
        }
        input[type="text"], textarea {
          -moz-box-sizing: border-box;
          box-sizing: border-box;
          font-size: 12px;
          font-size: 0.857142857rem;
          line-height: 1.714285714;
          padding: 10px;
          padding: 0.714285714rem;
          width: 100%;
        }
        p.form-allowed-tags {
          margin: 0;
          font-size: 12px;
          font-size: 0.857142857rem;
          line-height: 2;
          color: #5e5e5e;
        }
      }
    }
    
    .required {
      color: red;
    }
    
    /* =Front page template
    -------------------------------------------------------------- */
    
    .entry-page-image {
      margin-bottom: 14px;
      margin-bottom: 1rem;
    }
    
    .template-front-page {
      .site-content article {
        border: 0;
        margin-bottom: 0;
      }
      .widget-area {
        clear: both;
        float: none;
        width: auto;
        padding-top: 24px;
        padding-top: 1.714285714rem;
        border-top: 1px solid #ededed;
        .widget li {
          margin: 8px 0 0;
          margin: 0.571428571rem 0 0;
          font-size: 13px;
          font-size: 0.928571429rem;
          line-height: 1.714285714;
          list-style-type: square;
          list-style-position: inside;
          a {
            color: #757575;
            &:hover {
              color: #21759b;
            }
          }
        }
        .widget_text img {
          float: left;
          margin: 8px 24px 8px 0;
          margin: 0.571428571rem 1.714285714rem 0.571428571rem 0;
        }
      }
    }
    
    /* =Widgets
    -------------------------------------------------------------- */
    
    .widget-area .widget ul ul {
      margin-left: 12px;
      margin-left: 0.857142857rem;
    }
    
    .widget_rss li {
      margin: 12px 0;
      margin: 0.857142857rem 0;
    }
    
    .widget_recent_entries .post-date, .widget_rss .rss-date {
      color: #aaa;
      font-size: 11px;
      font-size: 0.785714286rem;
      margin-left: 12px;
      margin-left: 0.857142857rem;
    }
    
    #wp-calendar {
      margin: 0;
      width: 100%;
      font-size: 13px;
      font-size: 0.928571429rem;
      line-height: 1.846153846;
      color: #686868;
      th, td, caption {
        text-align: left;
      }
      #next {
        padding-right: 24px;
        padding-right: 1.714285714rem;
        text-align: right;
      }
    }
    
    .widget_search label {
      display: block;
      font-size: 13px;
      font-size: 0.928571429rem;
      line-height: 1.846153846;
    }
    
    .widget_twitter {
      li {
        list-style-type: none;
      }
      .timesince {
        display: block;
        text-align: right;
      }
    }
    
    /* =Plugins
    ----------------------------------------------- */
    
    img#wpstats {
      display: block;
      margin: 0 auto 24px;
      margin: 0 auto 1.714285714rem;
    }
    
    /* =Media queries
    -------------------------------------------------------------- */
    
    /* Minimum width of 600 pixels. */
    @media screen and (min-width: 600px) {
      .author-avatar {
        float: left;
        margin-top: 8px;
        margin-top: 0.571428571rem;
      }
      .author-description {
        float: right;
        width: 80%;
      }
      .site {
        margin: 0 auto;
        max-width: 960px;
        max-width: 68.571428571rem;
        overflow: hidden;
      }
      .site-content {
        float: left;
        width: 65.104166667%;
      }
      body {
        &.template-front-page .site-content, &.single-attachment .site-content, &.full-width .site-content {
          width: 100%;
        }
      }
      .widget-area {
        float: right;
        width: 26.041666667%;
      }
      .site-header {
        h1, h2 {
          text-align: left;
        }
        h1 {
          font-size: 26px;
          font-size: 1.857142857rem;
          line-height: 1.846153846;
          margin-bottom: 0;
        }
      }
      .main-navigation {
        ul.nav-menu, div.nav-menu > ul {
          border-bottom: 1px solid #ededed;
          border-top: 1px solid #ededed;
          display: inline-block !important;
          text-align: left;
          width: 100%;
        }
        ul {
          margin: 0;
          text-indent: 0;
        }
        li {
          a {
            display: inline-block;
            text-decoration: none;
            border-bottom: 0;
            color: #6a6a6a;
            line-height: 3.692307692;
            text-transform: uppercase;
            white-space: nowrap;
            &:hover {
              color: #000;
            }
          }
          display: inline-block;
          text-decoration: none;
          margin: 0 40px 0 0;
          margin: 0 2.857142857rem 0 0;
          position: relative;
          ul {
            display: none;
            margin: 0;
            padding: 0;
            position: absolute;
            top: 100%;
            z-index: 1;
            ul {
              top: 0;
              left: 100%;
            }
          }
        }
        ul li:hover > ul {
          border-left: 0;
          display: block;
        }
        li ul li a {
          background: #efefef;
          border-bottom: 1px solid #ededed;
          display: block;
          font-size: 11px;
          font-size: 0.785714286rem;
          line-height: 2.181818182;
          padding: 8px 10px;
          padding: 0.571428571rem 0.714285714rem;
          width: 180px;
          width: 12.85714286rem;
          white-space: normal;
          &:hover {
            background: #e3e3e3;
            color: #444;
          }
        }
        .current-menu-item > a, .current-menu-ancestor > a, .current_page_item > a, .current_page_ancestor > a {
          color: #636363;
          font-weight: bold;
        }
      }
      .menu-toggle {
        display: none;
      }
      .entry-header .entry-title {
        font-size: 22px;
        font-size: 1.571428571rem;
      }
      #respond form {
        input[type="text"] {
          width: 46.333333333%;
        }
        textarea.blog-textarea {
          width: 79.666666667%;
        }
      }
      .template-front-page {
        .site-content, article {
          overflow: hidden;
        }
        &.has-post-thumbnail article {
          float: left;
          width: 47.916666667%;
        }
      }
      .entry-page-image {
        float: right;
        margin-bottom: 0;
        width: 47.916666667%;
      }
      .template-front-page {
        .widget-area .widget, &.two-sidebars .widget-area .front-widgets {
          float: left;
          width: 51.875%;
          margin-bottom: 24px;
          margin-bottom: 1.714285714rem;
        }
        .widget-area .widget {
          &:nth-child(odd) {
            clear: right;
          }
          &:nth-child(even) {
            float: right;
            width: 39.0625%;
            margin: 0 0 24px;
            margin: 0 0 1.714285714rem;
          }
        }
        &.two-sidebars {
          .widget-area .front-widgets + .front-widgets {
            float: right;
            width: 39.0625%;
            margin: 0 0 24px;
            margin: 0 0 1.714285714rem;
          }
          .widget {
            float: none;
            width: auto;
            &:nth-child(even) {
              float: none;
              width: auto;
            }
          }
        }
      }
      .commentlist .children {
        margin-left: 48px;
        margin-left: 3.428571429rem;
      }
    }
    
    /* Minimum width of 960 pixels. */
    @media screen and (min-width: 960px) {
      body {
        background-color: #e6e6e6;
        .site {
          padding: 0 40px;
          padding: 0 2.857142857rem;
          margin-top: 48px;
          margin-top: 3.428571429rem;
          margin-bottom: 48px;
          margin-bottom: 3.428571429rem;
          box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
        }
        &.custom-background-empty {
          background-color: #fff;
          .site {
            padding: 0;
            margin-top: 0;
            margin-bottom: 0;
            box-shadow: none;
          }
        }
        &.custom-background-white .site {
          padding: 0;
          margin-top: 0;
          margin-bottom: 0;
          box-shadow: none;
        }
      }
    }
    
    /* =Print
    ----------------------------------------------- */
    
    @media print {
      body {
        background: none !important;
        color: #000;
        font-size: 10pt;
      }
      footer a[rel=bookmark] {
        &:link:after, &:visited:after {
          content: " [" attr(href) "] ";
          /* Show URLs */
        }
      }
      a {
        text-decoration: none;
      }
      .entry-content img, .comment-content img, .author-avatar img, img.wp-post-image {
        border-radius: 0;
        box-shadow: none;
      }
      .site {
        clear: both !important;
        display: block !important;
        float: none !important;
        max-width: 100%;
        position: relative !important;
      }
      .site-header {
        margin-bottom: 72px;
        margin-bottom: 5.142857143rem;
        text-align: left;
        h1 {
          font-size: 21pt;
          line-height: 1;
          text-align: left;
        }
        h2 {
          color: #000;
          font-size: 10pt;
          text-align: left;
        }
        h1 a, h2 a {
          color: #000;
        }
      }
      .author-avatar, #colophon, #respond {
        display: none;
      }
      .commentlist {
        .comment-edit-link, .reply {
          display: none;
        }
      }
      .entry-header .comments-link, .entry-meta .edit-link a, .page-link, .site-content nav, .widget-area, img.header-image, .main-navigation {
        display: none;
      }
      .wrapper {
        border-top: none;
        box-shadow: none;
      }
      .site-content {
        margin: 0;
        width: auto;
      }
      .singular {
        .entry-header .entry-meta {
          position: static;
        }
        .site-content, .entry-header, .entry-content, footer.entry-meta, .comments-title {
          margin: 0;
          width: 100%;
        }
      }
      .entry-header .entry-title, .entry-title, .singular .entry-title {
        font-size: 21pt;
      }
      footer.entry-meta {
        color: #444;
        font-size: 10pt;
        a {
          color: #444;
          font-size: 10pt;
        }
      }
      .author-description {
        float: none;
        width: auto;
      }
      /* Comments */
      .commentlist {
        > li.comment {
          background: none;
          position: relative;
          width: auto;
        }
        .avatar {
          height: 39px;
          left: 2.2em;
          top: 2.2em;
          width: 39px;
        }
      }
      .comments-area article header {
        cite, time {
          margin-left: 50px;
          margin-left: 3.57142857rem;
        }
      }
    }

    これでもうあとはお好きにどうぞ、って感じです。

    ホホまとめ

    いやー簡単、便利、素晴らしいWebサービスですね。

    変換されたものはもちろんちゃんと使えました(cssによっては変換後要編集なものもあります)。

    ただただ単純に変換してくれるのでネストが深くなりすぎたりはあるかもしれないですけども、cssを投げ捨ててscss(sass)に切り替えるきっかけに充分なると思います。

    こういう便利なサービスを作りたいもんですね。

  • Google+のカウント数を取得するために色々試した結果がこちら

    Google+のカウント数を取得するために色々試した結果がこちら

    若干(というかわりかし無理矢理)ですけども無事、Google+の+1されたカウント数を取得できました。

    Google+はカウント数を取得するAPIが公式で提供されてないのでぼくはおこですよ全く。

    さて。

     

    最初に試したこと

    そりゃまぁGoogleで検索しますよね。

    検索すると非公式ながらも取得方法がありました。↓ via http://papermashup.com

    <?php
    /**
     * Show Google Plus’s – PHP function
     * via http://papermashup.com/google-plus-php-function/
     *
     * @param $url
     *
     * @return array|mixed
     */
    function gplus_shares( $url ) {
    
    	// G+ DATA
    	$ch = curl_init();
    	curl_setopt( $ch, CURLOPT_URL, "https://clients6.google.com/rpc?key=AIzaSyCKSbrvQasunBoV16zDH9R33D88CeLr9gQ" );
    	curl_setopt( $ch, CURLOPT_POST, 1 );
    	curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
    	curl_setopt( $ch, CURLOPT_POSTFIELDS, '[{"method":"pos.plusones.get","id":"p",
    "params":{"nolog":true,"id":"' . $url . '","source":"widget","userId":"@viewer","groupId":"@self"},
    "jsonrpc":"2.0","key":"p","apiVersion":"v1"}]' );
    	curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
    	curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-type: application/json' ) );
    
    	$result = curl_exec( $ch );
    	curl_close( $ch );
    	return json_decode( $result, true );
    
    }
    ?>

     

    使ってみるよね

    これを使ってカウント数を取得するとですね、ええと、

    <?php
    // 関数にURLを投げてJSON取得
    $gplus = gplus_shares( 'http://hayashikejinan.com' );	// ぼくのブログURLで試してみます
    
    // カウント数だけ出力
    echo $gplus[0]['result']['metadata']['globalCounts']['count'];
    ?>
    <!-- JSONごと出力 -->
    <pre><?php print_r( $gplus ); ?></pre>

    こんな感じで返って来ます。

    こんなかんじ
    こんなかんじ

    「ちゃんと取得できてるんだからいいじゃん!」

    と思いきや、使ってるAPIキーが謎。ほんと謎。

    自分のGoogle+APIキーだとダメ。何のキーよ AIzaSyCKSbrvQasunBoV16zDH9R33D88CeLr9gQ って…

    さすがにちょっと気持ち悪いので他の方法を試す。(curl 使えないサーバーもあるっぽいよね!

     

    公式の+1ボタンからカウント数だけ取得したらよくない?

    という誰でも思いつくことをしましたよ。

    公式ボタンのスクリプトはGoogle+の諸機能を呼ぶやつなので、+1ボタンだけが欲しい。

    それっぽいのを探してみる。お、これは怪しい。

    ボタンっぽい
    ボタンっぽい

     

    スクリプトURLをコピーして、不要っぽいのを省いて呼んでみたら押せないただのボタンだけが表示された!いえす!

    拡大。押せないボタン呼べた。
    拡大。押せないボタンが呼べた。
    <?php
    $url = 'http://hayashikejinan.com';
    $gplus = file_get_contents( 'https://apis.google.com/_/+1/fastbutton?url=' . urlencode( $url ) );
    echo $gplus;
    ?>

    取得した内容はちょっと長いから割愛して、カウント数書かれてるところを探す。発見。

    ld:[,[2,【カウント数】,[ 常にこういう形で出てくる、同じ記述はない、つまり!正規表現でカウント数だけ頂ける!

     

    ちょっと横道にそれて正規表現

    phpで正規表現使って文字列抽出する関数は preg_match 。

     

    というわけでGoogle+のカウント数を取得するまとめ

    ここまでだらだら書きましたけども、取得は数行でできました。今回はphpで jQueryとかわかんない

    注意点は1つだけ、呼ぶスクリプトが https なので opensslモジュール 対応のサーバーが条件です!

    enableならおっけー
    enableならおっけー

    phpinfo で確認しときましょう。

    ローカルなら php.ini で extension=php_openssl.dll を解き放てばおっけーです

    phpinfoとかわかんないひとは↓これを書いてみればいいよ!

    <?php
    // openssl モジュール確認
    if ( ! extension_loaded( 'openssl' ) ) {
    	throw new Exception( 'openssl 拡張モジュールが有効になっていません。' );
    } else {
    	echo 'openssl 拡張モジュールが有効です';
    }
    ?>

     

    Google+のカウント数を取得するサンプルコード

    <?php
    /**
     * Google+ のカウント数だけを取得する関数
     *
     * @param $url
     *
     * @return mixed
     */
    function getGooglePlusCount( $url ) {
    	$plus = file_get_contents( 'https://apis.google.com/_/+1/fastbutton?url=' . urlencode( $url ) );
    	// 正規表現でカウント数のところだけを抽出
    	preg_match( '/\[2,([0-9.]+),\[/', $plus, $count );
    	return $count[1];
    }
    // 出力
    echo getGooglePlusCount("http://hayashikejinan.com");
    ?>

    こんな感じですね。長かった…

     

    ホホまとめ

    正直、curl使ったコードでええやん、という感想もあったり。

    ただまぁ今回やった方法が安心なのは間違いないんじゃないでしょうか。

    そもそもGoogleさんがちゃんとAPIを提供してくれればいいんですよまったく。

    いろいろやってみると勉強になっていいっちゃいいですね。

  • NHKの動画素材、NHKクリエイティブ・ライブラリーがなかなかにおもしろい

    NHKの動画素材、NHKクリエイティブ・ライブラリーがなかなかにおもしろい

    ちょっと動作検証用に手頃な動画欲しいなーとある日。

    Googleさんに聞いてみるとNHKクリエイティブ・ライブラリーをオススメされる。

    営利目的の使用は禁止だけども、サンプルで使うためだったのでこれ幸いと見てみた。

    5,000点以上の動画素材があっておどろく。

    NHKクリエイティブ・ライブラリーとは

    NHKさん引用

    NHKクリエイティブ・ライブラリーは、NHKアーカイブスの番組や番組素材から切り出した映像や音声を、視聴者のみなさんの表現・創作活動に利用していただくための「創作用素材」として、インターネットを通じて提供する無料のサービスです。

    ほう、ほほう。つづいて。

    NHKクリエイティブ・ライブラリーのルール

    使うためにざっと大事っぽいルールをまとめてみる

    • 創作用素材をダウンロードし、コピーしたり、他人へ配ったり、公表したりできる
    • 創作用素材を編集・変形したり、他の素材(自分がとった映像や写真、音声など)と組み合わせたりして、自分の作品をつくることができる
    • 営利目的はダメ
    • 著作者名の表示が必須

    なるほどなるほど。

    公表ってのは公の場での上映、インターネット上での公表(自分のホームページ、ブログへの掲載や、動画投稿サイトなどへの投稿) らしい。

    著作者名の表示はデフォルトで動画に NHK と入ってるのでそのまま使う場合は特に気にしなくてよし。

    加工する人は別途記載しなきゃいけないね。

    あとはNHKに不利益になるようなことはやめてね!ってことみたい。

    詳しくは NHKクリエイティブ・ライブラリー : 利用のルール を見るといいよ。

    NHKクリエイティブ・ライブラリーを使ってみる

    というわけで使ってみます、登録不要なのがいいね!

    とりあえずアクセス

    ライブラリにアクセス!

    NHKクリエイティブ・ライブラリー _www.nhk.or.jp
    画像クリックでリンク飛びます

     

    素材を検索

    カテゴリー、地域、キーワードから検索できるすばらしさ。

    NHKクリエイティブ・ライブラリー 素材をさがす_www.nhk.or.jp
    こんな感じ。見やすい素敵。

     

    素材が見つかったらダウンロードする

    ペンギン、君に決めた!

    ペンギンきたこれ
    ペンギンきたこれ

     

    利用規約を熟読してダウンロード

    完全に同意してダウンロードしましょう。

    ダウンロードするボタンを押したら、ダウンロード用にzipファイルを生成してくれます。

    動画はmp4ファイルでzipの中に。

    読むよね
    読むよね

     

    こんな感じ。

    閑散としたブログに颯爽とペンギンが!!!

    ホホまとめ

    受信料ヤクザ 「スクランブル放送で料金徴収しろよ!」なんて怒号が稀に聞こえるNHKさんですが、撮影部隊はほんと機材・映像ともに定評のある、というか定評しかないです。

    そんなNHKの映像は見てるだけでも楽しいし、非営利目的なら好き勝手使えるってのが素晴らしいすな。

    2010年からサービスやってたなんて全然知らなかったです。

    わりと見てるだけでおもしろいので http://www.nhk.or.jp/creative/material/ にちょっとアクセスしてごらんほらほら。

  • Feedlyの購読ボタン作り方と素材が提供されてたよ!(使い道あんのかこれはと思いつつ

    Feedlyの購読ボタン作り方と素材が提供されてたよ!(使い道あんのかこれはと思いつつ

    2013.06.27 Feedly Cloudになったのでコード書き変えました。

    feedly_subscride

    やれソーシャルだやれSNSだ(いっしょ)、ネット社会が社会性を訴求し倒してますよね最近。

     

    さて。

    feedlyの記事を書けばウケるんでしょうとばかりに。

    feedlyの購読ボタンって何よ

    SNSボタンのようなカウントをしてくれるものじゃあありませんこれ。

    ただただfeedlyにボタンを据えてるブログのRSS追加するだけのボタンです。

    「はて、つける意味はあるのかい?」みたいになりますかね。

    まぁfeedlyRSS登録画面へ直接誘導するってのは一手間省けるので、少しはRSS登録してくれる人増えるんじゃないですかね。

    feedlyのpublisherページから Add a subscribe button to your site のところ、 Get subscride button からzipを頂けます。

    feedly. feed your mind.
    Our publishers program aims at empowering you to make the most of your feeds. Whether you wish to re …

     

    では導入してみましょう

    ざっくり言うと「zipを落として画像選んでリンク付けたらええねん」です。

    zipを解凍して使いたいアイコンを決めます。4パターン13種ありました、一覧がこちら。

    feedly-subscribe-buttons

    当ブログでは一番上と一番下に据えてます。参考程度に。

    一応導入のコードも書いておきますが、大して困ることはないでしょう。

    Retinaディスプレイ用もありますね、Renitaディスプレイ機器持ってないのでよくわかんないです ァ ‘`,、(‘∀`)’`,、

    導入コードhtmlの場合

    RSSのURL・画像URL・画像高さ・画像幅は自分のそれに置き換えてください。

    うちのブログだと http://www.feedly.com/home#subscription/feed//feed/ です。

    <a href='http://cloud.feedly.com/#subscription%2Ffeed%2F【ここにRSSのURL】'
      target='_blank'
      title="FeedlyでRSSを購読する" >
      <img id='feedlyFollow'
      src='http://s3.feedly.com/img/follows/feedly-follow-rectangle-volume-medium_2x.png'
      alt='follow us in feedly' width='71' height='28'>
    </a>

    導入コードwordpressの場合

    画像はテーマ内のimagesフォルダに入っているものとします。

    <a href='http://cloud.feedly.com/#subscription%2Ffeed%2F<?php echo get_bloginfo_rss( 'rss2_url' ); ?>'
      target='_blank'
      title="FeedlyでRSSを購読する" >
      <img id='feedlyFollow'
      src='http://s3.feedly.com/img/follows/feedly-follow-rectangle-volume-medium_2x.png'
      alt='follow us in feedly' width='71' height='28'>
    </a>

     

    まぁこんな感じですかね。全然難しいことはないです。

    ホホまとめ

    zip内のInstructionsを読むと、

    「端末にfeedlyアプリが入ってたらfeedlyアプリが起動するぜAh-ha」

    って書いてますけどもandroidだと無理でした。iPhoneならいけるのかな(持ってない)。

    Lineのボタンみたく無理矢理対応させようとandroidnoのfeedlyアプリを見てみるも、独自のschemaを持ってないので対応させることはできませんでした。

  • ZendOptimizerPlusをxmappに入れる。php5.5以降はAPCから置き換わるそうな。

    ZendOptimizerPlusをxmappに入れる。php5.5以降はAPCから置き換わるそうな。

    先日php関連のニュースをどっかで見まして、php5.5からはphpデフォルトのコードキャッシュがAPCからZendOptimizer+に置き換わる、っということで。

    ちょっとphp本家の当該ページを覗いてみました。

     

    …ふむふむ。どうやらAPCよりZendOptimizer+のほうが速いらしいです。

    ベンチマーク表もありました。

    速いということなので早速ローカルのxamppに導入しようかと。

    あとはまぁ新しいもの好きなので、血が騒ぐというかなんというか。

    ※手順はwindows7 x64 + xampp x86環境になります。

    ZendOptimizer+をxamppへ導入するための要件

    • phpがローカルで入ってること
    • phpinfoでphpバージョンの確認をしておくこと  (設定変えてなければこのリンクで見られます)
    • なんらかのテキストエディタ
    • めげない気持ち

    こんなところですかね。APCと共存はできないということです。

    ZendOptimizer+をインストールする

    ZendOptimizer+の入手

    windowsだとコンパイルめんどうかつめんどうなので、コンパイル済みのライブラリを使わせてもらいましょう。

    http://windows.php.net/のダウンロードディレクトリから確認したphpバージョンに該当するものを選択。

    ts と nts って2種類あるよね
    ts と nts って2種類あるよね
    • ts: Thread Safe、スレッドセーフ版です。安定。
    • nts: Non Thread Safe、ノンスレッドセーフ版。安定ではない。

    のでぼくはts版を選択。

    ZendOptimizer+をphpに導入

    ダウンロードしたzip内の php_ZendOptimizerPlus.dll を使います。

    xamppが入ってるディレクトリを確認して xampp\php\ext\ の中に dll をコピーしましょう (普通のひとは c\直下だと思います)。

    スクショ用のエクスプローラです
    スクショ用のエクスプローラです

    ZendOptimizer+を使うようにphp.ini設定する

    xampp\php\php.ini をなんらかのテキストエディタで開く。

    notepad++派
    notepad++派

    APCが有効になっているとダメなので apc.enabled を検索してみる。

    # もしAPC関係が有効であれば先頭にセミコロン ; をつけてコメントアウトすること
    
    ; APC ;
    ;extension=php_apc.dll
    [APC]
    ;apc.enabled = 1
    ;apc.shm_segments = 1
    ;apc.shm_size = 64
    ;apc.max_file_size = 10M
    ;apc.stat=1
    
    # ↓これを追加すればおk。相対パスは使えないっぽいので環境に合わせてパスは要変更
    
    [Zend]
    ; ZendOptimizerPlus ;
    zend_extension = "E:\xampp\php\ext\php_ZendOptimizerPlus.dll"
    zend_optimizer.optimization_level=15

    ZendOptimizer+が有効になったか確認する

    1. 設定ファイルを書き変えたら保存して、ローカルサーバー (apacheでしょうか) を再起動

    2. ローカルのphpinfo (設定変えてなければこのリンクで見られます) を確認。

    3. with Zend Optimizer+ v7.0.1-dev~ って行が増えてればOK。(ページ内検索で Zend Scripting を検索かければいいと思うよ。)

    有効化。めでたしめでたし。
    有効化。めでたしめでたし。

    ホホまとめ

    新しいものってなんでこう楽しいんでしょうか。

    入れるだけで「やったった!!」っていう気持ちになれる不思議。

    え、速度的にどうかって?そんなことはどうでもいいんですよ速くなった気がします。

  • scss (sass) + compassがスーパー便利でびっくりしすぎて今さら環境を作ったり。Koalaで。

    scss (sass) + compassがスーパー便利でびっくりしすぎて今さら環境を作ったり。Koalaで。

    2013.06.19 に書いた Preprops が Koala より便利っぽいです。

    連休中にテーマを作ろうそうしよう。あ、ついでにscssってのとcompassってのがなんかどうも便利っぽいのでちょっと調べてみよっかな。

    から始まって。

    結論から言うと「狂おしいほど便利で今までぼくは何をしてたんだ」というレベルでした。

    環境作るのを忘れないためにφ(`д´)メモメモ…

    環境作るのはちょっとめんどうですががんばりましょう。

    ※今回は全てwindows7 x64環境になります。

     

    compassとscssは何がどういいのか

    論よりなんちゃら、もう見たらわかります。scssはsassの派生らしく、scssのほうが使いやすかったのでぼくはそちらを選択。

    compassscssが何なのかは各々のページを読んでみてください。

    ここではさらっとだけ書いてみます。

     

    scss (sass) にできること

    大別して4つあります。

     

    変数が使える

    変数使えるなんて絶頂すぎますね、例えばこんな感じ。計算もしてくれます。

    /* scss でこう書けば */
    $serif: "メイリオ", Meiryo, Verdana, Arial, sans-serif;
    $margin: 8px;
    h1 {
      font-family: $serif;
      margin: $margin / 2;
    }
    /* css でしゅっと出力 */
    h1 {
      font-family: "メイリオ", Meiryo, Verdana, Arial, sans-serif;
      margin: 4px;
    }

     

    入れ子構造が容易に作れる

    もはやだらだら同じプロパティを書かなくてもいいのです

    /* scss でこう書けば */
    ul {
      background: #000;
      li {
        float: left;
        a {
          color: #fff;
        }
        span {
          color: #eee;
        }
      }
    }
    /* css へしゅっと出力 */
    ul {
      background: #000;
    }
    ul li {
      float: left;
    }
    ul li a {
      color: #fff;
    }
    ul li span {
      color: #eee;
    }

     

    変数より便利なMixinsという複数定義ができる

    /* scss でこう書けば */
    @mixin br($value: 4px) {
      -webkit-border-radius: $value;
      -moz-border-radius: $value;
      border-radius: $value;
    }
    .foo {
      @include br;
    }
    .hoge {
      @include br(6px);
    }
    /* css へしゅっと出力 */
    .foo {
      -webkit-border-radius: 4px;
      -moz-border-radius: 4px;
      border-radius: 4px;
    }
    .hoge {
      -webkit-border-radius: 6px;
      -moz-border-radius: 6px;
      border-radius: 6px;
    }

     

    セレクタの継承ができる

    セレクタをがっつり継承できる、親セレクタも & で継承できる。

    /* scss でこう書けば */
    h1 {
      border: 4px solid #ff9aa9
    }
    .speaker {
      @extend h1;
      border-width: 2px;
      &:hover {
        color: #ff00aa;
      }
    }
    /* css へしゅっと出力 */
    h1, .speaker {
      border: 4px solid #ff9aa9;
    }
    
    .speaker {
      border-width: 2px;
    }
    .speaker:hover {
      color: #ff00aa;
    }
    // 一行コメントも使える!!!

    こんな具合です。

    一行コメントが使えるのは果てしなく素晴らしいですな。

     

    さらにここへcompassを使うとですね

    compassをインポートすればこんな角丸のためのだらっとしたcssなんて

    div {
      -webkit-border-radius: 10px;
      -moz-border-radius: 10px;
      -ms-border-radius: 10px;
      -o-border-radius: 10px;
      border-radius: 10px;
    }

    scssにこう書くだけで出力できるという。

    @import "compass";
    div {
      @include border-radius(10px);
    }

    他にも機能ありすぎてどえらいです。

    ベンダープレフィックスのサポートはもちろんのことスプライト画像の自動生成なんていう超絶機能まで。

    いろいろなところで紹介されているので“compass scss”で調べてもらうのがいいと思います。

    さてRubyへ。

     

    Rubyを入れる。

    そもそもRubyってなんやねんという方は本家のaboutページを参照ください。

     

    Rubyのインストール

    RubyInstallerページからRuby 2.0.0-p0 (x64)をダウンロードしてインストール。

    使用許諾は読もうね★
    使用許諾は読もうね★

    デフォだとインストール先は Ruby_**** ってなってますが、バージョンアップの時にめんどうなことになるため、Ruby以降の文字列は消し去っておいたほうがいいです。

    チェックは全部入れとけばいいと思うよ。
    チェックは全部入れとけばいいと思うよ。
    かんりょ
    かんりょ

     

    Rubyがちゃんと入ったか確認

    おもむろにコマンドプロンプトを起動 (win+R からの cmdが速いかな) し、

    ruby -v

    とタイプ、エンター。

    ちゃんとバージョン出ればおk
    ちゃんとバージョン出ればおk

    ruby バージョンうんたら~ っと返ってきたらおkです。次へ。

     

    compassを入れてコマンド云々がめんどうなあなたへ

    windowsでcompassを使うにはRubyでcompassを入れてコマンドで云々…でしたが現時点で決定版じゃないかとさえ思うフリーソフトが出ました。

    それが Koala です。

     

    Koalaにできること

    • 多言語サポート: Less,Sass, CoffeeScript そして Compass Framework内蔵
    • リアルタイムな生成: ファイルを監視して変更があった場合自動的にコンパイル。しかもバックグラウンドで走るので何もしなくていい。
    • コンパイル設定サポート: ファイルごとにコンパイル設定可能
    • エラー通知: コンパイル時にエラーがあればポップアップで通知してくれる
    • クロスプラットフォーム: windows, iOS, Linuxで使える

    ということですな、素晴らしい。

    他のGUIなcompass対応ソフトはScoutCompass.appがありますね。

     

    Koalaをインストール

    Koalaページからダウンロードしてインストールするだけです、特別な設定はないので割愛。

    “次へ” を連打すればいいと思うよ。

     

    Koalaの使い方

    起動しましょう。すっきりしてます。Koalaの名前っぽくはないです。アイコンがコアラ。

    すっきりすなぁ
    すっきりすなぁ

    compassモジュールは今回入れてないので、compass createした際にできるフォルダをちょっと触って用意しました

    まぁscssのフレームワークはいっぱいweb上にあるのでそれを使うのがいいと思いま。

    適当に解凍してドラッグドロップでおk。

    Koala_how-to-use_02
    もしくは左上の+ボタンね。

    左上歯車マークでデフォルト設定ができます。

    なんで歯車が設定なんだろう
    そもそもなんで歯車が設定なんだろう

    各ファイルをクリックで個別に設定できたり。

    dynamic compilationで自動生成だよぅ
    dynamic compilationで自動生成だよぅ

    右クリックで出力先を設定できたりするんだよ!

    右クリ!って言う人いるよね。
    右クリ!って言う人いるよね。

     

    とにかく、Koalaを立ち上げた状態でscssファイルを編集→保存すればcssが勝手に出力されるという仕組みになってます。

    個別にコンパイルもできますが、まぁする意味があるのかっちゅう話です。

     

    ホホまとめ

    本当に今まで何故使わなかったんだって衝撃を受けました。

    zen-coding以来の衝撃です。

    ちょっとだけ最初がめんどうなだけでもはや戻れないです、これを見たひとは早速やりましょう。

    scssはそのまま従来のcssを記述しても大丈夫なんで、だんだんと覚えていけばいいと思います。

    2014.04.06 追記

    sass の教科書が出版されています、超絶オススメなので sass に興味が出たならぜひ買うべき一冊。

    Web制作者のためのSassの教科書 これからのWebデザインの現場で必須のCSSメタ言語
    平澤 隆 森田 壮
    インプレスジャパン
    売り上げランキング: 29,135

     

    今回は簡単な手順で書きましたが、実はぼくKoalaは使わずRubyにcompassを入れてPhpStormで動かしてます。

    PhpStormがまたヤバいんですよ、これはまた近いうちに。

  • pocketのソーシャルボタンがリリースされてたのでつけてみた。

    pocketのソーシャルボタンがリリースされてたのでつけてみた。

    いやー全然知らなかったです、ボタン、あったんですねぇ。

    Pocket Button
    Pocket Button

     

    Pocket ってなあに

    そもそもですね。ざっくりいうと、あとで読むリストをつくるサービスです。

    androidアプリや

    Pocket
    Read It Later
    価格:無料
    平均評価:4.6(37,953)

    iPhoneアプリもあります

    Pocket (Formerly Read It Later)

    Pocket (Formerly Read It Later)
    Idea Shower
    価格: 0円
    iTunesで見る
    posted with sticky on 2013.4.20

     

    Pocket Button の設置方法

    公式のボタン作るページへ行って3種類の中から選ぶだけ。これ簡単。

    ボックスタイプならこうですね。スクリプトはフッターにでも置いとくとさらによいか。

    <a data-pocket-label="pocket" data-pocket-count="vertical" class="pocket-btn" data-lang="en"></a>
    <script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var j=d.createElement("script");j.id=i;j.src="https://widgets.getpocket.com/v1/j/btn.js?v=1";var w=d.getElementById(i);d.body.appendChild(j);}}(document,"pocket-btn-js");</script>

    wordpressの場合

    wordpressだと今見てるページにしなきゃいけないですよね!

    …と思いきや上のコードで普通に対応してました(;´∀`)

    ただまぁせっかくなんでドキュメント通りにやりましょう。簡単ですね。

    パラメータは今のところ3つだけ、

    • data-save-url: ポケットさせたいURLを指定
    • data-pocket-count: ボタンの形式。none, horizontal, vertical の3種類。
    • data-pocket-align: data-pocket-countにhorizontalを指定した時だけ有効。ボタンを右側整列したときに right を指定しないとカウントが正しく表示されないんですって。

    将来的には data-lang で言語指定できるようになるんでしょうねきっと。

    ボタン形式 none

    表示はこんな感じ。Pocket// < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    //

    <a href="https://getpocket.com/save" class="pocket-btn" data-lang="en"
      data-save-url="<?php echo get_permalink(); ?>"
      data-pocket-count="none" 
      data-pocket-align="left"
      ></a>
    <script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var j=d.createElement("script");j.id=i;j.src="https://widgets.getpocket.com/v1/j/btn.js?v=1";var w=d.getElementById(i);d.body.appendChild(j);}}(document,"pocket-btn-js");</script>
    ボタン形式 horizontal

    Pocket// < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    //

    <a href="https://getpocket.com/save" class="pocket-btn" data-lang="en"
      data-save-url="<?php echo get_permalink(); ?>"
      data-pocket-count="horizontal" 
      data-pocket-align="left"
      ></a>
    <script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var j=d.createElement("script");j.id=i;j.src="https://widgets.getpocket.com/v1/j/btn.js?v=1";var w=d.getElementById(i);d.body.appendChild(j);}}(document,"pocket-btn-js");</script>
    ボタン形式 vertical

    Pocket// < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    // < ![CDATA[
    //

    <a href="https://getpocket.com/save" class="pocket-btn" data-lang="en"
      data-save-url="<?php echo get_permalink(); ?>"
      data-pocket-count="vertical" 
      data-pocket-align="left"
      ></a>
    <script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var j=d.createElement("script");j.id=i;j.src="https://widgets.getpocket.com/v1/j/btn.js?v=1";var w=d.getElementById(i);d.body.appendChild(j);}}(document,"pocket-btn-js");</script>

    楽勝ですね。

     

    早速つけてみましたよ(´∀`)

    こんなかんじー。
    こんなかんじー。

    モバイルビューにもつけてみた。

    モバイルでもつけてみた
    モバイルでもつけてみた

     

    ちなみに、IE8以下は表示されません。pocketのページ自体も対応させてないみたいで、そもそも切り捨ててらっしゃるっぽいです。

    ホホまとめ

    pocketボタンでは拡散は狙えないものの、どれだけの人が記事に興味を持っているか知れる指標になるんじゃないかと思ってます。

    ある程度のアクセスがあるブログさんだとつけておくことで

    「おー、こんなにpocketされてるんだね」

    って感じで読者へのアピールになるんじゃないでしょうか。