Skip to content

Instantly share code, notes, and snippets.

<?php
function hello_dolly_get_lyric() {
/** These are the lyrics to Hello Dolly */
$lyrics = "Hello, Dolly
  Well, hello, Dolly
  It's so nice to have you back where you belong
  You're lookin' swell, Dolly
  I can tell, Dolly
  You're still glowin', you're still crowin'
  You're still goin' strong
@Josh00
Josh00 / gist_WP.css
Last active February 15, 2018 12:29
 
/*gistの行番号表示調整*/
 .gist-file table { table-layout: auto; }
<?php
function hello_dolly_get_lyric() {
/** These are the lyrics to Hello Dolly */
$lyrics = "息を切らしてさ 駆け抜けた道を振り返りはしないのさ
     ただ未来だけを見据えながら放つ願い
     カンナみたいにね 命を削ってさ 情熱を灯しては
     また光と影を連れて進むんだ
     大きな声で声を枯らして愛されたいと歌っているんだよ
.table-of-contents{
display: none;
}
.show-area{
display: inline-block;
padding: 10px;
border-radius: 5px;
cursor: pointer;
margin-bottom: 0;
color: blue;
@Josh00
Josh00 / Hatena_top_page20180124
Last active January 23, 2018 05:22
Hatena_トップページの記事一覧表示 タイトルとサムネイル画像だけ表示
<style>
/* 記事一覧本文、更新時間非表示 */
.entry-list .entry-content p, .entry-list .entry-footer {
display: none;
}
/* 日付とタイトルを右に */
.list-entry-header {
float: right;
/* ### 記事更新何日前非表示 ### */
「デザイン」→「スマホ」→「ヘッダ」→「タイトル下」
span.entry-footer-time {
display: none;
}
/*### ここから記事タイトル文字の装飾 ###*/
.entry-title {
position: relative;
padding-left: 25px;
}
.entry-title:before {
position: absolute;
content: '';
「デザイン」→「スマホ」→「記事」→「上」
<style type="text/css">
/* 見出し各種 */
.entry-content h3 {
padding: 4px 10px;
color: #3D3F44;
background: #f3f3f3;
border-left: 8px solid #3f3f3f;
margin:60px 0 15px 0;
}
<style type="text/css">
/*### 記事ページの文字の大きさや余白など細かい設定 ###*/
.entry-title {
margin: 0.3em 0 0.1em; /* タイトル周りの余白 */
font-size: 17px; /* 記事タイトルの文字の大きさ */
}
.entry-header {
position: relative;
margin-top: 0.7em; /* タイトル上の余白 */
}
<style type="text/css">
/* ### 日付(〇日前)の囲みとアイコンの追加 ### */
.list-entry-article .entry-footer-time {
position: relative;
color: #ffffff; /*文字色*/
background: #41AC88; /*日付の背景色*/
font-weight:700; /*文字の太さ*/
padding: 3px 10px 3px 23px;/*日付の文字まわりのスペース*/
}
.list-entry-article .entry-footer-time:before{