- htttp://www.cristianferrari.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CSS | |
.visible { | |
display: block; | |
} | |
.oculta { | |
display: none; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generic names | |
// --------------------------------------------------- | |
$size-mini: 480px !default; | |
$size-small: 768px !default; | |
$size-medium: 992px !default; | |
$size-large: 1200px !default; | |
$size-oversized: 1500px !default; | |
$size-container: 960px !default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd "$(dirname $0)" | |
dir=`pwd` | |
css_dir="$dir/_css/" | |
scss_dir="$dir/_scss/" | |
file_name="" | |
css_file="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
// https://robots.thoughtbot.com/closer-look-color-lightness | |
// https://thoughtbot.github.io/color-lightness-test/ | |
$background: #ee0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.13) | |
// Compass (v1.0.3) | |
// ---- | |
@function solidify($alpha-color, $background-color: white) { | |
$percent: alpha($alpha-color) * 100%; | |
$opaque: opacify($alpha-color, 1); | |
$solid-color: mix($opaque, $background-color, $percent); | |
@return $solid-color; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%label.follow | |
%input{type: "checkbox"} | |
%span +0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
$include-html-schema-classes: true !default; | |
$tone-darkest: #131B26 !default; | |
$tone-darker: #1D2838 !default; | |
$tone-dark: #485466 !default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Form = {} | |
Form.serializedForms = {} | |
# | |
# USAGE: | |
# | |
# First serialize form | |
# Form.saveSerialized( $("#myform") ) | |
# | |
# events: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
@include layout($app), | |
$app: ( | |
name: prey, | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Initialisation / Button events */ | |
// If added to home screen... | |
if(navigator.standalone === undefined || !!navigator.standalone) { | |
// On Android scroll the screen by 1 pixel to hide the address bar | |
if (navigator.userAgent.match(/Android/i)) { | |
window.addEventListener("load", function() { window.scrollTo(0,1); }, false); | |
} | |
// Show the converter & hide the install option by default |
NewerOlder