Skip to content

Instantly share code, notes, and snippets.

View benjohnson's full-sized avatar

Ben Johnson benjohnson

View GitHub Profile
<!-- Not possible in Twig --> <? $parties = array_merge($upcoming_local_parties, $upcoming_online_parties);?> <!-- Not possible in Twig -->
<? if(!empty($parties)): ?>
<? $i = 0; ?>
<ul class="cardGrid">
<? foreach ($parties as $party): ?>
<li class="party<? if ($i % 4 == 0) echo " row" ?>"><a href="<?= url::site("parties/profile/{$party['event_id']}"); ?>">
<img src="<?= url::site("{$party['avatar_photo_id']}") . "/100/150"; ?>" alt="<?= $party['name']; ?>" />
<h3><?= $party['name']; ?></h3>
<?
.wrapper { width: 250px; height: 300px; font-family: "Helvetica"; font-size: 16px; line-height: 21px; }
ul { padding: 0; margin: 0; }
ul li {list-style-type: none; padding: 0; margin: 0;}
.cart-lineitem-wrapper { position: relative; }
.cart-lineitem-prices { float: right; }
.cart-lineitem-prices li { float: left; margin-left: 10px; }
.cart-lineitem-prices li:first-child { margin-left: 0; }
.cart-lineitem-details { float: left; }
.container { text-align: center; background: green; width: 100px; }
.item { display: inline-block; background: red }
@benjohnson
benjohnson / dabblet.css
Created August 28, 2012 14:12
Untitled
.box { display: inline-block; position: relative;}
.box-inner {
background: #35b5d0;
font-family: helvetica;
color: #FFF;
margin-left: 22px;
padding: 0 10px;
line-height: 2em; }
@benjohnson
benjohnson / dabblet.css
Created September 21, 2012 21:10
Untitled
ul { display: inline; background: orange; padding: 0;}
li { display: inline-block; background: red;}
@benjohnson
benjohnson / dabblet.css
Created September 21, 2012 21:25 — forked from anonymous/dabblet.css
Untitled
ul { background: orange; padding: 0; white-space:nowrap; overflow-x:auto; }
li { list-style-type:none; display: inline-block; background: red; }
div { width: 20%; background: purple; overflow: hidden; }
@benjohnson
benjohnson / dabblet.css
Created October 9, 2012 23:53
Untitled
.box {
width: 400px;
height: 200px;
overflow: hidden;
position: relative;
margin-bottom: 20px;
}
.box img {
max-width: 100%;
@benjohnson
benjohnson / dabblet.css
Created October 9, 2012 23:53
Untitled
.box {
width: 50%;
height: 180px;
position: relative;
overflow: hidden;
margin: 20px;
}
.box img {
max-width: 100%;
@benjohnson
benjohnson / dabblet.css
Created October 10, 2012 00:27
Untitled
.box {
width: 50%;
height: 170px;
position: relative;
overflow: hidden;
margin: 20px;
}
.box img {
max-width: 100%;
@benjohnson
benjohnson / dabblet.css
Created October 17, 2012 17:20
Untitled
.bound {
position: relative;
z-index: auto;
}
.popover {
width: 100px;
height: 100px;
background: blue;
position: absolute;