Giter VIP home page Giter VIP logo

hgrid-css's Introduction


Hgrid Banner

hgrid-css

A Lightweight and Practical CSS Utility Kit.

Zero Config. Flat Learning Curve.

Hgrid is a starting point intended to make HTML work out of the box. It's not a UI framework, but provides sensible defaults so you can start prototyping without having to deal with browser quirks, unstyled elements and basic responsivity.

How to use

Documentation: https://hgrid.io

How to install

As a node module:

npm install hgrid-css --save-dev
yarn add hgrid-css --dev

Then, @use as Sass in your project:

@use 'hgrid-css/sass/hgrid' with (

  // example customization

  $link-color: #ffe88d,
  $link-color-hover: #fff0b4,
  $container-max-width: 1600px,
  $link-underline-color: #ffe88d,
  $use-global-link-underlines: true,
  $include-grid: false
);

For detailed information with step by step recipes on how to integrate hgrid in different JS frameworks, please refer to the documentation.

From local file or CDN:

<head>
  <!-- Without CSS grid utilities (slimmer) -->
  <link rel="stylesheet" href="https://unpkg.com/hgrid-css@latest/dist/hgrid.min.css">

  <!-- Including CSS grid utilities (heavier) -->
  <link rel="stylesheet" href="https://unpkg.com/hgrid-css@latest/dist/hgrid.grid.min.css">
</head>

@import into your stylesheet:

/* From node_modules */
@import './../etc./node_modules/hgrid-css/dist/hgrid.min.css';
/* From CDN */
@import 'https://unpkg.com/hgrid-css@latest/dist/hgrid.min.css';

Local development

Requires Node.js installed on your system (or use an editor plugin such as live-sass)

Run npm install from the root of the hgrid-css folder.

Start compiling hgrid's .scss files to .css with the command npm run watch. Changes you make to files in the /sass folder will result in css files being updated in the /dist folder.

To produce the compiled, prefixed and minified hgrid output, use npm run build. It uses Autoprefixer to add some backwards compatibility before minifying the result as hgrid.min.css.

See hgrid.io/documentation/installation for complete usage instructions.

Versions

Latest: 1.0

See releases on GitHub.

Roadmap

See the kanban board.

Problems?

Please don't hesitate to report an issue .

Help us improve

Please don't hesitate to open a pull request.

Author

ยฉ Atle Hansson

License

MIT

hgrid-css's People

Contributors

ahansson avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

weiplanet

hgrid-css's Issues

Stacked column margin error with `row.no-gutter`

Affects both automatic and accurate column types:

Child elements of a .row with .no-gutter (and without the addition of .no-stack), lack the correct left/right margins when stacked for handheld devices.

They should have regular hgrid margins to align correctly within the row, instead of zeroed out margins

image

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.