
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>はてなブログカスタム | OHAMAstyle</title>
	<atom:link href="https://ohama-style.com/entry/tag/%E3%81%AF%E3%81%A6%E3%81%AA%E3%83%96%E3%83%AD%E3%82%B0%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0/feed/" rel="self" type="application/rss+xml" />
	<link>https://ohama-style.com</link>
	<description>オハマスタイル。オハマ夫婦の北海道暮らし革命</description>
	<lastBuildDate>Fri, 28 Sep 2018 12:38:43 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://ohama-style.com/wp-content/uploads/2020/05/cropped-ohamaicon-32x32.png</url>
	<title>はてなブログカスタム | OHAMAstyle</title>
	<link>https://ohama-style.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<atom:link rel='hub' href='https://ohama-style.com/?pushpress=hub'/>
	<item>
		<title>コピペOK！読者になるボタンやSNSフォローボタンのカスタムCSS</title>
		<link>https://ohama-style.com/entry/blog-custom15/</link>
					<comments>https://ohama-style.com/entry/blog-custom15/#comments</comments>
		
		<dc:creator><![CDATA[ジョージ]]></dc:creator>
		<pubDate>Thu, 03 Mar 2016 08:30:00 +0000</pubDate>
				<category><![CDATA[はてなブログ]]></category>
		<category><![CDATA[ブログ]]></category>
		<category><![CDATA[はてなブログカスタム]]></category>
		<guid isPermaLink="false">https://ohama-style.com/entry/blog-custom15/</guid>

					<description><![CDATA[<p>ブログ運営には欠かせない、はてな読者登録や各種SNSのフォローボタンを新しく作りました！今回のは自信作だぜ！ 過去にも『読者になるボタン』のカスタム記事を書きましたが、今回はその他のフォローボタンもまとめて一新しました！...</p>
The post <a href="https://ohama-style.com/entry/blog-custom15/">コピペOK！読者になるボタンやSNSフォローボタンのカスタムCSS</a> first appeared on <a href="https://ohama-style.com">OHAMAstyle</a>.]]></description>
										<content:encoded><![CDATA[<p>ブログ運営には欠かせない、はてな読者登録や各種SNSのフォローボタンを新しく作りました！今回のは自信作だぜ！</p>
<p>過去にも『読者になるボタン』のカスタム記事を書きましたが、今回はその他のフォローボタンもまとめて一新しました！複数のSNSをやっている方には、このボタンデザインはおススメ！</p>
<div class="supplement normal">ブログ運営をはてなブログからワードプレスに移行したため、こちらの記事は正しく機能しない場合があります。申し訳ございません。<br />
今後も宜しくお願いします！</div>
<p>&nbsp;</p>
<h2>まずは完成形</h2>
<div class="follow-btn">
<ul>
<li class="btn1"><a href="http://blog.hatena.ne.jp/george-gogo/georges.hatenablog.jp/subscribe" target="_blank" rel="noopener"><span class="btn1-icon"><br />
</span>Hatena</a></li>
<li class="btn2"><a href="https://twitter.com/intent/follow?screen_name=0117_george" target="_blank" rel="noopener"><span class="btn2-icon"><br />
</span>Twitter</a></li>
<li class="btn3"><a href="http://feedly.com/i/subscription/feed/http://georges.hatenablog.jp/feed" target="_blank" rel="noopener"><span class="btn3-icon"><br />
</span>Feedly</a></li>
<li class="btn4"><a href="#" target="_blank" rel="noopener"><span class="btn4-icon"><br />
</span>Facebook</a></li>
</ul>
</div>
<p>マウスを乗せるか、タップしてみてくださーい！どう？横にビヨーンで伸びたり縮んだり！かわいいですね。キュートですね。</p>
<p>このデザインのおススメポイントは、<strong>画面サイズやサイドバーなどのサイズに自動でピッタリサイズになる</strong>点です。</p>
<p>というわけでさっそく使い方を説明していきます。</p>
<h3>HTML</h3>
<p>まずはHTMLに各自みんなのURLリンクを貼り付けていきましょう。</p>
<pre>&lt;div class="follow-btn"&gt;
&lt;ul&gt;
&lt;!--<span style="color: #1464b3;">読者ボタン</span>--&gt;
&lt;li class="btn1"&gt;
&lt;a href="<a href="http://blog.hatena.ne.jp/">http://blog.hatena.ne.jp/</a><span style="color: #d32f2f;">はてなID</span>/<span style="color: #d32f2f;">はてなドメイン</span>/subscribe"  target="_blank"&gt;&lt;span class="btn1-icon"&gt;&lt;br /&gt;&lt;/span&gt;Hatena&lt;/a&gt;&lt;/li&gt;
&lt;!--<span style="color: #1464b3;">Twitterボタン</span>--&gt;
&lt;li class="btn2"&gt;
&lt;a href="<a href="https://twitter.com/intent/follow?screen_name=">https://twitter.com/intent/follow?screen_name=</a><span style="color: #d32f2f;">ツイッターID</span>" target="_blank"&gt;&lt;span class="btn2-icon"&gt;&lt;br /&gt;&lt;/span&gt;Twitter&lt;/a&gt;&lt;/li&gt;
&lt;!--<span style="color: #1464b3;">Feedlyボタン</span>--&gt;
&lt;li class="btn3"&gt;
&lt;a href="<span style="color: #d32f2f;">FeedlyのURL</span>" target="_blank"&gt;&lt;span class="btn3-icon"&gt;&lt;br /&gt;&lt;/span&gt;Feedly&lt;/a&gt;&lt;/li&gt;
&lt;!--<span style="color: #1464b3;">Facebookボタン</span>--&gt;
&lt;li class="btn4"&gt;
&lt;a href="<span style="color: #d32f2f;">FacebookのURL</span>" target="_blank"&gt;&lt;span class="btn4-icon"&gt;&lt;br /&gt;&lt;/span&gt;Facebook&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</pre>
<h3>リンクの貼り方解説</h3>
<p>赤色でコメントした部分についてです。</p>
<p><strong>はてなID</strong>は僕で言うと『george-gogo』です。自分のプロフィールで確認できます。</p>
<p><strong>はてなドメイン</strong>というのは、自分のブログのURLの『http://』を除いたものです。僕のブログは<a href="http://georges.hatenablog.jp/">http://georges.hatenablog.jp/</a>なので、georges.hatenablog.jpがドメインになります。</p>
<p><strong>ツイッターID</strong>は『@』を除いたものを貼って下さい。</p>
<p><strong>FeedlyとFacebook</strong>は自分のページのURLをそのまま貼り付けてOKです。</p>
<h3>いらないボタンは消してOK</h3>
<p>「僕は読者ボタンとTwitterだけで充分だよー」などの人は、各ボタンのHTMLの『&lt;li&gt;から&lt;/li&gt;』の範囲を削除しちゃって大丈夫です！ちょうど僕が<span style="color: #1464b3;">青色</span>でコメントを入れている間ですね。</p>
<h3>HTMLコピペの場所</h3>
<h3>サイドバーに貼る（PC）</h3>
<ol>
<li><span style="line-height: 1.5;">デザイン</span></li>
<li><span style="line-height: 1.5;">カスタマイズ</span></li>
<li><span style="line-height: 1.5;">サイドバー</span></li>
<li><span style="line-height: 1.5;">モジュールを追加</span></li>
<li><span style="line-height: 1.5;">HTML</span></li>
</ol>
<h3>記事下に貼る（PC）</h3>
<ol>
<li><span style="line-height: 1.5;">デザイン</span></li>
<li><span style="line-height: 1.5;">カスタマイズ</span></li>
<li><span style="line-height: 1.5;">記事</span></li>
<li><span style="line-height: 1.5;">記事下</span></li>
</ol>
<h3>記事下に貼る（スマホ）</h3>
<ol>
<li><span style="line-height: 1.5;">デザイン</span></li>
<li><span style="line-height: 1.5;">スマートフォン（スマホのマーク）</span></li>
<li><span style="line-height: 1.5;">記事</span></li>
<li><span style="line-height: 1.5;">記事下</span></li>
</ol>
<h3>CSS</h3>
<p>もう後はCSSをコピペするだけ！終わったようなもんです。</p>
<pre>/*********フォローボタン**********/
.follow-btn{
 width: 100%;
 margin: 5px 0px 5px 0px;
}
.follow-btn ul {
 list-style: none;
 display: -webkit-flex;
 display: flex;
 margin: 0;
 padding: 0;
}
.follow-btn li {
 height:100px;
 width: 100%;
 -webkit-transition: width 0.3s ease-out;
 transition: width 0.3s ease-out;
 display: -webkit-flex;
 display: flex;
 -webkit-align-items: center;
 align-items: center;
 -webkit-justify-content: center;
 justify-content: center;
}
.follow-btn li:hover {
 width: 200%;
}
.follow-btn li span{
 line-height:2.5;
 font-size:180%;
 font-weight: normal;
 font-style: normal;
 font-weight: normal;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}
.btn1{
 background: #5F5E5E;<span style="color: #d32f2f;">/*読者ボタンの背景色*/</span>
}
.btn2{
 background: #6FB6C3;<span style="color: #d32f2f;">/*Twitterの背景色*/</span>
}
.btn3 {
 background: #82C36F;<span style="color: #d32f2f;">/*Feedlyの背景色*/</span>
}
.btn4 {
 background: #6998b9;<span style="color: #d32f2f;">/*Facebookの背景色*/</span>
}
.btn1-icon:before{
 content: "\f000";<span style="color: #00796b;">/*はてなアイコン*/</span>
 display: inline-block;
 font-family: blogicon;
}
.btn2-icon:before{
 content: "\f035";<span style="color: #00796b;">/*Twitterアイコン*/</span>
 display: inline-block;
 font-family: blogicon;
}
.btn3-icon:before{
 content: "\f04e";<span style="color: #00796b;">/*Feedlyアイコン*/</span>
 display: inline-block;
 font-family: blogicon;
}
.btn4-icon:before{
 content: "\f036";<span style="color: #00796b;">/*Facebookアイコン*/</span>
 display: inline-block;
 font-family: blogicon;
}
.follow-btn a {
 width:100%;
 height:100%;
 font-size: 13px;
 line-height: 1;
 font-weight: normal;
 text-decoration: none;
 text-align: center;
 color: #fff;
 -webkit-transition: all 0.3s ease-out;
 transition: all 0.3s ease-out;
}</pre>
<p>はい！これをコピペして下さい！</p>
<h3>PC</h3>
<ol>
<li><span style="line-height: 1.5;">デザイン</span></li>
<li><span style="line-height: 1.5;">カスタマイズ</span></li>
<li><span style="line-height: 1.5;">カスタムCSS</span></li>
</ol>
<h3>スマホ（PROユーザー限定）</h3>
<ol>
<li><span style="line-height: 1.5;">デザイン</span></li>
<li><span style="line-height: 1.5;">スマートフォン</span></li>
<li><span style="line-height: 1.5;">ヘッダー</span></li>
<li><span style="line-height: 1.5;">タイトル下</span></li>
</ol>
<p>もしこれが初めてのカスタムという人は、CSSを&lt;style&gt;&lt;/style&gt;で囲んで下さい！これをやらなきゃ、反映されないのでね。</p>
<pre>&lt;style&gt;
ここにさっきのCSS全文をコピペ！
&lt;/style&gt;</pre>
<p>PCの方は囲まないで大丈夫です！</p>
<h2>上手くアイコンが反映されない方</h2>
<p>各ボタンのアイコンの箇所が数字の羅列になってしまうことがあるようです。正確な理由は分かりませんが、一応対処法です。</p>
<p>おそらく<strong>『\（バックスラッシュ）』</strong>が上手くコピーできていないのが原因だと思います。僕も何度も自分のコードのコピペを繰り返してみたら、この現象がたまに発生しました。何でかは分からないんだけど…。</p>
<p>とにかく『\』を使用している個所は<strong><span style="color: #00796b;">緑色</span></strong>でコメントをしました。</p>
<p><strong>このバグが出ている方は、自分のカスタムCSSに手打ちで『\』を追加してみてください。</strong></p>
<p>windowsのキーボードでは、ひらがなの『ろ』の部分、Macでは『option+￥』で入力できます。これで解決できると思いますが、それでも上手く表示ができない方はご連絡ください。</p>
<h2>さらにカスタマイズしたい人</h2>
<h3>サイズをコンパクトに</h3>
<p>まず僕のこの記事の下のボタンを見てください。横幅いっぱいで極太です。これをスマートにします。</p>
<pre>/*********フォローボタン**********/
.follow-btn{
 width: 400px;<span style="color: #d32f2f;">/*横幅*/</span>
 margin: 5px auto 5px auto;
}
.follow-btn ul {
 list-style: none;
 display: -webkit-flex;
 display: flex;
 margin: 0;
 padding: 0;
}
.follow-btn li {
 height:100px;<span style="color: #d32f2f;">/*縦の幅*/</span>
 width: 100%;
 -webkit-transition: width 0.3s ease-out;
 transition: width 0.3s ease-out;
 display: -webkit-flex;
 display: flex;
 -webkit-align-items: center;
 align-items: center;
 -webkit-justify-content: center;
 justify-content: center;
}
.follow-btn li:hover {
 width: 200%;
}
.follow-btn li span{
 line-height:2.5;
 font-size:180%;
 font-weight: normal;
 font-style: normal;
 font-weight: normal;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}
.btn1{
 background: #5F5E5E;<span style="color: #d32f2f;">/*読者ボタンの背景色*/</span>
}
.btn2{
 background: #6FB6C3;<span style="color: #d32f2f;">/*Twitterの背景色*/</span>
}
.btn3 {
 background: #82C36F;<span style="color: #d32f2f;">/*Feedlyの背景色*/</span>
}
.btn4 {
 background: #6998b9;<span style="color: #d32f2f;">/*Facebookの背景色*/</span>
}
.btn1-icon:before{
 content: "\f000";
 display: inline-block;
 font-family: blogicon;
}
.btn2-icon:before{
 content: "\f035";
 display: inline-block;
 font-family: blogicon;
}
.btn3-icon:before{
 content: "\f04e";
 display: inline-block;
 font-family: blogicon;
}
.btn4-icon:before{
 content: "\f036";
 display: inline-block;
 font-family: blogicon;
}
.follow-btn a {
 width:100%;
 height:100%;
 font-size: 13px;
 line-height: 1;
 font-weight: normal;
 text-decoration: none;
 text-align: center;
 color: #fff;
 -webkit-transition: all 0.3s ease-out;
 transition: all 0.3s ease-out;
}</pre>
<p>こんな感じになります（スマホからこの記事を見ていると余り違いがないかも）。</p>
<div class="follow-btn" style="margin: 5px auto 5px auto; width: 400px;">
<ul>
<li class="btn1"><a href="http://blog.hatena.ne.jp/george-gogo/georges.hatenablog.jp/subscribe" target="_blank" rel="noopener"><span class="btn1-icon"><br />
</span>Hatena</a></li>
<li class="btn2"><a href="https://twitter.com/intent/follow?screen_name=0117_george" target="_blank" rel="noopener"><span class="btn2-icon"><br />
</span>Twitter</a></li>
<li class="btn3"><a href="http://feedly.com/i/subscription/feed/http://georges.hatenablog.jp/feed" target="_blank" rel="noopener"><span class="btn3-icon"><br />
</span>Feedly</a></li>
<li class="btn4"><a href="#" target="&quot;_blank"><span class="btn4-icon"><br />
</span>Facebook</a></li>
</ul>
</div>
<p>これもいいねー。自分の使うボタンの数でCSSの<strong>一番上の横幅の設定</strong>をいじってみてください。ボタン1つあたり100pxくらいが丁度いいんじゃないかな。3つしかボタンを使わない方は300pxてな感じで。</p>
<p>さらにチョット下にある<span style="color: #d32f2f;">縦の幅</span>で縦もお好きに調整してみてください！でも余り縦幅を小さくすると文字が入らなくなるので注意！</p>
<h3>色の変更</h3>
<p>CSSの途中で色が変更できるところにコメントを付けていますので、ご自分で好きな色に変更してください！</p>
<p><a href="http://html-color-codes.info/japanese/">HTMLカラーコード</a></p>
<h3>ちょっと解説（飛ばしてよし）</h3>
<p>基本的には凄く簡単な仕組みです。マウスホバー時のwidthを可変させているだけ。でもtransitionを使ってビヨーンとなっている風に見せているんです。各ボタンにはwidthをかけないで親要素でボックス幅を決めているので、ホバーされたボタン以外は小さくなるってところがミソですな。</p>
<h2>まとめ</h2>
<p>どうでしょう、シンプルだけど他にあまりないデザインで、素敵な感じのボタンを目指したのですが。まいっか、僕は気に入りました！</p>
<p>もし動作が安定していなかったり、分からないことがあればコメントでもTwitterでも質問してくださいねー！</p>
<p>おしまい。</p>
<p style="margin: 0;"><span style="font-size: 80%;">▼もしも勉強するならこの本がマジでおすすめ。学校で使ってました。</span></p>
<div id="rinkerid3630" class="yyi-rinker-contents yyi-rinker-postid-3630 yyi-rinker-img-m yyi-rinker-catid-50 yyi-rinker-catid-30 ">
	<div class="yyi-rinker-box">
		<div class="yyi-rinker-image">
							<a href="https://af.moshimo.com/af/c/click?a_id=1059749&#038;p_id=170&#038;pc_id=185&#038;pl_id=4062&#038;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4883379647" rel="nofollow" class="yyi-rinker-tracking"  data-click-tracking="amazon_img 3630 HTML5&#038;CSS3デザインブック (ステップバイステップ形式でマスターできる)" data-vars-click-id="amazon_img 3630 HTML5&#038;CSS3デザインブック (ステップバイステップ形式でマスターできる)"><img src="https://m.media-amazon.com/images/I/51A-tYY2DGL._SL160_.jpg"  width="126" height="160" class="yyi-rinker-main-img" style="border: none;" loading="lazy"></a><img src="https://i.moshimo.com/af/i/impression?a_id=1059749&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" width="1" height="1" style="border:none;">					</div>
		<div class="yyi-rinker-info">
			<div class="yyi-rinker-title">
									<a href="https://af.moshimo.com/af/c/click?a_id=1059749&#038;p_id=170&#038;pc_id=185&#038;pl_id=4062&#038;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4883379647" rel="nofollow" class="yyi-rinker-tracking" data-click-tracking="amazon_title 3630 HTML5&#038;CSS3デザインブック (ステップバイステップ形式でマスターできる)" data-vars-amp-click-id="amazon_title 3630 HTML5&#038;CSS3デザインブック (ステップバイステップ形式でマスターできる)" >HTML5&#038;CSS3デザインブック (ステップバイステップ形式でマスターできる)</a><img src="https://i.moshimo.com/af/i/impression?a_id=1059749&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" width="1" height="1" style="border:none;">							</div>
			<div class="yyi-rinker-detail">
							<div class="credit-box">created by&nbsp;<a href="https://oyakosodate.com/rinker/" rel="nofollow noopener" target="_blank" >Rinker</a></div>
										<div class="price-box">
							<span title="" class="price">¥2,760</span>
															<span class="price_at">(2021/09/27 23:42:36時点&nbsp;Amazon調べ-</span><span title="価格および発送可能時期は表示された日付/時刻の時点のものであり、変更される場合があります。本商品の購入においては、購入の時点でAmazon.co.jpに表示されている価格および発送可能時期の情報が適用されます。">詳細)</span>
																	</div>
						</div>
			<ul class="yyi-rinker-links">
																	<li class="amazonkindlelink">
						<a href="https://www.amazon.co.jp/dp/B07B2QN52P??tag=ohamastyle-22&amp;index=blended&amp;linkCode=ure&amp;creative=6339" rel="nofollow" class="yyi-rinker-link yyi-rinker-tracking"  data-click-tracking="amazon_kindle 3630 HTML5&#038;CSS3デザインブック (ステップバイステップ形式でマスターできる)"  data-vars-amp-click-id="amazon_kindle 3630 HTML5&#038;CSS3デザインブック (ステップバイステップ形式でマスターできる)">Kindle</a>					</li>
								                    <li class="amazonlink">
						<a href="https://af.moshimo.com/af/c/click?a_id=1059749&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4883379647" rel="nofollow" class="yyi-rinker-link yyi-rinker-tracking"  data-click-tracking="amazon 3630 HTML5&#038;CSS3デザインブック (ステップバイステップ形式でマスターできる)"  data-vars-amp-click-id="amazon 3630 HTML5&#038;CSS3デザインブック (ステップバイステップ形式でマスターできる)">Amazon</a><img src="https://i.moshimo.com/af/i/impression?a_id=1059749&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" width="1" height="1" style="border:none;">					</li>
													<li class="rakutenlink">
						<a href="https://af.moshimo.com/af/c/click?a_id=1059736&amp;p_id=54&amp;pc_id=54&amp;pl_id=616&amp;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2Fhtml5%2F%3Ff%3D1%26grp%3Dproduct" rel="nofollow" class="yyi-rinker-link yyi-rinker-tracking"  data-click-tracking="rakuten 3630 HTML5&#038;CSS3デザインブック (ステップバイステップ形式でマスターできる)"  data-vars-amp-click-id="rakuten 3630 HTML5&#038;CSS3デザインブック (ステップバイステップ形式でマスターできる)">楽天市場</a><img src="https://i.moshimo.com/af/i/impression?a_id=1059736&amp;p_id=54&amp;pc_id=54&amp;pl_id=616" width="1" height="1" style="border:none;">					</li>
													<li class="yahoolink">
						<a href="https://af.moshimo.com/af/c/click?a_id=1059739&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502&amp;url=https%3A%2F%2Fshopping.yahoo.co.jp%2Fsearch%3Fp%3Dhtml5" rel="nofollow" class="yyi-rinker-link yyi-rinker-tracking"  data-click-tracking="yahoo 3630 HTML5&#038;CSS3デザインブック (ステップバイステップ形式でマスターできる)"  data-vars-amp-click-id="yahoo 3630 HTML5&#038;CSS3デザインブック (ステップバイステップ形式でマスターできる)">Yahooショッピング</a><img src="https://i.moshimo.com/af/i/impression?a_id=1059739&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502" width="1" height="1" style="border:none;">					</li>
															</ul>
		</div>
	</div>
</div>The post <a href="https://ohama-style.com/entry/blog-custom15/">コピペOK！読者になるボタンやSNSフォローボタンのカスタムCSS</a> first appeared on <a href="https://ohama-style.com">OHAMAstyle</a>.]]></content:encoded>
					
					<wfw:commentRss>https://ohama-style.com/entry/blog-custom15/feed/</wfw:commentRss>
			<slash:comments>18</slash:comments>
		
		
			</item>
		<item>
		<title>誰でもコピペで簡単に吹き出しで会話形式のブログが書けるCSS</title>
		<link>https://ohama-style.com/entry/blog-custom14/</link>
					<comments>https://ohama-style.com/entry/blog-custom14/#comments</comments>
		
		<dc:creator><![CDATA[ジョージ]]></dc:creator>
		<pubDate>Tue, 23 Feb 2016 09:15:37 +0000</pubDate>
				<category><![CDATA[はてなブログ]]></category>
		<category><![CDATA[ブログ]]></category>
		<category><![CDATA[はてなブログカスタム]]></category>
		<guid isPermaLink="false">https://ohama-style.com/entry/blog-custom14/</guid>

					<description><![CDATA[<p>2017.5月更新 こんにちは！いつの間にか14回目のカスタム記事！今回はブログでよく見かける『会話形式』の記事を簡単に実現させるCSSを作りました！ぜひご覧あれ！ はじめに 参考記事としてこちらの記事を参考にいたしまし...</p>
The post <a href="https://ohama-style.com/entry/blog-custom14/">誰でもコピペで簡単に吹き出しで会話形式のブログが書けるCSS</a> first appeared on <a href="https://ohama-style.com">OHAMAstyle</a>.]]></description>
										<content:encoded><![CDATA[<p><strong>2017.5月更新</strong><br />
こんにちは！いつの間にか14回目のカスタム記事！今回はブログでよく見かける『会話形式』の記事を簡単に実現させるCSSを作りました！ぜひご覧あれ！<br />
<div class="supplement boader"> 当ブログははてなブログからWordpressに移行しました。移行はしたけれど当サイトのはてなブログカスタム記事にて紹介しているCSSカスタムは基本的にははてなブログで使用することができます。<br />
カスタムはすべて自己責任でお願います。<br />
<div class="related_article cf"><a href="https://ohama-style.com/hatena-wordpress"><figure class="eyecatch thum"><img width="486" height="290" src="https://ohama-style.com/wp-content/uploads/2018/01/ece1b18e162d89f7abe663c3a5ccbda1-486x290.jpg" class="attachment-home-thum size-home-thum wp-post-image" alt="はてなブログからWordpressに引っ越し" loading="lazy" /></figure><div class="meta inbox"><p class="ttl">2年間続けたはてなブログから、ワードプレスに引っ越した理由</p><span class="date gf">2018年1月21日</span></div></a></div>
</div>
<h2>はじめに</h2>
<p>参考記事としてこちらの記事を参考にいたしました。</p>
<div class="linkcard"><table border="1" cellspacing="0" cellpadding="4"><tbody></tr><tr><td>CSSで対話形式のフキダシデザイン 今日はフキダシデザインの作り方を書きます あ。前にも使っておきながら説明しなかったやつですね？ あ、覚えてたか（笑）前に記事の中で使ったことあるね。 →みんなまだ意外とやってないブログの見せ方。pinterestやinstagramを貼り付ける方法 - AIUEO Lab2 ケチだなーと思いました（笑） 今日説明するから許して…。以下がCSSとHTMLです。<br><a class="lkc-link no_icon" href="http://akiueo.hatenablog.com/entry/css-fukidashi-design-conversation-201411" target="_blank" rel="external noopenner">CSSで会話形式のフキダシデザインを作ってみる - AIUEO Lab2</a> - AIUEO Lab2</td></tr></tbody></table></div>
<p><a href="http://akiueo.hatenablog.com/about" target="_blank" rel="noopener">akiueo (id:akiueos)</a>さんのCSSも素晴らしいデザインですが、<strong>レスポンシブに未対応というのと、会話のアイコン画像が正方形の画像を使用しないと丸く表示されない</strong>ので、この2点を改良して今回制作しました。</p>
<p>上記の記事内に<strong>「どなたか改良版をお願いします。」</strong>と書かれているので正々堂々と改良いたします！</p>
<p><strong><span style="font-size: 80%;">追記：少しCSSを修正しました。（2/24）</span></strong></p>
<h3>完成系</h3>
<div class="talk-wrap">
<div class="left-icon talk-icon" style="background-image: url('http://cdn-ak.f.st-hatena.com/images/fotolife/g/george-gogo/20160113/20160113233702.png');"></div>
<div class="talk-left">
<p>こんにちはー！ジョージでーす！今回は会話形式のCSSを作ったよー！</p>
</div>
</div>
<div class="talk-wrap">
<div class="right-icon talk-icon" style="background-image: url('http://cdn-ak.f.st-hatena.com/images/fotolife/g/george-gogo/20160223/20160223174424.png');"></div>
<div class="talk-right">
<p>あら、こんにちは、ジョージさん。</p>
<p>私はまったくHTMLとかCSSを理解してないけど使えるかしら？</p>
</div>
</div>
<div class="talk-wrap">
<div class="left-icon talk-icon" style="background-image: url('http://cdn-ak.f.st-hatena.com/images/fotolife/g/george-gogo/20160113/20160113233702.png');"></div>
<div class="talk-left">
<p>うん！大丈夫！極限まで簡単に作ったぜ！（僕のできる範囲で）</p>
<p>コピペで簡単に使えるから是非使ってね！</p>
</div>
</div>
<div class="talk-end"></div>
<p>という茶番劇を繰り広げることができますぞ！</p>
<h3>まずはCSSをコピペしよう！</h3>
<p><strong>はてなブロガー</strong>の方はいつも通り「デザイン」「カスタムCSS」にペロっと貼り付けてくださいな。その他のブログサービスやホームページの方は各自のスタイルシートに貼り付けてください。</p>
<p>スマホ版のデザインを分けて設定している方は、しっかりスマホ用のカスタムページにもCSS全文を貼り付けてくださいね！</p>
<pre>/*****ここから会話のCSS*****/
.talk-wrap{
 display: block;
 clear: both;
 margin:0 auto 3px auto;
 }
.talk-wrap p{
 margin:0;
 }
 .left-icon{
 width: 100px;
 height: 100px;
 border-radius: 50%;
 -webkit-border-radius: 50%;
 background: no-repeat;
 background-size: 180%;
 background-position: center;
 float:left;
 display:inline-block;
 box-shadow: 1px 1px 5px #aaa; <span style="color: #d32f2f;">/*左のアイコンの影の設定*/</span>
 border: 3px solid #fff; <span style="color: #d32f2f;">/*左のアイコンの枠の設定*/
</span> margin-bottom: 10px;
 }
 .talk-left{
 float:right;
 position: relative;
 background: #fff; <span style="color: #d32f2f;">/*左の会話の背景色*/</span>
 border: 2px solid #666;
 padding: 3%;
 border-radius: 10px;
 width: 70%;
 margin-top:10px;
 box-shadow: 1px 1px 5px #aaa; <span style="color: #d32f2f;">/*左の会話の影の設定*/
</span> margin-bottom: 10px;
 }
.talk-left:before {
 content: "";
 display: inline-block;
 border: 10px solid transparent;
 border-right-color: #666;
 position: absolute;
 left: -20px;
 top: 25%;
 margin-top: -9px;
}
.talk-left:after {
 content: "";
 display: inline-block;
 border: 9px solid transparent;
 border-right-color: #fff;
 position: absolute;
 left: -16px;
 top: 25%;
 margin-top: -8px;
}
 .right-icon{
 width: 100px;
 height: 100px;
 border-radius: 50%;
 -webkit-border-radius:50%;
 background: no-repeat;
 background-size: 180%;
 background-position: center;
 float:right;
 display:inline-block;
 box-shadow: 1px 1px 5px #aaa; <span style="color: #2196f3;">/*右のアイコンの影の設定*/</span>
 border: 3px solid #FFF; <span style="color: #2196f3;">/*右のアイコンの枠の設定*/
</span> margin-bottom: 10px;
 }
 .talk-right{
 float:left;
 position: relative;
 background: #fff; <span style="color: #2196f3;">/*右の会話の背景色*/</span>
 border: 2px solid #666;
 padding: 3%;
 border-radius: 10px;
 width: 70%;
 margin-top:10px;
 box-shadow: 1px 1px 5px #aaa; <span style="color: #2196f3;">/*右の会話の影*/
</span> margin-bottom:10px;
 }
 .talk-right:before {
 content: "";
 display: inline-block;
 border: 10px solid transparent;
 border-left-color: #666;
 position: absolute;
 right: -20px;
 top: 25%;
 margin-top: -9px;
}
.talk-right:after {
 content: "";
 display: inline-block;
 border: 9px solid transparent;
 border-left-color: #fff;
 position: absolute;
 right: -16px;
 top: 25%;
 margin-top: -8px;
}
.talk-end{
 clear:both;
}
/*****レスポンシブ設定*****/
@media screen and (max-width: 480px){
 .left-icon{
 width: 80px;
 height: 80px;
 }
 .talk-left{
 width: 65%; 
 }
 .right-icon{
 width: 80px;
 height: 80px;
 }
 .talk-right{
 width: 65%; 
 }
 }
 @media screen and (max-width: 380px){
 .left-icon{
 width: 60px;
 height: 60px;
 }
 .talk-left{
 width: 65%; 
 }
 .right-icon{
 width: 60px;
 height: 60px;
 }
 .talk-right{
 width: 65%; 
 }
 }</pre>
<h3>ブログでの使い方</h3>
<pre>&lt;!--<span style="color: #00796b;">左の会話</span>--&gt;
&lt;div class="talk-wrap"&gt;
&lt;div class="left-icon" style="background-image: url('<span style="color: #ff5252;">ここに左側の人の画像のURLを貼って下さい！</span>');"&gt;&lt;/div&gt;
&lt;div class="talk-left"&gt;
&lt;p&gt;<span style="color: #1464b3;">会話内容をここに記述してください！</span>&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;!--<span style="color: #00796b;">左はここまで-</span>-&gt;
&lt;!--<span style="color: #286f2c;">右の会話-</span>-&gt;
&lt;div class="talk-wrap"&gt;
&lt;div class="right-icon" style="background-image: url('<span style="color: #d32f2f;">ここに右側の人の画像のURLを貼ってください！</span>');"&gt;&lt;/div&gt;
&lt;div class="talk-right"&gt;
&lt;p&gt;<span style="color: #1464b3;">会話内容をここに記述してください！</span>&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;!--<span style="color: #00796b;">右はここまで-</span>-&gt;
&lt;!--<span style="color: #d32f2f;">↓会話部分の最後にこれを必ず付け加えて↓</span>--&gt;
&lt;div class="talk-end"&gt;&lt;/div&gt;</pre>
<ul>
<li><span style="line-height: 1.5;">まずこれをブログのHTML編集での会話を挿入したい箇所に貼り付けてください。</span></li>
<li><span style="line-height: 1.5;">左の会話に画像URLを貼り付けてください。</span><a style="line-height: 1.5;" href="http://georges.hatenablog.jp/entry/blog-custom9" target="_blank" rel="noopener">画像のURLの取得方法はこちらの記事で。</a></li>
<li><span style="line-height: 1.5;">会話の内容を書いてください。普段通りに太字や文字色なんかも使えます。</span></li>
<li><span style="line-height: 1.5;">右の会話にも同じことをやって下さい。</span></li>
<li><span style="line-height: 1.5;">会話をさらに伸ばすときは、最後の行の『<span style="color: #d32f2f;">↓会話部分の~</span>』の上まで、つまり左と右の会話部分のみをコピペで増やして下さい。</span></li>
<li>最後には必ず<span style="color: #3d3f44; font-family: 'Helvetica Neue', Helvetica, Arial, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;">『</span><span style="color: #d32f2f;">↓会話部分の~</span><span style="color: #3d3f44; font-family: 'Helvetica Neue', Helvetica, Arial, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;">』を付け加えてください！</span></li>
</ul>
<h3>簡単解説（飛ばして良し！）</h3>
<p>akiueoさんとの最大の違いは、アイコン画像を背景で表示していること。これによって元画像の形に依存しないで円で画像を表示しています。</p>
<p class="emphasize-link"><a href="http://georges.hatenablog.jp/archive/category/%E3%81%AF%E3%81%A6%E3%81%AA%E3%83%96%E3%83%AD%E3%82%B0%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0">他にもはてなブログカスタム記事書いてます！</a></p>
<h3>まとめ</h3>
<div class="talk-wrap">
<div class="left-icon talk-icon" style="background-image: url('http://cdn-ak.f.st-hatena.com/images/fotolife/g/george-gogo/20160113/20160113233702.png');"></div>
<div class="talk-left">
<p>ね？簡単でしょ？パッと見でコードが長いと感じるけどさ、CSSは一回貼り付けちゃえば終わりだし、HTMLも画像リンク張って文字を書くだけよん。</p>
</div>
</div>
<div class="talk-wrap">
<div class="right-icon talk-icon" style="background-image: url('http://cdn-ak.f.st-hatena.com/images/fotolife/g/george-gogo/20160223/20160223174424.png');"></div>
<div class="talk-right">
<p>ほんとね！このコードをメモ帳かなんかに保存しておけばいつでも使えるね！</p>
</div>
</div>
<div class="talk-wrap">
<div class="left-icon talk-icon" style="background-image: url('http://cdn-ak.f.st-hatena.com/images/fotolife/g/george-gogo/20160113/20160113233702.png');"></div>
<div class="talk-left">
<p>そうそう、その通りだよ<strong>あおいちゃん</strong>。</p>
<p>でもどうして僕は話し相手に君を選んだのかね。いや、可愛いんだけどさ。なんか僕キモいよね？</p>
</div>
</div>
<div class="talk-end"></div>
<p>おしまい。</p>
<p style="margin: 0;"><span style="font-size: 80%;">▼もしも勉強するならこの本がマジでおすすめ。学校で使ってました。</span></p>
<div class="kaerebalink-box" style="text-align: left; padding-bottom: 20px; font-size: small; /zoom: 1; overflow: hidden;">
<div class="kaerebalink-image" style="float: left; margin: 0 15px 10px 0;"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4883379647/georgehamano-22/ref=nosim/" target="_blank" rel="noopener"><img style="border: none;" src="http://ecx.images-amazon.com/images/I/51A-tYY2DGL._SL160_.jpg" alt="" /></a></div>
<div class="kaerebalink-info" style="line-height: 120%; /zoom: 1; overflow: hidden;">
<div class="kaerebalink-name" style="margin-bottom: 10px; line-height: 120%;">
<p><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4883379647/georgehamano-22/ref=nosim/" target="_blank" rel="noopener">HTML5&amp;CSS3デザインブック (ステップバイステップ形式でマスターできる)</a></p>
<div class="kaerebalink-powered-date" style="font-size: 8pt; margin-top: 5px; font-family: verdana; line-height: 120%;">posted with <a href="http://kaereba.com" target="_blank" rel="nofollow noopener">カエレバ</a></div>
</div>
<div class="kaerebalink-detail" style="margin-bottom: 5px;">エビスコム ソシム 2014-10-28</div>
<div class="kaerebalink-link1" style="margin-top: 10px;">
<div class="shoplinkamazon" style="display: inline; margin-right: 5px;"><a href="http://www.amazon.co.jp/gp/search?keywords=HTML5&amp;__mk_ja_JP=%83J%83%5E%83J%83i&amp;tag=georgehamano-22" target="_blank" rel="noopener">Amazonで購入</a></div>
<div class="shoplinkrakuten" style="display: inline; margin-right: 5px;"><a href="http://hb.afl.rakuten.co.jp/hgc/14b157c7.5b7dedef.14b157c8.f9f7b3ad/?pc=http%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FHTML5%2F-%2Ff.1-p.1-s.1-sf.0-st.A-v.2%3Fx%3D0%26scid%3Daf_ich_link_urltxt%26m%3Dhttp%3A%2F%2Fm.rakuten.co.jp%2F" target="_blank" rel="noopener">楽天市場で購入</a></div>
</div>
</div>
<div class="booklink-footer" style="clear: left;"></div>
</div>
<p>&nbsp;</p>The post <a href="https://ohama-style.com/entry/blog-custom14/">誰でもコピペで簡単に吹き出しで会話形式のブログが書けるCSS</a> first appeared on <a href="https://ohama-style.com">OHAMAstyle</a>.]]></content:encoded>
					
					<wfw:commentRss>https://ohama-style.com/entry/blog-custom14/feed/</wfw:commentRss>
			<slash:comments>16</slash:comments>
		
		
			</item>
		<item>
		<title>【保存版】簡単コピペの&#034;続きを読む&#034;ボタンデザイン集【はてなブログカスタムVol.11】</title>
		<link>https://ohama-style.com/entry/blog-custom11/</link>
					<comments>https://ohama-style.com/entry/blog-custom11/#comments</comments>
		
		<dc:creator><![CDATA[ジョージ]]></dc:creator>
		<pubDate>Thu, 28 Jan 2016 00:30:00 +0000</pubDate>
				<category><![CDATA[はてなブログ]]></category>
		<category><![CDATA[ブログ]]></category>
		<category><![CDATA[はてなブログカスタム]]></category>
		<guid isPermaLink="false">https://ohama-style.com/entry/blog-custom11/</guid>

					<description><![CDATA[<p>オーソドックスなものから奇抜なものまで全部で11個作りました。僕のカスタム記事の一番最初が『続きを読む』のカスタムだったのですが、もっと読みやすくて分かりやすいものを書いてみました。 はじめに すべてCSSのみで作ってあ...</p>
The post <a href="https://ohama-style.com/entry/blog-custom11/">【保存版】簡単コピペの"続きを読む"ボタンデザイン集【はてなブログカスタムVol.11】</a> first appeared on <a href="https://ohama-style.com">OHAMAstyle</a>.]]></description>
										<content:encoded><![CDATA[<p>オーソドックスなものから奇抜なものまで全部で11個作りました。僕のカスタム記事の一番最初が『続きを読む』のカスタムだったのですが、もっと読みやすくて分かりやすいものを書いてみました。<br />
<div class="supplement boader"> 当ブログははてなブログからWordpressに移行しました。移行はしたけれど当サイトのはてなブログカスタム記事にて紹介しているCSSカスタムは基本的にははてなブログで使用することができます。<br />
カスタムはすべて自己責任でお願います。<br />
<div class="related_article cf"><a href="https://ohama-style.com/hatena-wordpress"><figure class="eyecatch thum"><img width="486" height="290" src="https://ohama-style.com/wp-content/uploads/2018/01/ece1b18e162d89f7abe663c3a5ccbda1-486x290.jpg" class="attachment-home-thum size-home-thum wp-post-image" alt="はてなブログからWordpressに引っ越し" loading="lazy" /></figure><div class="meta inbox"><p class="ttl">2年間続けたはてなブログから、ワードプレスに引っ越した理由</p><span class="date gf">2018年1月21日</span></div></a></div>
</div>
<h2>はじめに</h2>
<p>すべてCSSのみで作ってあるので簡単に導入することができます。</p>
<p>IE（Internet Explorer）を使っている方は、もしかしたら上手く動かないボタンがあるかもしれません。とても気を使って作ったつもりですが、念のため。<span style="font-size: 80%;">そしてできる限りIEを使うのは止めましょう…まじで</span></p>
<p>スマホにも対応しているので、押して遊んでみてください！</p>
<h3 id="はてなブロガーの方へ">はてなブロガーの方へ</h3>
<p>はてなブロガーの方は、全て『コピペ一発』で大丈夫なはずです。今使っているテーマのCSSを上書きできるように細かく作りました。大丈夫なはず（多分ね）。</p>
<p>いつも通り「デザイン」「カスタムCSS」にペロっと貼ってくださいね！</p>
<h3>はてなブロガーではない方へ</h3>
<p>.entry-content .entry-see-more と書いてある部分をご自分のカスタマイズをしたい＜a＞タグのクラス名に変更すればそのまま使えるはずです。</p>
<h3 id="色変更について">色変更について</h3>
<p>すべてのボタンの色を簡単に変更できる箇所は<strong><span style="color: #ff5252;">赤色</span></strong>でコメントを書いています。自分の好きな色に変えたら楽しいと思います！</p>
<p><a href="http://html-color-codes.info/japanese/" target="_blank" rel="noopener">HTMLカラーコード</a></p>
<p>このサイトでカラーコードは分かります。</p>
<h3 id="角丸四角形について">角丸四角形について</h3>
<p>見本で普通の四角形と差を付けるために『<span style="color: #00796b;">30</span>』と数値を入れていますが、数値を小さくすれば、角は小さくなっていきます。お好みでどうぞ。</p>
<h3 id="ボタンサイズについて">ボタンサイズについて</h3>
<p>widthと書かれているものがボタンの横幅、heightが高さです。line-heightも高さ（height）と同じ数字を入れるといい感じです。</p>
<h2 id="四角形角丸四角形のボタン">四角形＋角丸四角形のボタン</h2>
<h3 id="ノーマルタイプ">ノーマルタイプ</h3>
<p class="test1">続きを読む</p>
<p class="test1 test2">続きを読む</p>
<pre>.entry-content .entry-see-more {
 padding:0;
 width: 150px;
 height: 50px;
 line-height: 50px;
 color: #FFF;<span style="color: #ff5252;">/*文字色*/</span>
 background-color:#9EB8F3;<span style="color: #ff5252;">/*背景色*/</span>
 font-size: 18px;
 font-weight: 500;
 text-align: center;
 display: inline-block;
 text-decoration: none;
-webkit-border-radius: 0px;<span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 border-radius: 0px; <span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 -webkit-transition: all .3s;
 transition: all .3s;
}
.entry-content .entry-see-more:hover {
 color: #FFF;<span style="color: #ff5252;">/*押した後の文字色*/</span>
 background-color: #EA878D;<span style="color: #ff5252;">/*押した後の背景色*/</span>
}</pre>
<h3 id="押すと線になるタイプ">押すと線になるタイプ</h3>
<p class="test3">続きを読む</p>
<p class="test3 test4">続きを読む</p>
<pre>.entry-content .entry-see-more {
 padding:0;
 width: 146px;
 height: 46px;
 line-height: 46px;
 color: #FFF;<span style="color: #ff5252;">/*文字色*/</span>
 background-color:#9EB8F3;<span style="color: #ff5252;">/*背景色*/</span>
 font-size: 18px;
 font-weight: 500;
 text-align: center;
 display: inline-block;
 text-decoration: none;
 -webkit-border-radius: 0px;<span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 border-radius: 0px; <span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 border: solid 2px #9EB8F3;<span style="color: #ff5252;">/*押す前の線の色（同色の枠線があります）*/</span>
 -webkit-transition: all .3s;
 transition: all .3s;
}
.entry-content .entry-see-more:hover {
 color: #9EB8F3;<span style="color: #ff5252;">/*押した後の文字色*/</span>
 background-color: transparent;
 border: solid 2px;
 border-color: #9EB8F3;<span style="color: #ff5252;">/*線の色*/</span>
}</pre>
<h3 id="線が点線になる">線が点線になる</h3>
<p class="test14">続きを読む</p>
<p class="test14 test15">続きを読む</p>
<pre>.entry-content .entry-see-more {
 padding:0;
 width: 150px;
 height: 50px;
 line-height: 50px;
 color: #9EB8F3;<span style="color: #ff5252;">/*文字色*/</span>
 background-color: transparent;<span style="color: #ff5252;">/*背景色なし*/</span>
 font-size: 18px;
 font-weight: 500;
 text-align: center;
 display: inline-block;
 text-decoration: none;
-webkit-border-radius: 0px;
 border-radius: 0px; 
 -webkit-transition: all .3s;
 transition: all .3s;
border: solid 2px;
 border-color: #9EB8F3;<span style="color: #ff5252;">/*線の色*/</span>
}
.entry-content .entry-see-more:hover {
 color: #9EB8F3;<span style="color: #ff5252;">/*押した後の文字色*/</span>
 background-color: transparent;
 border: dotted 2px;
 border-color: #9EB8F3;<span style="color: #ff5252;">/*点線の色*/</span>
}</pre>
<h3 id="立体タイプへこむ">立体タイプ（へこむ）</h3>
<p class="test5">続きを読む</p>
<p class="test5 test6">続きを読む</p>
<pre>.entry-content .entry-see-more {
 padding:0;
 width: 150px;
 height: 50px;
 line-height: 50px;
 color: #FFF;<span style="color: #ff5252;">/*文字色*/</span>
 background-color:#9EB8F3;<span style="color: #ff5252;">/*背景色*/</span>
 font-size: 18px;
 font-weight: 500;
 text-align: center;
 display: inline-block;
 text-decoration: none;
 -webkit-border-radius: 0px;<span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 border-radius: 0px; <span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 box-shadow: 0 4px 0 #8CA3D8;<span style="color: #ff5252;">/*影の色*/</span>
text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
}
.entry-content .entry-see-more:hover {
 color: #FFF;<span style="color: #ff5252;">/*押した後の文字色*/</span>
 background-color:#9EB8F3;<span style="color: #ff5252;">/*背景色*/</span>
 box-shadow: 1px 3px 1px #8CA3D8 inset;<span style="color: #ff5252;">/*押した後の影の色*/</span>
}</pre>
<h3 id="立体タイプでっぱる">立体タイプ（でっぱる）</h3>
<p class="test11">続きを読む</p>
<p class="test11 test12">続きを読む</p>
<pre>.entry-content .entry-see-more {
 padding:0;
 width: 150px;
 height: 50px;
 line-height: 50px;
 color: #FFF;<span style="color: #ff5252;">/*文字色*/</span>
 background-color:#9EB8F3;<span style="color: #ff5252;">/*背景色*/</span>
 font-size: 18px;
 font-weight: 500;
 text-align: center;
 display: inline-block;
 text-decoration: none;
 -webkit-border-radius: 0px;<span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 border-radius: 0px; <span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 box-shadow: 0 4px 0 #8CA3D8;<span style="color: #ff5252;">/*影の色*/</span>
 text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
 position: relative;
}
.entry-content .entry-see-more:hover {
 color: #FFF;<span style="color: #ff5252;">/*押した後の文字色*/</span>
 background-color:#9EB8F3;<span style="color: #ff5252;">/*背景色*/</span>
 box-shadow: 0px 8px 0px #8CA3D8;<span style="color: #ff5252;">/*押した後の影の色*/</span>
 top: -4px;
}
.test11:active {
 top: 3px;
 box-shadow: none;
}</pre>
<h3 id="横に大回転">横に大回転</h3>
<p class="test7">続きを読む</p>
<p class="test7 test8">続きを読む</p>
<pre>.entry-content .entry-see-more {
 padding:0;
 width: 150px;
 height: 50px;
 line-height: 50px;
 color: #FFF;<span style="color: #ff5252;">/*文字色*/</span>
 background-color:#9EB8F3;<span style="color: #ff5252;">/*背景色*/</span>
 font-size: 18px;
 font-weight: 500;
 text-align: center;
 display: inline-block;
 text-decoration: none;
 -webkit-border-radius: 0px;<span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 border-radius: 0px; <span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 transition: all 1s ease;
 -webkit-transition: all 1s ease;
}
.entry-content .entry-see-more:hover {
 color: #FFF;<span style="color: #ff5252;">/*押した後の文字色*/</span>
 background-color: #9EB8F3;<span style="color: #ff5252;">/*押した後の背景色*/</span>
 transform: rotate(720deg);<span style="color: #5ed361;">/*360で1回転、720で2回転…*/</span>
 -webkit-transform: rotate(720deg);<span style="color: #5ed361;">/*同じ数値を*/</span>
}</pre>
<h3 id="バイブレーションぶるぶる">バイブレーション（ぶるぶる）</h3>
<p class="test9">続きを読む</p>
<p class="test9 test10">続きを読む</p>
<pre>.entry-content .entry-see-more {
 padding:0;
 width: 150px;
 height: 50px;
 line-height: 50px;
 color: #FFF;<span style="color: #ff5252;">/*文字色*/</span>
 background-color: #9EB8F3;<span style="color: #ff5252;">/*背景色*/</span>
 font-size: 18px;
 text-align: center;
 display: inline-block;
 text-decoration: none;
 -webkit-border-radius: 0px;<span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 border-radius: 0px;<span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 font-weight: 500;
 transition: all 1s ease;
 -webkit-transition: all 1s ease;
}
.entry-content .entry-see-more:hover {
 color: #fff;<span style="color: #ff5252;">/*押した後の文字色*/</span>
 background-color: #9EB8F3;<span style="color: #ff5252;">/*押した後の背景色*/</span>
 animation: bulubulu 0.2s linear infinite;
 -webkit-animation: bulubulu 0.2s linear infinite;
}
@keyframes bulubulu {
0% { transform: translate(3px, 2px) rotate(0deg); }
10% { transform: translate(-2px, -3px) rotate(-1deg); }
20% { transform: translate(-4px, 0px) rotate(1deg); }
30% { transform: translate(0px, 3px) rotate(0deg); }
40% { transform: translate(2px, -2px) rotate(1deg); }
50% { transform: translate(-2px, 3px) rotate(-1deg); }
60% { transform: translate(-4px, 2px) rotate(0deg); }
70% { transform: translate(3px, 2px) rotate(-1deg); }
80% { transform: translate(-2px, -2px) rotate(1deg); }
90% { transform: translate(2px, 4px) rotate(0deg); }
100% { transform: translate(2px, -3px) rotate(-1deg); }
}</pre>
<h2 id="いろんな形">いろんな形</h2>
<h3 id="線が伸びる">線が伸びる</h3>
<p class="test13">続きを読む</p>
<pre>.entry-content .entry-see-more {
 padding:0;
 width: 150px;
 height: 50px;
 line-height: 50px;
 color: #9EB8F3;<span style="color: #ff5252;">/*文字色*/</span>
 background-color: transparent;<span style="color: #ff5252;">/*背景色なし*/</span>
 font-size: 18px;
 font-weight: 500;
 text-align: center;
 display: inline-block;
 text-decoration: none;
-webkit-border-radius: 0px;
 border-radius: 0px; 
 -webkit-transition: all .3s;
 transition: all .3s;
border-top: solid 2px;
border-bottom: solid 2px;
 border-color: #9EB8F3;<span style="color: #ff5252;">/*線の色*/</span>
}
.entry-content .entry-see-more:hover {
 color: #9EB8F3;<span style="color: #ff5252;">/*押した後の文字色*/</span>
 background-color: transparent;<span style="color: #ff5252;">/*押した後の背景色*/
</span>width: 300px;
}</pre>
<h3 id="丸が巨大化">丸が巨大化</h3>
<p class="test16">続きを読む</p>
<pre>.entry-content .entry-see-more {
 padding:0;
 width: 100px;
 height: 100px;
 line-height: 100px;
 color: #FFF;<span style="color: #ff5252;">/*文字色*/</span>
 background-color:#9EB8F3;<span style="color: #ff5252;">/*背景色*/</span>
 font-size: 14px;
 font-weight: 500;
 text-align: center;
 display: inline-block;
 text-decoration: none;
-webkit-border-radius: 50%;
 border-radius: 50%;
 -webkit-transition: all .5s;
 transition: all .5s;
}
.entry-content .entry-see-more:hover {
 color: #FFF;<span style="color: #ff5252;">/*押した後の文字色*/</span>
 background-color: #9EB8F3;<span style="color: #ff5252;">/*押した後の背景色*/</span>
width: 120px;
 height: 120px;
 line-height: 120px;
font-size: 18px;
}</pre>
<h3 id="丸が回転">丸が回転</h3>
<p class="test17">続きを読む</p>
<pre>.entry-content .entry-see-more {
 padding:0;
 width: 120px;
 height: 120px;
 line-height: 120px;
 color: #FFF;<span style="color: #ff5252;">/*文字色*/</span>
 background-color:#9EB8F3;<span style="color: #ff5252;">/*背景色*/</span>
 font-size: 15px;
 font-weight: 500;
 text-align: center;
 display: inline-block;
 text-decoration: none;
-webkit-border-radius: 50%;
 border-radius: 50%;
 -webkit-transition: all 1s ease;
 transition: all 1s ease;
}
.entry-content .entry-see-more:hover {
 color: #FFF;<span style="color: #ff5252;">/*押した後の文字色*/</span>
 background-color: #9EB8F3;<span style="color: #ff5252;">/*押した後の背景色*/
</span> transform: rotate(720deg);<span style="color: #5ed361;">/*360で1回転、720で2回転…*/
</span> -webkit-transform: rotate(720deg);<span style="color: #5ed361;">/*同じ数値を*/
</span>}</pre>
<h2 id="最後にもういっちょ">最後にもういっちょ</h2>
<h3 id="オートマチックグラデーションスペシャルサンダー">オートマチックグラデーションスペシャルサンダー</h3>
<p class="test18">続きを読む</p>
<p class="test18 test19">続きを読む</p>
<pre>.entry-content .entry-see-more {
 padding:0;
 width: 150px;
 height: 50px;
 line-height: 50px;
 color: #FFF;<span style="color: #ff5252;">/*文字色*/</span>
 background-color: #DA5555;<span style="color: #1464b3;">/*最初の背景色です*/</span>
 font-size: 18px;
 font-weight: 500;
 text-align: center;
 display: inline-block;
 text-decoration: none;
-webkit-border-radius: 0px;<span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 border-radius: 0px; <span style="color: #5ed361;">/*角丸はここを『30』*/</span>
 box-shadow: 1px 4px 1px #555;
 text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
 position: relative;
 animation: special 8s infinite;
 -webkit-animation: special 8s infinite;
}
@-webkit-keyframes special {
 0% { background-color: #DA5555; }<span style="color: #1464b3;">/*お好みの色をどうぞ*/</span>
 20% { background-color: #DA55C8; }
 40% { background-color: #7A55DA; }
 60% { background-color: #55B2DA; }
 80% { background-color: #55B2DA; }
 100% { background-color: #DAAF55; }
}
@keyframes special {
 0% { background-color: #DA5555; }<span style="color: #1464b3;">/*上と同じで*/</span>
 20% { background-color: #DA55C8; }
 40% { background-color: #7A55DA; }
 60% { background-color: #55B2DA; }
 80% { background-color: #55B2DA; }
 100% { background-color: #DAAF55; }
}
.entry-content .entry-see-more:active {
 top: 3px;
 box-shadow: none;
}
.entry-content .entry-see-more:hover {
 box-shadow: 1px 6px 1px #555;
 color: #FFF;
 top: -4px;
}</pre>
<h2 id="まとめ"> まとめ</h2>
<p>いやぁ、楽しかった！こんな多くのボタン作ることないからなー。すごい引き出しが増えた気がする。CSS3はやはり楽しい。</p>
<p>もしうまく動かないものがありましたら、TwitterのDMか、この記事にコメントをくれれば、頑張って治します。<br />
<div id="rinkerid3434" class="yyi-rinker-contents yyi-rinker-postid-3434 yyi-rinker-img-m yyi-rinker-catid-50 yyi-rinker-catid-30 ">
	<div class="yyi-rinker-box">
		<div class="yyi-rinker-image">
							<a href="https://af.moshimo.com/af/c/click?a_id=1059749&#038;p_id=170&#038;pc_id=185&#038;pl_id=4062&#038;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4797388544" rel="nofollow" class="yyi-rinker-tracking"  data-click-tracking="amazon_img 3434 いちばんよくわかるHTML5&#038;CSS3デザインきちんと入門 (Design&#038;IDEA)" data-vars-click-id="amazon_img 3434 いちばんよくわかるHTML5&#038;CSS3デザインきちんと入門 (Design&#038;IDEA)"><img src="https://m.media-amazon.com/images/I/51cDHqLOl3L._SL160_.jpg"  width="113" height="160" class="yyi-rinker-main-img" style="border: none;" loading="lazy"></a><img src="https://i.moshimo.com/af/i/impression?a_id=1059749&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" width="1" height="1" style="border:none;">					</div>
		<div class="yyi-rinker-info">
			<div class="yyi-rinker-title">
									<a href="https://af.moshimo.com/af/c/click?a_id=1059749&#038;p_id=170&#038;pc_id=185&#038;pl_id=4062&#038;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4797388544" rel="nofollow" class="yyi-rinker-tracking" data-click-tracking="amazon_title 3434 いちばんよくわかるHTML5&#038;CSS3デザインきちんと入門 (Design&#038;IDEA)" data-vars-amp-click-id="amazon_title 3434 いちばんよくわかるHTML5&#038;CSS3デザインきちんと入門 (Design&#038;IDEA)" >いちばんよくわかるHTML5&#038;CSS3デザインきちんと入門 (Design&#038;IDEA)</a><img src="https://i.moshimo.com/af/i/impression?a_id=1059749&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" width="1" height="1" style="border:none;">							</div>
			<div class="yyi-rinker-detail">
							<div class="credit-box">created by&nbsp;<a href="https://oyakosodate.com/rinker/" rel="nofollow noopener" target="_blank" >Rinker</a></div>
										<div class="price-box">
							<span title="" class="price">¥2,728</span>
															<span class="price_at">(2021/09/27 00:32:10時点&nbsp;Amazon調べ-</span><span title="価格および発送可能時期は表示された日付/時刻の時点のものであり、変更される場合があります。本商品の購入においては、購入の時点でAmazon.co.jpに表示されている価格および発送可能時期の情報が適用されます。">詳細)</span>
																	</div>
						</div>
			<ul class="yyi-rinker-links">
																	<li class="amazonkindlelink">
						<a href="https://www.amazon.co.jp/dp/B01MA6CQ7S??tag=ohamastyle-22&amp;index=blended&amp;linkCode=ure&amp;creative=6339" rel="nofollow" class="yyi-rinker-link yyi-rinker-tracking"  data-click-tracking="amazon_kindle 3434 いちばんよくわかるHTML5&#038;CSS3デザインきちんと入門 (Design&#038;IDEA)"  data-vars-amp-click-id="amazon_kindle 3434 いちばんよくわかるHTML5&#038;CSS3デザインきちんと入門 (Design&#038;IDEA)">Kindle</a>					</li>
								                    <li class="amazonlink">
						<a href="https://af.moshimo.com/af/c/click?a_id=1059749&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4797388544" rel="nofollow" class="yyi-rinker-link yyi-rinker-tracking"  data-click-tracking="amazon 3434 いちばんよくわかるHTML5&#038;CSS3デザインきちんと入門 (Design&#038;IDEA)"  data-vars-amp-click-id="amazon 3434 いちばんよくわかるHTML5&#038;CSS3デザインきちんと入門 (Design&#038;IDEA)">Amazon</a><img src="https://i.moshimo.com/af/i/impression?a_id=1059749&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" width="1" height="1" style="border:none;">					</li>
													<li class="rakutenlink">
						<a href="https://af.moshimo.com/af/c/click?a_id=1059736&amp;p_id=54&amp;pc_id=54&amp;pl_id=616&amp;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FHTML%2F%3Ff%3D1%26grp%3Dproduct" rel="nofollow" class="yyi-rinker-link yyi-rinker-tracking"  data-click-tracking="rakuten 3434 いちばんよくわかるHTML5&#038;CSS3デザインきちんと入門 (Design&#038;IDEA)"  data-vars-amp-click-id="rakuten 3434 いちばんよくわかるHTML5&#038;CSS3デザインきちんと入門 (Design&#038;IDEA)">楽天市場</a><img src="https://i.moshimo.com/af/i/impression?a_id=1059736&amp;p_id=54&amp;pc_id=54&amp;pl_id=616" width="1" height="1" style="border:none;">					</li>
													<li class="yahoolink">
						<a href="https://af.moshimo.com/af/c/click?a_id=1059739&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502&amp;url=https%3A%2F%2Fshopping.yahoo.co.jp%2Fsearch%3Fp%3DHTML" rel="nofollow" class="yyi-rinker-link yyi-rinker-tracking"  data-click-tracking="yahoo 3434 いちばんよくわかるHTML5&#038;CSS3デザインきちんと入門 (Design&#038;IDEA)"  data-vars-amp-click-id="yahoo 3434 いちばんよくわかるHTML5&#038;CSS3デザインきちんと入門 (Design&#038;IDEA)">Yahooショッピング</a><img src="https://i.moshimo.com/af/i/impression?a_id=1059739&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502" width="1" height="1" style="border:none;">					</li>
															</ul>
		</div>
	</div>
</div>

<style><!-- .test1 { width: 150px; height: 50px; line-height: 50px!important; color: #FFF; background-color: #9EB8F3; font-size: 18px; text-align: center; display: inline-block; text-decoration: none; -webkit-border-radius: 0; border-radius: 0; font-weight: 500; -webkit-transition: all .3s; transition: all .3s; } .test1:hover { color: #fff; background-color: #EA878D; } .test2 { -webkit-border-radius: 30px; border-radius: 30px; } .test3 { width: 146px; height: 46px; line-height: 46px!important; color: #FFF; background-color: #9EB8F3; font-size: 18px; text-align: center; display: inline-block; text-decoration: none; -webkit-border-radius: 0; border-radius: 0; font-weight: 500; border: solid 2px #9EB8F3; -webkit-transition: all .3s; transition: all .3s; } .test3:hover { color: #9EB8F3; background-color: transparent; border: solid 2px #9EB8F3; } .test4 { -webkit-border-radius: 30px; border-radius: 30px; } .test5 { width: 150px; height: 50px; line-height: 50px!important; color: #FFF; background-color: #9EB8F3; font-size: 18px; text-align: center; display: inline-block; text-decoration: none; -webkit-border-radius: 0; border-radius: 0; font-weight: 500; box-shadow: 0 4px 0 #8CA3D8; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); } .test5:hover { box-shadow: 1px 3px 1px #8CA3D8 inset; color: #FFF; background-color:#9EB8F3; 　 } .test6 { -webkit-border-radius: 30px; border-radius: 30px; } .test7 { width: 150px; height: 50px; line-height: 50px!important; color: #FFF; background-color: #9EB8F3; font-size: 18px; text-align: center; display: inline-block; text-decoration: none; -webkit-border-radius: 0; border-radius: 0; font-weight: 500; transition: all 1s ease; -webkit-transition: all 1s ease; } .test7:hover { color: #fff; background-color: #9EB8F3; transform: rotate(720deg); -webkit-transform: rotate(720deg); } .test8 { -webkit-border-radius: 30px; border-radius: 30px; } .test9 { width: 150px; height: 50px; line-height: 50px!important; color: #FFF; background-color: #9EB8F3; font-size: 18px; text-align: center; display: inline-block; text-decoration: none; -webkit-border-radius: 0; border-radius: 0; font-weight: 500; transition: all 1s ease; -webkit-transition: all 1s ease; } .test10 { -webkit-border-radius: 30px; border-radius: 30px; } .test9:hover { color: #fff; background-color: #9EB8F3; animation: bulubulu 0.2s linear infinite; -webkit-animation: bulubulu 0.2s linear infinite; } @keyframes bulubulu { 0% { transform: translate(3px, 2px) rotate(0deg); } 10% { transform: translate(-2px, -3px) rotate(-1deg); } 20% { transform: translate(-4px, 0px) rotate(1deg); } 30% { transform: translate(0px, 3px) rotate(0deg); } 40% { transform: translate(2px, -2px) rotate(1deg); } 50% { transform: translate(-2px, 3px) rotate(-1deg); } 60% { transform: translate(-4px, 2px) rotate(0deg); } 70% { transform: translate(3px, 2px) rotate(-1deg); } 80% { transform: translate(-2px, -2px) rotate(1deg); } 90% { transform: translate(2px, 4px) rotate(0deg); } 100% { transform: translate(2px, -3px) rotate(-1deg); } } .test11 { width: 150px; height: 50px; line-height: 50px!important; color: #FFF; background-color: #9EB8F3; font-size: 18px; text-align: center; display: inline-block; text-decoration: none; -webkit-border-radius: 0; border-radius: 0; font-weight: 500; box-shadow: 0 4px 0 #8CA3D8; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); position: relative; } .test11:hover { box-shadow: 0px 8px 0px #8CA3D8; color: #FFF; background-color: #9EB8F3; top: -4px; } .test11:active { top: 3px; box-shadow: none; } .test12 { -webkit-border-radius: 30px; border-radius: 30px; } .test13 { width: 150px; height: 50px; line-height: 50px!important; color: #9EB8F3; font-size: 18px; text-align: center; display: inline-block; text-decoration: none; -webkit-border-radius: 0; border-radius: 0; font-weight: 500; -webkit-transition: all .3s; transition: all .3s; background-color: transparent; border-top: solid 2px; border-bottom: solid 2px; border-color: #9EB8F3; } .test13:hover { color: #9EB8F3; background-color: transparent; width: 300px; } .test14 { width: 150px; height: 50px; line-height: 50px!important; color: #9EB8F3; font-size: 18px; text-align: center; display: inline-block; text-decoration: none; -webkit-border-radius: 0; border-radius: 0; font-weight: 500; -webkit-transition: all .5s; transition: all .5s; background-color: transparent; border: solid 2px; border-color: #9EB8F3; } .test14:hover { color: #9EB8F3; background-color: transparent; border: dotted 2px; } .test15 { -webkit-border-radius: 30px; border-radius: 30px; } .test16 { width: 100px; height: 100px; line-height: 100px!important; color: #FFF; font-size: 14px; text-align: center; display: inline-block; text-decoration: none; -webkit-border-radius: 50%; border-radius: 50%; font-weight: 500; -webkit-transition: all .5s; transition: all .5s; background-color: #9EB8F3; } .test16:hover { color: #FFF; background-color: #9EB8F3; width: 120px; height: 120px; line-height: 120px; font-size: 18px; } .test17 { width: 120px; height: 120px; line-height: 120px!important; color: #FFF; font-size: 15px; text-align: center; display: inline-block; text-decoration: none; -webkit-border-radius: 50%; border-radius: 50%; font-weight: 500; -webkit-transition: all 1s ease; transition: all 1s ease; background-color: #9EB8F3; } .test17:hover { color: #FFF; background-color: #9EB8F3; transform: rotate(720deg); -webkit-transform: rotate(720deg); } .test18 { width: 150px; height: 50px; line-height: 50px!important; color: #FFF; background-color: #DA5555; font-size: 18px; text-align: center; display: inline-block; text-decoration: none; -webkit-border-radius: 0; border-radius: 0; font-weight: 500; box-shadow: 1px 4px 1px #555; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); position: relative; animation: special 8s infinite; -webkit-animation: special 8s infinite; } @-webkit-keyframes special { 0% { background-color: #DA5555; } 20% { background-color: #DA55C8; } 40% { background-color: #7A55DA; } 60% { background-color: #55B2DA; } 80% { background-color: #55B2DA; } 100% { background-color: #DAAF55; } } @keyframes special { 0% { background-color: #DA5555; } 20% { background-color: #DA55C8; } 40% { background-color: #7A55DA; } 60% { background-color: #55B2DA; } 80% { background-color: #55B2DA; } 100% { background-color: #DAAF55; } } .test18:hover { box-shadow: 1px 6px 1px #555; color: #FFF; top: -4px; } .test18:active { top: 3px; box-shadow: none; } .test19 { -webkit-border-radius: 30px; border-radius: 30px; } --></style>The post <a href="https://ohama-style.com/entry/blog-custom11/">【保存版】簡単コピペの"続きを読む"ボタンデザイン集【はてなブログカスタムVol.11】</a> first appeared on <a href="https://ohama-style.com">OHAMAstyle</a>.]]></content:encoded>
					
					<wfw:commentRss>https://ohama-style.com/entry/blog-custom11/feed/</wfw:commentRss>
			<slash:comments>9</slash:comments>
		
		
			</item>
		<item>
		<title>直帰率対策！スマホのヘッダーに注目記事を【はてなブログカスタムVol.10】</title>
		<link>https://ohama-style.com/entry/blog-custom10/</link>
					<comments>https://ohama-style.com/entry/blog-custom10/#comments</comments>
		
		<dc:creator><![CDATA[ジョージ]]></dc:creator>
		<pubDate>Sat, 23 Jan 2016 23:30:00 +0000</pubDate>
				<category><![CDATA[はてなブログ]]></category>
		<category><![CDATA[ブログ]]></category>
		<category><![CDATA[はてなブログカスタム]]></category>
		<guid isPermaLink="false">https://ohama-style.com/entry/blog-custom10/</guid>

					<description><![CDATA[<p>こんばんは。直帰率83％のブログを運営しております、ジョージです。そうなんです、このブログは2016年1月23日現在、全期間の直帰率83%となっています。 ブログサイトの平均直帰率は60%くらいだった気がするので、このブ...</p>
The post <a href="https://ohama-style.com/entry/blog-custom10/">直帰率対策！スマホのヘッダーに注目記事を【はてなブログカスタムVol.10】</a> first appeared on <a href="https://ohama-style.com">OHAMAstyle</a>.]]></description>
										<content:encoded><![CDATA[<p>こんばんは。直帰率83％のブログを運営しております、ジョージです。そうなんです、このブログは2016年1月23日現在、全期間の直帰率83%となっています。</p>
<p>ブログサイトの平均直帰率は60%くらいだった気がするので、このブログの数値はヒドいってことになりますね。まだ記事少ないし、色んな内容の記事を書きすぎだもんね。たいして面白くもないし、続きも気にならないし、眼鏡だし。</p>
<p>でもね、僕は文章がダメでもCSSを少しイジれる！なのでWebデザインの力で直帰率を下げていこうではないか！と考えました。（ポジティブ）</p>
<blockquote><p><strong style="color: #222222; font-family: arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 25.6px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">直帰率</strong><span style="color: #222222; font-family: arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 25.6px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;">とは、1 ページしか閲覧されなかったセッション（ユーザーが閲覧を始めたページから他のページに移動することなくサイトを離脱したセッション）の割合です。<a style="color: #1464b3; font-size: 80%;" href="https://support.google.com/analytics/answer/1009409?hl=ja">アナリティクスガイドラインより</a></span></p></blockquote>
<p>本題に移ります。</p>
<h2>現状の確認とカスタムのプラン</h2>
<h3>現状の問題点</h3>
<img loading="lazy" class="alignnone size-full wp-image-2509" src="https://ohama-style.com/wp-content/uploads/2016/01/20160123211305.png" alt="" width="321" height="418" srcset="https://ohama-style.com/wp-content/uploads/2016/01/20160123211305.png 321w, https://ohama-style.com/wp-content/uploads/2016/01/20160123211305-230x300.png 230w" sizes="(max-width: 321px) 100vw, 321px" />
<p>僕は一番上に『トグルメニュー』を設置していて、タップするとカテゴリが表示されます。その下は普通にヘッダーと記事本文があります。</p>
<p>この間メニューを設置したばかりなのですが、あまり押されてない気がするんですよね。僕も他サイトで余りトグルメニューを使わないですからね。面倒くさいから（素直な気持ち）。</p>
<p>でもカテゴリーが増える可能性もあるので、トグルメニューは止められない。</p>
<p>そこで僕は考えました。</p>
<p>注目記事と最新記事だけ別のボタンを作ろうと（決心）。</p>
<h3>カスタムプラン</h3>
<img class="hatena-fotolife" title="f:id:george-gogo:20160123213816g:plain" src="https://ohama-style.com/wp-content/uploads/2018/02/20160123213816.gif" alt="f:id:george-gogo:20160123213816g:plain" />
<p>これです。トグルメニューとは別にボタンを作ろうと。</p>
<p>記事ページの下にも注目記事一覧がありますが、1%でも直帰率を下げるために上部にも設置。でも邪魔にならないように。あくまで自然に。優しく、微笑むように…。（こういう風にふざけているのも直帰率の問題の原因かも。（しょぼん））</p>
<h2>みんな大好きコピペ一発！</h2>
<p>これを<strong>「デザイン」「スマホマーク」「ヘッダー」「タイトル下」</strong>にコピペで！PCの方にやってもいいけど、それならメニューを付けた方が良いと思います。</p>
<h3>HTML</h3>
<pre data-lang="" data-unlink="">&lt;!--記事ボタンHTML--&gt;
&lt;div class="header-btn"&gt;
&lt;div class="btn-content"&gt;
&lt;!--最新記事メニュー（左側）--&gt;
&lt;label class="saishin" for="btn-cap1"&gt;
&lt;a href="<span style="color: #d32f2f;">最新記事へのリンク</span>"&gt;<span style="color: #1464b3;">最新記事</span>&lt;/a&gt; &lt;/label&gt;

&lt;!--人気記事メニュー（右側）--&gt;
&lt;label class="ninki" for="btn-cap2"&gt;<span style="color: #1464b3;">人気記事</span>&lt;/label&gt;
&lt;input id="btn-cap2" type="checkbox" /&gt;
&lt;div class="btn-cont"&gt;
&lt;div class="hatena-module hatena-module-entries-access-ranking" data-count="5"
data-display_entry_category="0" data-display_entry_image="1" data
-display_entry_image_size_width="100" data
-display_entry_image_size_height="100" data-display_entry_body_length="0"
data-display_entry_date="0" data-display_bookmark_count="0" data
-source="access"&gt;&lt;div class="hatena-module-body"&gt;
&lt;/div&gt;
&lt;!--btn-cont--&gt;&lt;/div&gt;
&lt;!--hatena-module--&gt;&lt;/div&gt;
&lt;!--btn-content--&gt;&lt;/div&gt;
&lt;!--header-btn--&gt;&lt;/div&gt;
</pre>
<p>赤文字の<span style="color: #d32f2f;">最新記事へのリンク</span>は、最新記事ページのURLをご自分のサイトからコピーして貼り付けてください。人気記事の方は何にもしないでオッケー。</p>
<p><span style="color: #1464b3;">青文字</span>はボタンに表示される文字です。「NEW!」とか「POPULAR!」とかお好きにどうぞ。</p>
<h3>ちょい解説（飛ばしてよし）</h3>
<p>最新記事はもともとURLを持ったページがあるので普通にリンクで飛ばします。</p>
<p>注目記事は専用URLが存在しないので、はてなのサイドバーやフッターに使用されているモジュールを使用しました。そのためにアコーディオンスタイルにするしかありません。</p>
<h3>CSS</h3>
<p><span style="font-weight: bold; color: #3d3f44; font-family: 'Helvetica Neue', Helvetica, Arial, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif; font-size: 16px; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">同じく</span><strong style="font-weight: bold; color: #3d3f44; font-family: 'Helvetica Neue', Helvetica, Arial, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif; font-size: 16px; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">「デザイン」「スマホマーク」「ヘッダー」「タイトル下」</strong><span style="color: #3d3f44; font-family: 'Helvetica Neue', Helvetica, Arial, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;">にコピペで！</span></p>
<pre data-lang="" data-unlink="">/***************最新記事****************/
.section {
width: 100%;
margin-left: 0;
margin-right: 0;
}
.header-btn {
width: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
.header-btn .btn-content {
margin: 0;
}
.header-btn input {
display: none;
}
.header-btn label {
display: block;
cursor: pointer;
width: 48%;
float: left;
padding-top: 8px;
padding-bottom: 8px;
margin-left:1%;
margin-right:1%;
color: #fff;<span style="color: #ff5252;">/**ボタン文字色**/</span>
font-weight: bold;
text-align: center;
}
.saishin{
background-color: #CC90A8;<span style="color: #d32f2f;">/**最新記事の背景色**/
</span>}
.ninki{
background-color: #90A7CC;<span style="color: #1464b3;">/**人気記事の背景色**/
</span>}
.header-btn label:hover {
background: #ddd;<span style="color: #286f2c;">/**ボタンタップ後のボタンのの背景色**/</span>
}
.header-btn .btn-cont {
transition: 0.2s;
height: 0;
overflow: hidden;
background: #ddd;<span style="color: #673ab7;">/**ボタンタップ後の一覧の背景色**/</span>
padding: 0 10px;
}
.header-btn input:checked + .btn-cont {
height: auto;
padding: 10px;
}
</pre>
<p>僕がコメントを入れたところは色をご自由に変更してください！</p>
<p><span style="color: #1464b3;"><a style="color: #1464b3;" href="http://html-color-codes.info/japanese/">HTMLカラーコード</a></span></p>
<h2>ちょっと解説（飛ばしてよし）</h2>
<p>CSSだけでアコーディオンを作る時の基本的なやり方です。見えないチェックボックスのオンオフで開閉します。</p>
<p>これを使えばトグルメニューもCSSだけでできます（気合いが必要）。僕は面倒だからJsを使ってますが、そのうち作ります。</p>
<h2>まとめ</h2>
<p>ずっとこれをやりたくて色々考えていたのですが、朝に半月さんの記事を読んでひらめきました。感謝。</p>
<p><span style="color: #1464b3;"><a style="color: #1464b3;" href="http://moonnote.hateblo.jp/entry/customize-innocent-recommend-entries">はてなブログテーマ「Innocent」に「おすすめ記事リスト機能」を追加しました &#8211; MoonNote</a></span></p>
<p>でも直帰率下がるかな？下がると良いなぁ！まだまだカスタム記事あるのでご覧あれー！</p>The post <a href="https://ohama-style.com/entry/blog-custom10/">直帰率対策！スマホのヘッダーに注目記事を【はてなブログカスタムVol.10】</a> first appeared on <a href="https://ohama-style.com">OHAMAstyle</a>.]]></content:encoded>
					
					<wfw:commentRss>https://ohama-style.com/entry/blog-custom10/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>はてなブログの&#034;読者になる&#034;のカスタム【ブログカスタムVol.7】</title>
		<link>https://ohama-style.com/entry/2015/12/26/_%E3%81%AF%E3%81%A6%E3%81%AA%E3%83%96%E3%83%AD%E3%82%B0%E3%81%AE%E8%AA%AD%E8%80%85%E3%81%AB%E3%81%AA%E3%82%8B%E3%81%AE%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%80%90%E3%83%96/</link>
					<comments>https://ohama-style.com/entry/2015/12/26/_%E3%81%AF%E3%81%A6%E3%81%AA%E3%83%96%E3%83%AD%E3%82%B0%E3%81%AE%E8%AA%AD%E8%80%85%E3%81%AB%E3%81%AA%E3%82%8B%E3%81%AE%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%80%90%E3%83%96/#comments</comments>
		
		<dc:creator><![CDATA[ジョージ]]></dc:creator>
		<pubDate>Fri, 25 Dec 2015 16:36:44 +0000</pubDate>
				<category><![CDATA[はてなブログ]]></category>
		<category><![CDATA[ブログ]]></category>
		<category><![CDATA[はてなブログカスタム]]></category>
		<guid isPermaLink="false">https://ohama-style.com/entry/2015-12-26-_%e3%81%af%e3%81%a6%e3%81%aa%e3%83%96%e3%83%ad%e3%82%b0%e3%81%ae%e8%aa%ad%e8%80%85%e3%81%ab%e3%81%aa%e3%82%8b%e3%81%ae%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%80%90%e3%83%96/</guid>

					<description><![CDATA[<p>最近ブログの読者になってくれる方が増えてきてとても感謝しています！ その読者になっていただくための、&#8221;読者になるボタン&#8221;が猛烈にダサくて、小さくて、押しづらいのでカスタムしていこうと思います！ ま...</p>
The post <a href="https://ohama-style.com/entry/2015/12/26/_%E3%81%AF%E3%81%A6%E3%81%AA%E3%83%96%E3%83%AD%E3%82%B0%E3%81%AE%E8%AA%AD%E8%80%85%E3%81%AB%E3%81%AA%E3%82%8B%E3%81%AE%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%80%90%E3%83%96/">はてなブログの"読者になる"のカスタム【ブログカスタムVol.7】</a> first appeared on <a href="https://ohama-style.com">OHAMAstyle</a>.]]></description>
										<content:encoded><![CDATA[<p>最近ブログの読者になってくれる方が増えてきてとても感謝しています！</p>
<p>その読者になっていただくための、&#8221;読者になるボタン&#8221;が<strong>猛烈にダサくて、小さくて、押しづらい</strong>のでカスタムしていこうと思います！</p>
<div class="supplement normal">この記事は大変古い記事になっています。下記記事をご覧ください。</div>
<div class="related_article cf"><a href="https://ohama-style.com/entry/blog-custom15/"><figure class="eyecatch thum"><img width="486" height="290" src="https://ohama-style.com/wp-content/uploads/2016/03/20160303153158-486x290.png" class="attachment-home-thum size-home-thum wp-post-image" alt="" loading="lazy" /></figure><div class="meta inbox"><p class="ttl">コピペOK！読者になるボタンやSNSフォローボタンのカスタムCSS</p><span class="date gf">2016年3月3日</span></div></a></div>
<h2>まずは現状</h2>
<img loading="lazy" class="alignnone size-full wp-image-2396" src="https://ohama-style.com/wp-content/uploads/2015/12/20151225214730.png" alt="" width="139" height="47" />
<p>これです。<br />
<strong>すごい小さいし、猛烈にダサいし押しづらい</strong>ですよね（2回目）。<br />
このボタンを大きく、カッコよく、押しやすくしていきまーす。</p>
<h2>なにこれ面倒臭い</h2>
<p>コードを見てみると中々面倒なことになっているではないか。<br />
そっか、読者数を表示するために＜iframe＞を使っているのか。こいつはやっかいだぜ。</p>
<p>ならばもう読者数は諦めよう（一分で決断）。<br />
リンクだけコピーしてボタン自体を自作しちゃいます！</p>
<h2>リンク先URL</h2>
<p>各自、はてなブログの【設定】の下の方にある【読者になるボタン】のコーナーに行きましょう！<br />
そこにゴニョゴニョ長い英語が書いてありますよね？</p>
<img class="hatena-fotolife" title="f:id:george-gogo:20151225222916p:plain" src="https://ohama-style.com/wp-content/uploads/2018/02/20151225222916.png" alt="f:id:george-gogo:20151225222916p:plain" />
<pre data-unlink="">http://blog.hatena.ne.jp/はてなID/トップページURL/subscribe</pre>
<p>これを使います！自分の設定からコピーすると早いですよ。</p>
<p>HTMLを書く</p>
<pre data-unlink="">&lt;a class="hate_btn" href="さっきのURL"&gt;読者になる&lt;/a&gt;</pre>
<p>これでHTMLは良し。<br />
「読者になる」は好きな言葉に変えてオッケーですよ！</p>
<h2>CSSで装飾を</h2>
<p>さて、自らハードルを上げた<span style="color: #3d3f44; font-family: 'Helvetica Neue', Helvetica, Arial, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"><strong>大きく、カッコよく、押しやすいボタン</strong>にしていきましょう。（どうしよう、ダサいって言われたら）</span></p>
<p><span style="color: #3d3f44; font-family: 'Helvetica Neue', Helvetica, Arial, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;">ボタン作りで重要なのは直感で読者が何のボタンか分かることが重要です。</span></p>
<p><span style="color: #3d3f44; font-family: 'Helvetica Neue', Helvetica, Arial, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;">Facebookなら <strong><span style="color: #1464b3;">ブルー</span></strong><br />
Twitterなら<strong><span style="color: #2196f3;">ブルー</span></strong>（同じじゃねえか）<br />
ミクシィなら<span style="color: #dd830c;"><strong>オレンジ</strong></span></span></p>
<p>って具合にみんなすぐに分かりますよね？</p>
<p>じゃあ<strong>&#8220;はてな&#8221;</strong>の色は？</p>
<p><span style="font-size: 150%; color: #2196f3;"><strong>ブルーかよ。。。</strong></span></p>
<p>なし、この説明なし。好きな色にします（みんな青好きすぎだろ）。</p>
<p>超長いです。</p>
<pre>/***読者ボタン****/
.hatena_btn {
font-size: 110%;
    display: block;
width: 200px;
height: 54px;
text-align: center;
text-decoration: none;
    outline: none;
background-color: #555;
border: 2px solid #555;
color: #fff ;
line-height: 50px;
margin-bottom: 40px;
margin-left: auto;
margin-right:auto;
}
.hate_btn:hover {
background-color: #fff;/*押した後の背景色*/
border-color: #7694DA;/*押した後の枠線の色*/
color: #7694DA;/*押した後の文字色*/
}
</pre>
<h2> で、完成系がこれです。</h2>
<p><a class="hatena_btn" href="#">読者になる</a></p>
<p>ちょいとマウス乗せてみてください？（そして押すのも歓迎）</p>
<p>ブルーになるんかーーーい。</p>
<h2>まとめ</h2>
<p>もはや解説はいりませんね。説明が難しすぎます。すみません。<br />
でもこのボタンをイイなと思ってくれる、この記事を見てくれたかたは、<br />
ぜひ！好きな色に変えて使ってみてください！！（変えなくても良し）</p>
<p>カラーコードはこのサイトが便利ですぞ。</p>
<p><iframe loading="lazy" class="embed-card embed-webcard" style="display: block; width: 100%; height: 155px; max-width: 500px; margin: 10px 0px;" title="HTMLカラーコード" src="//hatenablog-parts.com/embed?url=http%3A%2F%2Fhtml-color-codes.info%2Fjapanese%2F" width="300" height="150" frameborder="0" scrolling="no"></iframe><cite class="hatena-citation"><a href="http://html-color-codes.info/japanese/">html-color-codes.info</a></cite></p>The post <a href="https://ohama-style.com/entry/2015/12/26/_%E3%81%AF%E3%81%A6%E3%81%AA%E3%83%96%E3%83%AD%E3%82%B0%E3%81%AE%E8%AA%AD%E8%80%85%E3%81%AB%E3%81%AA%E3%82%8B%E3%81%AE%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%80%90%E3%83%96/">はてなブログの"読者になる"のカスタム【ブログカスタムVol.7】</a> first appeared on <a href="https://ohama-style.com">OHAMAstyle</a>.]]></content:encoded>
					
					<wfw:commentRss>https://ohama-style.com/entry/2015/12/26/_%E3%81%AF%E3%81%A6%E3%81%AA%E3%83%96%E3%83%AD%E3%82%B0%E3%81%AE%E8%AA%AD%E8%80%85%E3%81%AB%E3%81%AA%E3%82%8B%E3%81%AE%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%80%90%E3%83%96/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
