Skip to content

Instantly share code, notes, and snippets.

@takapiece
Last active May 25, 2018 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takapiece/00e75239d4d3b88ffbe10c1dc2a77bd2 to your computer and use it in GitHub Desktop.
Save takapiece/00e75239d4d3b88ffbe10c1dc2a77bd2 to your computer and use it in GitHub Desktop.
はてな用吹き出しのCSS
/*はてな用吹き出しのCSS */
.entry-content .l-fuki,
.entry-content .r-fuki {
position: relative;
width: 80%;
box-sizing: border-box;
-webkit-box-sizing: border-box;
padding: 20px;
border-radius: 6px;
border: 2px solid #999;
box-shadow: 1px 1px 5px #aaa;
background-color: #fff;
z-index: 1;
}
.entry-content .l-fuki {
margin: 20px 20% 40px 0;
}
.entry-content .r-fuki {
margin: 20px 0 40px 19%;
}
.entry-content .l-fuki::before,
.entry-content .r-fuki::before {
position: absolute;
content: "";
top: 16px;
width: 10px;
height: 10px;
border-right: 2px solid #999;
border-bottom: 2px solid #999;
background-color: #fff;
z-index: 2;
}
.entry-content .l-fuki::before {
right: -7px;
transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
}
.entry-content .r-fuki::before {
left: -7px;
transform: rotate(135deg);
-webkit-transform: rotate(135deg);
}
.entry-content .l-fuki::after,
.entry-content .r-fuki::after {
position: absolute;
content: "";
width: 80px;
height: 80px;
top: -10px;
border-radius: 40px;
border: 3px solid #fff;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
box-shadow: 1px 1px 5px #aaa;
}
.entry-content .l-fuki::after {
right: -110px;
}
.entry-content .r-fuki::after {
left: -110px;
}
@media screen and (max-width: 620px) {
.entry-content .l-fuki,
.entry-content .r-fuki {
width: 70%
}
.entry-content .l-fuki {
margin-right: 30%;
}
.entry-content .r-fuki {
margin-left: 30%;
}
}
@media screen and (max-width: 478px) {
.entry-content .l-fuki::after,
.entry-content .r-fuki::after {
width: 60px;
height: 60px;
border-radius: 30px;
}
.entry-content .l-fuki::after {
right: -84px;
}
.entry-content .r-fuki::after {
left: -84px;
}
}
.taka::after {background-image:url(http://cdn-ak.f.st-hatena.com/images/fotolife/t/takapiece/20161130/20161130120827.jpg?1480475345);}
.mayu::after {background-image:url(http://cdn-ak.f.st-hatena.com/images/fotolife/t/takapiece/20161130/20161130120826.jpg?1480475409);}
.ryo::after {background-image:url(http://cdn-ak.f.st-hatena.com/images/fotolife/t/takapiece/20161130/20161130141251.jpg?1480482828);}
.aya::after {background-image:url(http://img.f.hatena.ne.jp/images/fotolife/t/takapiece/20170419/20170419132333.png);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment