0.0
No commit activity in last 3 years
No release in over 3 years
This light-weight gem provides CSS classes which are frequently used by most of the developers. Just plug in the gem and continue with your project.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.16
~> 10.0
 Project Readme

StylerLite

This is a light-weight gem. It contains some pre-defined classes, where developers most often use them in their projects. Any contribution is appreciated.

Installation

Add this line to your application's Gemfile:

gem 'styler_lite'

And then execute:

$ bundle

Or install it yourself as:

$ gem install styler_lite

Usage

In your app/assets/stylesheets/application.css, add the below line

*= require 'styler_lite'

Features in styler_lite gem

  • It removes the margins, paddings, outlines of all the elements, so that you can give your own values.
  • It makes all levels of heading tags to Normal weight(Bold to normal)
  • It removes text-decoration to all anchor tags ( a )
  • It removes list_style to all unordered lists ( ul )
  • It loads up with Arial font
  • It gives box_sizing: border-box;
  • Clear fixing made easier

For floating an element, use the following classes.

<div class="float-left">Your content goes here...</div>  <!-- This div is floated to left -->
<div class="float-right">Your content goes here...</div>  <!-- This div is floated to left -->
<div class="no-float">Your content goes here...</div>  <!-- This removes float property to div if any -->

Displays and visibilities of elements

<div class="no-display">Your content goes here...</div>  <!-- This div has display: none property -->
<div class="hide">Your content goes here...</div>  <!-- This div's visibility is hidden -->

Element positionings

<div class="abs-pos">Your content goes here...</div>  <!-- This div has a position of absolute -->
<div class="rel-pos">Your content goes here...</div>  <!-- This div has a position of relative -->
<div class="fixed-pos">Your content goes here...</div>  <!-- This div has a position of fixed -->
<div class="static-pos">Your content goes here...</div>  <!-- This div changes its position to static -->

Clear fixing

If you have some floating elements like below

<div class="float-left">First div content goes here...</div>
<div class="float-left">Second div content goes here...</div>

Modify the above structure to look like the following

<div class="clear-fix">
    <div class="float-left">First div content goes here...</div>
    <div class="float-left">Second div content goes here...</div>
</div>

Note: You can wrap clear-fix to any number of floats of any type.

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/akashpinnaka/styler_lite. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the StylerLite project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.