Last active
July 23, 2017 16:35
-
-
Save piyo7/029a1ce1612a07d5de4c6dab63d7910e to your computer and use it in GitHub Desktop.
ゆるふわチャット小説をGitHubで構築しましたので╭( ・ㅂ・)و ̑ 〜初めてのフロントエンド編〜 ref: http://qiita.com/piyo7/items/f9217292fd8224f7e9f2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.voice-left, .voice-right { | |
border-radius: 1em; | |
} | |
.voice-left { | |
border-top-left-radius: 0; | |
} | |
.voice-right { | |
border-top-right-radius: 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.telephone { | |
border: 2px solid #808080; | |
border-radius: 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.char05 { background-color: hsl(330, 100%, 85%); } | |
.char06 { background-color: hsl(210, 50%, 85%); } | |
.char07 { background-color: hsl( 0, 100%, 85%); } | |
.char08 { background-color: hsl(255, 75%, 85%); } | |
.char09 { background-color: hsl( 90, 100%, 85%); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font-family: sans-serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font-family: arial, "Mplus 1p", sans-serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font-family: arial, メイリオ, "Mplus 1p", sans-serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="chapter hoverable"> | |
<div class="badges"> | |
<div class="badge char06"></div> | |
<div class="badge char01"></div> | |
<div class="badge char05"></div> | |
<div class="badge char02"></div> | |
<div class="badge char07"></div> | |
</div> | |
<p><a href="chapter-02">灼け焦がれた涙</a></p> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="chapter hoverable"> | |
<div class="badges"> | |
<div class="badge char06"></div> | |
<div class="badge char01"></div> | |
<div class="badge char05"></div> | |
<div class="badge char02"></div> | |
<div class="badge char07"></div> | |
</div> | |
<p><a href="chapter-02">灼け焦がれた涙</a></p> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.hoverable').on('mouseenter', function () { | |
$(this).addClass('hover'); | |
}).on('mouseleave', function () { | |
$(this).removeClass('hover'); | |
}).on('touchstart', function () { | |
$(this).addClass('hover'); | |
$('.hoverable').not(this).removeClass('hover'); | |
}); | |
$(window).on('scroll', function () { | |
$('.hoverable').removeClass('hover'); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="viewport" content="width=480"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.hoverable').on('mouseenter', function () { | |
$(this).addClass('hover'); | |
}).on('mouseleave', function () { | |
$(this).removeClass('hover'); | |
}).on('touchstart', function () { | |
$(this).addClass('hover'); | |
$('.hoverable').not(this).removeClass('hover'); | |
}); | |
$(window).on('scroll', function () { | |
$('.hoverable').removeClass('hover'); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="viewport" content="width=480"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment