@kablamo/kerosene-styles

0.0.1 • Public • Published

🔥 Kerosene-styles

yarn add @kablamo/kerosene-styles

npm install @kablamo/kerosene-styles

Available SCSS


media.scss

@import '~@kablamo/kablamo-styles/scss/mixins/media.scss';

Available Functions

mq(width, type)

Returns a media query based on a width, defined by a breakpoint, as well as the min or max type.

Example Usage
@include mq('desktop', max) {
    display: none;
}
Associated breakpoints
$breakpoints: (
    "phone":        400px,
    "phone-wide":   480px,
    "phablet":      560px,
    "tablet-small": 640px,
    "tablet":       768px,
    "tablet-wide":  1024px,
    "desktop":      1248px,
    "desktop-wide": 1440px
);

aspect-ratio(width, height)

Maintains the given ratio for the element it is included in.

Example Usage
@include aspect-ratio(16,9)

kablamo.com.au

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @kablamo/kerosene-styles

      Weekly Downloads

      3

      Version

      0.0.1

      License

      MIT

      Unpacked Size

      2.71 kB

      Total Files

      3

      Last publish

      Collaborators

      • kablamo-deployments
      • ojkelly
      • glie163
      • walesey
      • nhardy
      • brycehanscomb