.questions {
&__btn {
color:red;
}
&__btn2 {
color:green;
}
}
.another-questions {
&__btn {
.questions;
}
}
.questions__btn {
color: red;
}
.questions__btn2 {
color: green;
}
.another-questions__btn__btn {
color: red;
}
.another-questions__btn__btn2 {
color: green;
}
.questions {
&__btn {
color:red;
}
&__btn2 {
color:green;
}
}
.another-questions {
.questions;
}
.questions__btn {
color: red;
}
.questions__btn2 {
color: green;
}
.another-questions__btn {
color: red;
}
.another-questions__btn2 {
color: green;
}
var isTouch = function() {
// some code here
// return true or false
};
var startEvent = isTouch ? 'touchstart' : 'mousedown',
moveEvent = isTouch ? 'touchmove' : 'mousemove',
endEvent = isTouch ? 'touchend' : 'mouseup';
Element.addEventListener(startEvent, function(){
// do something
});