Niche Portobello Mushroom

    css-min-widths-dc

    1.0.1 • Public • Published

    css-min-widths-dc 1.0.0

    Css module of single purpose classes for min widths

    Stats

    249 16 48
    bytes selectors declarations

    Installation

    With npm

    npm install --save-dev css-min-widths-dc
    

    Learn more about using css installed with npm:

    With Git

    http:

    git clone https://github.com/tachyons-css/css-min-widths-dc
    

    ssh:

    git clone git@github.com:tachyons-css/css-min-widths-dc.git
    

    Usage

    Using with Postcss

    Import the css module

    @import "css-min-widths-dc";

    Then process the css using the tachyons-cli

    $ npm i -g tachyons-cli
    $ tachyons path/to/css-file.css > dist/t.css

    Using the css

    CDN

    The easiest and most simple way to use the css is to use the cdn hosted version. Include it in the head of your html with:

    <link rel="stylesheet" href="http://unpkg.com/css-min-widths-dc@1.0.0/css/css-min-widths-dc.min.css" />
    
    Locally

    The built css is located in the css directory. It contains an unminified and minified version. You can either cut and paste that css or link to it directly in your html.

    <link rel="stylesheet" href="path/to/module/css/css-min-widths-dc">

    Development

    The source css files can be found in the src directory. Running $ npm start will process the source css and place the built css in the css directory.

    The css

    /* Media Queries */
    /*
       MIN WIDTHS
    */
    .mn-wi-max { min-width: -webkit-max-content; min-width: -moz-max-content; min-width: max-content; }
    .mn-wi-min { min-width: -webkit-min-content; min-width: -moz-min-content; min-width: min-content; }
    .mn-wi-fit { min-width: -webkit-fit-content; min-width: -moz-fit-content; min-width: fit-content; }
    .mn-wi-fill { min-width: -webkit-fill-available; min-width: -moz-available; min-width: fill-available; }
    @media (min-width: 48em) {
     .mn-wi-max-ns { min-width: -webkit-max-content; min-width: -moz-max-content; min-width: max-content; }
     .mn-wi-min-ns { min-width: -webkit-min-content; min-width: -moz-min-content; min-width: min-content; }
     .mn-wi-fit-ns { min-width: -webkit-fit-content; min-width: -moz-fit-content; min-width: fit-content; }
     .mn-wi-fill-ns { min-width: -webkit-fill-available; min-width: -moz-available; min-width: fill-available; }
    }
    @media (min-width: 48em) and (max-width: 64em) {
     .mn-wi-max-m { min-width: -webkit-max-content; min-width: -moz-max-content; min-width: max-content; }
     .mn-wi-min-m { min-width: -webkit-min-content; min-width: -moz-min-content; min-width: min-content; }
     .mn-wi-fit-m { min-width: -webkit-fit-content; min-width: -moz-fit-content; min-width: fit-content; }
     .mn-wi-fill-m { min-width: -webkit-fill-available; min-width: -moz-available; min-width: fill-available; }
    }
    @media (min-width: 64em) {
     .mn-wi-max-l { min-width: -webkit-max-content; min-width: -moz-max-content; min-width: max-content; }
     .mn-wi-min-l { min-width: -webkit-min-content; min-width: -moz-min-content; min-width: min-content; }
     .mn-wi-fit-l { min-width: -webkit-fit-content; min-width: -moz-fit-content; min-width: fit-content; }
     .mn-wi-fill-l { min-width: -webkit-fill-available; min-width: -moz-available; min-width: fill-available; }
    }

    Contributing

    1. Fork it
    2. Create your feature branch (git checkout -b my-new-feature)
    3. Commit your changes (git commit -am 'Add some feature')
    4. Push to the branch (git push origin my-new-feature)
    5. Create new Pull Request

    Authors

    License

    ISC

    Keywords

    none

    Install

    npm i css-min-widths-dc

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • davidmarkclements