Skip to content

Instantly share code, notes, and snippets.

View adrianmg's full-sized avatar
🐙
Enjoying life

Adrian Mato adrianmg

🐙
Enjoying life
View GitHub Profile
.spinner {
display: inline-block; font-size: 0; overflow: hidden;
width: 1px; height: 1px;
background-image: url(http://cl.ly/GmBz/blue-sprite.png);
background-size: 8px 0;
-webkit-transform: scaleX(89) scaleY(32);
-webkit-transform-origin: top left;
-webkit-animation: 'spinner' 1s steps(8, end) infinite;
-moz-transform: scaleX(89) scaleY(32);
@adrianmg
adrianmg / dabblet.css
Created May 31, 2012 15:28
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html {
background: white;
font: 120% sans-serif;
}
.loader {
width: 32px; height: 32px; display: inline-block;
font: 0/0 a; text-shadow: none; color: transparent; /*font hack replacement*/
background: transparent url(http://f.cl.ly/items/1J161J3L0A2x0c1r303O/loader.gif) no-repeat;
-webkit-animation: 'animation' 1s steps(10, end) infinite;
-moz-animation: 'animation' 1s steps(10, end) infinite;
}
@-webkit-keyframes animation { from { background-position: 0 0; } to { background-position: 100% 0; } }
body { padding: 100px; font-family: arial; font-size: 24px;}
i {
width: 54px; height: 51px; line-height: 51px; display: block; position: relative;
background: #f5f5f5; color: #464646;
background: linear-gradient(top, #ffffff 0%,#e7e7e7 100%);
border: 1px solid #62646A; border-radius: 4px;
text-align: center; font-style: normal;
}
i:before {
@adrianmg
adrianmg / dabblet.css
Created June 6, 2012 10:17
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body { background: #fff; padding: 100px; font: 11px/16px Sans-serif, Helvetica, Arial; color: #fff; }
.button {
width: 46px; height: 24px; line-height: 25px; cursor: pointer;
text-align: center; display: inline-block; vertical-align: middle; ffont-weight: bold;
background: -webkit-linear-gradient(#81C859, #68A047);
border: 1px solid #679F46; border-radius: 4px;
@adrianmg
adrianmg / dabblet.css
Created June 6, 2012 10:21 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body { background: #fff; padding: 100px; font: 11px/16px Sans-serif, Helvetica, Arial; color: #fff; }
.button {
width: 46px; height: 24px; line-height: 25px; cursor: pointer;
text-align: center; display: inline-block; vertical-align: middle; font-weight: bold;
background: -webkit-linear-gradient(#81C859, #68A047);
border: 1px solid #679F46; border-radius: 4px;
@adrianmg
adrianmg / top-15-videojuegos-españoles
Created July 7, 2012 10:50
Los verdaderos 15 mejores videojuegos "made in spain"
Según @adrianmg (el orden es aleatorio)
- PC Futbol saga (1, 2, 3, 4, 5 y 6)
- Commandos saga (1 y expansiones, 2 y 3)
- Blade: The Edge of Darkness
- La Abadía del Crimen
- Castlevania: Lords of Shadow
- PC Basket saga
- Praetorians
- Runaway
span {
color: transparent;
text-shadow: 0 0 10px #777;
}
p { width: 300px;}
@adrianmg
adrianmg / Game Development index.md
Last active April 12, 2016 21:50
Game Development Index of tools and other resources
@adrianmg
adrianmg / setIconFile.sh
Created March 26, 2016 22:01
Set custom icns icon for a file
#!/bin/sh
# Sets an icon for the DMG
# Usage setIcon.sh pathIcnsIcon.icns pathFile.ext
iconSource=$1
iconDestination=$2
icon=/tmp/`basename $iconSource`
rsrc=/tmp/icon.rsrc
# Create icon from the iconSource
cp $iconSource $icon