Skip to main content

Questions tagged [sass]

Sass (Syntactically Awesome Style Sheets) is an extension of CSS adding features like nested rules, variables, mixins and class extensions. This enables developers to write structured, manageable and reusable CSS. Sass is compiled into standard CSS. It is primarily a CSS pre-processor language that accepts both the CSS and its personalised syntax of writing visual design codes.

-1 votes
0 answers
11 views

Why is there an error when compiling scss to css with npm

Hope you experts can help me, I want to use scripts to convert scss into css but I get an error, it doesn't automatically convert nor sync with the browser and I can't access my html files (it says ...
Đạt. Phan Đình's user avatar
-1 votes
0 answers
44 views

Create CSS background similar to one image [closed]

I'm sorry to write this here but I'm looking to create an header and footer for my application and as background color I want to use the same effect (not need to be an animation) of pokemon start ...
Sonn's user avatar
  • 105
0 votes
1 answer
28 views

Is there any way that I export my styles from a package I write to use in my other projects?

I have a package made up by ReactJs, rollup. I used TS in my structure and use .module.scss files to add styles to my components. but when I build the package in /dist directory, it doesn't have any ...
kosar mohammadi's user avatar
0 votes
0 answers
13 views

How to apply style to nested custom Mui-classes in a separate .module.scss file (using react.js)

What is currently possible: Giving style to whole Mui component <SimpleTreeView sx={{ backgroundColor: '#000000' }} </SimpleTreeView> Segregate styling to a separate class in .module....
Aman Jain's user avatar
0 votes
1 answer
26 views

Avoid url resolution in scss files in Angular

I did a css -> scss migration on an existing Angular project using schematics-scss-migrate. Everything works fine except the URL's, if any, in scss files. So I found out that in scss files the URL'...
Urooj's user avatar
  • 334
0 votes
1 answer
21 views

Bootstrap 5 not compiling gray color into utility classes with custom sass

I have the following code in my styles.scss file. $all-colors: map-merge-multiple($grays, $blues, $indigos, $purples, $pinks, $reds, $oranges, $yellows, $greens, $teals, $cyans); $utilities: map-...
Mark Hill's user avatar
0 votes
0 answers
14 views

Extends or Mixins in Sass?

I use scss in my application. I use these rules quite often. display: flex; justify-content: center; align-items: center; I want to reuse these styles with mixins or extends. I want to understand ...
Leo's user avatar
  • 1
-1 votes
0 answers
31 views

CSS Modules with PostCSS vs SCSS Modules in 2024 [closed]

I'm starting a new project from scratch in 2024, and I'm at a crossroads regarding my styling approach. I’m debating between using CSS Modules with PostCSS or just sticking with SCSS Modules. For ...
Kirill's user avatar
  • 63
3 votes
1 answer
51 views

How to prevent a # href scroll down to a section/id of the page, but still use :target to do other things

I'm new to HTML/CSS/SCSS, but I'm trying to create a single page, that looks like it's changing pages, but really is just using display: none, and display: block. I got this working with the following ...
user26332401's user avatar
1 vote
2 answers
34 views

Styles from an scss file are applied to an element, but not the child elements of it

This probably has something to do with Angular Material Chips, but I can't figure out how or why. The actual thing I'm trying to accomplish is different, but here's an illustration. Style gets applied ...
Kristaps Baumanis's user avatar
-1 votes
2 answers
31 views

Icons in React not centered vertically

I have this simple template: <div className="wrapper"> <div className="block one"> <GoSearch /> 15 </div> <div ...
Dani's user avatar
  • 3,979
1 vote
2 answers
40 views

How do I apply color to Angular mat-sidenav?

I'm starting to learn Angular and learned how to apply color to a toolbar component using the following code snippet: <mat-toolbar color="primary"> <span>My Application</span&...
Riquelmy Arcanjo de Araújo's user avatar
0 votes
0 answers
14 views

How to override prime-ng icon style in disabled state at icon input field

:host { ::ng-deep .p-inputtext { padding-top: 0.625rem; padding-bottom: 0.625rem; border: 0.063rem solid var(--neutral-medium-400); border-radius: $text-feild-...
Muhammad Essam's user avatar
-1 votes
0 answers
27 views

Hide copy to clipboard button in markdown

I have a button copy to clipboard. All code boxes in markdown are displayed with the copy to clipboard button. But if I have a code box with text only, then the button is not needed. .text copy-code-...
Aaron's user avatar
  • 809
0 votes
1 answer
17 views

about scss variable references?

I have three files: a.scss,b.scss,c.scss; The relationship between these three files: c @use b as * b @use a as * "a.scss" have variable color Can I reference "color" in a in c....
yu hao's user avatar
  • 9

15 30 50 per page