shared/scss/base/_forms.scss
@use '../vars';

// General form styles, mostly ripped from
// https://github.com/duckduckgo/duckduckgo-styles
// and
// https://github.com/duckduckgo/litestrap

.frm {
    display: block;
}

.frm__label {
    color: vars.$slate;
    margin-bottom: 10px;
    display: block;
}

.frm__label__chk {
    margin-top: 0.1em;
    margin-right: 0.5em;
    display: inline-block;
    vertical-align: top;
}

.frm__text,
.frm__input {
    box-sizing: border-box;
    margin: 0;
    background-color: vars.$silver-light;
    border: 1px solid #e6e6e6;
    color: vars.$slate;
    outline: none;
    margin-bottom: 10px;
}

.frm__input {
    border-radius: 2px;
    height: 30px;
    width: 100%;
    line-height: 30px;
    padding-left: 0.8em;
    padding-top: 0;
    padding-bottom: 0;
    -webkit-appearance: none;
}

.frm__text {
    padding: 0.8em;
    border-radius: 2px;
    width: 100%;
    max-width: 100%;
    height: 100px;
}

.btn {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
    position: relative;
    text-decoration: none;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 1em;

    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    border-radius: 0.25em;
    box-sizing: content-box;
    user-select: none;

    outline: none !important;
    background-color: vars.$blue-light;
    border: 1px solid vars.$blue-light;
    line-height: 2;
    font-weight: normal;
    font-size: 1em;
    padding-top: 2px;
    padding-bottom: 2px;
    color: vars.$white;
    -webkit-appearance: none !important;

    &:hover,
    &:focus {
        text-decoration: none !important;
        color: vars.$white;
        background-color: vars.$blue;
        border-color: vars.$blue;
    }
    &:active {
        color: vars.$white;
        background-color: vars.$blue-dark;
        border-color: vars.$blue-dark;
    }
    &.is-disabled {
        border-color: vars.$platinum-darker;
        background-color: vars.$platinum-darker;
        cursor: default;
        color: #eee;
    }
}
