UI modules for Gumby Framework.
Install via Bower in your Gumby project :
bower install gumbyui-extras
or
Clone the GitHub repository, and copy files in your Gumby project
git clone https://github.com/caouecs/gumbyui-extras.git
cp -r gumbyui-extras $GUMBY_PROJECTS/sass
You can import all files in your _all.scss
, or file by file
@import "(path_to_gumbyui-extras)";
Add the possibility to close an alert box.
Import _alert_with_close.scss
file
This module uses the gumby-trigger:switch
, the value of gumby-trigger must be the same than the id of alert box. You can use id or class.
<div class="alert primary" id="alert">
<a href="#" gumby-trigger="#alert" class="switch close">×</a>
Hello everybody !!!
</div>
Displays a breadcrumb.
Import _breadcrumbs.scss
file
You can adapt breadcrumb as you want with three variables :
- $breadcrumb-height
- $breadcrumb-border-radius
- breadcrumb-background-color
Create a list with class .breadcrumb
.
<ul class="breadcrumb">
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li>Link 3</li>
</ul>
Adds color to texts.
Import _colored_texts.scss
file
The list of colors is based on $ui-coloring from sass/var/_lists.scss
Add .text-$color
class with $color in the list of $ui-coloring.
<span class="text-primary">I have a beautiful color</span>
<a href="#" class="text-success">I'm a link and I have a other beautiful color, my :hover too</a>
Displays pager. It's compatible with Pager of Laravel 4.
Import _pager.scss
file
You can adapt with :
- $pager-border-radius
<ul class="pager">
<li class="previous disabled"><a href="#">← Older</a></li>
<li class="next"><a href="#">Newer →</a></li>
</ul>
Displays pagination. It's compatible with Pagination of Laravel 4.
Import _pagination.scss
file
You can adapt with :
- $pagination-border-radius
- $pagination-color
<div class="pagination">
<ul>
<li class="disabled"><span>«</span></li>
<li class="active"><span>1</span></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
</ul>
</div>
Adds visibility to tables.
Import _tables.scss
file
Not yet.
Add .table class
at your tables.
<table class="table">
</table>
Displays a tab module with nav at bottom
Import _tabs_bottom.scss
file
Add .tabs-bottom
at your tabs, and define tab-nav after tab-content
<div class="tabs tabs-bottom">
<div class="tabs-content">Blabla 1</div>
<div class="tabs-content">Blabla 2</div>
<ul class="tab-nav">
<li>Link 1</li>
<li>Link 2</li>
</ul>
</div>
Displays tooltips on link or span without javascript. You choose between top or bottom position.
Import _tooltips.scss
file
Add gumby-tooltip
or gumby-tooltip-bottom
attributs to display tooltip on top or bottom.
- $tooltip-background
- $tooltip-color
<a href="#" gumby-tooltip="What you want">Link</a>
<span gumby-tooltip-bottom="Others things">A text</span>
When you want to define visibility directly in html, instant of use @mixin hidden() and visible()
Import _visibility_by_class.scss
file
Add .visible-$device
or .hidden-$device
to display or hidden on a specified device.
List of $device :
- desktop
- tablet
- phone
<div class="visible-tablet visible-mobile">
You can see me on a tablet and mobile
<span class="hidden-mobile">but I'm hidden on mobile</span>
</div>
MIT Open Source License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.