Giter Site home page Giter Site logo

suitcss-components-alert's Introduction

SUIT CSS components-alert

A SUIT CSS component that provides a structural UI alert template to be extended with modifiers.

Read more about SUIT CSS's design principles.

Installation

  • yarn: yarn add suitcss-components-alert
  • npm: npm install suitcss-components-alert
  • Download: zip

Available classes

Component structure

  • Alert - [core] The core alert component

Modifiers

  • Alert--info - Applies info colours to the alert
  • Alert--success - Applies success colours to the alert
  • Alert--danger - Applies danger colours to the alert
  • Alert--warning - Applies warning colours to the alert

Configurable variables

  • --Alert-borderColor

  • --Alert-borderWidth

  • --Alert-padding

  • --Alert--info-backgroundColor

  • --Alert--info-borderColor

  • --Alert--info-textColor

  • --Alert--success-backgroundColor

  • --Alert--success-borderColor

  • --Alert--success-textColor

  • --Alert--danger-backgroundColor

  • --Alert--danger-borderColor

  • --Alert--danger-textColor

  • --Alert--warning-backgroundColor

  • --Alert--warning-borderColor

  • --Alert--warning-textColor

Use

Examples:

<div class="Alert">
  This is a default alert.
</div>
<div class="Alert Alert--success">
  This is a success alert.
</div>

Theming / extending

The CSS is focused on common structural requirements for alerts. You can extend it with application-specific theme styles in your app.

Testing

yarn install

To generate a build:

yarn build

To lint code with postcss-bem-linter and stylelint

yarn lint

To generate the testing build.

yarn build-test

To watch the files for making changes to test:

yarn watch

Basic visual tests are in test/index.html.

Browser support

  • Google Chrome
  • Firefox
  • Opera
  • Safari
  • Internet Explorer 9+

suitcss-components-alert's People

Contributors

alecrust avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.