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
| // Use the Boolean `disabled` attribute | |
| myCSS.disabled = true; | |
| myJS.disabled = true; | |
| // Create a stylesheet toggle button: | |
| var stylesheet = document.getElementById('boot'), | |
| btn = document.querySelector('.btn'); | |
| btn.addEventListener('click', function () { | |
| stylesheet.disabled = (stylesheet.disabled === false) ? true : false; |
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
| // ---- | |
| // libsass (v3.3.2) | |
| // ---- | |
| @each $font in Lato-Regular, | |
| Lato-Bold, | |
| Lato-Bold-Italic, | |
| Lato-Italic { | |
| @font-face { | |
| font-family: $font; |
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 QUERIES | |
| // ---------------------------------------------------------------------------- | |
| function displayIsBiggerThanBreakpoint(bp) { | |
| var displayWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; | |
| return displayWidth >= bp; | |
| } | |
| function isMobile() { | |
| return !displayIsBiggerThanBreakpoint(320); | |
| } |
A collection of tips to help take your CSS skills pro.
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
Show hidden characters
| { | |
| "keys": ["tab"], | |
| "command": "expand_abbreviation_by_tab", | |
| // put comma-separated syntax selectors for which | |
| // you want to expandEmmet abbreviations into "operand" key | |
| // instead of SCOPE_SELECTOR. | |
| // Examples: source.js, text.html - source | |
| "context": [ | |
| { |
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(){ | |
| var ef = function(){}; | |
| window.console = window.console || {log:ef,warn:ef,error:ef,dir:ef}; | |
| }()); |
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
| # set your user tokens as environment variables, such as ~/.secrets | |
| # See the README for examples. | |
| [color] | |
| ui = true | |
| [color "branch"] | |
| current = yellow reverse | |
| local = yellow | |
| remote = green | |
| [color "diff"] | |
| meta = yellow bold |