Last active
December 20, 2015 18:28
-
-
Save jdcauley/6175824 to your computer and use it in GitHub Desktop.
Adds Lines lines to either side of a text item: - Title -
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
@fancy-color: #333; | |
.fancy{ | |
overflow: hidden; | |
text-align: center; | |
span { | |
display: inline-block; | |
position: relative; | |
&:before, &:after { | |
content: ""; | |
position: absolute; | |
height: 5px; | |
margin-top: 17px; | |
border-bottom: 1px solid @fancy-color; | |
border-top: 1px solid @fancy-color; | |
top: 0; | |
width: 600px; | |
} | |
&:before{ | |
right: 100%; | |
margin-right: 15px; | |
} | |
&:after{ | |
left: 100%; | |
margin-left: 15px; | |
} | |
} | |
} |
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
<h3 class="fancy"><span>Example</span></h3> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment