Skip to content

Instantly share code, notes, and snippets.

View marciobarrios's full-sized avatar

Marcio Barrios marciobarrios

View GitHub Profile
@marciobarrios
marciobarrios / gist:3962467
Created October 27, 2012 00:43 — forked from ditman/gist:3772090
Basic JS inheritance
// Constructor function. Code run by the "new" operator
var Rabbit = function(name) {
// All Rabbit instances have their own property "name"
this.name = name;
}
// All Rabbit instances can speak, of course!
Rabbit.prototype.speak = function(what) {
return this.name + " says: " + what;
}
@marciobarrios
marciobarrios / 1. Example.scss
Created October 23, 2012 02:09 — forked from Integralist/1. Example.scss
Sass Mixin for CSS3 Animations
@include keyframe(fadeout) {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@marciobarrios
marciobarrios / dabblet.css
Created October 10, 2012 09:43 — forked from daneden/dabblet.css
CSS Photo Album
/* CSS Photo Album */
/* Rebound of this shot by @daryl: http://drbl.in/fwwM */
* {
margin: 0;
padding: 0;
position: relative;
box-sizing: border-box;
}
@marciobarrios
marciobarrios / dabblet.css
Created October 4, 2012 16:03 — forked from kizu/dabblet.css
Triangle with the box-shadow
/**
* Triangle with the box-shadow
*/
.bubble {
position: relative;
width: 30em;
height: 30em;
@marciobarrios
marciobarrios / dabblet.css
Created September 23, 2012 02:06
A simple submit button
/**
* A simple submit button
*/
body { margin: 1em 0; text-align: center; }
.button {
padding: 8px 15px;
font: bold 15px/1.4 'Proxima Nova', Proxima-Nova, 'Helvetica Neue', Helvetica, Arial;
color: #fff;
text-shadow: 0 1px 1px rgba(0,0,0,0.3);
background-color: #53d24a;
@marciobarrios
marciobarrios / dabblet.css
Created September 23, 2012 01:58
A simple button
/**
* A simple button
*/
body { margin: 1em 0; text-align: center; }
.button {
padding: 8px 15px;
font: bold 15px/1.4 'Proxima Nova', Proxima-Nova, 'Helvetica Neue', Helvetica, Arial;
color: #555;
text-shadow: 0 1px 0 rgba(255,255,255,.8);
background-color: #f6f6f6;
@marciobarrios
marciobarrios / index.html
Created July 13, 2012 16:52
Tuenti button interaction
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Tuenti button interaction (version for modern browsers with CSS animation support) &middot; CodePen</title>
<!--
Copyright (c) 2012 Marcio Barrios, http://codepen.io/hunab
Permission is hereby granted, free of charge, to any person obtaining
@marciobarrios
marciobarrios / dabblet.css
Created July 13, 2012 15:34
Tuenti button interaction (version for modern browsers with CSS animation support)
/**
* Tuenti button interaction (version for modern browsers with CSS animation support)
*/
body { font: 100% helvetica, sans-serif; text-align: center; padding: 10em 1em 1em; }
.action {
position: relative;
overflow: hidden;
font-size: 11px;
color: #616161;
/**
* Button from http://jsfiddle.net/joshnh/ssEMU/
*/
body {
background: #eee;
font-size: 100%;
padding: 3em;
}
/**
* Pressable CSS Buttons from http://jsfiddle.net/joshnh/M33qb/
*/
</style>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'>
<style>
html {
text-align: center;