Skip to content

Instantly share code, notes, and snippets.

@Loac-fr
Loac-fr / svg-url.scss
Created June 19, 2017 13:25
Sass svg background URI function
// https://codepen.io/tigt/post/optimizing-svgs-in-data-uris
//
// Function to create an optimized svg url
//
@function svg-url($svg){
//
// Add missing namespace
//
@if not str-index($svg,xmlns) {
@Loac-fr
Loac-fr / useful_unicode.md
Last active July 17, 2017 09:17
Useful unicode icons

Multiplication x × ×

Heavy Multiplication x ✖ ✖

Circle ○ ○

Square □ □

Pointer left ‹ ‹ ‹ \2039 \u2039

// * iOS zooms on form element focus. This script prevents that behavior.
// * <meta name="viewport" content="width=device-width,initial-scale=1">
// If you dynamically add a maximum-scale where no default exists,
// the value persists on the page even after removed from viewport.content.
// So if no maximum-scale is set, adds maximum-scale=10 on blur.
// If maximum-scale is set, reuses that original value.
// * <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=2.0,maximum-scale=1.0">
// second maximum-scale declaration will take precedence.
// * Will respect original maximum-scale, if set.
// * Works with int or float scale values.