Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. For inline dismissal, use the alerts jQuery plugin.
Wrap any text and an optional dismiss button in .alert
and one of the four contextual classes (e.g., .alert-success
) for basic alert messages.
Alerts don't have default classes, only base and modifier classes. A default gray alert doesn't make too much sense, so you're required to specify a type via contextual class. Choose from success, info, warning, or danger.
<div class="alert alert-success" role="alert">...</div> <div class="alert alert-info" role="alert">...</div> <div class="alert alert-warning" role="alert">...</div> <div class="alert alert-danger" role="alert">...</div>
Build on any alert by adding an optional .alert-dismissible
and close button.
<div class="alert alert-warning alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <strong>Warning!</strong> Better check yourself, you're not looking too good. </div>
Be sure to use the <button>
element with the data-dismiss="alert"
data attribute.
Use the .alert-link
utility class to quickly provide matching colored links within any alert.
<div class="alert alert-success" role="alert"> <a href="#" class="alert-link">...</a> </div> <div class="alert alert-info" role="alert"> <a href="#" class="alert-link">...</a> </div> <div class="alert alert-warning" role="alert"> <a href="#" class="alert-link">...</a> </div> <div class="alert alert-danger" role="alert"> <a href="#" class="alert-link">...</a> </div>
Indicate the current page's location within a navigational hierarchy.
Separators are automatically added in CSS through :before
and content
.
<ol class="breadcrumb"> <li><a href="#">Home</a></li> <li><a href="#">Library</a></li> <li class="active">Data</li> </ol>
You can use the Style Guide Icon Fonts in the breadcrumb items.
<ol class="breadcrumb"> <li><a href="#" class="flaticon flaticon-home icon-sm" title="Home"></a></li> <li><a href="#">Library</a></li> <li class="active">Data</li> </ol>
Use any of the available button classes to quickly create a styled button.
Use any of the available button classes to quickly create a styled button.
<!-- Standard button --> <button type="button" class="btn btn-default">Default</button> <!-- Provides extra visual weight and identifies the primary action in a set of buttons --> <button type="button" class="btn btn-primary">Primary</button> <!-- Indicates a successful or positive action --> <button type="button" class="btn btn-success">Success</button> <!-- Contextual button for informational alert messages --> <button type="button" class="btn btn-info">Info</button> <!-- Indicates caution should be taken with this action --> <button type="button" class="btn btn-warning">Warning</button> <!-- Indicates a dangerous or potentially negative action --> <button type="button" class="btn btn-danger">Danger</button> <!-- Deemphasize a button by making it look like a link while maintaining button behavior --> <button type="button" class="btn btn-link">Link</button>
This component is only available in the new Style Guide theme, fluig Flat. If it is used in the default theme, it will be displayed in the primary colors of the theme or without any formatting.
Use any of the available button classes to quickly create a styled button.
<!-- Learning Buttons --> <button type="button" class="btn btn-learning-primary">Learning Primary</button> <button type="button" class="btn btn-learning-secondary">Learning Secondary</button> <button type="button" class="btn btn-learning-default">Learning Default</button> <button type="button" class="btn btn-learning-link">Learning Link</button> <!-- TOTVS Collab Buttons --> <button type="button" class="btn btn-totvs-collab-primary">TOTVS Collab Primary</button> <button type="button" class="btn btn-totvs-collab-secondary">TOTVS Collab Secondary</button> <button type="button" class="btn btn-totvs-collab-default">TOTVS Collab Default</button> <button type="button" class="btn btn-totvs-collab-link">TOTVS Collab Link</button> <!-- Collab Buttons --> <button type="button" class="btn btn-collab-primary">Collab Primary</button> <button type="button" class="btn btn-collab-secondary">Collab Secondary</button> <button type="button" class="btn btn-collab-default">Collab Default</button> <button type="button" class="btn btn-collab-link">Collab Link</button> <!-- Tasks Buttons --> <button type="button" class="btn btn-tasks-primary">Tasks Primary</button> <button type="button" class="btn btn-tasks-secondary">Tasks Secondary</button> <button type="button" class="btn btn-tasks-default">Tasks Default</button> <button type="button" class="btn btn-tasks-link">Tasks Link</button> <!-- Pages Buttons --> <button type="button" class="btn btn-pages-primary">Pages Primary</button> <button type="button" class="btn btn-pages-secondary">Pages Secondary</button> <button type="button" class="btn btn-pages-default">Pages Default</button> <button type="button" class="btn btn-pages-link">Pages Link</button> <!-- Forms Buttons --> <button type="button" class="btn btn-forms-primary">Forms Primary</button> <button type="button" class="btn btn-forms-secondary">Forms Secondary</button> <button type="button" class="btn btn-forms-default">Forms Default</button> <button type="button" class="btn btn-forms-link">Forms Link</button> <!-- Boards Buttons --> <button type="button" class="btn btn-boards-primary">Boards Primary</button> <button type="button" class="btn btn-boards-secondary">Boards Secondary</button> <button type="button" class="btn btn-boards-default">Boards Default</button> <button type="button" class="btn btn-boards-link">Boards Link</button> <!-- Flow Buttons --> <button type="button" class="btn btn-flow-primary">Flow Primary</button> <button type="button" class="btn btn-flow-secondary">Flow Secondary</button> <button type="button" class="btn btn-flow-default">Flow Default</button> <button type="button" class="btn btn-flow-link">Flow Link</button> <!-- Connector Buttons --> <button type="button" class="btn btn-connector-primary">Connector Primary</button> <button type="button" class="btn btn-connector-secondary">Connector Secondary</button> <button type="button" class="btn btn-connector-default">Connector Default</button> <button type="button" class="btn btn-connector-link">Connector Link</button>
Fancy larger or smaller buttons? Add .btn-lg
, .btn-sm
, or .btn-xs
for additional sizes.
<p> <button type="button" class="btn btn-primary btn-lg">Large button</button> <button type="button" class="btn btn-default btn-lg">Large button</button> </p> <p> <button type="button" class="btn btn-primary">Default button</button> <button type="button" class="btn btn-default">Default button</button> </p> <p> <button type="button" class="btn btn-primary btn-sm">Small button</button> <button type="button" class="btn btn-default btn-sm">Small button</button> </p> <p> <button type="button" class="btn btn-primary btn-xs">Extra small button</button> <button type="button" class="btn btn-default btn-xs">Extra small button</button> </p>
Create block level buttons—those that span the full width of a parent— by adding .btn-block
.
<button type="button" class="btn btn-primary btn-lg btn-block">Block level button</button> <button type="button" class="btn btn-default btn-lg btn-block">Block level button</button>
Buttons will appear pressed (with a darker background, darker border, and inset shadow) when active. For <button>
elements, this is done via :active
. For <a>
elements, it's done with .active
. However, you may use .active
on <button>
s should you need to replicate the active state programmatically.
No need to add :active
as it's a pseudo-class, but if you need to force the same appearance, go ahead and add .active
.
<button type="button" class="btn btn-primary btn-lg active">Primary button</button> <button type="button" class="btn btn-default btn-lg active">Button</button>
Add the .active
class to <a>
buttons.
<a href="#" class="btn btn-primary btn-lg active" role="button">Primary link</a> <a href="#" class="btn btn-default btn-lg active" role="button">Link</a>
Make buttons look unclickable by fading them back 50%.
Add the disabled
attribute to <button>
buttons.
<button type="button" class="btn btn-lg btn-primary" disabled="disabled">Primary button</button> <button type="button" class="btn btn-default btn-lg" disabled="disabled">Button</button>
If you add the disabled
attribute to a <button>
, Internet Explorer 9 and below will render text gray with a nasty text-shadow that we cannot fix.
Add the .disabled
class to <a>
buttons.
<a href="#" class="btn btn-primary btn-lg disabled" role="button">Primary link</a> <a href="#" class="btn btn-default btn-lg disabled" role="button">Link</a>
We use .disabled
as a utility class here, similar to the common .active
class, so no prefix is required.
This class uses pointer-events: none
to try to disable the link functionality of <a>
s, but that CSS property is not yet standardized and isn't fully supported in Opera 18 and below, or in Internet Explorer 11. So to be safe, use custom JavaScript to disable such links.
While button classes can be used on <a>
and <button>
elements, only <button>
elements are supported within our nav and navbar components.
Use the button classes on an <a>
, <button>
, or <input>
element.
<a class="btn btn-default" href="#" role="button">Link</a> <button class="btn btn-default" type="submit">Button</button> <input class="btn btn-default" type="button" value="Input"> <input class="btn btn-default" type="submit" value="Submit">
As a best practice, we highly recommend using the <button>
element whenever possible to ensure matching cross-browser rendering.
Among other things, there's a bug in Firefox < 30 that prevents us from setting the line-height
of <input>
-based buttons, causing them to not exactly match the height of other buttons on Firefox.
Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with our buttons plugin.
When using tooltips or popovers on elements within a .btn-group
, you'll have to specify the option container: 'body'
to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip or popover is triggered).
Wrap a series of buttons with .btn
in .btn-group
.
<div class="btn-group"> <button type="button" class="btn btn-default">Left</button> <button type="button" class="btn btn-default">Middle</button> <button type="button" class="btn btn-default">Right</button> </div>
Combine sets of <div class="btn-group">
into a <div class="btn-toolbar">
for more complex components.
<div class="btn-toolbar" role="toolbar"> <div class="btn-group">...</div> <div class="btn-group">...</div> <div class="btn-group">...</div> </div>
Instead of applying button sizing classes to every button in a group, just add .btn-group-*
to the .btn-group
.
<div class="btn-group btn-group-lg">...</div> <div class="btn-group">...</div> <div class="btn-group btn-group-sm">...</div> <div class="btn-group btn-group-xs">...</div>
Place a .btn-group
within another .btn-group
when you want dropdown menus mixed with a series of buttons.
<div class="btn-group"> <button type="button" class="btn btn-default">1</button> <button type="button" class="btn btn-default">2</button> <div class="btn-group"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> Dropdown <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">Dropdown link</a></li> <li><a href="#">Dropdown link</a></li> </ul> </div> </div>
Make a set of buttons appear vertically stacked rather than horizontally. Split button dropdowns are not supported here.
<div class="btn-group-vertical"> ... </div>
Make a group of buttons stretch at equal sizes to span the entire width of its parent. Also works with button dropdowns within the button group.
Due to the specific HTML and CSS used to justify buttons (namely display: table-cell
), the borders between them are doubled. In regular button groups, margin-left: -1px
is used to stack the borders instead of removing them. However, margin
doesn't work with display: table-cell
. As a result, depending on your customizations to Style Guide, you may wish to remove or re-color the borders.
Internet Explorer 8 doesn't render borders on buttons in a justified button group, whether it's on <a>
or <button>
elements. To get around that, wrap each button in another .btn-group
.
<a>
elementsJust wrap a series of .btn
s in .btn-group.btn-group-justified
.
<div class="btn-group btn-group-justified"> ... </div>
<button>
elementsTo use justified button groups with <button>
elements, you must wrap each button in a button group. Most browsers don't properly apply our CSS for justification to <button>
elements, but since we support button dropdowns, we can workaround that.
<div class="btn-group btn-group-justified"> <div class="btn-group"> <button type="button" class="btn btn-default">Left</button> </div> <div class="btn-group"> <button type="button" class="btn btn-default">Middle</button> </div> <div class="btn-group"> <button type="button" class="btn btn-default">Right</button> </div> </div>
Use any button to trigger a dropdown menu by placing it within a .btn-group
and providing the proper menu markup.
Button dropdowns require the dropdown plugin to be included in your version of Style Guide.
Turn a button into a dropdown toggle with some basic markup changes.
<!-- Single button --> <div class="btn-group"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> Action <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div>
Similarly, create split button dropdowns with the same markup changes, only with a separate button.
<!-- Split button --> <div class="btn-group"> <button type="button" class="btn btn-danger">Action</button> <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div>
Button dropdowns work with buttons of all sizes.
<!-- Large button group --> <div class="btn-group"> <button class="btn btn-default btn-lg dropdown-toggle" type="button" data-toggle="dropdown"> Large button <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> ... </ul> </div> <!-- Small button group --> <div class="btn-group"> <button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown"> Small button <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> ... </ul> </div> <!-- Extra small button group --> <div class="btn-group"> <button class="btn btn-default btn-xs dropdown-toggle" type="button" data-toggle="dropdown"> Extra small button <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> ... </ul> </div>
Trigger dropdown menus above elements by adding .dropup
to the parent.
<div class="btn-group dropup"> <button type="button" class="btn btn-default">Dropup</button> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu" role="menu"> <!-- Dropdown menu links --> </ul> </div>
Fluig Style Guide cards provide a flexible and extensible content container with multiple variants and options.
A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options. If you’re familiar with Bootstrap 3, cards replace our old panels, wells, and thumbnails. Similar functionality to those components is available as modifier classes for cards.
Cards are built with as little markup and styles as possible, but still manage to deliver a ton of control and customization. Built with flexbox, they offer easy alignment and mix well with other fluig Style Guide components.
Below is an example of a basic card with mixed content and a fixed width. Cards have no fixed width to start, so they’ll naturally fill the full width of its parent element. This is easily customized with our various sizing options.
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhere<div class="row"> <div class="col-md-4"> <div class="card"> <img class="card-img-top" src="..." alt="Card image cap"> <div class="card-body"> <h3 class="card-title">Card title</h3> <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="btn btn-primary">Go somewhere</a> </div> </div> </div> </div>
The example below is from an application card with an image or illustration and more information on the thumb.
Criado por José da Silva dos Santos das Neves
Editado em 20/02/2021 - V 1.0
Criado por José da Silva
Editado em 20/02/2021 - V 1.0
<div class="row"> <!-- Exemplo com imagem --> <div class="col-lg-3 col-md-4 col-sm-6"> <div class="card"> <div class="card-thumb card-thumb-img"> <div class="card-list-items"> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-lock icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-trash icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-star icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons bg-warning" title="Icon title"> <i class="flaticon flaticon-cloud-download icon-sm" aria-hidden="true"></i> </span> </div> <div class="card-thumb-actions"> <button type="button" class="btn btn-primary"> Visualizar página </button> <button type="button" class="btn btn-default"> Editar página </button> </div> <img src="/style-guide/images/bg-card-default.png" alt="Card image cap" > </div> <div class="card-body"> <div class="card-title-with-actions"> <h1 class="card-normal-title"> Lorem ipsum dolor sit amet consectetur adipiscing elit </h1> <div class="btn-group"> <button type="button" class="btn btn-link btn-sm dropdown-toggle" data-toggle="dropdown"> <i class="flaticon flaticon-more-vert icon-md" aria-hidden="true"></i> </button> <ul class="dropdown-menu dropdown-menu-right" role="menu"> <li><a href="#">Visualizar página</a></li> <li><a href="#">Editar página</a></li> <li><a href="#">Excluir página</a></li> </ul> </div> </div> <p class="card-small-text">Criado por José da Silva dos Santos das Neves</p> <p class="card-small-text">Editado em 20/02/2021 - V 1.0</p> </div> </div> </div> <!-- Exemplo com ilustração --> <div class="col-lg-3 col-md-4 col-sm-6"> <div class="card"> <div class="card-thumb card-thumb-illustration" > <div class="card-list-items"> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-lock icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-trash icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-star icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons bg-warning" title="Icon title"> <i class="flaticon flaticon-cloud-download icon-sm" aria-hidden="true"></i> </span> </div> <div class="card-thumb-actions"> <button type="button" class="btn btn-primary"> Visualizar página </button> <button type="button" class="btn btn-default"> Editar página </button> </div> <i class="illustration illustration-layout-group illustration-md" aria-hidden="true" ></i> </div> <div class="card-body"> <div class="card-title-with-actions"> <h1 class="card-normal-title"> Lorem ipsum dolor sit amet consectetur adipiscing elit </h1> <div class="btn-group"> <button type="button" class="btn btn-link btn-sm dropdown-toggle" data-toggle="dropdown"> <i class="flaticon flaticon-more-vert icon-md" aria-hidden="true"></i> </button> <ul class="dropdown-menu dropdown-menu-right" role="menu"> <li><a href="#">Visualizar página</a></li> <li><a href="#">Editar página</a></li> <li><a href="#">Excluir página</a></li> </ul> </div> </div> <p class="card-small-text">Criado por José da Silva</p> <p class="card-small-text">Editado em 20/02/2021 - V 1.0</p> </div> </div> </div> </div>
The example below is very similar to the one above, but information about applications is added to the body of the card.
Criado por José da Silva
Editado em 20/02/2021 - V 1.0
Criado por José da Silva
Editado em 20/02/2021 - V 1.0
<div class="row"> <!-- Exemplo com imagem --> <div class="col-lg-3 col-md-4 col-sm-6"> <div class="card"> <div class="card-thumb card-thumb-img" > <div class="card-list-items"> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-lock icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-trash icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-star icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons bg-warning" title="Icon title"> <i class="flaticon flaticon-cloud-download icon-sm" aria-hidden="true"></i> </span> </div> <div class="card-thumb-actions"> <button type="button" class="btn btn-primary"> Visualizar página </button> <button type="button" class="btn btn-default"> Editar página </button> </div> <img src="/style-guide/images/bg-card-default.png" alt="Card image cap" > </div> <div class="card-body"> <div class="card-list-items"> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/totvs.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/pages.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/tasks.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/forms.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/flow.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> +2 </span> </div> <div class="card-title-with-actions"> <h1 class="card-normal-title"> Lorem ipsum dolor sit amet consectetur adipiscing elit </h1> <div class="btn-group"> <button type="button" class="btn btn-link btn-sm dropdown-toggle" data-toggle="dropdown"> <i class="flaticon flaticon-more-vert icon-md" aria-hidden="true"></i> </button> <ul class="dropdown-menu dropdown-menu-right" role="menu"> <li><a href="#">Visualizar página</a></li> <li><a href="#">Editar página</a></li> <li><a href="#">Excluir página</a></li> </ul> </div> </div> <p class="card-small-text">Criado por José da Silva</p> <p class="card-small-text">Editado em 20/02/2021 - V 1.0</p> </div> </div> </div> <!-- Exemplo com ilustração --> <div class="col-lg-3 col-md-4 col-sm-6"> <div class="card"> <div class="card-thumb card-thumb-illustration" > <div class="card-list-items"> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-lock icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-trash icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-star icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons bg-warning" title="Icon title"> <i class="flaticon flaticon-cloud-download icon-sm" aria-hidden="true"></i> </span> </div> <div class="card-thumb-actions"> <button type="button" class="btn btn-primary"> Visualizar página </button> <button type="button" class="btn btn-default"> Editar página </button> </div> <i class="illustration illustration-layout-group illustration-md" aria-hidden="true" ></i> </div> <div class="card-body"> <div class="card-list-items"> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/totvs.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/pages.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/tasks.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/forms.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/flow.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> +2 </span> </div> <div class="card-title-with-actions"> <h1 class="card-normal-title"> Lorem ipsum dolor sit amet consectetur adipiscing elit </h1> <div class="btn-group"> <button type="button" class="btn btn-link btn-sm dropdown-toggle" data-toggle="dropdown"> <i class="flaticon flaticon-more-vert icon-md" aria-hidden="true"></i> </button> <ul class="dropdown-menu dropdown-menu-right" role="menu"> <li><a href="#">Visualizar página</a></li> <li><a href="#">Editar página</a></li> <li><a href="#">Excluir página</a></li> </ul> </div> </div> <p class="card-small-text">Criado por José da Silva</p> <p class="card-small-text">Editado em 20/02/2021 - V 1.0</p> </div> </div> </div> </div>
The example below are of the cards in list format. To use the card in list, the card-horizontal
class must be added.
José da Silva
08/10/1990
v1.0
José da Silva
08/10/1990
v1.0
<div class="row"> <div class="col-xs-12"> <div class="card card-horizontal"> <div class="card-thumb"> <i class="illustration illustration-layout-group illustration-md" aria-hidden="true" ></i> </div> <div class="card-body"> <h1 class="card-title">Lorem ipsum dolor sit amet consectetur adipiscing elit</h1> <p class="card-small-text">José da Silva</p> <p class="card-small-text">08/10/1990</p> <p class="card-small-text">v1.0</p> <div class="card-list-items"> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-lock icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-trash icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-star icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons bg-warning" title="Icon title"> <i class="flaticon flaticon-cloud-download icon-sm" aria-hidden="true"></i> </span> <div class="btn-group"> <button type="button" class="btn btn-link btn-sm dropdown-toggle" data-toggle="dropdown"> <i class="flaticon flaticon-more-vert icon-md" aria-hidden="true"></i> </button> <ul class="dropdown-menu dropdown-menu-right" role="menu"> <li><a href="#">Visualizar página</a></li> <li><a href="#">Editar página</a></li> <li><a href="#">Excluir página</a></li> </ul> </div> </div> </div> </div> </div> <div class="col-xs-12"> <div class="card card-horizontal"> <div class="card-thumb"> <i class="illustration illustration-layout-group illustration-md" aria-hidden="true" ></i> </div> <div class="card-body"> <h1 class="card-title">Lorem ipsum dolor sit amet consectetur adipiscing elit</h1> <p class="card-small-text">José da Silva</p> <p class="card-small-text">08/10/1990</p> <p class="card-small-text">v1.0</p> <div class="card-list-items"> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-lock icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-trash icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-star icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons bg-warning" title="Icon title"> <i class="flaticon flaticon-cloud-download icon-sm" aria-hidden="true"></i> </span> <div class="btn-group"> <button type="button" class="btn btn-link btn-sm dropdown-toggle" data-toggle="dropdown"> <i class="flaticon flaticon-more-vert icon-md" aria-hidden="true"></i> </button> <ul class="dropdown-menu dropdown-menu-right" role="menu"> <li><a href="#">Visualizar página</a></li> <li><a href="#">Editar página</a></li> <li><a href="#">Excluir página</a></li> </ul> </div> </div> </div> </div> </div> </div>
The example below are of the cards in list format with apps.
José da Silva
08/10/1990
v1.0
José da Silva
08/10/1990
v1.0
<div class="row"> <div class="col-xs-12"> <div class="card card-horizontal"> <div class="card-thumb"> <i class="illustration illustration-layout-group illustration-md" aria-hidden="true" ></i> </div> <div class="card-body"> <h1 class="card-title">Lorem ipsum dolor sit amet consectetur adipiscing elit</h1> <div class="card-list-items"> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/totvs.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/pages.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/tasks.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/forms.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/flow.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> +2 </span> </div> <p class="card-small-text">José da Silva</p> <p class="card-small-text">08/10/1990</p> <p class="card-small-text">v1.0</p> <div class="card-list-items"> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-lock icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-trash icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-star icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons bg-warning" title="Icon title"> <i class="flaticon flaticon-cloud-download icon-sm" aria-hidden="true"></i> </span> <div class="btn-group"> <button type="button" class="btn btn-link btn-sm dropdown-toggle" data-toggle="dropdown"> <i class="flaticon flaticon-more-vert icon-md" aria-hidden="true"></i> </button> <ul class="dropdown-menu dropdown-menu-right" role="menu"> <li><a href="#">Visualizar página</a></li> <li><a href="#">Editar página</a></li> <li><a href="#">Excluir página</a></li> </ul> </div> </div> </div> </div> </div> <div class="col-xs-12"> <div class="card card-horizontal"> <div class="card-thumb"> <i class="illustration illustration-layout-group illustration-md" aria-hidden="true" ></i> </div> <div class="card-body"> <h1 class="card-title">Lorem ipsum dolor sit amet consectetur adipiscing elit</h1> <div class="card-list-items"> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/totvs.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/pages.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/tasks.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/forms.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> <img src="/style-guide/images/flow.svg" width="24px" height="24px" alt="App Logo"> </span> <span class="card-list-item card-list-item-images" title="Action title"> +2 </span> </div> <p class="card-small-text">José da Silva</p> <p class="card-small-text">08/10/1990</p> <p class="card-small-text">v1.0</p> <div class="card-list-items"> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-lock icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-trash icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons" title="Icon title"> <i class="flaticon flaticon-star icon-sm" aria-hidden="true"></i> </span> <span class="card-list-item card-list-item-icons bg-warning" title="Icon title"> <i class="flaticon flaticon-cloud-download icon-sm" aria-hidden="true"></i> </span> <div class="btn-group"> <button type="button" class="btn btn-link btn-sm dropdown-toggle" data-toggle="dropdown"> <i class="flaticon flaticon-more-vert icon-md" aria-hidden="true"></i> </button> <ul class="dropdown-menu dropdown-menu-right" role="menu"> <li><a href="#">Visualizar página</a></li> <li><a href="#">Editar página</a></li> <li><a href="#">Excluir página</a></li> </ul> </div> </div> </div> </div> </div> </div>
Below is an example of changing the display style of cards in grid format and in list format.
<!-- buttons to change cards layout --> <button class="btn btn-link" type="button" data-change-cards-layout="LIST"> <i class="flaticon flaticon-list icon-md" aria-hidden="true"></i> </button> <button class="btn btn-link" type="button" data-change-cards-layout="GRID"> <i class="flaticon flaticon-grid icon-md" aria-hidden="true"></i> </button> <!-- Cards list master container --> <div class="row" data-cards-list></div> <!-- Card grid template --> <script type="text/template" class="card-grid-template"> {{ #. }} <div class="col-lg-3 col-md-4 col-sm-6"> <div class="card"> <!-- Code --> </div> </div> {{ /. }} </script> <!-- Card list template --> <script type="text/template" class="card-list-template"> {{ #. }} <div class="col-xs-12"> <div class="card card-horizontal"> <!-- Code --> </div> </div> {{ /. }} </script>
bindings: { local: { 'change-cards-layout': ['click_changeCardsLayout'] }, global: {} }, init: function() { // Code }, changeCardsLayout: function(el, ev) { var cards = [ { /* Card Data */ } ]; var mode = $(el) .data('change-cards-layout') .toLocaleLowerCase(); var template = $('.card-'+mode+'-template').html(); var html = Mustache.render(template, cards); $('[data-cards-list]', this.DOM) .empty() .append(html); },
Cards support a wide variety of content, including images, text, list groups, links, and more. Below are examples of what’s supported.
The building block of a card is the .card-body
. Use it whenever you need a padded section within a card.
<div class="card"> <div class="card-body"> This is some text within a card body. </div> </div>
Card titles are used by adding .card-title
to a <h*>
tag. In the same way, links are added and placed next to each other by adding .card-link
to an <a>
tag.
Subtitles are used by adding a .card-subtitle
to a <h*>
tag. If the .card-title
and the .card-subtitle
items are placed in a .card-body
item, the card title and subtitle are aligned nicely.
Some quick example text to build on the card title and make up the bulk of the card's content.
Card link Another link<div class="row"> <div class="col-md-4"> <div class="card"> <div class="card-body"> <h3 class="card-title">Card title</h3> <h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6> <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="card-link">Card link</a> <a href="#" class="card-link">Another link</a> </div> </div> </div> </div>
.card-img-top
places an image to the top of the card. With .card-text
, text can be added to the card. Text within .card-text
can also be styled with the standard HTML tags.
Some quick example text to build on the card title and make up the bulk of the card's content.
<div class="row"> <div class="col-md-4"> <div class="card"> <img class="card-img-top" src="..." alt="Card image cap"> <div class="card-body"> <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p> </div> </div> </div> </div>
<div class="custom-checkbox custom-checkbox-primary"> <input type="checkbox" id="checkbox-1"> <label for="checkbox-1">Primary</label> </div> <div class="custom-checkbox custom-checkbox-success"> <input type="checkbox" id="checkbox-2"> <label for="checkbox-2">Success</label> </div> <div class="custom-checkbox custom-checkbox-info"> <input type="checkbox" id="checkbox-3"> <label for="checkbox-3">Info</label> </div> <div class="custom-checkbox custom-checkbox-warning"> <input type="checkbox" id="checkbox-4"> <label for="checkbox-4">Warning</label> </div> <div class="custom-checkbox custom-checkbox-danger"> <input type="checkbox" id="checkbox-5"> <label for="checkbox-5">Danger</label> </div>
<div class="custom-radio custom-radio-primary"> <input type="radio" name="radio-types" value="primary" id="radio-1"> <label for="radio-1">Primary</label> </div> <div class="custom-radio custom-radio-success"> <input type="radio" name="radio-types" value="success" id="radio-2"> <label for="radio-2">Success</label> </div> <div class="custom-radio custom-radio-info"> <input type="radio" name="radio-types" value="info" id="radio-3"> <label for="radio-3">Info</label> </div> <div class="custom-radio custom-radio-warning"> <input type="radio" name="radio-types" value="warning" id="radio-4"> <label for="radio-4">Warning</label> </div> <div class="custom-radio custom-radio-danger"> <input type="radio" name="radio-types" value="danger" id="radio-5"> <label for="radio-5">Danger</label> </div>
<!-- Checkbox --> <form action="#"> <div class="custom-checkbox custom-checkbox-inline custom-checkbox-primary"> <input type="checkbox" id="checkbox-1c"> <label for="checkbox-1c">Option 1</label> </div> <div class="custom-checkbox custom-checkbox-inline custom-checkbox-primary"> <input type="checkbox" id="checkbox-2c"> <label for="checkbox-2c">Option 2</label> </div> <div class="custom-checkbox custom-checkbox-inline custom-checkbox-primary"> <input type="checkbox" id="checkbox-3c"> <label for="checkbox-3c">Option 3</label> </div> </form> <!-- Radio --> <form action="#"> <div class="custom-radio custom-radio-inline custom-radio-primary"> <input type="radio" name="radio-types" value="primary" id="radio-1c"> <label for="radio-1c">Option 1</label> </div> <div class="custom-radio custom-radio-inline custom-radio-primary"> <input type="radio" name="radio-types" value="success" id="radio-2c"> <label for="radio-2c">Option 2</label> </div> <div class="custom-radio custom-radio-inline custom-radio-primary"> <input type="radio" name="radio-types" value="info" id="radio-3c"> <label for="radio-3c">Option 3</label> </div> </form>
<!-- Checkbox --> <form action="#"> <div class="custom-checkbox custom-checkbox-inline custom-checkbox-primary custom-checkbox-xl"> <input type="checkbox" id="checkbox-4b"> <label for="checkbox-4b">Example</label> </div> <div class="custom-checkbox custom-checkbox-inline custom-checkbox-primary custom-checkbox-lg"> <input type="checkbox" id="checkbox-3b"> <label for="checkbox-3b">Example</label> </div> <div class="custom-checkbox custom-checkbox-inline custom-checkbox-primary custom-checkbox-sm"> <input type="checkbox" id="checkbox-2b"> <label for="checkbox-2b">Example</label> </div> <div class="custom-checkbox custom-checkbox-inline custom-checkbox-primary custom-checkbox-xs"> <input type="checkbox" id="checkbox-1b"> <label for="checkbox-1b">Example</label> </div> </form> <!-- Radio --> <form action="#"> <div class="custom-radio custom-radio-inline custom-radio-primary custom-radio-xl"> <input type="radio" name="radio-sizes" value="xl" id="radio-4b"> <label for="radio-4b">Example</label> </div> <div class="custom-radio custom-radio-inline custom-radio-primary custom-radio-lg"> <input type="radio" name="radio-sizes" value="lg" id="radio-3b"> <label for="radio-3b">Example</label> </div> <div class="custom-radio custom-radio-inline custom-radio-primary custom-radio-sm"> <input type="radio" name="radio-sizes" value="sm" id="radio-2b"> <label for="radio-2b">Example</label> </div> <div class="custom-radio custom-radio-inline custom-radio-primary custom-radio-xs"> <input type="radio" name="radio-sizes" value="xs" id="radio-1b"> <label for="radio-1b">Example</label> </div> </form>
Provide contextual classes for theme.
Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.
Etiam porta sem malesuada magna mollis euismod.
Donec ullamcorper nulla non metus auctor fringilla.
Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.
Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
<p class="text-primary">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p> <p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p> <p class="text-danger">Donec ullamcorper nulla non metus auctor fringilla.</p> <p class="text-info">Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.</p> <p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
This component is only available in the new Style Guide theme, fluig Flat. If it is used in the default theme, it will be displayed in the primary colors of the theme or without any formatting.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco.
Laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure.
Dolor in reprehenderit in voluptate velit esse.
Cillum dolore eu fugiat nulla pariatur excepteur sint.
Occaecat cupidatat non proident, sunt in culpa qui officia.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
Deserunt mollit anim id est laborum vitae dicta.
Ut enim ad minima veniam, quis nostrum exercitationem.
Ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
<p class="text-cerise">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-cerise-gradient">Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <p class="text-ocean">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-ocean-gradient">Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <p class="text-ocean-dark">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-ocean-dark-gradient">Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua <p class="text-coral">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-coral-gradient">Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <p class="text-coral-dark">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-coral-dark-gradient">Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <p class="text-green">Ut enim ad minim veniam, quis nostrud exercitation ullamco.</p> <p class="text-green-gradient">Laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure.</p> <p class="text-orange">Dolor in reprehenderit in voluptate velit esse.</p> <p class="text-orange-gradient">Cillum dolore eu fugiat nulla pariatur excepteur sint.</p> <p class="text-yellow">Occaecat cupidatat non proident, sunt in culpa qui officia.</p> <p class="text-yellow-gradient">Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <p class="text-blue">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-blue-gradient">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p> <p class="text-aqua">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-aqua-gradient">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p> <p class="text-purple">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-purple-gradient">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p> <p class="text-gray-dark">Deserunt mollit anim id est laborum vitae dicta.</p> <p class="text-gray">Ut enim ad minima veniam, quis nostrum exercitationem.</p> <p class="text-gray-medium">Ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi.</p> <p class="text-gray-light">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p> <p class="text-gray-ultralight">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p>
Fusce dapibus text-primary commodo, tortor mauris nibh.
Etiam porta text-warning malesuada magna mollis euismod.
Donec ullamcorper text-danger non metus auctor fringilla.
Aenean eu text-info sem lacinia quam venenatis.
Duis mollis text-success nisi erat porttitor ligula.
<p>Fusce dapibus <a href="#" class="text-primary">text-primary</a> commodo, tortor mauris nibh.</p> <p>Etiam porta <a href="#" class="text-warning">text-warning</a> malesuada magna mollis euismod.</p> <p>Donec ullamcorper <a href="#" class="text-danger">text-danger</a> non metus auctor fringilla.</p> <p>Aenean eu <a href="#" class="text-info">text-info</a> sem lacinia quam venenatis.</p> <p>Duis mollis <a href="#" class="text-success">text-success</a> nisi erat porttitor ligula.</p>
This component is only available in the new Style Guide theme, fluig Flat. If it is used in the default theme, it will be displayed in the primary colors of the theme or without any formatting.
Lorem ipsum text-cerise amet, consectetur adipiscing elit.
Sed do text-cerise-gradient et dolore magna aliqua.
Lorem ipsum text-ocean amet, consectetur adipiscing elit.
Sed do text-ocean-gradient et dolore magna aliqua.
Lorem ipsum text-ocean-dark amet, consectetur adipiscing elit.
Sed do text-ocean-dark-gradient et dolore magna aliqua.
Lorem ipsum text-coral amet, consectetur adipiscing elit.
Sed do text-coral-gradient et dolore magna aliqua.
Lorem ipsum text-coral-dark amet, consectetur adipiscing elit.
Sed do text-coral-dark-gradient et dolore magna aliqua.
Ut enim text-green quis nostrud exercitation ullamco.
Laboris nisi text-green-gradient consequat. Duis aute irure.
Dolor in text-orange in voluptate velit esse.
Cillum dolore text-orange-gradient nulla pariatur excepteur sint.
Occaecat cupidatat text-yellow in culpa qui officia.
Sed do text-yellow-gradient et dolore magna aliqua.
Lorem ipsum text-blue dolor sit amet.
Quis autem text-blue-gradient qui in ea voluptate.
Lorem ipsum text-aqua dolor sit amet.
Quis autem text-aqua-gradient qui in ea voluptate.
Lorem ipsum text-purple dolor sit amet.
Quis autem text-purple-gradient qui in ea voluptate.
Deserunt mollit text-gray-dark est laborum vitae dicta.
Ut enim text-gray veniam, quis nostrum exercitationem.
Ullam corporis text-gray-medium aliquid ex ea commodi.
Quis autem text-gray-light qui in ea voluptate.
Quis autem text-gray-ultralight qui in ea voluptate.
<p>Lorem ipsum <a href="#" class="text-cerise">text-cerise</a> amet, consectetur adipiscing elit.</p> <p>Sed do <a href="#" class="text-cerise-gradient">text-cerise-gradient</a> et dolore magna aliqua.</p> <p>Lorem ipsum <a href="#" class="text-ocean">text-ocean</a> amet, consectetur adipiscing elit.</p> <p>Sed do <a href="#" class="text-ocean-gradient">text-ocean-gradient</a> et dolore magna aliqua.</p> <p>Lorem ipsum <a href="#" class="text-ocean-dark">text-ocean-dark</a> amet, consectetur adipiscing elit.</p> <p>Sed do <a href="#" class="text-ocean-dark-gradient">text-ocean-dark-gradient</a> et dolore magna aliqua.</p> <p>Lorem ipsum <a href="#" class="text-coral">text-coral</a> amet, consectetur adipiscing elit.</p> <p>Sed do <a href="#" class="text-coral-gradient">text-coral-gradient</a> et dolore magna aliqua.</p> <p>Lorem ipsum <a href="#" class="text-coral-dark">text-coral-dark</a> amet, consectetur adipiscing elit.</p> <p>Sed do <a href="#" class="text-coral-dark-gradient">text-coral-dark-gradient</a> et dolore magna aliqua.</p> <p>Ut enim <a href="#" class="text-green">text-green</a> quis nostrud exercitation ullamco.</p> <p>Laboris nisi <a href="#" class="text-green-gradient">text-green-gradient</a> consequat. Duis aute irure.</p> <p>Dolor in <a href="#" class="text-orange">text-orange</a> in voluptate velit esse.</p> <p>Cillum dolore <a href="#" class="text-orange-gradient">text-orange-gradient</a> nulla pariatur excepteur sint.</p> <p>Occaecat cupidatat <a href="#" class="text-yellow">text-yellow</a> in culpa qui officia.</p> <p>Sed do <a href="#" class="text-yellow-gradient">text-yellow-gradient</a> et dolore magna aliqua.</p> <p>Lorem ipsum <a href="#" class="text-blue">text-blue</a> dolor sit amet.</p> <p>Quis autem <a href="#" class="text-blue-gradient">text-blue-gradient</a> qui in ea voluptate.</p> <p>Lorem ipsum <a href="#" class="text-aqua">text-aqua</a> dolor sit amet.</p> <p>Quis autem <a href="#" class="text-aqua-gradient">text-aqua-gradient</a> qui in ea voluptate.</p> <p>Lorem ipsum <a href="#" class="text-purple">text-purple</a> dolor sit amet.</p> <p>Quis autem <a href="#" class="text-purple-gradient">text-purple-gradient</a> qui in ea voluptate.</p> <p>Deserunt mollit <a href="#" class="text-gray-dark">text-gray-dark</a> est laborum vitae dicta.</p> <p>Ut enim <a href="#" class="text-gray">text-gray</a> veniam, quis nostrum exercitationem.</p> <p>Ullam corporis <a href="#" class="text-gray-medium">text-gray-medium</a> aliquid ex ea commodi.</p> <p>Quis autem <a href="#" class="text-gray-light">text-gray-light</a> qui in ea voluptate.</p> <p>Quis autem <a href="#" class="text-gray-ultralight">text-gray-ultralight</a> qui in ea voluptate.</p>
Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.
Etiam porta sem malesuada magna mollis euismod.
Donec ullamcorper nulla non metus auctor fringilla.
Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.
Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
<p class="bg-primary">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p> <p class="bg-warning">Etiam porta sem malesuada magna mollis euismod.</p> <p class="bg-danger">Donec ullamcorper nulla non metus auctor fringilla.</p> <p class="bg-info">Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.</p> <p class="bg-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
This component is only available in the new Style Guide theme, fluig Flat. If it is used in the default theme, it will be displayed in the primary colors of the theme or without any formatting.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco.
Laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure.
Dolor in reprehenderit in voluptate velit esse.
Cillum dolore eu fugiat nulla pariatur excepteur sint.
Occaecat cupidatat non proident, sunt in culpa qui officia.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
Deserunt mollit anim id est laborum vitae dicta.
Ut enim ad minima veniam, quis nostrum exercitationem.
Ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
<p class="bg-cerise">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="bg-cerise-gradient">Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <p class="bg-ocean">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="bg-ocean-dark">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="bg-coral">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="bg-coral-gradient">Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <p class="bg-coral-dark">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="bg-coral-dark-gradient">Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <p class="bg-green">Ut enim ad minim veniam, quis nostrud exercitation ullamco.</p> <p class="bg-green-gradient">Laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure.</p> <p class="bg-orange">Dolor in reprehenderit in voluptate velit esse.</p> <p class="bg-orange-gradient">Cillum dolore eu fugiat nulla pariatur excepteur sint.</p> <p class="bg-yellow">Occaecat cupidatat non proident, sunt in culpa qui officia.</p> <p class="bg-yellow-gradient">Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <p class="bg-blue">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="bg-blue-gradient">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p> <p class="bg-aqua">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="bg-aqua-gradient">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p> <p class="bg-purple">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="bg-purple-gradient">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p> <p class="bg-gray-dark">Deserunt mollit anim id est laborum vitae dicta.</p> <p class="bg-gray">Ut enim ad minima veniam, quis nostrum exercitationem.</p> <p class="bg-gray-medium">Ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi.</p> <p class="bg-gray-light">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p> <p class="bg-gray-ultralight">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Ut enim ad minim veniam, quis nostrud exercitation ullamco.
Dolor in reprehenderit in voluptate velit esse.
Occaecat cupidatat non proident, sunt in culpa qui officia.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Deserunt mollit anim id est laborum vitae dicta.
Ut enim ad minima veniam, quis nostrum exercitationem.
Ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
<p class="border-cerise">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="border-ocean">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="border-ocean-dark">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="border-coral">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="border-coral-dark">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="border-green">Ut enim ad minim veniam, quis nostrud exercitation ullamco.</p> <p class="border-orange">Dolor in reprehenderit in voluptate velit esse.</p> <p class="border-yellow">Occaecat cupidatat non proident, sunt in culpa qui officia.</p> <p class="border-blue">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="border-aqua">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="border-purple">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="border-gray-dark">Deserunt mollit anim id est laborum vitae dicta.</p> <p class="border-gray">Ut enim ad minima veniam, quis nostrum exercitationem.</p> <p class="border-gray-medium">Ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi.</p> <p class="border-gray-light">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p> <p class="border-gray-ultralight">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Ut enim ad minim veniam, quis nostrud exercitation ullamco.
Dolor in reprehenderit in voluptate velit esse.
Occaecat cupidatat non proident, sunt in culpa qui officia.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Deserunt mollit anim id est laborum vitae dicta.
Ut enim ad minima veniam, quis nostrum exercitationem.
Ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
Quis autem vel eum iure reprehenderit qui in ea voluptate.
<p class="text-hover-cerise">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-hover-ocean">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-hover-ocean-dark">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-hover-coral">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-hover-coral-dark">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-hover-green">Ut enim ad minim veniam, quis nostrud exercitation ullamco.</p> <p class="text-hover-orange">Dolor in reprehenderit in voluptate velit esse.</p> <p class="text-hover-yellow">Occaecat cupidatat non proident, sunt in culpa qui officia.</p> <p class="text-hover-blue">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-hover-aqua">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-hover-purple">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p class="text-hover-gray-dark">Deserunt mollit anim id est laborum vitae dicta.</p> <p class="text-hover-gray">Ut enim ad minima veniam, quis nostrum exercitationem.</p> <p class="text-hover-gray-medium">Ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi.</p> <p class="text-hover-gray-light">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p> <p class="text-hover-gray-ultralight">Quis autem vel eum iure reprehenderit qui in ea voluptate.</p>
Add any of the below mentioned modifier classes to change the appearance of a counter.
<ul class="list-group"> <li class="list-group-item"><span class="counter-group"><a href="#" class="fluigicon fluigicon-thumbs-up icon-xs"></a><a href="#" class="counter counter-warning pos-right-bottom">10</a></span></li> <li class="list-group-item"><span class="counter-group"><a href="#" class="fluigicon fluigicon-comment"></a><a href="#" class="counter counter-warning pos-right-bottom">11</a></span></li> <li class="list-group-item"><span class="counter-group"><a href="#" class="fluigicon fluigicon-bell-empty icon-sm"></a><a href="#" class="counter counter-warning pos-right-bottom">12</a></span></li> <li class="list-group-item"><span class="counter-group"><a href="#" class="fluigicon fluigicon-share icon-md"></a><a href="#" class="counter counter-warning pos-right-bottom">13</a></span></li> <li class="list-group-item"><span class="counter-group"><a href="#" class="fluigicon fluigicon-eye-open icon-lg"></a><a href="#" class="counter counter-warning pos-right-bottom">14</a></span></li> <li class="list-group-item"><span class="counter-group"><a href="#" class="fluigicon fluigicon-star-empty icon-xl"></a><a href="#" class="counter counter-warning pos-right-bottom">15</a></span></li> </ul>
Rendering problems can arise when you have dozens of inline labels within a narrow container, each containing its own inline-block
element (like an icon). The way around this is setting display: inline-block;
.
Toggleable, contextual menu for displaying lists of links. Made interactive with the dropdown JavaScript plugin.
Wrap the dropdown's trigger and the dropdown menu within .dropdown
, or another element that declares position: relative;
. Then add the menu's HTML.
<div class="dropdown"> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"> Dropdown <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1"> <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li> <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li> <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li> <li role="presentation" class="divider"></li> <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li> </ul> </div>
By default, a dropdown menu is automatically positioned 100% from the top and along the left side of its parent. Add .dropdown-menu-right
to a .dropdown-menu
to right align the dropdown menu.
Dropdowns are automatically positioned via CSS within the normal flow of the document. This means dropdowns may be cropped by parents with certain overflow
properties or appear out of bounds of the viewport. Address these issues on your own as they arise.
.pull-right
alignmentAs of v3.1.0, we've deprecated .pull-right
on dropdown menus. To right-align a menu, use .dropdown-menu-right
. Right-aligned nav components in the navbar use a mixin version of this class to automatically align the menu. To override it, use .dropdown-menu-left
.
<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dLabel"> ... </ul>
Add a header to label sections of actions in any dropdown menu.
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu2"> <li role="presentation" class="dropdown-header">Dropdown header</li> ... <li role="presentation" class="divider"></li> <li role="presentation" class="dropdown-header">Dropdown header</li> ... </ul>
Add .disabled
to a <li>
in the dropdown to disable the link.
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu3"> <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Regular link</a></li> <li role="presentation" class="disabled"><a role="menuitem" tabindex="-1" href="#">Disabled link</a></li> <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another link</a></li> </ul>
The custom element for listing and selecting emojis.
The emoji component provides the ability to view, filter and select emojis from the frontend.
Only Unicode Version 11.0 emojis are supported in this component.
Below is a very common example of the component together with the popover component
<div class="form-group fs-position-relative" data-form-post-emojis> <label for="post-content-field-emojis">Type your post with emojis below</label> <textarea class="form-control fs-no-resize" name="post-content-field-emojis" id="post-content-field-emojis" rows="6" placeholder="Type your post..." ></textarea> <button class="btn btn-link fs-position-absolute fs-position-bottom-right" data-modal-open-emojis-popover> <i class="flaticon flaticon-single-smile-simple icon-md" aria-hidden="true"></i> </button> </div> <!-- Content Popover Template --> <script type="text/template" class="popover-emojis-template"> <emojis-component id="emojis-example-0" data-emojis-component language="{{ language }}"></emojis-component> </script> <!-- Master Popover Template --> <script type="text/template" class="popover-emojis-master-template"> <div class="fluig-style-guide popover popover-emojis fs-no-shadow fs-no-border fs-position-bottom-right" role="tooltip"> <div class="arrow"></div> <h3 class="popover-title"></h3> <div class="popover-content fs-no-padding"></div> </div> </script>
var emojisComponentExample = SuperWidget.extend({ popoverEmojis: null, bindings: { local: {}, global: { 'emojis-component': ['select-emoji_selectEmojiPopover'] } }, init: function() { this.initPopoverEmojis(); }, selectEmojiPopover: function(ev) { var emoji = ev.detail.emoji; var $textarea = $('#post-content-field-emojis'); this.insertAtCursor( $textarea[0], emoji ); $textarea.trigger('input'); // Closes popover after select emoji this.popoverEmojis.popover('hide'); }, insertAtCursor: function(textarea, emoji) { if (textarea.selectionStart || textarea.selectionStart === 0) { var startPos = textarea.selectionStart; var endPos = textarea.selectionEnd; textarea.value = textarea.value.substring(0, startPos) + emoji + textarea.value.substring(endPos, textarea.value.length); } else { textarea.value += emoji; } }, initPopoverEmojis: function() { var language = 'pt_BR'; var template = Mustache.render( this.templates['.popover-emojis-master-template'] ); var content = Mustache.render( this.templates['.popover-emojis-template'], { language: language } ); this.popoverEmojis = FLUIGC.popover('[data-modal-open-emojis-popover]', { trigger: 'click', placement: 'bottom', html: true, container: '[data-form-post-emojis]', template: template, content: content }); } });
Rendering the emojis component with the default language.
<emojis-component id="emojis-example-1"></emojis-component>
The example below shows how to change the language of the emojis component to English. This change influences the component's labels and also the keywords for filtering.
<emojis-component id="emojis-example-2" language="en_US"></emojis-component>
The example below shows how to listen for the emoji selection event and display it in an alert.
<emojis-component id="emojis-example-3" language="pt_BR"></emojis-component>
var emojiComponent = document.querySelector('#emojis-example-3'); emojiComponent.addEventListener('select-emoji', (event) => { alert(event.detail.emoji); })
Element settings have the following attributes:
Name | Type | Default | Description |
---|---|---|---|
language | String | 'pt_BR' | Sets the language of the component. This change influences the component's labels and also the keywords for filtering. The options are accepted pt_BR , en_US and es . |
Element events are as follows:
Name | Description |
---|---|
select-emoji | This event is fired immediately when an emoji is selected. The selected emoji is available in the event.detail.emoji object. |
Includes more than 300 glyphs in font format from the Icons set, developed by the fluig Team.
Copy and paste the class below the icon, preceded by the class "flaticon" or "fluigicon".
For performance reasons, all icons require a base class and individual icon class. To use, place the following code just about anywhere. Be sure to leave a space between the icon and text for proper padding.
As helper classes, we have included some icon sizes, that have to be used only with icon elements.
<i class="flaticon flaticon-person icon-xs" aria-hidden="true"></i> <i class="flaticon flaticon-person icon-sm" aria-hidden="true"></i> <i class="flaticon flaticon-person icon-md" aria-hidden="true"></i> <i class="flaticon flaticon-person icon-lg" aria-hidden="true"></i> <i class="flaticon flaticon-person icon-xl" aria-hidden="true"></i> <i class="flaticon flaticon-person icon-thumbnail-xs" aria-hidden="true"></i> <i class="flaticon flaticon-person icon-thumbnail-sm" aria-hidden="true"></i> <i class="flaticon flaticon-person icon-thumbnail-md" aria-hidden="true"></i> <i class="flaticon flaticon-person icon-thumbnail-lg" aria-hidden="true"></i>
It is possible to select one of the flat icons through the custom element icons-component
, as in the example below:
Only flaticons are supported in this component. Fluigicons and other iconfont families are not supported.
<icons-component id="icons-example-1"></icons-component>
Element settings have the following attributes:
Name | Type | Default | Description |
---|---|---|---|
language | String | 'pt_BR' | Sets the language of the component. This change influences the component's labels. The options are accepted pt_BR , en_US and es . |
Element events are as follows:
Name | Description |
---|---|
select-icon | This event is fired immediately when an icon is selected. The selected icon is available in the event.detail.icon object. |
Illustrations is a component with images to compose a layout. They can be used as a common image and their height and width can be changed as required.
<img src="/style-guide/images/illustrations/browser-code.svg" title="browser code"> <img src="/style-guide/images/illustrations/dark/browser-code.svg" title="browser code">
<!-- browser-code illustration --> <img src="/style-guide/images/illustrations/browser-code.svg" title="browser-code"> <!-- builder illustration --> <img src="/style-guide/images/illustrations/builder.svg" title="builder"> <!-- clock illustration --> <img src="/style-guide/images/illustrations/clock.svg" title="clock"> <!-- disconnected illustration --> <img src="/style-guide/images/illustrations/disconnected.svg" title="disconnected"> <!-- diskette illustration --> <img src="/style-guide/images/illustrations/diskette.svg" title="diskette"> <!-- download-file illustration --> <img src="/style-guide/images/illustrations/download-file.svg" title="download-file"> <!-- earth-globe illustration --> <img src="/style-guide/images/illustrations/earth-globe.svg" title="earth-globe"> <!-- email illustration --> <img src="/style-guide/images/illustrations/email.svg" title="email"> <!-- empty illustration --> <img src="/style-guide/images/illustrations/empty.svg" title="empty"> <!-- error-desktop illustration --> <img src="/style-guide/images/illustrations/error-desktop.svg" title="error-desktop"> <!-- error-mobile illustration --> <img src="/style-guide/images/illustrations/error-mobile.svg" title="error-mobile"> <!-- faq illustration --> <img src="/style-guide/images/illustrations/faq.svg" title="faq"> <!-- film-reel illustration --> <img src="/style-guide/images/illustrations/film-reel.svg" title="film-reel"> <!-- galery illustration --> <img src="/style-guide/images/illustrations/galery.svg" title="galery"> <!-- layout-group illustration --> <img src="/style-guide/images/illustrations/layout-group.svg" title="layout-group"> <!-- layout illustration --> <img src="/style-guide/images/illustrations/layout.svg" title="layout"> <!-- list illustration --> <img src="/style-guide/images/illustrations/list.svg" title="list"> <!-- mortarboard illustration --> <img src="/style-guide/images/illustrations/mortarboard.svg" title="mortarboard"> <!-- no-pic illustration --> <img src="/style-guide/images/illustrations/no-pic.svg" title="no-pic"> <!-- paint-roller illustration --> <img src="/style-guide/images/illustrations/paint-roller.svg" title="paint-roller"> <!-- paper illustration --> <img src="/style-guide/images/illustrations/paper.svg" title="paper"> <!-- post illustration --> <img src="/style-guide/images/illustrations/post.svg" title="post"> <!-- rocket illustration --> <img src="/style-guide/images/illustrations/rocket.svg" title="rocket"> <!-- search illustration --> <img src="/style-guide/images/illustrations/search.svg" title="search"> <!-- shield illustration --> <img src="/style-guide/images/illustrations/shield.svg" title="shield"> <!-- smartphone illustration --> <img src="/style-guide/images/illustrations/smartphone.svg" title="smartphone"> <!-- trash illustration --> <img src="/style-guide/images/illustrations/trash.svg" title="trash"> <!-- caution illustration --> <img src="/style-guide/images/illustrations/caution.svg" title="caution"> <!-- upload-file illustration --> <img src="/style-guide/images/illustrations/upload-file.svg" title="upload-file"> <!-- users illustration --> <img src="/style-guide/images/illustrations/users.svg" title="users"> <!-- hourglass illustration --> <img src="/style-guide/images/illustrations/hourglass.svg" title="hourglass"> <!-- community illustration --> <img src="/style-guide/images/illustrations/community.svg" title="community"> <!-- success illustration --> <img src="/style-guide/images/illustrations/success.svg" title="success"> <!-- flow illustration --> <img src="/style-guide/images/illustrations/flow.svg" title="flow"> <!-- widgets illustration --> <img src="/style-guide/images/illustrations/widgets.svg" title="widgets"> <!-- folder illustration --> <img src="/style-guide/images/illustrations/folder.svg" title="folder"> <!-- android illustration --> <img src="/style-guide/images/illustrations/android.svg" title="android"> <!-- agreement illustration --> <img src="/style-guide/images/illustrations/agreement.svg" title="agreement"> <!-- agreement-block illustration --> <img src="/style-guide/images/illustrations/agreement-block.svg" title="agreement-block"> <!-- agreement-broken illustration --> <img src="/style-guide/images/illustrations/agreement-broken.svg" title="agreement-broken"> <!-- agreement-caution illustration --> <img src="/style-guide/images/illustrations/agreement-caution.svg" title="agreement-caution"> <!-- android illustration --> <img src="/style-guide/images/illustrations/android.svg" title="android"> <!-- article-block illustration --> <img src="/style-guide/images/illustrations/article-block.svg" title="article-block"> <!-- article-broken illustration --> <img src="/style-guide/images/illustrations/article-broken.svg" title="article-broken"> <!-- article-caution illustration --> <img src="/style-guide/images/illustrations/article-caution.svg" title="article-caution"> <!-- book illustration --> <img src="/style-guide/images/illustrations/book.svg" title="book"> <!-- builder-block illustration --> <img src="/style-guide/images/illustrations/builder-block.svg" title="builder-block"> <!-- builder-broken illustration --> <img src="/style-guide/images/illustrations/builder-broken.svg" title="builder-broken"> <!-- builder-caution illustration --> <img src="/style-guide/images/illustrations/builder-caution.svg" title="builder-caution"> <!-- building illustration --> <img src="/style-guide/images/illustrations/building.svg" title="building"> <!-- call-center illustration --> <img src="/style-guide/images/illustrations/call-center.svg" title="call-center"> <!-- camera illustration --> <img src="/style-guide/images/illustrations/camera.svg" title="camera"> <!-- cash illustration --> <img src="/style-guide/images/illustrations/cash.svg" title="cash"> <!-- cloud illustration --> <img src="/style-guide/images/illustrations/cloud.svg" title="cloud"> <!-- construction illustration --> <img src="/style-guide/images/illustrations/construction.svg" title="construction"> <!-- diagram illustration --> <img src="/style-guide/images/illustrations/diagram.svg" title="diagram"> <!-- digital illustration --> <img src="/style-guide/images/illustrations/digital.svg" title="digital"> <!-- error illustration --> <img src="/style-guide/images/illustrations/error.svg" title="error"> <!-- folder-block illustration --> <img src="/style-guide/images/illustrations/folder-block.svg" title="folder-block"> <!-- folder-broken illustration --> <img src="/style-guide/images/illustrations/folder-broken.svg" title="folder-broken"> <!-- folder-caution illustration --> <img src="/style-guide/images/illustrations/folder-caution.svg" title="folder-caution"> <!-- forum illustration --> <img src="/style-guide/images/illustrations/forum.svg" title="forum"> <!-- gallery illustration --> <img src="/style-guide/images/illustrations/gallery.svg" title="gallery"> <!-- image illustration --> <img src="/style-guide/images/illustrations/image.svg" title="image"> <!-- image-block illustration --> <img src="/style-guide/images/illustrations/image-block.svg" title="image-block"> <!-- image-broken illustration --> <img src="/style-guide/images/illustrations/image-broken.svg" title="image-broken"> <!-- image-caution illustration --> <img src="/style-guide/images/illustrations/image-caution.svg" title="image-caution"> <!-- link-broken illustration --> <img src="/style-guide/images/illustrations/link-broken.svg" title="link-broken"> <!-- post-broken illustration --> <img src="/style-guide/images/illustrations/post-broken.svg" title="post-broken"> <!-- profits illustration --> <img src="/style-guide/images/illustrations/profits.svg" title="profits"> <!-- settings illustration --> <img src="/style-guide/images/illustrations/settings.svg" title="settings"> <!-- storage illustration --> <img src="/style-guide/images/illustrations/storage.svg" title="storage"> <!-- tasks illustration --> <img src="/style-guide/images/illustrations/tasks.svg" title="tasks"> <!-- user illustration --> <img src="/style-guide/images/illustrations/user.svg" title="user"> <!-- user-group illustration --> <img src="/style-guide/images/illustrations/user-group.svg" title="user-group"> <!-- video illustration --> <img src="/style-guide/images/illustrations/video.svg" title="video"> <!-- video-block illustration --> <img src="/style-guide/images/illustrations/video-block.svg" title="video-block"> <!-- video-broken illustration --> <img src="/style-guide/images/illustrations/video-broken.svg" title="video-broken"> <!-- video-caution illustration --> <img src="/style-guide/images/illustrations/video-caution.svg" title="video-caution"> <!-- wifi-off illustration --> <img src="/style-guide/images/illustrations/wifi-off.svg" title="wifi-off"> <!-- package-diagram illustration --> <img src="/style-guide/images/illustrations/package-diagram.svg" title="package-diagram">
<!-- browser-code illustration --> <img src="/style-guide/images/illustrations/dark/browser-code.svg" title="browser-code"> <!-- builder illustration --> <img src="/style-guide/images/illustrations/dark/builder.svg" title="builder"> <!-- clock illustration --> <img src="/style-guide/images/illustrations/dark/clock.svg" title="clock"> <!-- disconnected illustration --> <img src="/style-guide/images/illustrations/dark/disconnected.svg" title="disconnected"> <!-- diskette illustration --> <img src="/style-guide/images/illustrations/dark/diskette.svg" title="diskette"> <!-- download-file illustration --> <img src="/style-guide/images/illustrations/dark/download-file.svg" title="download-file"> <!-- earth-globe illustration --> <img src="/style-guide/images/illustrations/dark/earth-globe.svg" title="earth-globe"> <!-- email illustration --> <img src="/style-guide/images/illustrations/dark/email.svg" title="email"> <!-- empty illustration --> <img src="/style-guide/images/illustrations/dark/empty.svg" title="empty"> <!-- error-desktop illustration --> <img src="/style-guide/images/illustrations/dark/error-desktop.svg" title="error-desktop"> <!-- error-mobile illustration --> <img src="/style-guide/images/illustrations/dark/error-mobile.svg" title="error-mobile"> <!-- faq illustration --> <img src="/style-guide/images/illustrations/dark/faq.svg" title="faq"> <!-- film-reel illustration --> <img src="/style-guide/images/illustrations/dark/film-reel.svg" title="film-reel"> <!-- galery illustration --> <img src="/style-guide/images/illustrations/dark/galery.svg" title="galery"> <!-- layout-group illustration --> <img src="/style-guide/images/illustrations/dark/layout-group.svg" title="layout-group"> <!-- layout illustration --> <img src="/style-guide/images/illustrations/dark/layout.svg" title="layout"> <!-- list illustration --> <img src="/style-guide/images/illustrations/dark/list.svg" title="list"> <!-- mortarboard illustration --> <img src="/style-guide/images/illustrations/dark/mortarboard.svg" title="mortarboard"> <!-- no-pic illustration --> <img src="/style-guide/images/illustrations/dark/no-pic.svg" title="no-pic"> <!-- paint-roller illustration --> <img src="/style-guide/images/illustrations/dark/paint-roller.svg" title="paint-roller"> <!-- paper illustration --> <img src="/style-guide/images/illustrations/dark/paper.svg" title="paper"> <!-- post illustration --> <img src="/style-guide/images/illustrations/dark/post.svg" title="post"> <!-- rocket illustration --> <img src="/style-guide/images/illustrations/dark/rocket.svg" title="rocket"> <!-- search illustration --> <img src="/style-guide/images/illustrations/dark/search.svg" title="search"> <!-- shield illustration --> <img src="/style-guide/images/illustrations/dark/shield.svg" title="shield"> <!-- smartphone illustration --> <img src="/style-guide/images/illustrations/dark/smartphone.svg" title="smartphone"> <!-- trash illustration --> <img src="/style-guide/images/illustrations/dark/trash.svg" title="trash"> <!-- caution illustration --> <img src="/style-guide/images/illustrations/dark/caution.svg" title="caution"> <!-- upload-file illustration --> <img src="/style-guide/images/illustrations/dark/upload-file.svg" title="upload-file"> <!-- hourglass illustration --> <img src="/style-guide/images/illustrations/dark/hourglass.svg" title="hourglass"> <!-- community illustration --> <img src="/style-guide/images/illustrations/dark/community.svg" title="community"> <!-- success illustration --> <img src="/style-guide/images/illustrations/dark/success.svg" title="success"> <!-- flow illustration --> <img src="/style-guide/images/illustrations/dark/flow.svg" title="flow"> <!-- widgets illustration --> <img src="/style-guide/images/illustrations/dark/widgets.svg" title="widgets"> <!-- folder illustration --> <img src="/style-guide/images/illustrations/dark/folder.svg" title="folder"> <!-- android illustration --> <img src="/style-guide/images/illustrations/dark/android.svg" title="android"> <!-- agreement illustration --> <img src="/style-guide/images/illustrations/dark/agreement.svg" title="agreement"> <!-- agreement-block illustration --> <img src="/style-guide/images/illustrations/dark/agreement-block.svg" title="agreement-block"> <!-- agreement-broken illustration --> <img src="/style-guide/images/illustrations/dark/agreement-broken.svg" title="agreement-broken"> <!-- agreement-caution illustration --> <img src="/style-guide/images/illustrations/dark/agreement-caution.svg" title="agreement-caution"> <!-- android illustration --> <img src="/style-guide/images/illustrations/dark/android.svg" title="android"> <!-- article-block illustration --> <img src="/style-guide/images/illustrations/dark/article-block.svg" title="article-block"> <!-- article-broken illustration --> <img src="/style-guide/images/illustrations/dark/article-broken.svg" title="article-broken"> <!-- article-caution illustration --> <img src="/style-guide/images/illustrations/dark/article-caution.svg" title="article-caution"> <!-- book illustration --> <img src="/style-guide/images/illustrations/dark/book.svg" title="book"> <!-- builder-block illustration --> <img src="/style-guide/images/illustrations/dark/builder-block.svg" title="builder-block"> <!-- builder-broken illustration --> <img src="/style-guide/images/illustrations/dark/builder-broken.svg" title="builder-broken"> <!-- builder-caution illustration --> <img src="/style-guide/images/illustrations/dark/builder-caution.svg" title="builder-caution"> <!-- building illustration --> <img src="/style-guide/images/illustrations/dark/building.svg" title="building"> <!-- call-center illustration --> <img src="/style-guide/images/illustrations/dark/call-center.svg" title="call-center"> <!-- camera illustration --> <img src="/style-guide/images/illustrations/dark/camera.svg" title="camera"> <!-- cash illustration --> <img src="/style-guide/images/illustrations/dark/cash.svg" title="cash"> <!-- cloud illustration --> <img src="/style-guide/images/illustrations/dark/cloud.svg" title="cloud"> <!-- construction illustration --> <img src="/style-guide/images/illustrations/dark/construction.svg" title="construction"> <!-- diagram illustration --> <img src="/style-guide/images/illustrations/dark/diagram.svg" title="diagram"> <!-- digital illustration --> <img src="/style-guide/images/illustrations/dark/digital.svg" title="digital"> <!-- error illustration --> <img src="/style-guide/images/illustrations/dark/error.svg" title="error"> <!-- folder-block illustration --> <img src="/style-guide/images/illustrations/dark/folder-block.svg" title="folder-block"> <!-- folder-broken illustration --> <img src="/style-guide/images/illustrations/dark/folder-broken.svg" title="folder-broken"> <!-- folder-caution illustration --> <img src="/style-guide/images/illustrations/dark/folder-caution.svg" title="folder-caution"> <!-- forum illustration --> <img src="/style-guide/images/illustrations/dark/forum.svg" title="forum"> <!-- image illustration --> <img src="/style-guide/images/illustrations/dark/image.svg" title="image"> <!-- image-block illustration --> <img src="/style-guide/images/illustrations/dark/image-block.svg" title="image-block"> <!-- image-broken illustration --> <img src="/style-guide/images/illustrations/dark/image-broken.svg" title="image-broken"> <!-- image-caution illustration --> <img src="/style-guide/images/illustrations/dark/image-caution.svg" title="image-caution"> <!-- link-broken illustration --> <img src="/style-guide/images/illustrations/dark/link-broken.svg" title="link-broken"> <!-- post-broken illustration --> <img src="/style-guide/images/illustrations/dark/post-broken.svg" title="post-broken"> <!-- profits illustration --> <img src="/style-guide/images/illustrations/dark/profits.svg" title="profits"> <!-- settings illustration --> <img src="/style-guide/images/illustrations/dark/settings.svg" title="settings"> <!-- storage illustration --> <img src="/style-guide/images/illustrations/dark/storage.svg" title="storage"> <!-- tasks illustration --> <img src="/style-guide/images/illustrations/dark/tasks.svg" title="tasks"> <!-- user illustration --> <img src="/style-guide/images/illustrations/dark/user.svg" title="user"> <!-- user-group illustration --> <img src="/style-guide/images/illustrations/dark/user-group.svg" title="user-group"> <!-- video illustration --> <img src="/style-guide/images/illustrations/dark/video.svg" title="video"> <!-- video-block illustration --> <img src="/style-guide/images/illustrations/dark/video-block.svg" title="video-block"> <!-- video-broken illustration --> <img src="/style-guide/images/illustrations/dark/video-broken.svg" title="video-broken"> <!-- video-caution illustration --> <img src="/style-guide/images/illustrations/dark/video-caution.svg" title="video-caution"> <!-- wifi-off illustration --> <img src="/style-guide/images/illustrations/dark/wifi-off.svg" title="wifi-off"> <!-- package-diagram illustration --> <img src="/style-guide/images/illustrations/dark/package-diagram.svg" title="package-diagram">
To change the dimensions of the illustrations, simply add the height
and width
attributes in the image, as in the following example:
<img src="/style-guide/images/illustrations/upload-file.svg" title="upload file" width="200" height="200">
<i class="illustration illustration-browser-code illustration-xl" aria-hidden="true"></i> <i class="illustration illustration-browser-code-dark illustration-xl" aria-hidden="true"></i>
Available options | Class name |
---|---|
Types | illustration-browser-code , illustration-builder , illustration-clock , illustration-disconnected , illustration-diskette , illustration-download-file , illustration-earth-globe , illustration-email , illustration-empty , illustration-error-desktop , illustration-error-mobile , illustration-faq , illustration-film-reel , illustration-galery , illustration-layout-group , illustration-layout , illustration-list , illustration-mortarboard , illustration-no-pic , illustration-paint-roller , illustration-paper , illustration-post , illustration-rocket , illustration-search , illustration-shield , illustration-smartphone , illustration-trash , illustration-upload-file , illustration-caution , illustration-users , illustration-hourglass , illustration-success , illustration-flow , illustration-widgets , illustration-folder , illustration-agreement , illustration-agreement-block , illustration-agreement-broken , illustration-agreement-caution , illustration-android , illustration-article-block , illustration-article-broken , illustration-article-caution , illustration-book , illustration-builder-block , illustration-builder-broken , illustration-builder-caution , illustration-building , illustration-call-center , illustration-camera , illustration-cash , illustration-cloud , illustration-construction , illustration-diagram , illustration-digital , illustration-folder-block , illustration-folder-broken , illustration-folder-caution , illustration-forum , illustration-gallery , illustration-image , illustration-image-block , illustration-image-broken , illustration-image-caution , illustration-link-broken , illustration-post-broken , illustration-profits , illustration-settings , illustration-storage , illustration-tasks , illustration-user , illustration-user-group , illustration-video , illustration-video-block , illustration-video-broken , illustration-video-caution , illustration-wifi-off , illustration-package-diagram . |
Sizes | .illustration-xs 32x32px, .illustration-sm 64x64px, .illustration-md 96x96px, .illustration-lg 128x128px, .illustration-xl 160x160px. |
Extend form controls by adding text or buttons before, after, or on both sides of any text-based input. Use .input-group
with an .input-group-addon
to prepend or append elements to a single .form-control
.
Avoid using <select>
elements here as they cannot be fully styled in WebKit browsers.
When using tooltips or popovers on elements within an .input-group
, you'll have to specify the option container: 'body'
to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip or popover is triggered).
Do not mix form groups or grid column classes directly with input groups. Instead, nest the input group inside of the form group or grid-related element.
Place one add-on or button on either side of an input. You may also place one on both sides of an input.
We do not support multiple add-ons on a single side.
We do not support multiple form-controls in a single input group.
<div class="input-group"> <span class="input-group-addon">@</span> <input type="text" class="form-control" placeholder="Username"> </div> <div class="input-group"> <input type="text" class="form-control"> <span class="input-group-addon">.00</span> </div> <div class="input-group"> <span class="input-group-addon">$</span> <input type="text" class="form-control"> <span class="input-group-addon">.00</span> </div>
Add the relative form sizing classes to the .input-group
itself and contents within will automatically resize—no need for repeating the form control size classes on each element.
<div class="input-group input-group-lg"> <span class="input-group-addon">@</span> <input type="text" class="form-control" placeholder="Username"> </div> <div class="input-group"> <span class="input-group-addon">@</span> <input type="text" class="form-control" placeholder="Username"> </div> <div class="input-group input-group-sm"> <span class="input-group-addon">@</span> <input type="text" class="form-control" placeholder="Username"> </div>
Place any checkbox or radio option within an input group's addon instead of text.
<div class="row"> <div class="col-lg-6"> <div class="input-group"> <span class="input-group-addon"> <input type="checkbox"> </span> <input type="text" class="form-control"> </div> <!-- /input-group --> </div> <!-- /.col-lg-6 --> <div class="col-lg-6"> <div class="input-group"> <span class="input-group-addon"> <input type="radio"> </span> <input type="text" class="form-control"> </div> <!-- /input-group --> </div> <!-- /.col-lg-6 --> </div> <!-- /.row -->
Buttons in input groups are a bit different and require one extra level of nesting. Instead of .input-group-addon
, you'll need to use .input-group-btn
to wrap the buttons. This is required due to default browser styles that cannot be overridden.
<div class="row"> <div class="col-lg-6"> <div class="input-group"> <span class="input-group-btn"> <button class="btn btn-primary" type="button">Go!</button> </span> <input type="text" class="form-control"> </div> <!-- /input-group --> </div> <!-- /.col-lg-6 --> <div class="col-lg-6"> <div class="input-group"> <input type="text" class="form-control"> <span class="input-group-btn"> <button class="btn btn-primary" type="button">Go!</button> </span> </div> <!-- /input-group --> </div> <!-- /.col-lg-6 --> </div> <!-- /.row -->
<div class="row"> <div class="col-lg-6"> <div class="input-group"> <div class="input-group-btn"> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button> <ul class="dropdown-menu" role="menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div> <!-- /btn-group --> <input type="text" class="form-control"> </div> <!-- /input-group --> </div> <!-- /.col-lg-6 --> <div class="col-lg-6"> <div class="input-group"> <input type="text" class="form-control"> <div class="input-group-btn"> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button> <ul class="dropdown-menu dropdown-menu-right" role="menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div> <!-- /btn-group --> </div> <!-- /input-group --> </div> <!-- /.col-lg-6 --> </div> <!-- /.row -->
<div class="input-group"> <div class="input-group-btn"> <!-- Button and dropdown menu --> </div> <input type="text" class="form-control"> </div> <div class="input-group"> <input type="text" class="form-control"> <div class="input-group-btn"> <!-- Button and dropdown menu --> </div> </div>
<div class="input-group"> <div class="input-group-btn"> <button type="button" class="btn btn-danger" tabindex="-1">Action</button> <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" tabindex="-1"> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div> <input type="text" class="form-control"> </div> <div class="input-group"> <input type="text" class="form-control"> <div class="input-group-btn"> <button type="button" class="btn btn-danger" tabindex="-1">Action</button> <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" tabindex="-1"> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu dropdown-menu-right" role="menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div> </div>
Add any of the below mentioned modifier classes to change the appearance of a label.
<span class="label label-primary">Primary</span> <span class="label label-success">Success</span> <span class="label label-info">Info</span> <span class="label label-warning">Warning</span> <span class="label label-danger">Danger</span>
<span class="label label-totvs-collab">TOTVS Collab</span> <span class="label label-learning">Learning</span> <span class="label label-collab">Collab</span> <span class="label label-tasks">Tasks</span> <span class="label label-pages">Pages</span> <span class="label label-forms">Forms</span> <span class="label label-boards">Boards</span> <span class="label label-flow">Flow</span> <span class="label label-connector">Connector</span>
Listed below are the labels with actions to remove.
<span class="label label-default label-removable"> Default <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span> <span class="label label-primary label-removable"> Primary <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span> <span class="label label-success label-removable"> Success <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span> <span class="label label-info label-removable"> Info <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span> <span class="label label-warning label-removable"> Warning <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span> <span class="label label-danger label-removable"> Danger <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span>
<span class="label label-totvs-collab label-removable"> TOTVS Collab <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span> <span class="label label-learning label-removable"> Learning <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span> <span class="label label-collab label-removable"> Collab <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span> <span class="label label-tasks label-removable"> Tasks <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span> <span class="label label-pages label-removable"> Pages <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span> <span class="label label-forms label-removable"> Forms <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span> <span class="label label-boards label-removable"> Boards <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span> <span class="label label-flow label-removable"> Flow <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span> <span class="label label-connector label-removable"> Connector <button class="remove"> <i class="flaticon flaticon-close icon-xs" aria-hidden="true"></i> </button> </span>
Rendering problems can arise when you have dozens of inline labels within a narrow container, each containing its own inline-block
element (like an icon). The way around this is setting display: inline-block;
.
List groups are a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content.
The most basic list group is simply an unordered list with list items, and the proper classes. Build upon it with the options that follow, or your own CSS as needed.
<ul class="list-group"> <li class="list-group-item">Cras justo odio</li> <li class="list-group-item">Dapibus ac facilisis in</li> <li class="list-group-item">Morbi leo risus</li> <li class="list-group-item">Porta ac consectetur ac</li> <li class="list-group-item">Vestibulum at eros</li> </ul>
Add the badges component to any list group item and it will automatically be positioned on the right.
<ul class="list-group"> <li class="list-group-item"> <span class="badge">14</span> Cras justo odio </li> </ul>
Add any of the below mentioned modifier classes to change the appearance of a badge.
<ul class="list-group"> <li class="list-group-item"> <span class="badge badge-warning">14</span> Cras justo odio </li> <li class="list-group-item"> <span class="badge badge-danger">2</span> Dapibus ac facilisis in </li> <li class="list-group-item"> <span class="badge badge-info">1</span> Morbi leo risus </li> <li class="list-group-item"> <span class="badge badge-success">4</span> Amet veritum statum </li> </ul>
Linkify list group items by using anchor tags instead of list items (that also means a parent <div>
instead of an <ul>
). No need for individual parents around each element.
<div class="list-group"> <a href="#" class="list-group-item active"> Cras justo odio </a> <a href="#" class="list-group-item">Dapibus ac facilisis in</a> <a href="#" class="list-group-item">Morbi leo risus</a> <a href="#" class="list-group-item">Porta ac consectetur ac</a> <a href="#" class="list-group-item">Vestibulum at eros</a> </div>
Add .disabled
to a .list-group-item
to gray it out to appear disabled.
<div class="list-group"> <a href="#" class="list-group-item disabled"> Cras justo odio </a> <a href="#" class="list-group-item">Dapibus ac facilisis in</a> <a href="#" class="list-group-item">Morbi leo risus</a> <a href="#" class="list-group-item">Porta ac consectetur ac</a> <a href="#" class="list-group-item">Vestibulum at eros</a> </div>
Use contextual classes to style list items, default or linked. Also includes .active
state.
<ul class="list-group"> <li class="list-group-item list-group-item-success">Dapibus ac facilisis in</li> <li class="list-group-item list-group-item-info">Cras sit amet nibh libero</li> <li class="list-group-item list-group-item-warning">Porta ac consectetur ac</li> <li class="list-group-item list-group-item-danger">Vestibulum at eros</li> </ul> <div class="list-group"> <a href="#" class="list-group-item list-group-item-success">Dapibus ac facilisis in</a> <a href="#" class="list-group-item list-group-item-info">Cras sit amet nibh libero</a> <a href="#" class="list-group-item list-group-item-warning">Porta ac consectetur ac</a> <a href="#" class="list-group-item list-group-item-danger">Vestibulum at eros</a> </div>
Add nearly any HTML within, even for linked list groups like the one below.
Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
<div class="list-group"> <a href="#" class="list-group-item active"> <h4 class="list-group-item-heading">List group item heading</h4> <p class="list-group-item-text">...</p> </a> </div>
Abstract object styles for building various types of components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.
The default media allow to float a media object (images, video, audio) to the left or right of a content block.
<div class="media"> <a class="pull-left" href="#"> <img class="media-object" src="..." alt="..."> </a> <div class="media-body"> <h4 class="media-heading">Media heading</h4> ... </div> </div>
With a bit of extra markup, you can use media inside list (useful for comment threads or articles lists).
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
<ul class="media-list"> <li class="media"> <a class="pull-left" href="#"> <img class="media-object" src="..." alt="..."> </a> <div class="media-body"> <h4 class="media-heading">Media heading</h4> ... </div> </li> </ul>
Navbars are responsive meta components that serve as navigation headers for your application or site. They begin collapsed (and are toggleable) in mobile views and become horizontal as the available viewport width increases.
If JavaScript is disabled and the viewport is narrow enough that the navbar collapses, it will be impossible to expand the navbar and view the content within the .navbar-collapse
.
The navbar collapses into its vertical mobile view when the viewport is narrower than @grid-float-breakpoint
, and expands into its horizontal non-mobile view when the viewport is at least @grid-float-breakpoint
in width. Adjust this variable in the Less source to control when the navbar collapses/expands. The default value is 768px
(the smallest "small" or "tablet" screen).
<nav class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Brand</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> <li class="divider"></li> <li><a href="#">One more separated link</a></li> </ul> </li> </ul> <form class="navbar-form navbar-left" role="search"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search"> </div> <button type="submit" class="btn btn-default">Submit</button> </form> <ul class="nav navbar-nav navbar-right"> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </li> </ul> </div> <!-- /.navbar-collapse --> </div> <!-- /.container-fluid --> </nav>
The responsive navbar requires the collapse plugin to be included in your version of Style Guide.
Be sure to add a role="navigation"
to every navbar to help with accessibility.
Place form content within .navbar-form
for proper vertical alignment and collapsed behavior in narrow viewports. Use the alignment options to decide where it resides within the navbar content.
As a heads up, .navbar-form
shares much of its code with .form-inline
via mixin. Some form controls, like input groups, may require fixed widths to be show up properly within a navbar.
<form class="navbar-form navbar-left" role="search"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search"> </div> <button type="submit" class="btn btn-default">Submit</button> </form>
There are some caveats regarding using form controls within fixed elements on mobile devices. See our browser support docs for details.
Screen readers will have trouble with your forms if you don't include a label for every input. For these inline navbar forms, you can hide the labels using the .sr-only
class.
Add the .navbar-btn
class to <button>
elements not residing in a <form>
to vertically center them in the navbar.
<button type="button" class="btn btn-default navbar-btn">Sign in</button>
Like the standard button classes, .navbar-btn
can be used on <a>
and <input>
elements. However, neither .navbar-btn
nor the standard button classes should be used on <a>
elements within .navbar-nav
.
Wrap strings of text in an element with .navbar-text
, usually on a <p>
tag for proper leading and color.
<p class="navbar-text">Signed in as Mark Otto</p>
For folks using standard links that are not within the regular navbar navigation component, use the .navbar-link
class to add the proper colors for the default and inverse navbar options.
<p class="navbar-text navbar-right">Signed in as <a href="#" class="navbar-link">Mark Otto</a></p>
Align nav links, forms, buttons, or text, using the .navbar-left
or .navbar-right
utility classes. Both classes will add a CSS float in the specified direction. For example, to align nav links, put them in a separate <ul>
with the respective utility class applied.
These classes are mixin-ed versions of .pull-left
and .pull-right
, but they're scoped to media queries for easier handling of navbar components across device sizes.
Navbars currently have a limitation with multiple .navbar-right
classes. To properly space content, we use negative margin on the last .navbar-right
element. When there are multiple elements using that class, these margins don't work as intended.
We'll revisit this when we can rewrite that component in v4.
Add .navbar-fixed-top
and include a .container
or .container-fluid
to center and pad navbar content.
<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> ... </div> </nav>
The fixed navbar will overlay your other content, unless you add padding
to the top of the <body>
. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.
body { padding-top: 70px; }
Make sure to include this after the core Style Guide CSS.
Add .navbar-fixed-bottom
and include a .container
or .container-fluid
to center and pad navbar content.
<nav class="navbar navbar-default navbar-fixed-bottom" role="navigation"> <div class="container"> ... </div> </nav>
The fixed navbar will overlay your other content, unless you add padding
to the bottom of the <body>
. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.
body { padding-bottom: 70px; }
Make sure to include this after the core Style Guide CSS.
Create a full-width navbar that scrolls away with the page by adding .navbar-static-top
and include a .container
or .container-fluid
to center and pad navbar content.
Unlike the .navbar-fixed-*
classes, you do not need to change any padding on the body
.
<nav class="navbar navbar-default navbar-static-top" role="navigation"> <div class="container"> ... </div> </nav>
Modify the look of the navbar by adding .navbar-inverse
.
<nav class="navbar navbar-inverse" role="navigation"> ... </nav>
Navs available in Style Guide have shared markup, starting with the base .nav
class, as well as shared states. Swap modifier classes to switch between each style.
Note the .nav-tabs
class requires the .nav
base class.
<ul class="nav nav-tabs clearfix" role="tablist"> <li class="active"><a href="#">Home</a></li> <li><a href="#">Profile</a></li> <li><a href="#">Messages</a></li> </ul>
For tabs with tabbable areas, you must use the tabs JavaScript plugin.
Example available in FAQ
Take that same HTML, but use .nav-pills
instead:
<ul class="nav nav-pills clearfix"> <li class="active"><a href="#">Home</a></li> <li><a href="#">Profile</a></li> <li><a href="#">Messages</a></li> </ul>
Pills are also vertically stackable. Just add .nav-stacked
.
<ul class="nav nav-pills nav-stacked"> ... </ul>
Easily make tabs or pills equal widths of their parent at screens wider than 768px with .nav-justified
. On smaller screens, the nav links are stacked.
As of v7.0.1, Safari exhibits a bug in which resizing your browser horizontally causes rendering errors in the justified nav that are cleared upon refreshing. This bug is also shown in the justified nav example.
<ul class="nav nav-tabs nav-justified" role="tablist"> ... </ul> <ul class="nav nav-pills nav-justified"> ... </ul>
You can use the ellipsis in Navs with .nav-ellipsis
.
CSS ellipsis will work only if the navs li
has a width configured. This is shown in the ellipsis nav example.
Nav ellipsis and nav justified cannot work together. If you use nav justified, you wont be able to use nav ellipsis.
<ul class="nav nav-tabs nav-ellipsis" role="tablist"> <li class="active" style="width: 15%"><a href="#"><span class="fluigicon fluigicon-user"></span>User tab - Title</a></li> <li style="width: 15%"><a href="#">Tab 2 - Title</a></li> <li style="width: 15%"><a href="#">Tab 3 - Title</a></li> <li style="width: 15%"><a href="#">Tab 4 - Title</a></li> <li style="width: 15%"><a href="#">Tab 5 - Title</a></li> </ul>
For any nav component (tabs or pills), add .disabled
for gray links and no hover effects.
This class will only change the <a>
's appearance, not its functionality. Use custom JavaScript to disable links here.
<ul class="nav nav-pills clearfix"> ... <li class="disabled"><a href="#">Disabled link</a></li> ... </ul>
Add dropdown menus with a little extra HTML and the dropdowns JavaScript plugin.
<ul class="nav nav-tabs clearfix" role="tablist"> ... <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#"> Dropdown <span class="caret"></span> </a> <ul class="dropdown-menu" role="menu"> ... </ul> </li> ... </ul>
<ul class="nav nav-pills clearfix"> ... <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#"> Dropdown <span class="caret"></span> </a> <ul class="dropdown-menu" role="menu"> ... </ul> </li> ... </ul>
A simple shell for an h1
to appropriately space out and segment sections of content on a page. It can utilize the h1
's default small
element, as well as most other components (with additional styles).
<div class="page-header"> <h1>Example page header <small>Subtext for header</small></h1> </div>
Adding classes fs-no-margin fs-ellipsis fs-full-width
to element h1
. The standard title pages of layout will be applied.
<div class="page-header"> <div class="row"> <div class="col-md-8"> <h1 class="fs-no-margin fs-ellipsis fs-full-width">Example page header with applied ellipsis class</h1> </div> <div class="col-md-4"> <div class="pull-right"> <div class="btn-group"> <button type="button" class="btn btn-primary">Action</button> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div> <button class="btn btn-default" type="button">Default</button> </div> </div> </div> </div>
Provide pagination links for your site or app with the multi-page pagination component, or the simpler pager alternative.
Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.
<ul class="pagination"> <li><a href="#">«</a></li> <li><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#">»</a></li> </ul>
Links are customizable for different circumstances. Use .disabled
for unclickable links and .active
to indicate the current page.
<ul class="pagination"> <li class="disabled"><a href="#">«</a></li> <li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li> ... </ul>
You can optionally swap out active or disabled anchors for <span>
to remove click functionality while retaining intended styles.
<ul class="pagination"> <li class="disabled"><span>«</span></li> <li class="active"><span>1 <span class="sr-only">(current)</span></span></li> ... </ul>
Fancy larger or smaller pagination? Add .pagination-lg
or .pagination-sm
for additional sizes.
<ul class="pagination pagination-lg">...</ul> <ul class="pagination">...</ul> <ul class="pagination pagination-sm">...</ul>
Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.
By default, the pager centers links.
<ul class="pager"> <li><a href="#">Previous</a></li> <li><a href="#">Next</a></li> </ul>
Alternatively, you can align each link to the sides:
<ul class="pager"> <li class="previous"><a href="#">← Older</a></li> <li class="next"><a href="#">Newer →</a></li> </ul>
Pager links also use the general .disabled
utility class from the pagination.
<ul class="pager"> <li class="previous disabled"><a href="#">← Older</a></li> <li class="next"><a href="#">Newer →</a></li> </ul>
While not always necessary, sometimes you need to put your DOM in a box. For those situations, try the panel component.
By default, all the .panel
does is apply some basic border and padding to contain some content.
<div class="panel panel-default"> <div class="panel-body"> Basic panel example </div> </div>
Easily add a heading container to your panel with .panel-heading
. You may also include any <h1>
-<h6>
with a .panel-title
class to add a pre-styled heading.
For proper link coloring, be sure to place links in headings within .panel-title
.
<div class="panel panel-default"> <div class="panel-heading">Panel heading without title</div> <div class="panel-body"> Panel content </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Panel title</h3> </div> <div class="panel-body"> Panel content </div> </div>
Wrap buttons or secondary text in .panel-footer
. Note that panel footers do not inherit colors and borders when using contextual variations as they are not meant to be in the foreground.
<div class="panel panel-default"> <div class="panel-body"> Panel content </div> <div class="panel-footer">Panel footer</div> </div>
Like other components, easily make a panel more meaningful to a particular context by adding any of the contextual state classes.
<div class="panel panel-primary">...</div> <div class="panel panel-success">...</div> <div class="panel panel-info">...</div> <div class="panel panel-warning">...</div> <div class="panel panel-danger">...</div>
Add any non-bordered .table
within a panel for a seamless design. If there is a .panel-body
, we add an extra border to the top of the table for separation.
Some default panel content here. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam id dolor id nibh ultricies vehicula ut id elit.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry | the Bird |
<div class="panel panel-default"> <!-- Default panel contents --> <div class="panel-heading">Panel heading</div> <div class="panel-body"> <p>...</p> </div> <!-- Table --> <table class="table"> ... </table> </div>
If there is no panel body, the component moves from panel header to table without interruption.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry | the Bird |
<div class="panel panel-default"> <!-- Default panel contents --> <div class="panel-heading">Panel heading</div> <!-- Table --> <table class="table"> ... </table> </div>
Easily include full-width list groups within any panel.
Some default panel content here. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam id dolor id nibh ultricies vehicula ut id elit.
<div class="panel panel-default"> <!-- Default panel contents --> <div class="panel-heading">Panel heading</div> <div class="panel-body"> <p>...</p> </div> <!-- List group --> <ul class="list-group"> <li class="list-group-item">Cras justo odio</li> <li class="list-group-item">Dapibus ac facilisis in</li> <li class="list-group-item">Morbi leo risus</li> <li class="list-group-item">Porta ac consectetur ac</li> <li class="list-group-item">Vestibulum at eros</li> </ul> </div>
Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.
Progress bars use CSS3 transitions and animations to achieve some of their effects. These features are not supported in Internet Explorer 9 and below or older versions of Firefox. Opera 12 does not support animations.
Default progress bar.
<div class="progress"> <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;"> <span class="sr-only">60% Complete</span> </div> </div>
Remove the .sr-only
class from within the progress bar to show a visible percentage. For low percentages, consider adding a min-width
to ensure the label's text is fully visible.
<div class="progress"> <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;"> 60% </div> </div>
Progress bars representing low single digit percentages, as well as 0%, include a min-width: 20px;
for legibility.
<div class="progress"> <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"> 0% </div> </div> <div class="progress"> <div class="progress-bar" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" style="width: 2%;"> 2% </div> </div>
Progress bars use some of the same button and alert classes for consistent styles.
<div class="progress"> <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%"> <span class="sr-only">40% Complete (success)</span> </div> </div> <div class="progress"> <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%"> <span class="sr-only">20% Complete</span> </div> </div> <div class="progress"> <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%"> <span class="sr-only">60% Complete (warning)</span> </div> </div> <div class="progress"> <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%"> <span class="sr-only">80% Complete</span> </div> </div>
Uses a gradient to create a striped effect. Not available in IE8.
<div class="progress"> <div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%"> <span class="sr-only">40% Complete (success)</span> </div> </div> <div class="progress"> <div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%"> <span class="sr-only">20% Complete</span> </div> </div> <div class="progress"> <div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%"> <span class="sr-only">60% Complete (warning)</span> </div> </div> <div class="progress"> <div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%"> <span class="sr-only">80% Complete (danger)</span> </div> </div>
Add .active
to .progress-bar-striped
to animate the stripes right to left. Not available in IE9 and below.
<div class="progress"> <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%"> <span class="sr-only">45% Complete</span> </div> </div>
Compatible with IE9.
<div class="progress"> <div class="progress-bar-gif" role="progressbar" style="width: 100%;"></div> </div>
Place multiple bars into the same .progress
to stack them.
<div class="progress"> <div class="progress-bar progress-bar-success" style="width: 35%"> <span class="sr-only">35% Complete (success)</span> </div> <div class="progress-bar progress-bar-warning progress-bar-striped" style="width: 20%"> <span class="sr-only">20% Complete (warning)</span> </div> <div class="progress-bar progress-bar-danger" style="width: 10%"> <span class="sr-only">10% Complete (danger)</span> </div> </div>
Extreme small size progress bar.
<div class="bs-example"> <div class="progress"> <div class="progress-bar progress-bar-xs" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;"></div> </div> </div>
Small size progress bar.
<div class="bs-example"> <div class="progress"> <div class="progress-bar progress-bar-sm" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;"></div> </div> </div>
Large size progress bar.
<div class="bs-example"> <div class="progress"> <div class="progress-bar progress-bar-lg" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;"></div> </div> </div>
Large size progress bar with text.
<div class="bs-example"> <div class="progress"> <div class="progress-bar progress-bar-lg" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;"> 60% </div> </div> </div>
The smart ellipsis component adds the ellipsis (...) in the middle of the text, being able to configure how many characters will be displayed at the end.
By default, the component will always display the last 10 characters.
<div class="row"> <div class="col-md-4"> <p> <smart-ellipsis text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod."></smart-ellipsis> </p> </div> </div>
Through the last-chars
parameter it is possible to configure the number of characters to be displayed at the end of the text, after the ellipsis. It is also possible to configure to display a tooltip in the element, through the parameter enable-tooltip
.
<div class="row"> <div class="col-md-4"> <p> <smart-ellipsis last-chars="5" enable-tooltip="true" text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod."></smart-ellipsis> </p> </div> </div>
Steps is a component that provides the visual representation of a step-by-step process for use in wizards.
Default steps horizontal example.
<ul class="steps"> <li class="step-item done"> <span class="step-bullet"></span> <span class="step-label">Solicitação</span> </li> <li class="step-item done active"> <span class="step-bullet"></span> <span class="step-label">Dados do formulário</span> </li> <li class="step-item"> <span class="step-bullet"></span> <span class="step-label">Permissões</span> </li> <li class="step-item"> <span class="step-bullet"></span> <span class="step-label">Pré-visualização</span> </li> </ul>
Default steps vertical example.
<ul class="steps steps-vertical"> <li class="step-item done"> <span class="step-bullet"></span> <span class="step-label">Solicitação</span> </li> <li class="step-item done active"> <span class="step-bullet"></span> <span class="step-label">Dados do formulário</span> </li> <li class="step-item"> <span class="step-bullet"></span> <span class="step-label">Permissões</span> </li> <li class="step-item"> <span class="step-bullet"></span> <span class="step-label">Pré-visualização</span> </li> </ul>
Default steps with error example.
<ul class="steps"> <li class="step-item done"> <span class="step-bullet"></span> <span class="step-label">Solicitação</span> </li> <li class="step-item done has-error"> <span class="step-bullet"></span> <span class="step-label">Dados do formulário</span> </li> <li class="step-item done active"> <span class="step-bullet"></span> <span class="step-label">Permissões</span> </li> <li class="step-item"> <span class="step-bullet"></span> <span class="step-label">Pré-visualização</span> </li> </ul>
The four common states are available, with the classes has-success
, has-error
, has-info
and has-warning
Switch is a component that adds a style to the checkbox and radio elements, making them more beautiful, interactive and improving their accessibility.
<div class="switch switch-primary"> <input class="switch-input" type="checkbox" id="switch-1-1" /> <label class="switch-button" for="switch-1-1">Toggle</label> </div> <div class="switch switch-success"> <input class="switch-input" type="checkbox" id="switch-1-2" /> <label class="switch-button" for="switch-1-2">Toggle</label> </div> <div class="switch switch-info"> <input class="switch-input" type="checkbox" id="switch-1-3" /> <label class="switch-button" for="switch-1-3">Toggle</label> </div> <div class="switch switch-warning"> <input class="switch-input" type="checkbox" id="switch-1-4" /> <label class="switch-button" for="switch-1-4">Toggle</label> </div> <div class="switch switch-danger"> <input class="switch-input" type="checkbox" id="switch-1-5" /> <label class="switch-button" for="switch-1-5">Toggle</label> </div>
This component is only available in the new Style Guide theme, fluig Flat. If it is used in the default theme, it will be displayed in the primary colors of the theme or without any formatting.
<div class="switch switch-cerise"> <input class="switch-input" type="checkbox" id="switch-2-1" /> <label class="switch-button" for="switch-2-1">Toggle</label> </div> <div class="switch switch-cerise-gradient"> <input class="switch-input" type="checkbox" id="switch-2-2" /> <label class="switch-button" for="switch-2-2">Toggle</label> </div> <div class="switch switch-ocean"> <input class="switch-input" type="checkbox" id="switch-2-3" /> <label class="switch-button" for="switch-2-3">Toggle</label> </div> <div class="switch switch-ocean-gradient"> <input class="switch-input" type="checkbox" id="switch-2-4" /> <label class="switch-button" for="switch-2-4">Toggle</label> </div> <div class="switch switch-ocean-dark"> <input class="switch-input" type="checkbox" id="switch-2-5" /> <label class="switch-button" for="switch-2-5">Toggle</label> </div> <div class="switch switch-ocean-gradient-dark"> <input class="switch-input" type="checkbox" id="switch-2-6" /> <label class="switch-button" for="switch-2-6">Toggle</label> </div> <div class="switch switch-coral"> <input class="switch-input" type="checkbox" id="switch-2-7" /> <label class="switch-button" for="switch-2-7">Toggle</label> </div> <div class="switch switch-coral-gradient"> <input class="switch-input" type="checkbox" id="switch-2-8" /> <label class="switch-button" for="switch-2-8">Toggle</label> </div> <div class="switch switch-coral-dark"> <input class="switch-input" type="checkbox" id="switch-2-9" /> <label class="switch-button" for="switch-2-9">Toggle</label> </div> <div class="switch switch-coral-dark-gradient"> <input class="switch-input" type="checkbox" id="switch-2-10" /> <label class="switch-button" for="switch-2-10">Toggle</label> </div> <div class="switch switch-green"> <input class="switch-input" type="checkbox" id="switch-2-11" /> <label class="switch-button" for="switch-2-11">Toggle</label> </div> <div class="switch switch-green-gradient"> <input class="switch-input" type="checkbox" id="switch-2-12" /> <label class="switch-button" for="switch-2-12">Toggle</label> </div> <div class="switch switch-orange"> <input class="switch-input" type="checkbox" id="switch-2-13" /> <label class="switch-button" for="switch-2-13">Toggle</label> </div> <div class="switch switch-orange-gradient"> <input class="switch-input" type="checkbox" id="switch-2-14" /> <label class="switch-button" for="switch-2-14">Toggle</label> </div> <div class="switch switch-yellow"> <input class="switch-input" type="checkbox" id="switch-2-15" /> <label class="switch-button" for="switch-2-15">Toggle</label> </div> <div class="switch switch-yellow-gradient"> <input class="switch-input" type="checkbox" id="switch-2-16" /> <label class="switch-button" for="switch-2-16">Toggle</label> </div> <div class="switch switch-blue"> <input class="switch-input" type="checkbox" id="switch-2-17" /> <label class="switch-button" for="switch-2-17">Toggle</label> </div> <div class="switch switch-blue-gradient"> <input class="switch-input" type="checkbox" id="switch-2-18" /> <label class="switch-button" for="switch-2-18">Toggle</label> </div> <div class="switch switch-aqua"> <input class="switch-input" type="checkbox" id="switch-2-19" /> <label class="switch-button" for="switch-2-19">Toggle</label> </div> <div class="switch switch-aqua-gradient"> <input class="switch-input" type="checkbox" id="switch-2-20" /> <label class="switch-button" for="switch-2-20">Toggle</label> </div> <div class="switch switch-purple"> <input class="switch-input" type="checkbox" id="switch-2-21" /> <label class="switch-button" for="switch-2-21">Toggle</label> </div> <div class="switch switch-purple-gradient"> <input class="switch-input" type="checkbox" id="switch-2-22" /> <label class="switch-button" for="switch-2-22">Toggle</label> </div> <div class="switch switch-gray-dark"> <input class="switch-input" type="checkbox" id="switch-2-23" /> <label class="switch-button" for="switch-2-23">Toggle</label> </div> <div class="switch switch-gray"> <input class="switch-input" type="checkbox" id="switch-2-24" /> <label class="switch-button" for="switch-2-24">Toggle</label> </div> <div class="switch switch-gray-medium"> <input class="switch-input" type="checkbox" id="switch-2-25" /> <label class="switch-button" for="switch-2-25">Toggle</label> </div> <div class="switch switch-gray-light"> <input class="switch-input" type="checkbox" id="switch-2-26" /> <label class="switch-button" for="switch-2-26">Toggle</label> </div> <div class="switch switch-gray-ultralight"> <input class="switch-input" type="checkbox" id="switch-2-27" /> <label class="switch-button" for="switch-2-27">Toggle</label> </div>
<div class="switch switch-primary switch-labels"> <input class="switch-input" type="checkbox" id="switch-3-1" /> <label class="switch-button" for="switch-3-1">Toggle</label> </div> <div class="switch switch-success switch-labels"> <input class="switch-input" type="checkbox" id="switch-3-2" /> <label class="switch-button" for="switch-3-2">Toggle</label> </div> <div class="switch switch-info switch-labels"> <input class="switch-input" type="checkbox" id="switch-3-3" /> <label class="switch-button" for="switch-3-3">Toggle</label> </div> <div class="switch switch-warning switch-labels"> <input class="switch-input" type="checkbox" id="switch-3-4" /> <label class="switch-button" for="switch-3-4">Toggle</label> </div> <div class="switch switch-danger switch-labels"> <input class="switch-input" type="checkbox" id="switch-3-5" /> <label class="switch-button" for="switch-3-5">Toggle</label> </div>
<div class="switch switch-primary switch-xl"> <input class="switch-input" type="checkbox" id="switch-4-1" /> <label class="switch-button" for="switch-4-1">Toggle</label> </div> <div class="switch switch-primary switch-lg"> <input class="switch-input" type="checkbox" id="switch-4-2" /> <label class="switch-button" for="switch-4-2">Toggle</label> </div> <div class="switch switch-primary "> <input class="switch-input" type="checkbox" id="switch-4-3" /> <label class="switch-button" for="switch-4-3">Toggle</label> </div> <div class="switch switch-primary switch-sm"> <input class="switch-input" type="checkbox" id="switch-4-4" /> <label class="switch-button" for="switch-4-4">Toggle</label> </div> <div class="switch switch-primary switch-xs"> <input class="switch-input" type="checkbox" id="switch-4-5" /> <label class="switch-button" for="switch-4-5">Toggle</label> </div>
<div class="switch switch-primary switch-labels switch-xl"> <input class="switch-input" type="checkbox" id="switch-5-1" /> <label class="switch-button" for="switch-5-1">Toggle</label> </div> <div class="switch switch-primary switch-labels switch-lg"> <input class="switch-input" type="checkbox" id="switch-5-2" /> <label class="switch-button" for="switch-5-2">Toggle</label> </div> <div class="switch switch-primary switch-labels "> <input class="switch-input" type="checkbox" id="switch-5-3" /> <label class="switch-button" for="switch-5-3">Toggle</label> </div> <div class="switch switch-primary switch-labels switch-sm"> <input class="switch-input" type="checkbox" id="switch-5-4" /> <label class="switch-button" for="switch-5-4">Toggle</label> </div> <div class="switch switch-primary switch-labels switch-xs"> <input class="switch-input" type="checkbox" id="switch-5-5" /> <label class="switch-button" for="switch-5-5">Toggle</label> </div>
<form role="form"> <p>Choose your favorite color</p> <div class="row"> <div class="form-group col-md-1"> <div class="switch switch-primary"> <label for="switch-6-1">Green</label> <input class="switch-input" type="radio" value="green" name="user-color-preference" id="switch-6-1" /> <label class="switch-button" for="switch-6-1">Toggle</label> </div> </div> <div class="form-group col-md-1"> <div class="switch switch-primary"> <label for="switch-6-2">Yellow</label> <input class="switch-input" type="radio" value="yellow" name="user-color-preference" id="switch-6-2" /> <label class="switch-button" for="switch-6-2">Toggle</label> </div> </div> <div class="form-group col-md-1"> <div class="switch switch-primary"> <label for="switch-6-3">Blue</label> <input class="switch-input" type="radio" value="blue" name="user-color-preference" id="switch-6-3" /> <label class="switch-button" for="switch-6-3">Toggle</label> </div> </div> <div class="form-group col-md-1"> <div class="switch switch-primary"> <label for="switch-6-4">Black</label> <input class="switch-input" type="radio" value="black" name="user-color-preference" id="switch-6-4" /> <label class="switch-button" for="switch-6-4">Toggle</label> </div> </div> <div class="form-group col-md-1"> <div class="switch switch-primary"> <label for="switch-6-5">White</label> <input class="switch-input" type="radio" value="white" name="user-color-preference" id="switch-6-5" /> <label class="switch-button" for="switch-6-5">Toggle</label> </div> </div> </div> </form>
The custom element for upload files through a file input element or a placeholder area.
This component provides the ability to upload files, including upload progress tracking. The component offers two ways to upload files: select and drop.
Render an upload component with the default template.
<upload-component id="upload-component-example-1" theme-small="false" multiple="true" upload-api='{ "url": "url", "params": { "page": "1" }, "headers": { "Content-Type": "text/plain;charset=UTF-8" } }' ></upload-component>
Render an upload component with the default template, in this example, we pass a style class to customize the button using the attribute: btn-class
.
<upload-component id="upload-component-example-2" max-size="10" multiple="true" formats-allowed="JPG, PNG, SVG" accept=".jpg, .png, .svg" theme-small="false" btn-class="btn-cerise-gradient" upload-api='{ "url": "url", "params": { "page": "1" }, "headers": { "Content-Type": "text/plain;charset=UTF-8" } }' ></upload-component>
Render an upload component with the default template, in this example, we use a custom message through the attribute: replace-text.uploadMsgError
for the file upload error.
<upload-component id="upload-component-example-3" theme-small="false" max-size="10" btn-style="color: #fff; background-image: linear-gradient(to right,#ee145b,#f37022);" upload-api='{ "url": "url", "params": { "page": "1" }, "headers": { "Content-Type" : "text/plain;charset=UTF-8" } }' replace-texts='{ "uploadMsgError": "Ops, deu erro!" }' ></upload-component>
Render an upload component with the theme small template using the attribute: theme-small
.
<upload-component id="upload-component-sm-example-1" theme-small="true" max-size="300" multiple="true" upload-api='{ "url": "url", "params": { "page": "1" }, "headers": { "Content-Type": "text/plain;charset=UTF-8" } }' ></upload-component>
Render an upload component with the theme small template using the attribute: accept
that defines the file types the file input should accept.
<upload-component id="upload-component-sm-example-2" theme-small="true" formats-allowed="JPG, PNG, SVG" accept=".jpg, .png, .svg" upload-api='{ "url": "url", "params": { "page": "1" }, "headers": { "Content-Type": "text/plain;charset=UTF-8" } }' ></upload-component>
Element settings have the following attributes:
Name | Type | Default | Description |
---|---|---|---|
id | String | 'fluig-upload' | The id that will be assigned to the upload. |
theme-small | Boolean | false | receives a boolean determining whether the component will be rendered at the smallest size. |
accept | String | "" | Defines the file types the file input should accept. |
multiple | Boolean | false | The file input allows the user to select more than one file. |
formats-allowed | String | "" | Specify the formats of file you want to upload (ex: '.jpg, .png, .mp4'). |
replace-texts | Object | {} | Replace default texts with your own custom texts. |
max-size | Integer | undefined | Maximum size limit for files in MB. |
upload-api | Object | {} | receives an object with the settings to send files. |
btn-class | String | "" | Receives style class for the button. |
btn-style | String | "" | Receives style settings for the button. |
The settings object has the following attributes:
Name | Type | Default | Description |
---|---|---|---|
url | String | "" | Complete api url to which you want to upload. |
method | String | "" | HTTP method to use for upload. |
header | Object | {} | Provide headers in HttpClient Options here. |
params | String | {} | Provide params in HttpClient Options here. |
The settings object has the following attributes:
Name | Type | Default | Description |
---|---|---|---|
uploadMsgError | String | "Não foi possível carregar o arquivo. Tente novamente." | Replace the default texts with your own custom texts in the error message. |
Create this event to remove item from the list of uploaded files.
document.getElementById('id').addEventListener('deleteitem', ondeleteitem); function ondeleteitem(evt) { request({ url: 'url', method: 'DELETE', callback: (response) => { evt.detail.element.remove(); } }); }
Use the well as a simple effect on an element to give it an inset effect.
<div class="well">...</div>
Control padding and rounded corners with two optional modifier classes.
<div class="well well-lg">...</div>
<div class="well well-sm">...</div>