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 EventBus() { | |
| const eventCallbacksPairs = []; | |
| this.subscribe = function( eventType, callback ) { | |
| const eventCallbacksPair = findEventCallbacksPair(eventType); | |
| if(eventCallbacksPair) | |
| eventCallbacksPair.callbacks.push(callback); | |
| else | |
| eventCallbacksPairs.push( new EventCallbacksPair(eventType, callback) ); |
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
| // ============================================================================= | |
| // FONT FACE MINI | |
| // ============================================================================= | |
| @mixin font-face-mini($font-name, $font-style, $font-weight, $filename, $path, $font-display: block) { | |
| @font-face { | |
| font-family: '#{$font-name}'; | |
| font-style: $font-style; | |
| font-weight: $font-weight; | |
| font-display: $font-display; |
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
| // html | |
| <input type="number" pattern="\d*" /> | |
| // scss | |
| input[type="number"] { | |
| -moz-appearance: textfield; | |
| &::-webkit-outer-spin-button, | |
| &::-webkit-inner-spin-button { | |
| appearance: 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
| // ============================================================================= | |
| // FONT FACE | |
| // ============================================================================= | |
| // unicode range list | |
| $unicode-range-list: ( | |
| cyrillic: "U+0400-04FF", // Cyrillic Basic | |
| latin: "U+0000-007F", // Latin Basic |