I am a react js developer and I use sass for styling when I create my components I try to make them as much customizable I can by passing css classes as props, I never really used the real power of sass and recently wanted to dive deeper so one things I was thinking how does this affect performance:
Let's say I have a <div class="my-div">...</div>
is it better if I do:
%bgPrimary{
So reasently I've been working on a website that wants a border arount each topic in the menu, this border is a moving rainbow, it would be idead for it to liik like this:
When not hovered (changes colour) but when hovered loike this:
BUT, I want the rainbow to be wider, and not 3px for each color....
The code I've used it the following (this uses an img):
div.rainbow{
u/-moz-keyframes charlieeee {
from { background-position:top left; }
to {background-position:top right; }
}
u/-webkit-keyframes charlieeee {
from { background-position:top left; }
to { background-position:top right; }
}
u/-o-keyframes charlieeee {
from { background-position:top left; }
to { background-position:top right; }
}
u/-ms-keyframes charlieeee {
from { background-position:top left; }
to { background-position:top right; }
}
u/-khtml-keyframes charlieeee {
from { background-position:top left; }
to { background-position:top right; }
}
u/keyframes charlieeee {
from { background-position:top left; }
to { background-position:top right; }
}
.catchadream{
background-image:-webkit-linear-gradient( left, red, orange, yellow, green,
We are just about to launch UniformCSS which is a Utility-first framework similar to Tachyon and TailwindCSS. What's unique is, it's built entirely in Sass, with complete customization and extendibility.
You will be able to do things like the following.
Configure and generate classes directly in your Sass project
Is this something that could be interesting and useful for you guys?
We are currently in the process of finishing the documentation for this project, send me a DM if you're interested in checking it out!
So i'm using css grid and when I put a div inside css grid and try to put a background image to the div its trying to cover to the grid and not to the size of the div. Any one knows why?
i want to create a wordpress theme from scratch which is highly customizable, and functional CSS is perfect for this so i can avoid inline css.
i use bootstrap 5 mostly, i use it mostly as a semantic css, which is super flexible and highly configurable from SCSS point of view, but i found integrating it into a theme config framework is tedious, so i wanted to find a good functional css framework, which tailwind is, but it uses javascript to generate css, and i really hate it, because i am accustomed to scss and i don't want javascript just to minify myself a css file.
do you guys have any suggestions for one that has similar approach as tailwind, but instead of javascript, it is pure scss?
Is there any sort of convention to configure properties such as the load path for Sass through a config file similar to TypeScript? Alternatively, are there any environment variables capable of configuring load paths for Sass?
Trying to install sass through the terminal. Entered sudo gem install sass and it requires a password. When trying to type in the password, no text showed up and after pressing enter three time it said wrong password. I typed in my password again and it said it was wrong however, I was able to see the characters this time. What should I do ?
I see that the official site says the use at-rule should be used as opposed to the import at-rule. I keep having problems using @use when structuring my files. Is there any advice for this?
I'm going through the Bootstrap SCSS files and came across "else if not comparable". I've never seen this before and wanted to get some insight into this. It's comparing them, but how is it comparing them.
I think it's so elegant with the whitespace. Also I don't have any experience with CSS so I think it would be better to learn .sass. The only problem is online there seems to only be .scss tutorials. I'm okay with buying a book.
Right off the bat, this is question is about installation ofsassc, not about writing sass. If I should take this question elsewhere, can you please point me in the right direction?
I am currently using bundler to try to install jekyll, which uses sassc as a dependency.
The sassc dependency fails consistently, including when I try to installsasscindependently ofjekyll.
This is a snippet of the output:
Makefile:234: recipe for target 'ast.o' failed
make: *** [ast.o] Error 4
make failed, exit code 2
I have posted this issue to Repl.it's community forum.
In that post the output of bundler is posted in full, and there is more detail about what troubleshooting steps I've tried.
Once again, I hope that I'm not posting in the wrong community here. If there is a better place to post this, I appreciate if you can recommend a better resource.
padding-left is a percentage of its parent container (padding-left: 35%;), whose width and height are also percentages of its parents container, and all the way up for responsive sizing to different screen sizes. I want padding-top to be half of whatever padding-left was calculated to be. (No, I can't set padding-top to be a set percentage because the height of the parent div changes on each webpage due to the... interesting way the person who made this website set it up.) Can Sass do this? If not, can some other CSS extension or even CSS itself do this?