Skip to content

Commit ad7e267

Browse files
author
dmihaylo
committed
docs: optimize content
1 parent 7209734 commit ad7e267

File tree

2 files changed

+28
-31
lines changed

2 files changed

+28
-31
lines changed

docs/styles-and-layout/how-to/change-themes-on-the-client.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
---
22
title: Change Themes on the Client
3-
page_title: Change Themes on the Client | Kendo UI Desktop Widgets
4-
description: "Learn how to change themes on the client when styling the Kendo UI desktop widgets and controls for data visualization."
3+
page_title: Change Themes on the Client | Kendo UI Styles and Appearance
4+
description: "Learn how to change themes on the client when styling the Kendo UI widgets."
55
slug: howto_changethemes_ontheclient_styleskendoui
6-
position: 1
76
---
87

98
# Change Themes on the Client
109

11-
The example below demonstrates a possible way to switch Kendo UI themes on the client.
10+
The following example demonstrates a possible way for you to switch the Kendo UI themes on the client by replacing the CSS stylesheets.
1211

13-
The core functionality of the following demo is replacing CSS stylesheets on the client, which is not something related to Kendo UI and does not require any Kendo UI APIs. From this point of view, the example is provided "as is", and may need customization and tweaking depending on the specific scenario, requirements, browser support, etc.
12+
Because this approach is not related to the functionalities of the Kendo UI suite, it does not require you to apply Kendo UI API calls. As a result, depending on the requirements of your project, you might have to customize and tweak the code.
13+
14+
> **Important**
15+
>
16+
> To achieve a dynamic switching from or to [SASS themes]({% slug sassbasedthemes_kendoui %}), the page has to be fully reloaded (`location.reload()`). The reason for this behavior is that the common resources that are used are different and the browser is not capable of dynamically unloading the resources that are not necessary.
1417
1518
```html
1619

@@ -135,21 +138,15 @@ The core functionality of the following demo is replacing CSS stylesheets on the
135138

136139
```
137140

138-
> Important
139-
>
140-
> When switching dynamically from/to [SASS themes]({%slug sassbasedthemes_kendoui%}) the page should be fully reloaded (`location.reload()`).
141-
>
142-
> This is due to differences with the common resources used and the incapability of browser to dynamically unload the unneeded ones.
143-
144141
## See Also
145142

146143
Other articles on styling, appearance, and rendering of Kendo UI widgets:
147144

148145
* [Themes and Appearance of the Kendo UI Widgets]({% slug themesandappearnce_kendoui_desktopwidgets %})
149146
* [Responsive Web Design]({% slug responsivewebdesign_integration_kendoui %})
150147
* [Web Font Icons]({% slug webfonticons_kendoui_desktopwidgets %})
151-
* [Sass ThemeBuilder Overview]({% slug sassbasedthemes_kendoui %}#sass-theme-builder)
152-
* [Less ThemeBuilder Overview]({% slug themesandappearnce_kendoui_desktopwidgets %}#less-theme-builder)
148+
* [SASS ThemeBuilder Overview]({% slug sassbasedthemes_kendoui %}#sass-theme-builder)
149+
* [LESS ThemeBuilder Overview]({% slug themesandappearnce_kendoui_desktopwidgets %}#less-theme-builder)
153150
* [Rendering Modes for Data Visualization]({% slug renderingmodesfor_datavisualization_kendouistyling %})
154151
* [Troubleshooting]({% slug commonissues_troubleshooting_kendouistyling %})
155152
* [Themes and Appearance of the Kendo UI Hybrid Widgets](/controls/hybrid/styling)

docs/styles-and-layout/sass-themes.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,7 @@ Currently, Kendo UI delivers a single SASS theme. This is the **Default v2** the
1515

1616
## Overview
1717

18-
Apart from being written in a different language, the SASS-based themes are slightly different from the LESS-based ones. This article outlines those differences and shows how you can use the SASS-based themes.
19-
20-
> **Important**
21-
>
22-
> Sass based themes utilize some CSS features that are not supported by Internet Explorer 10 and earlier:
23-
>
24-
> * flexbox layout (not supported in IE 10 and earlier)
25-
> * CSS gradients (not supported in IE 9 and earlier)
26-
> * Web Open Font Format (not supported in IE 8 and earlier)
27-
> * Border radius (not supported in IE 8 and earlier)
28-
> * Alpha transparency colors (not supported in IE 8 and earlier)
18+
Apart from being written in a different language, the SASS-based themes are slightly different from the LESS-based ones. This article outlines those differences and demonstrates how to use the SASS-based themes.
2919

3020
## Differences
3121

@@ -36,6 +26,16 @@ In Kendo UI, the SASS-based themes demonstrate the following differences from th
3626
- The SASS-based themes are available on NPM. Each theme is stored as an NPM package and can be easily upgraded.
3727
- Each SASS-based theme is compatible with the [Kendo UI components for Angular 2](http://www.telerik.com/kendo-angular-ui/). This enables you to port parts of your application to Angular 2 while maintaining their styling.
3828

29+
## Browser Limitations
30+
31+
The following CSS features, which are used by the SASS-based themes, provide limited browser support:
32+
33+
* Flexbox layout—Not supported by Internet Explorer 10 and earlier.
34+
* CSS gradients—Not supported by Internet Explorer 9 and earlier.
35+
* Web Open Font Format—Not supported by Internet Explorer 8 and earlier.
36+
* Border radius—Not supported by Internet Explorer 8 and earlier.
37+
* Alpha transparency colors—Not supported by Internet Explorer 8 and earlier.
38+
3939
## Getting the Themes
4040

4141
To get the SASS-based Kendo UI themes, you can:
@@ -598,21 +598,21 @@ Outputs a module once, no matter how many times it is included.
598598

599599
To contribute to the development of the Kendo UI Default Theme, refer to the [telerik/kendo-theme-default](https://github.com/telerik/kendo-theme-default) GitHub repository it is stored in.
600600

601-
## Sass Theme Builder
601+
## SASS Theme Builder
602602

603603
[**Progress Sass Theme Builder**](http://themebuilder.telerik.com/aspnet-mvc) for Kendo UI is an Angular web application that enables you to create new or customize existing themes.
604604

605-
The tool renders the same look and feel as the look and feel of all other components in the suite. It also delivers full control over the skin elements of each component and automatically updates its composite units. After you create the skin and achieve the desired look of the theme, the Sass Theme Builder enables you to download and integrate it in your project.
605+
The tool renders the same look and feel as the look and feel of all other components in the suite. It also delivers full control over the skin elements of each component and automatically updates its composite units. After you create the skin and achieve the desired look of the theme, the SASS Theme Builder enables you to download and integrate it in your project.
606606

607-
**Figure 1: A preview of the Sass Theme Builder**
607+
**Figure 1: A preview of the SASS Theme Builder**
608608

609609
![Theme Builder Overview](images/theme-builder-overview.png)
610610

611611
### Creating New Themes
612612

613613
To create a new theme:
614614

615-
1. On the initial Sass Theme Builder pane, select the **Start Theming** option.
615+
1. On the initial SASS Theme Builder pane, select the **Start Theming** option.
616616
1. Choose one of the existing skins to use as a base. The currently available built-in skins are **Default** and **Bootsrap**.
617617

618618
**Figure 2: Selecting a base theme**
@@ -621,7 +621,7 @@ To create a new theme:
621621

622622
### Customizing Existing Themes
623623

624-
The Sass Theme Builder supports the following options for customization:
624+
The SASS Theme Builder supports the following options for customization:
625625

626626
* Color pickers which customize the appearance of the components.
627627
* The **Apply changes instantly** option which enables you to observe the changes on the fly.
@@ -630,7 +630,7 @@ The Sass Theme Builder supports the following options for customization:
630630

631631
#### Functionalities for Customization
632632

633-
To customize an existing theme, use the following Sass Theme Builder functionalities:
633+
To customize an existing theme, use the following SASS Theme Builder functionalities:
634634

635635
1. **Color Swatches**—Contains predefined color palettes that you can apply to all components in your application.
636636
1. **Default**—Provides the applicable color customization options.
@@ -645,7 +645,7 @@ To customize an existing theme, use the following Sass Theme Builder functionali
645645

646646
To upload an existing theme you have previously created:
647647

648-
1. On the initial Sass Theme Builder pane, select **Import Theme**.
648+
1. On the initial SASS Theme Builder pane, select **Import Theme**.
649649
1. Upload the `variables.scss` file which contains your current modifications of the customized theme. As a result, the selected components and styling elements load.
650650
1. Start [customizing your theme](#customizing-existing-themes).
651651

0 commit comments

Comments
 (0)