Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ka215/sloth
Mobile-first CSS Lightweight Framework. It has reduced styling coding costs to a minimum with non-BEM and simpler naming conventions than OOCSS.
https://github.com/ka215/sloth
css framework front-end mobile-first postcss responsive sass web
Last synced: about 24 hours ago
JSON representation
Mobile-first CSS Lightweight Framework. It has reduced styling coding costs to a minimum with non-BEM and simpler naming conventions than OOCSS.
- Host: GitHub
- URL: https://github.com/ka215/sloth
- Owner: ka215
- License: mit
- Created: 2019-03-21T12:16:21.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2020-11-19T06:33:50.000Z (about 4 years ago)
- Last Synced: 2024-05-02T01:58:21.291Z (9 months ago)
- Topics: css, framework, front-end, mobile-first, postcss, responsive, sass, web
- Language: CSS
- Homepage: https://ka2.org/sloth/
- Size: 4.31 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
SlothMobile-first lightweight CSS Framework that has reduced styling coding costs to a minimum with non-BEM and simpler naming conventions than OOCSS.
The Sloth is lightweight as it saves the effort to rely on the legacy browser. Also, the Sloth can use advanced styling technology that utilizes flexbox, grid, CSS variables, and limited vendor prefixes.
The Sloth supports SCSS and postCSS, and you can customize your build with the included gulp file. Then the Sloth is providing at only distributed css file without dependenting JavaScript.
**19.8kB gzipped** at the latest version.
Also since version 1.0.3, it has been added the sloth extensions script that enhances your mark-up the components on the HTML. By using this extension, you get usable the advanced validation form or the popping dialog window, etc.
**I support the Black Lives Matter movement, so I changed the default branch name to main since version 1.5.0.**
![GitHub release](https://img.shields.io/github/release/ka215/sloth.svg)
![GitHub All Releases](https://img.shields.io/github/downloads/ka215/sloth/total.svg)
![npm download](https://img.shields.io/npm/dt/sloth-css?label=npm%20download)
[![Packagist](https://img.shields.io/packagist/l/doctrine/orm.svg)](https://raw.githubusercontent.com/ka215/sloth/main/LICENSE)
## Installation
You can install via bower:
```sh
bower install --save sloth-css
```Or, you can install via npm:
```sh
npm install --save sloth-css
```Or, you can clone the source:
```gitattributes
git clone https://github.com/ka215/sloth.git
```Or, you can load via CDN:
```html```
## Usage
The Sloth provides one CSS file `sloth.min.css` that minified. In order to use one, you can add a `` in your ``.
```html︙
︙︙
```
### Markup
Marking up in the Sloth style is very easy. Basically, you can complete most of your work simply by declaring the `.sloth` class to the parent element you want to apply style to.
You can apply the Sloth style on the entire page by assigning the `.sloth` class to the `` element.
```html︙
```
Alternatively, it is possible to apply the Sloth style only within a specific element as shown below.
```html
︙
```Also, by using the `.nons` class in the element to which the Sloth style is applied, it is possible to exclude only a specific element from the Sloth style application.
```html︙
Not Sloth Styled headline
︙```
## Documentation & Demo
You would prefer to see the following URL for a list of all elements and components expressed in the Sloth style.
## Supported Browsers
## Contributions
1. Fork it
2. Welcome new pull request## Creators
**ka2 (Katsuhiko Maeno)**
-
Your donations for supporting the Sloth style will help me.
Donate URL:
## Special Thanks
Thanks to Our Contributors and Sponsors.
- "[Normalize.css](https://github.com/necolas/normalize.css)" and "[Bootstrap-reboot.css](https://github.com/twbs/bootstrap/blob/v4-dev/dist/css/bootstrap-reboot.css)" for the foundation.
- Inspired by the "[Furtive](https://github.com/johno/furtive)".
- Inspired by the "[@mallendeo](https://codepen.io/mallendeo/pen/eLIiG)".## Copyright and license
Code and documentation copyright 2019 - 2020 the [ka2](https://ka2.org/). Code released under the [MIT License](https://raw.githubusercontent.com/ka215/sloth/master/LICENSE).