Skip to content

Instantly share code, notes, and snippets.

@clngn
Created June 24, 2013 15:38
Show Gist options
  • Save clngn/5850958 to your computer and use it in GitHub Desktop.
Save clngn/5850958 to your computer and use it in GitHub Desktop.
ふきだし
@charset "utf-8";
/* @import "reset.css"; */
body {
color: #333;
}
p {
line-height: 1.4;
}
.msg_area {
overflow: hidden;
margin: 20px;
}
.icon_box, .arrow_box {
float: left;
}
.icon_box {
margin-right: 10px;
width: 50px;
height: 50px;
background: #333;
}
.arrow_box {
@arrow_size: 7px;
padding: 10px;
width: 300px;
position: relative;
background: #fff;
border: 1px solid #8a8a8a;
border-radius: 3px;
&:after, &:before{
right: 100%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
top: 15px;
pointer-events: none;
}
&:after {
border-color: rgba(255, 255, 255, 0);
border-right-color: #fff;
border-width: @arrow_size;
margin-top: -@arrow_size;
}
&:before {
border-color: rgba(138, 138, 138, 0);
border-right-color: #8a8a8a;
border-width: @arrow_size + 1;
margin-top: -@arrow_size - 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment