Answer the question
In order to leave comments, you need to log in
How to properly merge post in LESS for compact post in css?
We have an entry in the LESS file
.breadcrumb {
&.main,
&.path {
& a:hover {
color: red;
}
}
}
.right-sidepanel {
&-article,
&-moreover {
a {
color: red;
}
}
}
.left-sidepanel {
.panel {
&-heading,
&-body a {
color: red;
}
}
}
.breadcrumb.main a:hover,
.breadcrumb.path a:hover {
color: red;
}
.right-sidepanel-article a,
.right-sidepanel-moreover a {
color: red;
}
.left-sidepanel .panel-heading,
.left-sidepanel .panel-body a {
color: red;
}
/* Как исправить файл Less, чтобы на выходе была компактная запись вида */
.breadcrumb.main a:hover,
.breadcrumb.path a:hover,
.right-sidepanel-article a,
.right-sidepanel-moreover a,
.left-sidepanel .panel-heading,
.left-sidepanel .panel-body a {
color: red;
}
Answer the question
In order to leave comments, you need to log in
Perhaps this will help you: websketches.ru/less/extend
.breadcrumb {
&.main,
&.path {
& a:hover {
color: red;
}
}
}
.right-sidepanel {
&-article,
&-moreover {
a {
&:extend(.breadcrumb.main a:hover);
}
}
}
.left-sidepanel {
.panel {
&-heading,
&-body a {
&:extend(.breadcrumb.main a:hover);
}
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question