All Projects → trumbitta → Bootstrap Css Utils

trumbitta / Bootstrap Css Utils

Licence: mit
Some utility CSS classes for Bootstrap (spacing, displaying, ...)

Projects that are alternatives of or similar to Bootstrap Css Utils

Webside
基于RBAC的完全响应式权限管理系统
Stars: ✭ 19 (+46.15%)
Mutual labels:  bootstrap
Bower Bootstrap Css
Twitter Bootstrap for Bower
Stars: ✭ 7 (-46.15%)
Mutual labels:  bootstrap
Bootstrap Msg
The jQuery plugin for showing message with Bootstrap alert classes
Stars: ✭ 10 (-23.08%)
Mutual labels:  bootstrap
Milog
Milog 是一基于 Ruby on Rails 的个人博客网站
Stars: ✭ 24 (+84.62%)
Mutual labels:  bootstrap
1294 Website
The Official Website of the First Robotics FRC Team "1294" Top Gun Robotics
Stars: ✭ 7 (-46.15%)
Mutual labels:  bootstrap
Tools
Arefly's Tools Source Code
Stars: ✭ 9 (-30.77%)
Mutual labels:  bootstrap
Atd Data And Performance
Open data and performance hub for the City of Austin Transportation Department
Stars: ✭ 17 (+30.77%)
Mutual labels:  bootstrap
Bootstrap
Library for bootstrapping statistics
Stars: ✭ 13 (+0%)
Mutual labels:  bootstrap
Select2 Bootstrap Theme
A Select2 v4 Theme for Bootstrap 3
Stars: ✭ 841 (+6369.23%)
Mutual labels:  bootstrap
Cider
Hassle-free bootstrapping with Homebrew.
Stars: ✭ 858 (+6500%)
Mutual labels:  bootstrap
Gitit Bootstrap
A gitit theme based on Bootstrap
Stars: ✭ 24 (+84.62%)
Mutual labels:  bootstrap
Databook
A facebook for data
Stars: ✭ 26 (+100%)
Mutual labels:  bootstrap
Startbootstrap New Age
A web app landing page theme created by Start Bootstrap
Stars: ✭ 855 (+6476.92%)
Mutual labels:  bootstrap
Mailslurper
Local, web-based mail server application. Slurp mails into oblivion!
Stars: ✭ 920 (+6976.92%)
Mutual labels:  bootstrap
Librecms
Free Open Source Content Management System, based on PHP, Bootstrap and jQuery.
Stars: ✭ 12 (-7.69%)
Mutual labels:  bootstrap
Auto App
Crie um aplicativo com todas as tabelas de um dos seus bancos sem uma linha de código.
Stars: ✭ 18 (+38.46%)
Mutual labels:  bootstrap
Metro Ui Css
Impressive component library for expressive web development! Build responsive projects on the web with the first front-end component library in Metro Style. And now there are even more opportunities every day!
Stars: ✭ 6,843 (+52538.46%)
Mutual labels:  bootstrap
Bootstrap
Open Source JS plugins
Stars: ✭ 13 (+0%)
Mutual labels:  bootstrap
Flatstrap
Bootstrap without all the extra stuff
Stars: ✭ 875 (+6630.77%)
Mutual labels:  bootstrap
Bootstrap Image Hover
Image hover effects that work with or without bootstrap
Stars: ✭ 858 (+6500%)
Mutual labels:  bootstrap

Bootstrap CSS Utils

Keep calm and add a class

Bootstrap CSS Utils is collection of handy CSS helper classes you can use to complement Bootstrap's own already amazing ones.

Note: The classes are designed and intended to gracefully work with Bootstrap, but you can also use them alone if you so feel like it.

Table of contents

Install

Bower

Import the package:

bower install bootstrap-css-utils

Include the CSS file:

...
<head>
    <link href="bower_components/bootstrap-css-utils/dist/bootstrap-css-utils.min.css" rel="stylesheet" />
...

Git

Clone the repo:

git clone https://github.com/trumbitta/bootstrap-css-utils.git

Copy the CSS file:

bootstrap-css-utils/dist/bootstrap-css-utils.min.css

Or the non-minified version:

bootstrap-css-utils/dist/bootstrap-css-utils.css

Include the CSS file:

...
<head>
    <link href="bootstrap-css-utils.min.css" rel="stylesheet" />
...

Rhythm helper classes

Vertical and Horizontal rhythm is very important in a good GUI. Whenever you are in need of a bit coherent spacing, use one of the rhythm classes

Variations

Every class name is composed as follows: [variant]-[direction]-[size]

  • Variants:
    • margin
    • padding
  • Directions:
    • vertical
    • horizontal
  • Sizes:
    • xs
    • sm
    • md
    • lg
    • xl

Size abbreviations have the same meaning as in Bootstrap, with the added xl: extra-large one.

Examples

Medium vertical margin

<!-- HTML -->

<div class="panel panel-default margin-vertical-md">
  ...
</div>
/* CSS */

.margin-vertical-md {
  margin-top: 1em !important;
  margin-bottom: 1em !important;
}

Large horizontal padding

<!-- HTML -->

<div class="padding-horizontal-lg">
  ...
</div>
/* CSS */

.padding-horizontal-lg {
  padding-left: 2em !important;
  padding-right: 2em !important;
}

Display helper classes

When you are dealing with complex CSS shenanigans and need some quick little touches of display wizardry, use one of these:

.display-inline {
  display: inline !important;
}

.display-block {
  display: block !important;
}

.display-inline-block {
  display: inline-block !important;
}

Text helper classes

Because sometimes you need bold text merely for design purposes.

.text-italic {
  font-style: italic !important;
}

.text-monospace {
  font-family: monospace !important;
}

.text-normal {
  font-weight: normal !important;
}

.text-strikethrough {
  text-decoration: line-through !important;
}

.text-strong {
  font-weight: 500 !important;
}

.text-stronger {
  font-weight: 700 !important;
}

Customization

Variables are in less/variables.less.
Customize at will, then rebuild via grunt dist.

Default values

@rhythm-base: 1em;

@rhythm-xs: (@rhythm-base / 4);
@rhythm-sm: (@rhythm-base / 2);
@rhythm-md: (@rhythm-base);
@rhythm-lg: (@rhythm-base * 2);
@rhythm-xl: (@rhythm-base * 4);

Help wanted

I need help refactoring the Less code into something more maintainable.
Right now, the code is redundant at best.

I already used coherent variable and class names, but I lack the skill to properly use Less to achieve what is needed... and the time to learn myself how to do it ;-)

Please open a pull-request if you think you can help improving the Less code or any other part of the project.

Versioning

I'm using the Semantic Versioning guidelines. Sometimes I'll screw up, but I'll adhere to those rules whenever possible.

Creator

William Ghelfi

Copyright and license

Code copyright 2015 William Ghelfi. Code released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].