This module helps to create modal windows.

Superkube contains only CSS/SCSS and does not contain Javascript. Because Superkube is independent of the implementation, you build the environment you need.

All the javascript is just for example and to show how the modules work.

Usage #

Here is an example of a modal and how it works.

<div class="modal hidden">
    <div class="modal-box">
        <div class="modal-head">
        <div class="modal-body">
        <div class="modal-foot">
            <button class="button button-primary">Save</button>
            <button data-type="close" class="button">Close</button>

Variables #

Here are the CSS variables used in the module. Setting them allows you to change the appearance and parameters of the module.

// colors
--modal-body-background-color: var(--palette-white);
--modal-box-shadow: var(--shadow-350);

// vars
--modal-level: var(--level-over-content);
--modal-border-radius: var(--radius-base);
--modal-close-size: 20px;