Pull this repo to view the current state of the new EL Web User Interface.
- Please DO NOT push changes or make Pull Requests with this repo
- Please use email or JIRA to make comments, suggestions or file bug reports
Any element you want to display a tooltip for needs these classes/attributes applied:
- .has-tip to init JS to fire tooltip
- title attr containing content of tooltip
- class to define the position of the tooltip, options:
- .tip-top
- .tip-top-right (top right corner)
- .tip-top-left (top left corner)
- .tip-right
- .tip-left
- .tip-bottom
- .tip-bottom-left (bottom left corner
- .tip-bottom-right (bottom right corner)
👉 Qtip example code
The dropdowns are capable or rendering either a list of items (links?) as well as 1 or 2 specifically styled links per item. Here are the variations and classes that go with them:
<li>
<a href="javascript:void(0);" class="linked-event">Text Shown In Dropdown List Item</a>
<div class="list-links single-link"><!-- notice the .single-link class in addition to .list-links -->
<a href="javascript:void(0);" class="has-tip tip-right unlink-event" title="Delete from this item from the list"><i class="fa fa-times-circle"></i></a>
</div><!-- end div.list-links -->
</li>
Dropdown list with 2 links per item (like the saved search dropdown, which displays an edit and delete link for each saved search item)
<li>
<a href="javascript:void(0);" class="linked-event">Text Shown In Dropdown List Item</a>
<div class="list-links"><!-- notice there is no .single-link class !!! -->
<a href="javascript:void(0);" class="has-tip tip-right unlink-event" title="Delete from this item from the list"><i class="fa fa-times-circle"></i></a>
</div><!-- end div.list-links -->
</li>
NOTE: To add the links: create a div.list-links within each <li>. If you only want a single link per item, add the .single-link class to .list-links to correct the styling for a single link. It's preferred that we add the tooltip classes and title content to provide textual content when the user hovers over one of these links (as seen in the examples above)
To have a drop down display in the correct position you can add one of this data-attribute to the link used to open it:
data-options="align:left" value options are: left, right, top or bottom
Add a data attr with the dropdown lists ID, to the parent checkbox: data-checklist="drop10"
Add a data attr of data-checklist-options to the ul.f-dropdown list
For fixed header/navigation section you must apply these rules:
- The header element(s) bust he wrapped in a #fixed-header
- The section.main-section element must have the .fix-header class applied
- This is to allow us to more accurately target the page(s) we want to fix the header on.
Active Item : add .active to the parent <li>
eg. <li class="active"><a href="">......
Inputs on dark backgrounds need to have .dark-style class added to them
add .select class to all select elements
ALSO add .select-searchable if you want to display the auto-complete search input
Error Handling: add .error class to any label, input or select you want to highlight invalid
In general, we will want to control the size of the modal for specific use cases. To do this, we'll manage the classes assigned to the .reveal-modal element. Here are the class options:
- tiny: Set the width to 30%
- small: Set the width to 40%
- medium: Set the width to 60%
- large: Set the width to 70%
- xlarge: Set the width to 95%
- full: Set the width to 100%
By adding the .tabbed-modal class to .reveal-modal we can change the style of the tabs within it:
Tabbed Modal Class applied:
Standard Modal
####To style the buttons you can add one of the following classes:
- .primary
- .secondary
- .alert
- .soft-alert
- .success
- .control
- .large
- .small
- .tiny
- .expand (full width)
- .dark-gradient
- .actions
Notice: Only one overlay mask can be displayed at a time. If you call a subsequent mask to display, while another is visible, the previous mask will be hidden prior to displaying the newly called mask.
<a class="mask-it"
data-mask-target=".main-section"
href="javascript:void(0);">Link Text</a>
- The class of .mask-it (along with any other classes needed to style the button/link)
- The data-mask-target attribute with the .class or #id of the element you want to overlay the mask
$(element).loadingMask({
opacity : 1, // you can pass a custom value (1 as shown) or the mask will default to 0.85 (85%)
text: 'Loading...', // change displayed text: Loading, Processing, Please Wait, etc.
func: function(){
// callback function here
}
});
- text option: Allows you to change the loading text as needed, the default is 'Processing...'
- the overlay provides for a callback function that fires AFTER the overlay is CREATED
$(element).hideMask(); // no options are provided