Indentation with tab character in SASS output [duplicate] - css

This question already has answers here:
Change indentation in Sass
(3 answers)
Closed 7 years ago.
Is there a way to have sass output with tabs instead of spaces?
I know there is the classic argument of spaces but I have a requirement that all my css needs to be indented with tabs before checked in to source control.
Any ideas?

As mentioned by manishie (and his link), there's not built-in way to change how the outputted CSS is indented. The only way is to run it through a separate tool (like Grunt) to "correct" the indentation as you see fit.

Related

Can you disable all css loading on chrome? [duplicate]

This question already has answers here:
How to disable CSS in Browser for testing purposes
(19 answers)
Closed 7 months ago.
I am looking for an option based solution.
Of course there is an option to remove all style tags one by one from the elements panel, this will not remove inline injected styles.
For debugging purposes I would like this option to be at reach, I remember this being an option at one time.
For debugging you could try commenting out link tag in html body that has link to CSS stylesheet
You can do that on Firefox, found in the menu under View -> Website Style -> No Style (the wording might be slightly different, I don't have english version of FF installed but you should find it rather easily I guess.

CSS is ignoring parent selectors [duplicate]

This question already has answers here:
What do commas and spaces in multiple classes mean in CSS?
(9 answers)
Closed 3 years ago.
So I have a CSS selector for a completely separate dialog in my application called "wizard-grid". This selector is nowhere in the HTML for this file, yet for some unknown reason the browser seems to be ignoring the parent selectors and inheriting from "select" for my dropdowns on this page. These files are minified, could that have something to do with it?
I even did a search in my entire project and the only place where the "wizard-grid" class is mentioned is in one CSS file and one HTML file that are not related to this page. I put a picture of what the broswer is interpreting below:
There are 3 separate selectors there, separated by comma. The "parent" selectors only apply to the input, not to the select or .search
.wizard-grid .wizard-body input
select
.search
I'm guessing what you probably want is this. You must have a mistake in your CSS somewhere.
.wizard-grid .wizard-body input
.wizard-grid .wizard-body select
.wizard-grid .wizard-body .search

How do you overwriting bootstrap? [duplicate]

This question already has answers here:
How can I override Bootstrap CSS styles?
(14 answers)
Customizing Bootstrap CSS template
(9 answers)
Closed 4 years ago.
I worked with bootstrap many times and usually I'am creating other style file where I'am overwriting bootstrap classes. I think it's better way to do this. I am also get annoying when I have too much code which I actually don't use in bootstrap source.
What's the best way to overwriting bootstrap classes and remove this parts of code which actually is not needed from bootstrap sources?
One very common way is to use the Boostrap Sass implementation and set variables to define many of the styles. This prevents many css 'overrides' and usually results in much less css code.
You can also pick and choose which Bootstrap components to include (via #import) in the compiled css:
https://getbootstrap.com/docs/4.0/getting-started/theming/#importing
https://getbootstrap.com/docs/4.0/getting-started/theming/

Understanding sass mixins [duplicate]

This question already has answers here:
What's the difference between SCSS and Sass?
(17 answers)
Why use Sass (not SCSS)? [closed]
(4 answers)
Closed 8 years ago.
I have seen a few sass compass tutorials. However, I am having to tweak a sass file from someone else and I can not find out what they did. I do not understand what the + symbol is doing here. I want to say it is similar to the # sign but I can ot find anything that explains it. It is related to singularity? compass?
/* Main */
#main
+tablet-wide
+grid-span(18,1)
+desktop
+grid-span(24,1)
If you know of a good explanation or link please share. Trying to learn and reverse engineer at the same time.
Thanks

Is it possible to find all unused CSS? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Tool to identify unused css definitions
I have quite big CSS file, that already contains style definition for classes/elements that are not used by markup any more.
It is possible to find those quick?
You can use the Firefox extension Dust-Me at http://www.sitepoint.com/dustmeselectors/.
you can get the Dust-Me Selectors plug in for Firefox to test pages individually or spider a whole site.

Resources