JSFiddle - React, Tailwind, and code Playground

by adem

HTML

<div class="prompt">
    <p class="message">Möchten Sie diese Aktion wirklich durchführen? Es werden dabei alle nicht gespeicherten Änderungen verworfen.</p>
    <ul class="decision">
        <li id="negative">Abbrechen</li>
        <li id="positive">Bestätigen</li>      
    </ul>
</div>

CSS

html {
    margin: 0;
    padding: 0;
    font: 13px Arial;
    color: #fff;
    background: #86C9EF;
}

body {
    margin: 0;
    padding: 0;
}

.prompt {
    position: absolute;
    width: 340px;
    height: 100px;
    margin: 100px;
    padding: 20px;
    background: #2A2B2A;
    border-radius: 4px;
}

.message {
}

ul {
    position: absolute;
    bottom: 0;
    right: 0;
}

li {
    float: left;
    color: #fff;
    margin: 0 10px 10px 0;
    padding: 10px;
    border-radius: 4px;
}

li:active {
    position: relative;
    top: 1px;
}

li#negative {
    background: #E2312B;
    border-bottom: 2px solid #D1201A;
}

li#negative:hover {
    background: #D1201A;
}

li#positive {
    background: #8CBA4A;
    border-bottom: 2px solid #7BA939
}

li#positive:hover {
    background: #7BA939;
}