npm.io
0.0.3 • Published 4 years ago

elr-scss-modal-alerts

Licence
SEE LICENSE IN LICENSE.md
Version
0.0.3
Deps
3
Size
23 kB
Vulns
0
Weekly
0

elr-scss-modal-alerts

License: MIT npm

a library of sass mixins

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install elr-scss-modal-alerts --save
yarn add elr-scss-modal-alerts

This package contains styles only. It's up to you to wire up the JavaScript. This allows these styles to be used with any JavaScript framework. Or no framework at all!

Documentation

.dialog-blackout {
  @include elr-dialog;
}

.modal-alert {
  @include elr-modal-alert;
}
<dialog role="alert" class="dialog-blackout">
  <div class="modal-alert">
    <header class="elr-modal-alert-header">
      <span class="elr-modal-alert-icon">
        <i class="fa fa-exclamation-circle" aria-hidden="true"></i>
      </span>
      <h2 class="elr-modal-alert-heading">This Is an Alert!</h2>
    </header>
    <div class="elr-modal-alert-content">
      <p>
        Are you sure you want to continue? This will delete all of your data and
        your account.
      </p>
    </div>
    <footer class="elr-modal-alert-footer">
      <menu>
        <button class="elr-button">Confirm</button>
        <button class="elr-button elr-button-ghost">Cancel</button>
      </menu>
    </footer>
  </div>
</dialog>

License

SEE LICENSE IN LICENSE.md

Keywords