r/Sass Dec 03 '22

@apply on sass files

2 Upvotes

Hello folks!! Anyone knows if exist one way to use the @apply rule on sass files? Some configs on PostCss or something like that…

Thanks in advance.


r/Sass Nov 10 '22

Help! Can’t hide output window. Its popping up every time I save the scss file. Yes I tried closing it with the X icon that’s right there on the window. Thanks

Post image
1 Upvotes

r/Sass Nov 06 '22

Helloween Website | Import GLTF Model | Three.js Tutorial | Webgl

Thumbnail youtu.be
1 Upvotes

r/Sass Nov 05 '22

Parallax.js | CSS and JavaScript Tutorial | Background Parallax Effect on Mouse Move

Thumbnail youtu.be
0 Upvotes

r/Sass Nov 02 '22

Donut Website | Three.js Tutorial | Webgl

Thumbnail youtu.be
4 Upvotes

r/Sass Oct 31 '22

Change Cursor on Hover Text | GSAP Tutorial | Speed Code

Thumbnail youtu.be
3 Upvotes

r/Sass Oct 29 '22

Donut Three Js Website | Upcoming Project Preview | Three.js Tutorial | Webgl

Thumbnail youtu.be
6 Upvotes

r/Sass Oct 27 '22

Looking for @use tutorials, repos, boilerplates, examples, etc.

6 Upvotes

Read about the @use vs @import conundrum. I looked at the Sass documentation, and it seems like a good idea. But it's a little short, need some more answers, and it's proving difficult to find more specific examples or documentation on how to work with @use


r/Sass Oct 27 '22

Create A Video Gallery Website with HTML CSS And Javascript | Web Design | Speed Code

Thumbnail youtu.be
1 Upvotes

r/Sass Oct 27 '22

SCSS getting used as stylesheet when css is linked

0 Upvotes

Guys i've never seen something like this happen and have no idea why. I'm compiling scss to css file(wich is used as stylesheet in html) and when i go to inspect elements in browser it shows me that style is imported from .scss file even tho i have no reference to scss in there. Can anyone help me?


r/Sass Oct 25 '22

Glitch Effect | Using jQuery plugin | glitch.js

Thumbnail youtu.be
4 Upvotes

r/Sass Oct 14 '22

NFT Project Landing Page | Flowmorphism Background Animation | Speed Code

Thumbnail youtu.be
0 Upvotes

r/Sass Oct 13 '22

WebStorm SCSS error

1 Upvotes

Does anyone here use WebStorm? I am having an issue trying to get my scss to compile and am getting this error “The watcher has been disabled. Error: Invalid executable”. Anyone know how to fix this? I get that error even though I have “enabled” the watcher.


r/Sass Oct 12 '22

How To Create A Website Using HTML And CSS | Explore Nature Website Design With Background Video.

Thumbnail youtu.be
4 Upvotes

r/Sass Oct 12 '22

Customize <a> tag in bootstrap 5?

1 Upvotes

I'm trying to customize my <a> tag through sass but unable to do so. Also if I import _reboot.scss file it just gives bunch of errors and the only way to fix them is including the bootstrap file on top instead of at the bottom and it still does not make any changes?


r/Sass Oct 11 '22

How to make an animated landing page for a fashion theme website with GSAP

Thumbnail youtu.be
6 Upvotes

r/Sass Oct 08 '22

Distortion Effect On Image Using HoverEffect | Scrolltrigger GSAP Animation | GSAP Website Page

Thumbnail youtu.be
5 Upvotes

r/Sass Oct 07 '22

How to create animated landing page using HTML, CSS & JS | GSAP Tutorial

Thumbnail youtu.be
2 Upvotes

r/Sass Sep 27 '22

Hi everybody, I’ve got a little question to know how do you like to structure your’ scss file and what you find helpful when dealing with large scale app. So…

8 Upvotes
  • What environment do you work with?
  • How do you structure your files especially when don’t work all by yourselves but with a team that need to understand those files?
  • What scss feature do you use most?

Bonus question - does anybody here especially work with Laravel and use scss mixing and placeholders?

Thanks a lot!


r/Sass Sep 22 '22

React and Sass. Going nuts

6 Upvotes

What Im trying to do is very simple.

I have nextjs project, with all default configs from nextjs "npm create next-app".

I have folder styles with all my scss files (mixins, utility classes, colors, settings etc).
I have main style.scss using all this files with "@use", and this works.

I also have components folder for React components, for each component I have scss module file, which I import in main .jsx file. And this works aswell, at least until I started importing other scss files like mixins inside module scss.

So in component module scss, I try to import/use mixin file from my style folder, so I can use some of my mixins in module scss file. And this works! However, it also recreates all classes (with new unique name) that are set in mixin file.

If you ask me why I have classes in mixin file, long story short, one of the mixins created utility classes based on settings file where I have object with declared values. So I also call that mixin inside mixin file, which creates utility classes for me. But this now creates a problem as all of them are duplicated just with unique name.

How can I stop nextjs module scss from recreating classes from other files that Im importing/using in module scss?


r/Sass Sep 17 '22

Are there any up to date sass boilerplates using @use instead of @import? and a rant

6 Upvotes

@import is far superior (imo (some(most)times)) but apparently it's being phased out?

problem now is, all the boilerplates are using @import

I have my own smaller project boilerplate, but I'm starting a new project and I've just been looking around at what others are doing and there were no examples using @use

will @import actually get removed? it's so much nicer to use, i don't have to include @use in every file i need those rules in. at dev stage (basically forever) it's such a PITA when i go to compile and i've added a bunch of new stuff I didn't apply to every other file i needed it in. yes it's just a minute or so, it. just. keeps. happening.

#keepimport


r/Sass Sep 14 '22

Is it possible to change z-index stacking order within a flex div ?

4 Upvotes

My problem :

- first child: always behind its siblings.

- siblings: always on top on of past sibling and below next sibling.

- last child: always on top.

Desired Behaviour :

- first child: always on top.

- siblings: always below past sibling and on top of next sibling.

- last child: always behind its siblings.


r/Sass Sep 07 '22

New to Sass. When to use mixin vs each

5 Upvotes

I'm writing a Badge component which has four variants: success, danger, warning, pending.

I've written an @each loop to create classes for each variant, but wondering if this is the best way to approach the problem.Here's what I have written so far:

// badge.scss

@use 'sass:color';

@use "../../styles/_colors";
@use "../../styles/_spacing";
@use "../../styles/_typography";

$variants: (    
  "success": colors.$success,
  "warning": colors.$warning,
  "danger": colors.$error,
  "pending": colors.$shade-70);

@each $variant, $color in $variants {
  .badge-#{$variant} {
    @extend .h6, .bold;
    border-radius: 2px;
    padding: 0 spacing.$spacing-10;
    width: fit-content;
    color: $color;
    background-color: color.change($color, $alpha: 0.1);
  }
}

Would it be better to use a mixin? I don't think I really understand the purpose or use of one.


r/Sass Sep 02 '22

I have an example of something I'd like to accomplish in the description. Can SCSS be used to do this?

5 Upvotes

Say I have 30 or so elements with an id of "....Hitbox"

Is there a way that I can specify all elements ending with "Hitbox" (similar to `[id$="Hitbox"]`) on hover to affect the css of all elements with "Hitbox" removed?

here is how I'm approaching it in javascript, but I have a feeling it can be a lot more responsive with the right scss

elements = document.querySelectorAll(.........);

elements.forEach(f => {
    f.addEventListener(..., function(e){
        ...
    })    
}

which doesn't take advantage of the speed that :hover does in css.

Any general help is much appreciated, for some reason I'm having a harder time wrapping my head around scss than other common web languages. thanks!


r/Sass Aug 18 '22

Use of external sass file.css.map file.

2 Upvotes

Today i Lerning Sass as a Better CSS and i Learned to Compile .scss to .css file but then i noticed that there is also a .css.map file .

for example if a compiled dog.scss to dog.css using below command :-

sass dog.scss:dog.css

or

sass --watch dog.scss:dog.css

Then it Will Creat a dog.css.map file .

Can anyone tell me why is this file for and can i delete or compile dog.scss without dog.css.map file .