cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div data-launchy="I like 🌮" data-launchy-text="Launchy! 🚀" data-launchy-title="Boom! 💥" data-launchy-button>
    <p>This modal window is fully accessible!</p>
    <p>Notice when you <code>Tab</code> or <code>Shift+Tab</code>, keyboard focus remains within the modal window. 💪</p>
    <p>To close the window press <code>Esc</code>, click the close button, or the modal overlay. Up to you, really.</p>
    <hr>
    <ul>
        <li>Check the project code on <a href="https://github.com/svinkle/launchy">GitHub</a>.</li>
        <li>Made with 💖 by <a href="https://twitter.com/svinkle">@svinkle</a>.</li>
    </ul>
    <a href="#" class="launchy__custom-control" data-launchy-close="🔥">Ok! 👍</a>
</div>
            
          
!
            
              /*** Vars ***/
// Colors
$black: Black;
$dark-purple: RebeccaPurple;
$light-gray: Silver;
$light-purple: Plum;
$off-black: #333;
$off-white: GhostWhite;
$overlay-bg: rgba(0, 0, 0, .5);
$purple: Purple;
$white: White;

// Typography
$main-font: 'Lobster', sans-serif;
$logo-font: 'Oxygen', sans-serif;

// Media queries
$break-point: 35rem;

/*** Launchy ***/
.js {
    [data-launchy] {
        display: none;
    }
}

.launchy__window {
    background-color: $off-white;
    border: transparent solid 1px;
    border-radius: 3px;
    bottom: 1rem;
    box-shadow: 1px 1px 10px $black;
    display: none;
    left: 1rem;
    padding: 1rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 9999;

    @media (min-width: $break-point) {
        bottom: auto;
        left: 50%;
        max-width: 30rem;
        padding: 2rem;
        right: auto;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    &--is-visible {
        display: block;

        [data-launchy] {
            display: block;
        }
    }
}

.launchy__content {
    position: relative;
}

.launchy__overlay {
    background-color: $black;
    background-color: $overlay-bg;
    bottom: 0;
    display: none;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9998;

    &--is-visible {
        display: block;
    }
}

.launchy__close-link {
    background-color: $purple;
    border-radius: 3px;
    color: $white;
    display: inline-block;
    font-size: 1.25rem;
    padding: .15rem .5rem;
    position: absolute;
    right: 0;
    text-decoration: none;
    top: 0;

    @media (min-width: $break-point) {
        right: -1rem;
        top: -1rem;
    }

    &:focus,
    &:hover {
        background-color: $dark-purple;
        color: $white;
        cursor: pointer;
    }
}

.launchy__title {
    font-family: $main-font;
    font-size: 2.5em;
    margin: 0;
}

.launchy__launch-link {
    background-color: transparent;
    color: $white;
    display: inline-block;
    font-family: $main-font;
    font-size: 5em;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 1px 1px 2px $black;

    &:focus,
    &:hover {
        background-color: transparent;
        color: $white;
        cursor: pointer;
    }
}

.launchy__custom-control {
    background-color: $purple;
    border-radius: 3px;
    color: $white;
    display: inline-block;
    padding: .5rem;
    text-decoration: none;

    &:focus,
    &:hover {
        background-color: $dark-purple;
        color: $white;
    }
}

/*** Extra for the demo ***/
* {
    box-sizing: border-box;
}

body {
    align-items: center;
    background-color: $off-black;
    background-image: radial-gradient(circle at center, $light-purple, $purple);
    display: flex;
    font-family: $logo-font;
    min-height: 100vh;
    justify-content: center;
    position: relative;
}

a {
    color: $purple;
    text-decoration-skip: ink;

    &:focus,
    &:hover {
        color: $dark-purple;
    }
}

hr {
    border: solid transparent 1px;
    border-top: solid $light-gray 1px;
    height: 0;
    margin: 1.5em 0;
    width: 100%;
}

button {
    background-color: $purple;
    border: 0;
    border-radius: 3px;
    color: $white;
    font-family: $logo-font;
    font-weight: 700;
    padding: .5em;

    &:focus,
    &:hover {
        background-color: $dark-purple;
    }
}
            
          
!
            
              //
// Launchy! 🚀
//
// launchy.js via UNPKG
// https://unpkg.com/launchy-modal-window/launchy.js
//
// Source available on GitHub
// https://github.com/svinkle/launchy
//
            
          
!
999px
Loading ..................

Console