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 curry(fn, ...args) { | |
| return (..._arg) => { | |
| return fn(...args, ..._arg); | |
| } | |
| } |
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
| @mixin icon-mask($url, $size) { | |
| &::after { | |
| content: ""; | |
| display: block; | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| bottom: 0; | |
| left: 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
| @mixin media-hidden { | |
| @media only screen and (max-width: 319px) { | |
| display: none; | |
| } | |
| } | |
| @mixin xs-screen { | |
| @media only screen and (max-width: 575px) { | |
| @content; | |
| } |
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
| @media | |
| only screen and (-webkit-min-device-pixel-ratio: 2), | |
| only screen and (min--moz-device-pixel-ratio: 2), | |
| only screen and (-moz-min-device-pixel-ratio: 2), | |
| only screen and (-o-min-device-pixel-ratio: 2/1), | |
| only screen and (min-device-pixel-ratio: 2), | |
| only screen and (min-resolution: 192dpi), | |
| only screen and (min-resolution: 2dppx) { | |
| } |
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
| @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { | |
| #myElement { | |
| /* Enter your style code */ | |
| } | |
| } |
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
| Object.defineProperty( myObject, Symbol.iterator, { | |
| enumerable: false, | |
| writable: false, | |
| configurable: true, | |
| value: function() { | |
| var o = this; | |
| var idx = 0; | |
| var ks = Object.keys( o ); | |
| return { | |
| next: function() { |
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
| @mixin square($size) { | |
| width: $size; | |
| height: $size; | |
| } |
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
| @mixin overlay { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| bottom: 0; | |
| left: 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
| @mixin padding-hack($padding, $object-fit: contain) { | |
| position: relative; | |
| padding-top: $padding; | |
| @content; | |
| & > img { | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| bottom: 0; |
NewerOlder