mik-assets

1.2.3 • Public • Published

Helper SASS/SCSS/JS classes/mixins/functions/etc

Requires Laravel Mix

Installation

#!bash

npm install mik-assets -S

Usage

sass/scss

#!sass

@import "~mik-assets/assets/stylesheets";

js

#!javascript

require('mik-assets');

Compiling

#!bash

npm run watch

Styling Helpers

In this suite is a set of sweet CSS/SASS helper classes/functions. They must be manually imported into your SCSS.

#!scss
@import "packages/mik-assets/mik-assets";

There is also a set of colour classes defined in this suite as defined below:

#!scss
$colours: (
    "clear" : transparent,
    "black" : #000000,
    "white" : #FFFFFF,
);

which NEEDS to be defined before including the main SASS file above. These will create a set of classes that will apply colour changes to their elements.

.text-COLOUR
.text-hover-COLOUR
.bg-COLOUR
.bg-hover-COLOUR
.border-COLOUR
.border-hover-COLOUR

All of these classes can also be applied for different the different bootstrap screen sizes:

.text-COLOUR-xs-up
.text-COLOUR-sm-up
.text-COLOUR-md-up
.text-COLOUR-lg-up

they are only UP to enforce mobile first development

Readme

Keywords

Package Sidebar

Install

npm i mik-assets

Weekly Downloads

8

Version

1.2.3

License

MIT

Unpacked Size

27.8 kB

Total Files

12

Last publish

Collaborators

  • calebchadwick
  • chaddles