The best way would be to override whatever was added to the element if it is contained by an element with the class .k-list
:
li:before {
margin: 0 5px 0 -15px;
color: #005984;
content: "■";
}
.k-list li:before {
display: none;
}
If, for some reason, you want to make sure that at least one of the higher elements in the DOM does not have the class k-list
(including html and body):
*:not(.k-list) li:before {
margin: 0 5px 0 -15px;
color: #005984;
content: "■";
}
If you knew where you wanted to start such a search, however, it could be more specific and useful:
body *:not(.k-list) li:before {
margin: 0 5px 0 -15px;
color: #005984;
content: "■";
}
The above CSS would exclude any elements that are not contained by the body element from meeting the *:not(.k-list)
condition.