Skip to content

Instantly share code, notes, and snippets.

View nat-davydova's full-sized avatar
🐰
so wow =)

Natalia Davydova nat-davydova

🐰
so wow =)
View GitHub Profile
@nat-davydova
nat-davydova / media.scss
Created December 27, 2020 12:46
Better media with SCSS mixins
$breakpoints: (
breakpoint-small: 768px,
breakpoint-medium: 992px,
breakpoint-large: 1200px
);
@mixin media($type) {
@media screen and (min-width: map-get($breakpoints, breakpoint-#{$type})) {
@content;
}
@function rem($size) {
@return $size / 16px * 1rem;
}
@nat-davydova
nat-davydova / gist:61b60e75b30dee163d918ac9ef674866
Last active May 27, 2020 16:06
SVGO Cli inlineStyles handling (with deleting 'fill' attr)
svgo pathtoicons/*.svg --enable={inlineStyles,prefixIds} --config '{ "plugins": [{ "inlineStyles": { "onlyMatchedOnce": false } }, {"removeViewBox": false}, {"removeAttrs": {"attrs": ["fill"]}}]}'
@nat-davydova
nat-davydova / gist:b9599fafa837036fc223253f6daaf122
Last active March 31, 2020 12:48
npm-check-updates usage
step 1: npm install -g npm-check-updates
step 2 : ncu --loglevel verbose --packageFile package.json
step 3 : ncu -u --packageFile package.json
@nat-davydova
nat-davydova / gist:19f532935276eab45959e0fc65767c28
Created March 10, 2020 10:43
window width without scrollbar
document.documentElement.clientWdth
@nat-davydova
nat-davydova / .env
Created November 2, 2019 10:42
.env config for better SCSS alises resolving
SASS_PATH=./node_modules;./src/
@nat-davydova
nat-davydova / jsconfig.json
Last active November 2, 2019 10:41
JSconfig for better components aliases
{
"compilerOptions": {
"baseUrl": "src"
},
"include": ["src"]
}
@nat-davydova
nat-davydova / gist:52d8d93687b34f7a0f4ff85e9c09efb4
Last active October 12, 2019 12:40
SVGO Cli inlineStyles handling
svgo path/to/file.svg --enable={inlineStyles,prefixIds} --config '{ "plugins": [ { "inlineStyles": { "onlyMatchedOnce": false } }] }'