Global CSS settings, jQuery plugins and fundamental HTML elements.
Motivated by the mobile first approach as well as some HTML elements and CSS may not work as expected, it is highly recommended that you use the HTML5 doctype.
<!DOCTYPE html>
<html lang="en">
...
</html>
Back in version 1, we added the meta tag for adjusting the viewport width for the current device. We have added some other patterns and baked it all together in order to be mobile friendly from the start.
You can disable the zooming capabilities on mobile devices by adding maximun-scale=1 and user-scalable=no, this way your site will feel a bit more like a native application. Use it with care, as it is not always the best approach.
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximun-scale=1, user-scalable=no" />
Furatto applies some basic global settings for, typography, links, and body itself. Some of these:
Check out the typography and base SCSS files for more information.
Furatto uses two main containers for displaying the content, a .panels container and a .panel-content both are absolute positioned. This is important, because the .panel-content element works now as your body, so if you plan to add a jQuery plugin, attach the event from the body to the .panel-content class name element.
The .panels element is the one in charge of the left sliding panel.
In order to improve cross-browser rendering, we use Normalize.css which is an open-source project by Nicolas Gallagher and Jonathan Neal as an alternative for HTML 5 resets.
The twelve columns are distributed with a equitable width and margin, which make it very easy to build dashboard. It is important to put the columns on a row div class element.
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-2
col-4
col-1
col-3
col-2
For a simple three column layout just add the row class name and add the correct number of col-* columns. The col-* class name for the columns comes from the 1 to the 12 as is a 12 column grid.
...
...
...
When comes to nesting Furatto helps you add multiple column div elements. You just have to add a row class into an existing col-* column. The nested rows should also match 12 columns, you can see it as if is another row element.
I'm a col-9 class column
I'm a col-3 class column
I'm a col-9 class column
I'm a col-6 column
I'm a col-6 column
I'm a col-3 class column
Headings from 1 to 6. Font size decreases from ~44px to ~13px.
...
...
...
...
...
...
Furatto comes with global default settings font-size is 16px with a line-height of 20px. In addition to that the body receives a 10px margin-bottom.
Lorem ipsum dolor sit amet, consectetur adipisicing 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 deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing 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 deserunt mollit anim id est laborum.
In order to hightlight a text
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
It is really easy to change this default settings, which are setup on _variables.scss as $base-font-size and $base-line-height. We play around with these two values to set other values around the Furatto backbone, so you can customize them and see how the framework adapts.
For small inline texts or block of texts, you can use the <small> tag, which is 85% the size of the parent.
To give a bold to a text, you can use the <strong>.
To emphasize text you should use the em tag.
In Furatto is really easy to align text with the alignment classes.
Left text
Center text
Right text
Convenient emphasis classes for a more meaningful end.
Lorem ipsum dolor sit amet, consectetur adipisicing eli.
Lorem ipsum dolor sit amet, consectetur adipisicing eli.
Lorem ipsum dolor sit amet, consectetur adipisicing eli.
Lorem ipsum dolor sit amet, consectetur adipisicing eli.
Lorem ipsum dolor sit amet, consectetur adipisicing eli.
Remove the list-style and the left margin.
Place all list items into a single line with display: inline-block and some padding added.
A list of terms with their associated descriptions.
For quoting content you can use use the blockquoute with the content-quote class name.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
# | Name | |
---|---|---|
1 | Abraham Kuri | @kurenn |
2 | Icalia Labs | @icalialabs |
3 | Furatto | @ifuratto |
A condensed table just look a little bit smaller by just reducing the padding on the headers a table data tags. Just add the table-condensed class name.
# | Name | |
---|---|---|
1 | Abraham Kuri | @kurenn |
2 | Icalia Labs | @icalialabs |
3 | Furatto | @ifuratto |
Large tables are easier to read when some rows are more visible than others. To do so just add the 'table-striped' classname to the table. Just add the table-striped.
# | Name | |
---|---|---|
1 | Abraham Kuri | @kurenn |
2 | Icalia Labs | @icalialabs |
3 | Furatto | @ifuratto |
In order to add vertical and horizontal borders to all cells in a table, just add the table-bordered class name.
# | Name | |
---|---|---|
1 | Abraham Kuri | @kurenn |
2 | Icalia Labs | @icalialabs |
3 | Furatto | @ifuratto |
Thanks to the Zurb guys we have responsive tables ready to rock, just add the responsive classname to the table
# | Name | |
---|---|---|
1 | Abraham Kuri | @kurenn |
2 | Icalia Labs | @icalialabs |
3 | Furatto | @ifuratto |
You can have colorful table rows by adding the correct class name to the tr element. Just a gotcha, don't add the table-striped class name.
Class name | Description |
---|---|
tr-info | Indicates a neutral state. |
tr-success | Indicates a successful state. |
tr-warning | Indicates a warning state that might need attention. |
tr-danger | Indicates a dangerous state. |
To get an inline form, it is as simple as call inline-form. Probably you want to use this as a search form for example.
To get an horizontal form, it is as simple as call horizontal-form.
The outline styles are removed and a blue border is applied in its place for :focus
For disableing and input or make it not editable just add the disabled attribute.
Furatto comes with validation styles, for error, warning, and success input forms. Any label, input or hint text will get the validation style.
You can add the input-block class name to make the text area be 100% width and just change the rows attribute as necessary.
To change the width for an input, we added helpful class names for you to play around. The width of the input is limited by the parent container.
Block level help text for inputs.
Whenever you want the circular image to be also polaroid, you will have to wrap the img element into a div with class name of img-frame and add img-circular to this element.
Floats an element to the left.
...
Floats an element to the right.
...
Clears the float on any element.
...
Transforms the text to uppercase.
...
Furatto provides some responsive utilities for you to hide or show content depending on the screen size is rendering. Credits go to Bootstrap.
Extra small devices screen size < 768px |
Small devices screen size < 992px |
Medium devices screen size < 1200px |
Large devices screen size > 1200px |
|
---|---|---|---|---|
visible-xs | Visible | Hidden | Hidden | Hidden |
visible-sm | Hidden | Visible | Hidden | Hidden |
visible-md | Hidden | Hidden | Visible | Hidden |
visible-lg | Hidden | Hidden | Hidden | Visible |
hidden-xs | Hidden | Visible | Visible | Visible |
hidden-sm | Visible | Hidden | Visible | Visible |
hidden-md | Visible | Visible | Hidden | Visible |
hidden-lg | Visible | Visible | Visible | Hidden |