Skip to content

Instantly share code, notes, and snippets.

@fcalderan
fcalderan / reset.css
Last active August 5, 2022 15:18 — forked from EllyLoel/reset.css
CSS Reset
/*
Made by Elly Loel - https://ellyloel.com/
With inspiration from:
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/
- Adam Argyle - https://unpkg.com/open-props@1.3.16/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE
Notes:
- `:where()` is used to lower specificity for easy overriding.
*/
@fcalderan
fcalderan / pulcino.pio.js
Last active August 29, 2015 14:07 — forked from anonymous/pulcino.pio.js
Javascript generator of “Il pulcino pio” song lyric: http://www.youtube.com/watch?v=juqyzgnbspY
/* JSHint validated - copy into a javascript console and look at the output */
(function(title) {
"use strict";
var lyrics = title.toUpperCase() + "\n---\n";
var even, verse;
var sayAnimal = function(i) {
even = !even
@fcalderan
fcalderan / _mixin.scss
Created October 4, 2012 14:20 — forked from electricg/_mixin.scss
My SCSS mixin
@mixin box-sizing ($box) {
-webkit-box-sizing: $box;
-moz-box-sizing: $box;
box-sizing: $box;
}
@mixin border-radius ($val) {
-webkit-border-radius: $val;
-moz-border-radius: $val;
border-radius: $val;
@fcalderan
fcalderan / mq.css
Created October 4, 2012 09:28 — forked from chriscoyier/mq.css
@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),