Socket
Socket
Sign inDemoInstall

@jogarcia/mgrid-monorepo

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jogarcia/mgrid-monorepo

A simple container class based on Bootstrap's container class


Version published
Maintainers
1
Created

Readme

Source

Simple container file class based on Bootstrap's class of the same type

This module provides a basic class. The class limits the content's width and adds margin to the sides.

How to import

In a js file:

import "@jogarcia/mgrid/container.scss";

or

import "@jogarcia/mgrid/dist/container.css";

In a scss/sass file:

@import "~@jogarcia/mgrid/container.scss";

or

@import "~@jogarcia/mgrid/dist/container.css";

Default breakpoints

If you have used before most styles libraries you must be used so far to breakpoints. These are the default breakpoints of this library.

xs: >= 0px sm: >= 576px md: >= 768px lg: >= 992px xl: >= 1200px 2xl:>= 1400px

If you have worked with Bootstrap before you'll recognize this. These are Bootstrap's breakpoints.

How to use

Add .container class to tag. Example:

<div class="container">
  <h1>Test container</h1>
  <p>
    Lorem ipsum dolor sit amet consectetur adipisicing elit. Praesentium
    suscipit velit repellat a blanditiis deleniti, culpa accusamus ducimus at.
  </p>
</div>

Additionally you can pass down your own breakpoints if you use SCSS. Example:

@use "~@jogarcia/mgrid/container.scss" with (
  $breakpoints: (
    "xs": (
      "min": 0px,
      "width": 100%,
    ),
    "sm": (
      "min": 576px,
      "width": 100%,
    ),
  )
);

FAQs

Last updated on 11 May 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc