How to: |
External CSS Theme support is an advanced feature that enables you to customize a portal by applying or modifying external CSS files. It also allows you to edit any HTML element of your portal by adding CSS classes to it and specifying CSS properties, and see the visual impact of your changes in real time.
The CSS Theme feature consists of two parts:
In the Portal Theme Files browser, you can configure CSS files. The CSS Editor is designed to edit specific components of the existing CSS theme.
You must be signed in as a developer or administrator to use this feature in the Portal Designer.
The new Text Editor window opens. Here you can enter CSS classes and enter CSS properties for your portal. In this example, we are modifying container border color and selected tab color.
.bip-container { border: 1px solid rgb(87, 168, 250); border-radius: 0px; } .bip-tab-button-checked { color: rgb(87, 168, 250); font-weight: 700; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(87, 168, 250); background-color: white; }
The Save As dialog box opens.
The Portal Designer opens.
The Portal Theme Files dialog box opens. The Neutral theme is selected as a Base theme by default.
The color of container borders and selected tabs change to blue, as shown in the following image.
The Styling dialog box opens.
Your cursor changes to a crosshair. You can also click the Highlight inspected element button to pinpoint the element that you want to style more easily.
The Classes field is automatically populated with the correct CSS class name for the selected element, in our example bip-banner-top.
Note: You can also select elements from the Elements drop-down list, or, if you know the CSS class name of the element, you can type it in the Classes field. You can also use the Search field to search for a CSS class using key words.
The banner instantly changes color to the specified hue, as shown in the following image.
Note: If you have entered an invalid CSS class or attribute, the browser rejects it and the change is not reflected in the portal appearance.
If a custom CSS file is already applied to this portal, your changes will be saved in that file. If the changes are new, the Save As dialog box opens.