Style Example - Bootstrap & Variable Width

Style Example - Bootstrap & Variable Width

Minimum Width


Full Screen


Description

This Stylesheet contains 3 main sections;
  1. A left aligned panel which contains general instructions or notes to the User, the controls that form this panel would tend to be present on every page of the Workflow as Used Fields
  2. The middle of each page will contain any Text Labels for the User to read out, specific instructions for the current Page, and any data capture required. The controls in this part of the Workflow have been designed to have a minimum width, otherwise the width of each control will re-size with the browser up to 50% of the window, using the vw length. This type of setup is ideal for Users/departments with various different screen sizes across the business, or when working from home
  3. A right aligned panel which contains a Textarea control to allow for the User to take notes throughout the process, this would also be a Used Field on every page of the Script, allowing the User to constantly write and copy data from the notes field
The Side Panel Control is used to create the left and right panel in this example, anything outside of the Side Panel Start and End Controls will be located in the middle of the Page.

This stylesheet uses default Bootstrap elements, which allows for clear information, instructions, and guidance to be given to Users,
  1. Text Labels using the panel-info class and with a speech bubble next to it, indicates information that the User should be reading out
  2. Text Labels using the panel-warning class, indicate instructions or helpful information for the User
  3. Text Labels using the panel-danger class, indicate to the User that an error has occurred and further actions/steps may be required
It is also possible to apply certain Bootstrap classes directly to particular controls, the example used in this Workflow are the button controls at the bottom of the Page that are using btn-success, btn-warning, and btn-danger respectively.

CSS

The below code would need to be saved as a Stylesheet within your Intelligent Agent system, and then a Workflow created that was assigned this Workflow. There are also some style definitions for Text Label controls that need you to define Additional Classes in their field styling tabs.
  1. /* Variables for generally used values throughout the Stylesheet */
  2. $font-size-general: 18px;
  3. $font-weight-general: bold;
  4. $font-family-general: Arial;
  5. $width-general: 50vw;
  6. $min-width-general: 20em;

  7. .button.btn {
  8. font-size: 16px;
  9. width: 150px;
  10.     height: 60px;
  11.     white-space: normal;
  12.     word-wrap: break-word;        
  13. }

  14. .MainTextLabel {
  15. font-family: $font-family-general;
  16.     font-size: $font-size-general;
  17.     text-align: left;
  18.     white-space: normal;
  19.     word-wrap: break-word;    
  20. width: $width-general;
  21. min-width: $min-width-general;  
  22. }

  23. .GeneralTextareaInput {
  24.     height: 100px;
  25.     margin: 0px;
  26.     /*background-color: white;*/
  27.     white-space: normal;
  28.     word-wrap: break-word;    
  29. width: 39vw;
  30. min-width: 15em;  
  31. }

  32. .GeneralLabelBesideInput {
  33.     height: 100px;
  34.     margin: 0px;
  35.     white-space: normal;
  36.     word-wrap: break-word;    
  37. width: 10vw;
  38. min-width: 5em;  
  39.     vertical-align: middle !important;
  40.     text-align: center;
  41. }

  42. .SidePanelLabel {
  43. width: 260px;
  44.     text-align: center;
  45.     margin: 5px;
  46. }

  47. .SidePanelHeader {
  48. font-family: $font-family-general;
  49.     font-size: 15px;
  50. width: 260px;
  51.     text-align: center;
  52.     margin-left: 5px;
  53.     margin-top: 5px;
  54. }

  55. .SidePanelTextareaInput {
  56. width: 255px;
  57.     height: 150px;
  58.     margin: 0px;
  59.     /*background-color: #fdfdac;*/
  60. }

  61. .SidePanelTextareaLabel {
  62. width: 0px;
  63.     margin: 0px;
  64. }

  65. .Panel {
  66.     background-color: #f4f4f5; 
  67.     padding-right: 5px;
  68. }

Sample Workflow Download

Download here - Please note this Workflow was created in version 6.0.53.54981, and should not be imported into an earlier version of Intelligent Agent!
    • Related Articles

    • Style Example - Form

      Description This Stylesheet has been designed to give a webform-like feel to the pages, with a minimalist and segmented design approach to provide a functional Workflow that is still aesthetically appealing. If lots of content or data capture is ...
    • Script Styling Examples using CSS

      With the release of version 6.0.53 of Intelligent Agent, it is now possible to control the default styling for a Script using a CSS Stylesheet. This allows for styling to be applied to both default/built-in classes and for the creation of custom ...