...
To achieve the new look and feel kuali.css was abandoned and new CSS files were created. This gave it a clean break away from the old look and feel and made it easy to introduce new CSS file(s) without having to deal with conflicts and overrides that were going to occur. Bootstrap is also being used for styling and some interactions. Some HTML markup required modification but much of the change was done with CSS. Below is an annotated screenshot of a financial document that points out the markup/CSS classes utilized to achieve the look and feel. (HTML markup shown does not cover all necessary markup but rather points out HTML markup with significant CSS classes.)
Compared to the old interface:
An updated lookup:
A common form layout:
Buttons
Buttons have a consistent look and feel. They are no longer images with text on them embedded so they are more flexible and reusable. For buttons with images/icons we use glyphicons and font awesome. There are several classes that modify the style of the button.
...
Here are some examples for creating buttons using existing JSP tags (html:html-button is most useful when you want something other than text on your button, like an icon that comes from font awesome or glyphicons; otherwise, html:submit is a great solution):
Code Block | ||
---|---|---|
| ||
<html:html-button property="methodToCall.addAdvanceDeposit" alt="Add an Advance Deposit" title="Add an Advance Deposit" styleClass="btn btn-green skinny" value="Add" innerHTML="<span class=\"fa fa-plus\"></span>"/> <html:submit property="methodToCall.search" value="Search" styleClass="btn btn-default" alt="Search" title="Search" /> |
Global Buttons
In the example above (Transfer of funds), there are global buttons at the bottom of the document. In many cases, you might want the buttons to also be pinned to the bottom of the window and have them move down as you scroll keeping them visible at all times. To accomplish this there is a tag that will add javascript to the page. The bodySelector is optional and defaults to "div.inquiry". The value for the bodySelector is a jQuery selector that will select the container that holds the main content of the document (main-panels).
Code Block | ||
---|---|---|
| ||
<kul:stickyGlobalButtons bodySelector="div#page-content"/> |