Documentation

 

Plugin appearance / CSS

The two main UI components are:

  • Status indicator: Status indicator
  • A popup box to handle ambiguous and invalid addresses: Popup example

You can customize the look and feel of the UI to match your website simply by adding some style rules to your CSS document.

Tips

Since the plugin is designed to survive in some hostile web page environments, it was necessary for us to force certain rules to preserve usability. If you experience difficulty getting your style rules to override some of our defaults, try using the !important declaration. We also strongly recommend the use of browser inspector tools, furnished with every major modern desktop web browser: Chrome, Safari, Firefox, IE, and Opera.

The CSS for our default UI is prepended to your <head> tag, which means all rules after them will cascade on top.

Table of CSS classes

CSS classDescription
.smarty-uiA class which contains any other plugin UI elements. This is a catch-all class.
.smarty-dotsThe "loader" dots animation that shows while the address is verifying; it is hidden by default, but appears over the last input of the address.
.smarty-hrThe hr separator that is displayed below #smarty-popup-secondary-number-form-submit-button and above .smarty-choice-alt. Only for popups dealing with addresses missing secondary numbers. Note: verifySecondary must be set to true for this form to appear.
.smarty-choice-listThe container for the list of ambiguous address result options in a popup window.
.smarty-choice-altThe container for the "Try again" (certifyMessage button) and "Use as it is" (changeMessage button).
.smarty-choice-abortThe link(s) in a popup window which abort the verification process (the user agrees to review the address).
.smarty-choice-overrideThe alternate option in a popup window for invalid or missing secondary addresses where the user certifies their address is correct.
.smarty-tagThe container for the status indicator attached to the last input field of each mapped address. It appears as an encircled, gray check mark. Go to an example.
.smarty-tag-grayedThe styles applied to the tag when the address is NOT in a verified state.
.smarty-tag-greenThe styles applied to the tag when the address IS in a verified state.
.smarty-tag-checkThe check mark displayed in the tag.
.smarty-tag-textThe text (such as "Verify," "Verified," or "Undo") that appears when a tag is hovered on.
.smarty-autocompleteThe containing element for autocomplete suggestions.
.smarty-suggestionAn autocomplete suggestion (is an <a> tag).
.smarty-active-suggestionClass applied to the currently-selected .smarty-suggestion element.
.smarty-debug-inputClass applied to the mapped input elements when debug is set to true.
.smarty-debug-buttonClass applied to the mapped submit button when debug is set to true.

Having trouble?

Take a look at these troubleshooting tips we put together with lots of love.

This site uses cookies for analytics, personalized content, and ads. By continuing to browse this site, you agree to this use.