3.1.2 • Published 8 months ago

@mapsindoors/css v3.1.2

Weekly downloads
258
License
MIT
Repository
github
Last release
8 months ago

MapsIndoors CSS

CSS button component and helpers using MapsIndoors Design Tokens (midt)

The component is using the BEM methodology.

See the demo page (index.html) for an overview.

Release a new version

To release a new version:

  1. Make your changes and commit them
  2. Update the version number in package.json based on Semantic Versioning
  3. Tag the last commit with the version number in this format: v1.2.3
  4. Push your commits with git push origin --tags
  5. GitHub Actions on the repo will create a Release with the tag's version number and push that versioned release to npm

mi-button

The .mi-button block class is used for styling buttons.

Basic example:

<button type="button" class="mi-button mi-button--primary">Click me</button>

Variants:

  • mi-button--primary
  • mi-button--base
  • mi-button--outline
  • mi-button--link.

Helpers

The helpers.css-file is a range of CSS utility classes that each serve a particular purpose.

Example:

<body class="debug">

Sets golden yellow lines around all elements on the page for easier debugging (when using .flex for instance).

Other examples:

  • .max-height-xx-large to set a max-height of 40px
  • .width-none to set a width of none
  • .inline-flex to set display: inline-flex;
  • .margin-auto to center items with margin-left and margin-right set to auto
3.1.2

8 months ago

3.1.0

8 months ago

3.0.1

1 year ago

3.0.0

1 year ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago

0.8.0

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.3

2 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.4.0

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.0.13

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.7

3 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago