Skip to content
tulhera edited this page Sep 4, 2014 · 8 revisions

Weby assets are the assets library to be used in Weby layouts. It applies style on 'labels' and 'icons' used on html code made by Weby.

Its function is centralize all style of resources that need to be stylized, regardless the layout used or the use of other style library (eg: bootstrap).

Labels

To apply a style on a label, use the class "weby-label" with one of the color styles listed below:

default primary success info warning danger

Example:

<a class="weby-label default">
  text
</a>

<span class="weby-label default">
  text
</span>

Icons

To use icons, just use the rails helper

<%# Print the icon %>
<%= weby_icon('bomb', 'Text if it exists') %>

<%# Print the icon followed by text %>
<%= weby_icon('bomb', 'Text if it exists') %>

Clone this wiki locally