Giter Site home page Giter Site logo

ka215 / sloth Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 4.41 MB

Mobile-first CSS Lightweight Framework. It has reduced styling coding costs to a minimum with non-BEM and simpler naming conventions than OOCSS.

Home Page: https://ka2.org/sloth/

License: MIT License

JavaScript 17.79% CSS 57.14% SCSS 25.07%
css sass postcss mobile-first responsive front-end framework web

sloth's Introduction

Sloth

Mobile-first lightweight CSS Framework that has reduced styling coding costs to a minimum with non-BEM and simpler naming conventions than OOCSS.

Sloth Pickup Styles: Forms Sloth Pickup Styles: Toggle Buttons Sloth Pickup Styles: Buttons Sloth Pickup Styles: CSS Grids Sloth Pickup Extensions: Dialog

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 GitHub All Releases npm download Packagist


Installation

You can install via bower:

bower install --save sloth-css

Or, you can install via npm:

npm install --save sloth-css

Or, you can clone the source:

git clone https://github.com/ka215/sloth.git

Or, you can load via CDN:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ka215/sloth@main/dist/sloth.min.css">
<script async src="https://cdn.jsdelivr.net/gh/ka215/sloth@main/dist/sloth.extension.min.js"></script>

Usage

The Sloth provides one CSS file sloth.min.css that minified. In order to use one, you can add a <link> in your <head>.

<!doctype html>
<html>
<head><link rel="stylesheet" href="/path/to/sloth/dist/sloth.min.css"></head>
<body></body>
</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 <body> element.

<body class="sloth"></body>

Alternatively, it is possible to apply the Sloth style only within a specific element as shown below.

<div class="sloth"></div>

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.

<body class="sloth"><h1 class="nons">Not Sloth Styled headline</h1></body>

Documentation & Demo

You would prefer to see the following URL for a list of all elements and components expressed in the Sloth style.

https://ka2.org/sloth/

Supported Browsers

https://ka2.org/sloth/?p=support

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: https://ka2.org/sloth/donation.html

Special Thanks

Thanks to Our Contributors and Sponsors.

Copyright and license

Code and documentation copyright 2019 - 2020 the ka2. Code released under the MIT License.

sloth's People

Contributors

ka215 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.