less-mixins Questions
6
Solved
H i,
Hoping you can help.
Is there a way for LESS to return just a value - feel like I'm missing something very obvious
Say I have:
@unit:em;
@basevalue:1;
Can I use something to give me a sh...
Explode asked 1/4, 2014 at 18:42
4
Solved
I want to make a function/mixin that will make a color darker if it is already dark but lighter when it is light (normalize/extremeize?)
Is it possible to do this by passing a property name (color...
Necessaries asked 21/5, 2012 at 16:41
4
Solved
I'm trying to write a mixin, but I can't seem to get the arguments working the way I want: multiple properties are getting treated each as a separate argument.
Current Code
.transition(@property:...
Passed asked 1/4, 2011 at 7:57
1
Solved
Are there substantial differences between detached ruleset, e.g.
@detached-ruleset: {
@margin: 1px;
margin: @margin;
};
and non-parametric mixin? E.g.
.mixin() {
@margin: 1px;
margin: @marg...
Lunette asked 28/5, 2015 at 12:53
3
I'm getting a Syntax Error for this mix-in:
.vendors(@statement){
@statement;
-moz-@statement;
-webkit-@statement;
}
Any way to do this, or do mixin variables have to be on the right side of ...
Fordham asked 21/9, 2012 at 20:4
6
Solved
LESS allows parametric mixins, such as:
.transition(@property, @duration){
transition: @property @duration;
-moz-transition: @property @duration; /* Firefox 4 */
-webkit-transition: @property @...
Shulamith asked 10/7, 2012 at 18:39
2
I currently have -webkit specific attributes in my Less CSS sheet, I am trying to update them with mixins to add -moz attributes, like this:
.transition(@1) {
-webkit-transition: @1;
-moz-transi...
Adorable asked 13/6, 2012 at 11:4
3
Solved
I've got a Less variable called @side. What I want is to set the variable @sideOpposite depending on the value of the @side variable. It can take only two values: "left" or "right".
In other words...
Shluh asked 13/8, 2014 at 13:46
1
Solved
I am creating a set of LESS mixins with Visual Studio/Web Essentials.
Is it possible to write XML-type documentation for LESS mixins? Or perhaps have an enum to limit the parameters that are input...
Heptane asked 6/1, 2014 at 21:7
4
Solved
I'm introducing LESS to a large web app project to simplify my CSS. I've got a few CSS rules which apply transitions to a varying number of properties, for example:
.movable {
transition-property:...
Disquietude asked 2/5, 2012 at 11:16
1
Solved
The logical way would be:
.mymixin() {
sample_key: samplevalue;
}
@avar: mymixin;
.@{avar}();
but I get a parse error.
Is there a way to do it?
Aidaaidan asked 12/5, 2013 at 9:56
1
© 2022 - 2024 — McMap. All rights reserved.