Areskul / minimal-grid

Minimal and simple scss/mixins grid utilities for Vue.js. BootstrapV4 custom.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boostrap custom

Grid

This is a modified version of bootstrap-grid.css

I removed hardcoded breakpoints. And created scss variables, easy to interact with in js (vue mixins).

Just define your breakpoints in a variables.scss

//Bootstrap4 default breakpoints
$breakpoints: (
  "xs": 0,
  "sm": 576,
  "md": 768,
  "lg": 992,
  "xl": 1200,
);
@import "@areskul/minimal-grid/breakpoints.scss";

Reboot

Replaced hardcoded colors by "inherit".

Text alignement

When I use a grid i expect my text to be aligned as well. So here are a few text alignement properties.

You can combine it with breakpoint values in Vue with Class binding.

<div :class="{ 'text-center' : md  }">
  Text centered on md devices
</div>
@import "@areskul/minimal-grid/breakpoints.scss";

About

Minimal and simple scss/mixins grid utilities for Vue.js. BootstrapV4 custom.


Languages

Language:SCSS 54.7%Language:JavaScript 45.3%