Styling and Appearance
jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The
base stylesheet creates the styles related to the widget's layout like margin, padding,
border-width, position. The second css file applies the widget's colors and backgrounds.
The jqx.base.css should be included before the second CSS file.
Below is the list of CSS classes used by jqxResponsivePanel.
- jqx-responsive-panel - applied to the widget.
- jqx-widget - applied to the widget.
- jqx-widget-content - applied to the widget.
- jqx-rc-all - applied to the widget and its toggle button. Adds rounded corners to
- jqx-responsive-panel-collapsed - applied to the widget when it is collapsed.
- jqx-responsive-panel-expanded - applied to the widget when it is expanded.
- jqx-responsive-panel-button - applied to the widget's toggle button.
- jqx-fill-state-normal - applied to the widget's toggle button.
- jqx-fill-state-hover - applied to the widget's toggle button when it is hovered.
- jqx-fill-state-pressed - applied to the the widget's toggle button when it is clicked.
- jqx-responsive-panel-button-inner - applied to the toggle button's inner div (icon).
- jqx-menu-minimized-button - applied to the toggle button's inner div (icon).
When you create a custom style with colors and backgrounds for jqxResponsivePanel,
you need to do the following:
- Add the above CSS classes related to jqxResponsivePanel.
- After each CSS class, add your theme name.
- To apply your custom style to jqxResponsivePanel, you need to set its 'theme' property
(option) to point to your theme name string.
- The sample below demonstrates how to set the 'darkblue' theme to jqxResponsivePanel.