Last active
July 21, 2016 05:58
-
-
Save gatespace/7e3f6d30101ebd77e3ff83c49a476f03 to your computer and use it in GitHub Desktop.
端の丸いBorder ref: http://qiita.com/gatespace/items/962d8a97555c401ccf0e
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
$width__border: 6px; | |
$color__border: red; | |
h1 { | |
font-size: 18px; | |
border-left-style: solid; | |
border-left-width: $width__border; | |
border-left-color: $color__border; | |
position: relative; | |
padding-left: 10px; | |
&:before, | |
&:after { | |
content: ' '; | |
background-color: $color__border; | |
width: $width__border; | |
height: $width__border; | |
border-radius: ($width__border/2); | |
display: block; | |
position: absolute; | |
left: -($width__border); | |
} | |
&:before { | |
top: -($width__border/2); | |
} | |
&:after { | |
bottom: -($width__border/2); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment