Questions tagged as 'sass'

1
answer

What's the difference and when to use @mixin and @extend in SASS?

Both @mixin and @extend seem to have the same goal:    Add a block of default code for a class. But if they have this same purpose, what is the difference between them? And when should I use one or the other?     
asked by 05.04.2016 / 16:25
1
answer

SASS - beginner (small doubt)

Hello! I'm learning SASS and I came across a problem that was supposed to be simple. heehehe. This is not compiling: $purple: #9b0aa8; #fofo{ width:40px; height:40px; background: $purple; } #fofo:hover{ @include trans...
asked by 05.11.2018 / 12:59
2
answers

How to use before in CSS?

The image below demonstrates my expected result. In fact, I would like every time I instantiate the tags h1, h2, h3 in html, come to toast this stroke under the title. I was researching something similar to before, but I still have not had any r...
asked by 03.05.2018 / 20:20
1
answer

Error trying to install SASS / COMPASS

I have a problem installing SASS and COMPASS on my Mac, giving a permission error. I have already freed the read and write files in the finder.    ERROR: While executing gem ... (Errno :: EACCES)       Permission denied - /Library/Ruby/Gems/2...
asked by 03.02.2014 / 21:39
1
answer

What are the advantages and disadvantages of using css preprocessors? [closed]

I always hear developers talk about preprocessors, but I have not found articles about the disadvantages and advantages yet. I also wanted to know if it's better to use pure or pre-processed css.     
asked by 08.12.2016 / 01:54
3
answers

Problem installing SASS

I downloaded RUBY and installed myself by looking at "Add Ruby executable to your PATH" Then I installed GEM, after that I try to install SASS but the following error appears in the image. The version of my Ruby and GEM are in the image, S...
asked by 17.06.2016 / 20:07
1
answer

.sass files do not compile

I'm working on a project using Jekyll with Github Pages. I'm trying to use a .sass file, saving it in the _sass folder, using the syntax recommended by jekyll's website: --- --- .page-header background: #333 padding: 1em...
asked by 15.10.2014 / 04:24
3
answers

Apply style in child element according to parent element in SASS With declaration in child

Hello, I'm building a SASS style structure that changes will depend on a defined class in my body. This class dictates which browser the user is using, for example: <body class="chrome"> <!-- Google Chrome --> <body class="firef...
asked by 02.01.2017 / 16:27
1
answer

SASS SCSS - Problems with rounding.

I'm having the following problem: developing a Grid system with SCSS, I got the problem of rounding off the percentages that define the size of each column. I would like to know if anyone has the solution for rounding variables, as it breaks the...
asked by 17.03.2016 / 20:46
1
answer

Error using glyphicon with bootstrap-sass

Good afternoon, I'm trying to work with bootstrap-sass and sass , but when I include an icon in my class, nothing happens. I do not know if this is the case but for the backend I'm using django 1.9. @import "../vendor/boo...
asked by 16.01.2016 / 18:32