@avalanche/setting-breakpoints

    4.0.0-alpha.5 • Public • Published

    @avalanche/setting-breakpoints

    Breakpoint sizes.

    Install

    npm install @avalanche/setting-breakpoints --save-dev

    Basic usage

    // Import the main file. 
    @import 'node_modules/@avalanche/setting-breakpoints/scss/index.scss';
     
    // Import just the settings file. 
    @import 'node_modules/@avalanche/setting-breakpoints/scss/settings';

    Usage with node-sass-magic-importer

    Using node-sass (or a plugin for Grunt, gulp or webpack which is using node-sass) in combination with the node-sass-magic-importer custom importer, can make importing CSS dependencies from node_modules a much nicer experience.

    // Import the main file. 
    @import '~@avalanche/setting-breakpoints';

    Usage

    // Function. 
    @media (min-width: setting-breakpoint(m)) { }
     
    // Map. 
    @media (min-width: map-get($breakpoints, m)) { }

    Settings

    /// Breakpoint sizes. 
    /// @type Map 
    $breakpoints: (
      s: 30em,
      m: 45em,
      l: 60em,
      xl: 75em,
    !default;

    About

    Author

    Markus Oberlehner
    Website: https://markus.oberlehner.net
    Twitter: https://twitter.com/MaOberlehner
    PayPal.me: https://paypal.me/maoberlehner

    License

    MIT

    Install

    npm i @avalanche/setting-breakpoints

    DownloadsWeekly Downloads

    17

    Version

    4.0.0-alpha.5

    License

    MIT

    Unpacked Size

    2.72 kB

    Total Files

    7

    Last publish

    Collaborators

    • avalanche
    • maoberlehner