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
| // This mixin can be used to provide Fluid Type behaviour accross your entire web page | |
| // or to a single css selector | |
| // | |
| // Full credit goes to Geoff Graham @ https://css-tricks.com/snippets/css/fluid-typography/ | |
| // | |
| // To apply globally: | |
| // | |
| // 1. Define your minimum and maximum screen widths | |
| // 2. Define your min and max font size for H1 element in px | |
| // 3. Apply fluid-type mixin to root element eg. |
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
| function breakOn(obj, propertyName, mode, func) { | |
| // this is directly from https://github.com/paulmillr/es6-shim | |
| function getPropertyDescriptor(obj, name) { | |
| var property = Object.getOwnPropertyDescriptor(obj, name); | |
| var proto = Object.getPrototypeOf(obj); | |
| while (property === undefined && proto !== null) { | |
| property = Object.getOwnPropertyDescriptor(proto, name); | |
| proto = Object.getPrototypeOf(proto); | |
| } | |
| return property; |
NewerOlder