Questions tagged as 'less'

2
answers

how to work with SASS / LESS in real time?

Recently I paid attention to preprocessors of css as less and sass because I saw advantages in using them, but I see the necessity of a workflow so that css generated compiles automatically. At first, how do you get t...
asked by 14.09.2017 / 14:44
1
answer

Prepocessor (Less) - Variable @Arguments

Assuming I have the following mixin with following arguments: .font-style(@size: 1.2em, @style: 100, @leading:1.4em, @color: #efefed) Now I want to play this mixin passing the arguments that I define for a specific class. Ex: .myClass{ .f...
asked by 28.07.2015 / 19:01
2
answers

Element: First-Child Does Not Work

In this example you have a .title element. And in it I am putting first-child with margin-top:20px; . When compiling and saving is not working. Do not apply the top margin on the first element of that type. LESS What...
asked by 12.06.2015 / 14:54
3
answers

Less is a programming language, or just something more complex than CSS?

Well I believe that Less may not be a programming language, so what is it? where do you rate? If it's really a programming language, what makes it?     
asked by 15.04.2016 / 21:52
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
2
answers

How to use the "when" operator of LESS?

I gave a quick search on the less site to see how to use it, but I did not succeed, so I wanted to know how the LESS! operator works! Examples: box-shadow(@style, @c) when (iscolor(@c)) { -webkit-box-shadow: @style @c; box-shadow:...
asked by 14.04.2016 / 15:59
1
answer

Call a variable from others in the LESS

How can I call a variable from other variables like in other languages in less? PHP: $name = 'stack'; $level = '900'; $nameVariable = $name . $level; ${$nameVariable}; // chama variável: $stack900 $$nameVariable; // chamar variável: $st...
asked by 14.04.2016 / 16:42
1
answer

Parse error in Less, says my class / mixin is not defined

I'm using ruby 1.9.2 and rails 3 and gem less 2.6.0. I already imported the mixins and the variables and even then the error persists.    Less :: ParseError: #gradient > .vertical is undefined Slider.less file snippet:...
asked by 03.02.2015 / 20:15
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
0
answers

How to make bar responsive? [closed]

I'mtryingtomaketheiconsinthisHTML5videoplayerresponsive.<divid="video-controls"> <div class="play-video"> {!! Html::image('img/video/play.png', 'Play / Pause Video', ['class' => 'play-pause']) !!}...
asked by 30.07.2015 / 21:55