Skip to content

Commit 4fcf59c

Browse files
committed
Update Kendo Widget CSS Styles article
1 parent 2bd1238 commit 4fcf59c

File tree

4 files changed

+29
-9
lines changed

4 files changed

+29
-9
lines changed

_assets/stylesheets/styles.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,9 @@ h3 em {
373373
}
374374

375375
blockquote {
376-
padding: 10px 10px 10px 64px;
376+
padding: 10px 30px 10px 90px;
377377
margin: 0;
378+
min-height: 70px;
378379
}
379380

380381
blockquote table {

_assets/stylesheets/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ footer {
150150

151151
blockquote {
152152
color: #bf5e00;
153-
background: #fff4d9 url(../images/important.png) no-repeat 15px 15px;
153+
background: #fff4d9 url(../images/important.png) no-repeat 26px 26px;
154154
}
155155

156156
blockquote a {

web/appearance-styling.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,37 @@ description: Define CSS classes of Kendo UI Widgets to change their appearance.
55
---
66

77
# Appearance and Styling
8+
9+
Kendo UI widgets arrive with a number of predefined themes:
10+
11+
![Kendo UI DataViz Themes](/web/web-themes.png)
12+
13+
14+
Setting a Kendo UI **Web** theme (i.e. excluding Mobile and DataViz) requires the inclusion of two stylesheets to your project:
15+
16+
* **kendo.common.css** - This common (base) stylesheet applies styles related to element positioning and widget dimensions. It is a mandatory stylesheet for the widgets to look correct and function properly.
17+
18+
* **kendo.[theme].css** - This stylesheet applies theme-specific styles like color palette, background gradients and patterns, etc.
19+
20+
#### Example:
21+
<html>
22+
<head>
23+
<link rel="stylesheet" href="[file path]/kendo.common.min.css" />
24+
<link rel="stylesheet" href="[file path]/kendo.default.min.css" />
25+
</head>
26+
27+
> Be sure to include the common CSS file before the theme CSS file. In some cases, the theme CSS file may override base styles as it uses selectors with the same specificity.
28+
829
The appearance of the **Kendo UI** widgets depends entirely on styles defined by the applied CSS classes.
930
No inline styles are used, except for some very specific cases in which these styles must be set with Javascript, depending on the browser or configuration.
1031

11-
## Common and theme StyleSheets
12-
The Kendo UI **Web** widgets (i.e. excluding Mobile and DataViz) require two stylesheets: **kendo.common.css** and **kendo.[theme].css**.
13-
The common (base) stylesheet applies styles related to positioning and size, but which are not related to the color scheme and are always required for the widget to
14-
look correct and function properly. The theme stylesheet applies theme-specific styles like colors and backgrounds.
32+
Some themes require a different "common" stylesheet that applies different dimensions. There are three "common" styleshees shipped with Kendo UI:
1533

16-
Some themes require a different "common" stylesheet that applies different dimensions, for example **kendo.common-bootstrap.css** and **kendo.common-material.css**. These common stylesheets should be used
17-
**instead of** kendo.common.css and only with their respective theme (e.g. kendo.bootstrap.css or kendo.material.css).
34+
* **kendo.common.css** - The default base stylesheet.
1835

19-
> Be sure to include the common CSS file before the theme CSS file. In some cases, the theme CSS file may override base styles as it uses selectors with the same specificity.
36+
* **kendo.common-bootstrap.css** - The base stylesheet for the Bootstrap theme. Use this file instead of kendo.common.css and only with kendo.bootstrap.css theme file to achieve Bootstrap like widget dimensions.
37+
38+
* **kendo.common-material.css** - The base stylesheet for the Material and MaterialBlack themes. Use this file instead of kendo.common.css and only with kendo.material.css or kendo.materialblack.css theme files.
2039

2140
## Primitives
2241

web/web-themes.png

201 KB
Loading

0 commit comments

Comments
 (0)