Created
March 16, 2015 23:00
-
-
Save seanuk/67e0d6eecc9445866471 to your computer and use it in GitHub Desktop.
This file contains 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
/*------------------------------------*\ | |
$SPLIT | |
\*------------------------------------*/ | |
/** | |
* Simple split item for creating two elements floated away from one another, | |
* e.g.: | |
* | |
<dl class=split> | |
<dt class=split__title>Burger and fries</dt> | |
<dd>£5.99</dd> | |
<dt class=split__title>Fillet steak</dt> | |
<dd>£19.99</dd> | |
<dt class=split__title>Ice cream</dt> | |
<dd>£2.99</dd> | |
</dl> | |
* | |
<ol class="split results"> | |
<li class=first><b class=split__title>1st place</b> Bob</li> | |
<li class=second><b class=split__title>2nd place</b> Lilly</li> | |
<li class=third><b class=split__title>3rd place</b> Ted</li> | |
</ol> | |
* | |
* Demo: jsfiddle.net/inuitcss/9gZW7 | |
* | |
*/ | |
.split{ | |
text-align:right; | |
list-style:none; | |
margin-left:0; | |
} | |
.split__title{ | |
text-align:left; | |
float:left; | |
clear:left; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment