J
J
JosephW2015-02-11 23:46:52
JavaScript
JosephW, 2015-02-11 23:46:52

Less output file created by grunt-spritesmith. What to do with it if there is no result after compilation?

destCss: '<%=projectSource%>css/sprite.less'
The output is a file:
https://gist.github.com/JosephWM/61221899e98cffe8906f
In the plain-css version, everything is simple, it immediately writes classes for use. And here it is not entirely clear, should I somehow indicate the output or what? In the final file, after compiling the loess to css, only comments remain from this file and that's it.
Question from a newbie to less, don't judge too harshly. :)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Khokhlov, 2015-02-12
@JosephW

Read about the use of variables and mixins in less
The result of the sprite generator is a set of variables containing information about images: name, dimensions, coordinates
Well, accordingly, a mixin is needed, which, for example, the file name passed, will receive all these values ​​and return less(css ) properties

D
Dmitry Kovalsky, 2017-10-06
@Ingword

C# is not a very beginner language. There are too many "undercover intrigues" hiding the essence of the program code under OOP abstractions.
Let me guess (I have a small psychic insight) - you dream of making games for a mobile platform, because now there are a lot of examples of earning tons of dough on free games with in-app purchases and advertising. Well, that's a commendable start. You heard that a good development platform is Unity 3D, and you need to write there in C#. And now you want to dive into the maelstrom of mobile game development in a couple of weeks with zero development experience, zero algorithmic base, zero architectural base and a lot of enthusiasm behind you.
The language itself is already advised. Virtually any book on the cover of which says C # will help you. Because language is a set of instructions. Knowledge of the Russian language does not make a poet or a writer.
Next, you need to delve into the development on the platform. It's worth starting with tutorials .
Along the way, it would be nice to get acquainted with the basic algorithms and data organization schemes (lists, stacks, trees, arrays, what are they for and what is the difference between them)
Pull up application architecture and OOP theory (in particular design patterns) just to start understanding what kind of abstractions you need. What is a character, what characteristics does it have, what inheritance hierarchy does it have, how is it connected with an ant at the third level and how to properly assemble its object (and at the same time when) - it’s hard to advise books here, experience is more needed and preferably someone else’s (it’s better to study for a month other people's bumps than a year to fill your own) look for practice in teams.

V
Vlad Osadchyi, 2017-10-07
@VladOsadchyi

Personally, the SoloLearn course helped me a lot, though in Russian it is only available as a mobile application
. I also taught C # for small and stupid people using this course on YouTube

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question