dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
build(deps): bump make-fetch-ha… (compare)
dependabot[bot] on github_actions
Bump tj-actions/changed-files f… (compare)
nex3 on main
Fixes typos (#1879) (compare)
nex3 on sync-test
nex3 on main
Update synchronization tests to… (compare)
nex3 on sync-test
Update synchronization tests to… (compare)
sass
Node module. you can look at the documentation for how to use it. or if you use Gulp there is Gulp-Sass, or webpack has the Sass-Loader, etc.
"auto": auto
and many other values, but I don't know what your goal is. https://www.sassmeister.com/gist/d9b02802323a103c2148e77961821f23?token=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&scope=gist,read:user
$preset-color: (
pink: (
50 : $pink-50,
100 : $pink-100,
200 : $pink-200,
300 : $pink-300,
400 : $pink-400,
500 : $pink-500,
600 : $pink-600,
700 : $pink-700,
800 : $pink-800,
900 : $pink-900,
),
);
@mixin useShades($shade-end: 600,$shade-start: 100 ) {
@each $color, $shades in $preset-color {
@each $shade, $val in $shades {
@if ($shade >= $shade-start and $shade <= $shade-end) {
.text-#{"" + $color}-#{$shade} {
color: #{$val};
}
.bg-#{"" + $color}-#{$shade} {
background-color: #{$val};
}
}
}
}
}
i mean i want make a range
@mixin useShades($shade-end: 600, $shade-start: 100, $auto: true) {
@if ($auto) {
.auto {
auto: 'auto'
}
}
@each $color, $shades in $preset-color {
@each $shade, $val in $shades {
@if ($shade >= $shade-start and $shade <= $shade-end) {
.text-#{"" + $color}-#{$shade} {
color: #{$val};
}
.bg-#{"" + $color}-#{$shade} {
background-color: #{$val};
}
}
}
}
}
.py-auto {
padding-top: auto;
padding-bottom: auto;
}
.py-0 {
padding-top: 0;
padding-bottom: 0;
}
.py-1 {
padding-top: 0.1875rem;
padding-bottom: 0.1875rem;
}
.py-2 {
padding-top: 0.375rem;
padding-bottom: 0.375rem;
}
.py-3 {
padding-top: 0.5625rem;
padding-bottom: 0.5625rem;
}
.py-4 {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
}
.py-5 {
padding-top: 1.125rem;
padding-bottom: 1.125rem;
}
.py-6 {
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
.py-7 {
padding-top: 1.875rem;
padding-bottom: 1.875rem;
}
.py-8 {
padding-top: 2.25rem;
padding-bottom: 2.25rem;
}
.py-9 {
padding-top: 2.625rem;
padding-bottom: 2.625rem;
}
.py-10 {
padding-top: 3rem;
padding-bottom: 3rem;
}
.py-11 {
padding-top: 3.375rem;
padding-bottom: 3.375rem;
}
.py-12 {
padding-top: 3.75rem;
padding-bottom: 3.75rem;
}
$className: map.get($sectionMap, class);
$properties: map.get($sectionMap, property);
$values: map.get($sectionMap, values);
@import
will be removed in a future version of Sass. as @import
has a different existing use in CSS. Also @use
is a more powerful approach. This also means that it is more complex. But worth learning if starting a new Sass project. What JS framework you use is up to you
Thank you, @TheJaredWilcurt . I think one of the main reasons for advocating the shift to @use is that @import's support will cease in the future. There are indeed other advantages:
Partial vs non-partial
One of the main advantages of partials, as far as I understand, is that they don't transpile into CSS on their own, but only when @imported/@used into a non-partial file. My question is whether this was the only technical difference.
I am not 100% sure, but as far as I understand, you don't have such a problem in angular applications as during build time only specified scss files would be transpiled - here comes my question: if my understanding is correct, is there any other good reason why one would opt for partials instead of non-partials.
@use
).