Newer
Older
wolf.js / ui / wolf.css
/* === DEFAULT CONTROLS === */

button {
    min-height: 1rem;
    line-height: 1rem;
    border: none;
    background-color: #5a5a5a;
    outline: none;
    box-shadow: 0 0.2rem 0.5rem #0000005e;
    color: white;
    padding: 0.5rem 0.7rem;
    border-radius: 0.2rem;
    margin: 0.2rem;
    transition: box-shadow 0.3s;
    font-size: 0.8rem;
}

button:hover {
    background-color: #7c7c7c;
}

button:active {
    box-shadow: none;
    border: 0.2rem #a1a8b6 solid;
    margin: 0;
}

button.default {
    background-color: #0a3a94;
}

button.default:hover {
    background-color: #19469b;
}

button.default:active {
    border: 0.2rem #5c8eec solid;
}

button.accept {
    background-color: #0a9443;
}

button.accept:hover {
    background-color: #18a352;
}

button.accept:active {
    border: 0.2rem #2bb95a solid;
}

button.cancel {
    background-color: #cc2d2d;
}

button.cancel:hover {
    background-color: #da4141;
}

button.cancel:active {
    border: 0.2rem #eb8072 solid;
}

input, select {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    border: 0.05rem solid #00000042;
    border-radius: 0.2rem;
    margin: 0.2rem;
    height: 2rem;
    background: white;
}

input:disabled, select:disabled {
    background: #f5f5f5;
    color: #919191;
}

/* === TOAST === */

.wolf-toast {
    position: fixed;
    border-radius: 0.4rem;
    min-width: 20rem;
    min-height: 2rem;
    line-height: 2rem;
    color: white;
    text-align: center;
    padding: 0.2rem;
    bottom: 5rem;
    z-index: 10000;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    background: #000000d7;
    opacity: 1;
    transition: opacity 1s, bottom 0.2s;
}

.wolf-toast.wolf-toast-error {
    background: #b93a1aec;
}

/* === DIALOG === */

.wolf-dialog-modal-wall {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #00000040;
    z-index: 999;
}

.wolf-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0.1rem 0.25rem #000000A0;
    border-radius: 0.2rem;
    padding: 0.7rem;
    background-color: white;
    z-index: 1000;
}

.wolf-dialog-message-buttons {
    text-align: right;
}