Skip to content

Instantly share code, notes, and snippets.

@brito
brito / dabblet.css
Last active August 29, 2015 14:22
A simple launchpad
/* A simple launchpad */
/* All you need for general layout */
.launchpad a { display:inline-block; text-align:center; margin:0 1em }
.launchpad a img { display:block }
/* This will allow greater flexibility with images, if not precomposed */
.launchpad img { border-radius:100px; max-height:300px; max-width:300px;
/* not for IE, but if images are square, no problem */
-webkit-clip-path:circle(); clip-path:circle() }
@brito
brito / dabblet.css
Created April 9, 2015 03:34
css svg dataURI
/* css svg dataURI */
a {
width:1.6em; height:1.6em; display:inline-block;
border-radius:3px;
background:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" style="fill:hsla(137,38%,38%,.38)"/></svg>') }
@brito
brito / dabblet.css
Created March 17, 2015 23:17
not the circles you are looking for
/* not the circles you are looking for */
svg { fill:transparent; stroke:black }
@brito
brito / dabblet.css
Created March 6, 2015 15:43
not the circles you are looking for
/* not the circles you are looking for */
svg { fill:transparent; stroke:black }
@brito
brito / dabblet.css
Last active February 16, 2017 02:17
square the circle the square the circle the square the squircle
/* square the circle the square the circle the square the squircle */
body > :nth-child(2n) { border-radius:1ex }
body > :nth-child(1),
body > :nth-child(2) { font-size:calc(100vh / 6.854) }
body > :nth-child(3),
body > :nth-child(4) { font-size:calc(100vh / 4.236) }
body > :nth-child(5),
body > :nth-child(6) { font-size:calc(100vh / 2.618) }
@brito
brito / dabblet.css
Last active November 13, 2015 20:06
reach out
/** reach out */
.touch:before { content:attr(class) }
#faith { font:16rem/1 Avenir-Medium;
color:orange;
background:white;
border:1px solid;
transition:all 500ms cubic-bezier(0.310, 0.440, 0.445, 1.650);
outline:none }
#faith:active {
background:orange; color:white;
@brito
brito / dabblet.css
Created February 6, 2015 03:30
Do Something
/** Do Something */
body * { font:1.6rem/1.618 Avenir-Medium;
display:inline-block;
background:transparent;
box-sizing:border-box;
border:3px double hsla(0,100%,62%,.6);
max-width:38rem;
padding:0 .381rem;
margin:.381rem 0 }
@brito
brito / dabblet.css
Last active August 29, 2015 14:14
re:flex
/* re:flex */
body * { font:106%/1.618 Avenir;
display:inline-block;
background:transparent;
border:1px solid transparent;
max-width:38rem;
padding:0 .381rem;
margin:.381rem 0 }
body { display:flex;
@brito
brito / designer.html
Last active August 29, 2015 14:12
designer
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@brito
brito / Records
Created December 9, 2014 19:30
Tiny cross indexer
Records = [];
function Record(data){
if (data.map)
return data.map(Record);
// defaults
var obj = {
id: +new Date,
updated: new Date,
created: new Date,