Reputation: 23
Is it possible to target different styles per component? For example use the Silver style css for the menu and then the Default style css for the grid.
Upvotes: 1
Views: 1721
Reputation: 30671
You can do it like this:
Place the menu inside an element with class "silver":
<div class="silver">
<!-- menu -->
</div>
Modify kendo.silver.css by adding .silver
in front of every CSS selector:
.silver .k-block,
.silver .k-widget,
.silver .k-popup,
.silver .k-content,
.silver .k-dropdown .k-input
/* the rest of kendo.silver.css */
Place the grid inside an element with class "default":
<div class="default">
<!-- grid -->
</div>
Modify kendo.default.css by adding .default
in front of every CSS selector:
.default .k-block,
.default .k-widget,
.default .k-popup,
.default .k-content,
.default .k-dropdown .k-input
/* the rest of kendo.default.css */
More info can be found in the Kendo UI forums.
Upvotes: 1