H
H
HelenaS2016-02-08 15:01:31
css
HelenaS, 2016-02-08 15:01:31

Problems with LESS?

Good afternoon!
First time working with LESS. The problem is that FireFox does not display the font color I set. here is the code:

@whiteColor: #fff;
@siteColor: #39c9da;
footer {
  height: 48px;
  line-height: 48px;
  font-size: @mainFont;
  color: @whiteColor;
  background-color: @siteColor;
}

those. bgc is rendered and the font color comes from the body. Change the font color in the body - changed, still the default is #333.
I will be very glad to help!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis Ineshin, 2016-02-08
@HelenaS

In its purest form, browsers do not understand either LESS or other preprocessors. To make it work, you need to convert it to CSS first. Developers usually do this with custom builders like Grunt/Gulp. Here is a very good Grunt tutorial for example .

S
sim3x, 2016-02-08
@sim3x

lesscss.org

Less is a CSS pre-processor, meaning that it extends the CSS language, adding features that allow variables, mixins, functions and many other techniques that allow you to make CSS that is more maintainable, themable and extendable.

S
sergski, 2016-02-08
@sergski

lesscss.org
compass.kkbox.com
mhs.github.io/scout-app

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question