Commentary
Popovers are small containers that often contain additional information or allow a user to interact with secondary content / calls to action.
The aside
HTML element is used as a semantic container as it represents a portion of a document whose
content is only indirectly related to the document's main content.
Note: Mobile / touch devices do not respond to a :hover
user action. Mobile / touch devices do
respond to event that can use javascript to emulate a hover user action.
Usage
Classes: | |
---|---|
.popover |
Defines the class for the aside content container that has a button and uses
:hover to activate the hidden content. |
.pop-right , .pop-left , .pop-bottom |
Define the callout position. By default, the popovers appear above the element. |
.popover-container |
Defines the hidden container of content that will appear on :hover or :focus user action.
The container can be any content that a user can read or a component that a user can interact with such as a card with links. |
Dependencies: | |
---|---|
File: | popover.css |
Variables: | --bg-main-comp, --mar-horz, --mar-vert, --pad-horz, --radius, --shadow |