Skip to content

Instantly share code, notes, and snippets.

return {
restrict: 'A',
template: '<div class="btn-confirm-wrapper">' +
'<p class="btn-confirm-popover-message">{{ message }}</p>' +
'<div class="btn-group btn-confirm-popover-btns">' +
'<button type="button" class="btn btn-icon btn-small btn-important" data-ng-click-"visible = false"><i class="icon-cross"></i></button>' +
'<button type="button" class="btn btn-icon btn-small btn-success" data-ng-click-"handler()"><i class="icon-tick"></i></button>' +
'</div>' +
'<div class="btn-group">' +
'<div data-ng-transclude style="float: left"></div>' +
mixin line(opts)
- var opts = opts || {};
tr.line
td.gutter(height="1", width=gutterWidth)
| &nbsp;
td.u-grey(height="1", colspan=opts.colspan || "1")
| &nbsp;
td.gutter(height="1", width=gutterWidth)
| &nbsp;
.line
td
font-size 1px
line-height 1px
{
questionnaireId: '1',
q1_age: {
question: 'What is your age?',
type: 'open-text-numeric',
meta: {
min: 5,
max: 15
}
},
@oliverbenns
oliverbenns / module-dropdown.styl
Created December 3, 2014 00:45
Stylus Dropdown
/* ==========================================================================
Dropdown
========================================================================== */
.dropdown
border 1px solid $color-black
overflow hidden
background $color-white url("../img/arrow-select.png") no-repeat right 50%
width 100%
position relative
@oliverbenns
oliverbenns / index.html
Last active August 29, 2015 14:15 — forked from benschwarz/index.html
Using ARIA roles with <header>, <footer>, <aside> and <section>
<!doctype html>
<html>
<body>
<header class="header" role="banner">
<a href="/" rel="home">My company</a>
<nav class="nav" role="navigation">
<a href="/about">About</a>
<a href="/contact">Contact</a>
</nav>
</header>
@oliverbenns
oliverbenns / app.js
Created February 24, 2015 03:56
Communities to jade
function createViews(communities) {
communities.forEach(function(community) {
if (community.college !== '') {
var communityView = '';
communityView += 'h1 ' + community.college + '\n' ;
@oliverbenns
oliverbenns / main.styl
Created March 2, 2015 06:04
Pump out chart declarations
for num in (1..360)
.pie[data-start=\"{num}\"]
transform: rotate((num)deg);
@oliverbenns
oliverbenns / console-log.sublime-snippet
Last active August 29, 2015 14:17
Console Log Sublime Text 3 Snippet. Allows the logged value to have the stringified version before it.
<snippet>
<content><![CDATA[console.log('$1', $1);]]></content>
<tabTrigger>log</tabTrigger>
<scope>text.html,source.js</scope>
<description>console.log()</description>
</snippet>