CSSHelper Class |
Namespace: CMS.Helpers
public static class CSSHelper
The CSSHelper type exposes the following members.
Name | Description | |
---|---|---|
EnsureClass |
Ensures the given class in the CSS class
| |
GetCssClassAttribute |
Returns class attribute or empty string if no class is defined.
| |
GetCSSFileLink(String) |
Returns the HTML link element that links to external stylesheet.
| |
GetCSSFileLink(String, String) |
Returns the HTML link element that links to external stylesheet.
| |
GetCSSUrl |
Returns path to the stylesheet handler
| |
GetMaxHeightExpression |
Gets the CSS expression to limit the max Height of the element.
| |
GetMaxWidthExpression |
Gets the CSS expression to limit the max width of the element.
| |
GetMaxWidthHeightExpression |
Gets the CSS expression to limit the max width of the element.
| |
GetPhysicalCSSUrl(String) |
Gets the URL used to retrieve external physical stylesheet.
| |
GetPhysicalCSSUrl(String, String) |
Gets the URL for the Theme CSS file. Based in ~/App_Themes/[Theme] or ~/App_Themes/Default.
| |
GetStyle |
Encloses a style declaration block in an HTML style element.
| |
GetStylesheetUrl |
Returns virtual path to the stylesheet file.
| |
GetThemeCSSUrl(String, String) |
Gets the URL for the Theme CSS file. Based in ~/App_Themes/[Theme] or ~/App_Themes/Default.
| |
GetThemeCSSUrl(String, String, Boolean) |
Gets the URL for the Theme CSS file. Based in ~/App_Themes/[Theme] or ~/App_Themes/Default.
| |
IsCSSLinkRegistered |
Gets if the CSS link is already registered.
| |
JoinClasses |
Joins the given list of CSS classes. Omits empty and null strings.
| |
RegisterBootstrap |
Registers the bootstrap CSS.
| |
RegisterCSSBlock |
Adds a style block containing specified CSS rules to the page's header. If registering the same block multiple times then a given block is registered only once.
| |
RegisterCSSLink(Page, String) |
Adds a link to the external CSS stylesheet to the page header. Supports asynchronous requests.
| |
RegisterCSSLink(Page, String, String) |
Adds a link to the custom theme CSS stylesheet to the page header. Supports asynchronous requests.
| |
RegisterDesignMode |
Registers the design mode CSS.
| |
RegisterModuleStylesheet |
Registers link to a stylesheet of the specified module with the Page object.
| |
RegisterModuleStylesheets |
Registers links to all stylesheets of the specified module with the Page object.
| |
RegisterWidgetsMode |
Registers the widgets mode CSS.
| |
RegisterWireframesMode |
Registers the wireframe mode CSS.
| |
SetCSSLinkRegistered |
Sets the CSS link as already registered.
| |
TrimCharset |
Trims the charset from the CSS style
|
Name | Description | |
---|---|---|
DIVS |
CSS class marker to enable conversion of TABLE to DIV
| |
NO_DIVS |
CSS class marker to disable conversion of TABLE to DIV
|
Name | Description | |
---|---|---|
MinifyCurrentRequest |
If true, the current request links are minified.
| |
ResolveMacrosInCSS |
If true, the macros are resolved within the CSS stylesheets
| |
StylesheetMinificationEnabled |
Gets if stylesheet minification is enabled.
| |
UseComponentNames |
If true, the stylesheet link uses names, otherwise it uses IDs
|