Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

cssrecipes-utils

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssrecipes-utils

Some generic, semantic, responsives CSS utilities

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
58
-47.27%
Maintainers
2
Weekly downloads
 
Created
Source

utils

Some generic, semantic, responsives CSS utilities

Install

$ npm install cssrecipes-utils
@import "./node_modules/cssrecipes-custom-media-queries/index.css";
@import "./node_modules/cssrecipes-utils/index.css";

Usage

These utils work well with cssrecipes-grid :

Mobile-first

<div class="cssr-Grid">
  <div class="cssr-Grid-cell cssr-all-1of2 cssr-minM-1of3 cssr-minL-1of4">
    <!-- come content-->
  </div>
  <div class="cssr-Grid-cell cssr-all-1of2 cssr-minM-2of3 cssr-minL-3of4">
    <!-- come content-->
  </div>
</div>

Desktop-first

<div class="cssr-Grid">
  <div class="cssr-Grid-cell cssr-all-1of4 cssr-maxL-1of3 cssr-maxM-1of2">
    <!-- come content-->
  </div>
  <div class="cssr-Grid-cell cssr-all-3of4 cssr-maxL-2of3 cssr-maxM-1of2">
    <!-- come content-->
  </div>
</div>

Without responsive

<div class="cssr-Grid">
  <div class="cssr-Grid-cell cssr-all-1of4">
    <!-- come content-->
  </div>
  <div class="cssr-Grid-cell cssr-all-3of4">
    <!-- come content-->
  </div>
</div>

Sizing prefixes

Default size

  • .cssr-all-XofY

Mobile-first

  • .cssr-minS-XofY
  • .cssr-minM-XofY
  • .cssr-minL-XofY
  • .cssr-minXL-XofY

Desktop-first

  • .cssr-maxS-XofY
  • .cssr-maxM-XofY
  • .cssr-maxL-XofY
  • .cssr-maxXL-XofY

Available sizing

2-columns grid

  • *-1of2
  • *-2of2

3-columns grid

  • *-1of3
  • *-2of3
  • *-3of3

4-columns grid

  • *-1of4
  • *-2of4
  • *-3of4
  • *-4of4

5-columns grid

  • *-1of5
  • *-2of5
  • *-3of5
  • *-4of5
  • *-5of5

6-columns grid

  • *-1of6
  • *-2of6
  • *-3of6
  • *-4of6
  • *-5of6
  • *-6of6

8-columns grid

  • *-1of8
  • *-2of8
  • *-3of8
  • *-4of8
  • *-5of8
  • *-6of8
  • *-7of8
  • *-8of8

10-columns grid

  • *-1of10
  • *-2of10
  • *-3of10
  • *-4of10
  • *-5of10
  • *-6of10
  • *-7of10
  • *-8of10
  • *-9of10
  • *-10of10

12-columns grid

  • *-1of12
  • *-2of12
  • *-3of12
  • *-4of12
  • *-5of12
  • *-6of12
  • *-7of12
  • *-8of12
  • *-9of12
  • *-10of12
  • *-11of12
  • *-12of12

Testing

To generate a build:

$ npm run build

To generate the testing build.

$ npm run build-test

Basic visual tests are in test/index.html.

Contributing

Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.

$ git clone https://github.com/cssrecipes/utils.git
$ git checkout -b patch-1
$ npm install
$ npm test

Changelog

License

Keywords

browser

FAQs

Package last updated on 29 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts