This file contains 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 setCaretEndOfElement(element) { | |
if(document.createRange === undefined || window.getSelection === undefined) return; | |
const range = document.createRange(); | |
const selection = window.getSelection(); | |
range.selectNodeContents(element); | |
range.collapse(false); | |
selection!.removeAllRanges(); |
This file contains 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
sudo chown -R $USER: $HOME |
This file contains 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
export default { | |
css: { | |
preprocessorOptions: { | |
scss: { | |
// example : additionalData: `@import "./src/design/styles/variables";` | |
// dont need include file extend .scss | |
additionalData: `@import "./src/path-to-scss-variables";` | |
}, | |
}, | |
}, |
This file contains 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 screen($breakpoint) { | |
@if $breakpoint==xs { | |
@media screen and (max-width: 320px) { | |
@content; | |
} | |
} | |
@if $breakpoint==sm { | |
@media screen and (min-width: 576px) { | |
@content; | |
} |
This file contains 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
@-moz-document url-prefix() { | |
.selector { | |
color: lime; | |
} | |
} |
OlderNewer