﻿/* Styles for textarea counter support. */
.essa-textarea-counter {
    position: absolute;
    bottom: -25px;
    right: 0;
    font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 12pt;
    line-height: 1.6;
    color: #0093ff;
    z-index: 100;
}

.essa-textarea-counterwarning {
    color: red;
}

.btn-primary:hover {
    background-color: #54b0ff !important;
    color: #ffffff;
}

.btn-primary {
    background-color: #0093ff;
    font-size: 12pt;
    border-radius: 2px !important;
    color: #ffffff;
}

a.btn-primary:visited {
    color: #ffffff;
}

/* Match the custom style of the primary buttons. */

.btn-default {
    border-radius: 2px !important;
    font-size: 12pt;
}

/* File upload button styles */
.essa-btn-file {
    position: relative;
    overflow: hidden;
}

.essa-btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

.essa-angular-checkbox {
    position: relative;
}

.essa-angular-checkbox > .md-check-box-outline-blank {
    position: absolute;
    left: 0;
}

.essa-angular-checkbox > .md-done {
    position: absolute;
    left: 0;
}

.essa-angular-checkbox > .essa-angular-checkbox-label {
    margin-left: 24px;
}

.essa-angular-checkbox > .md-check-box-outline-blank.ng-hide-add {
    -webkit-animation: checkbox-spinout 1s; /* Chrome, Safari, Opera  */
    -moz-animation: checkbox-spinout 1s;
    animation: checkbox-spinout 1s;
}

.essa-angular-checkbox-container > .md-check-box-outline-blank.ng-hide-add {
    -webkit-animation: checkbox-spinout 1s; /* Chrome, Safari, Opera  */
    -moz-animation: checkbox-spinout 1s;
    animation: checkbox-spinout 1s;
}

.essa-angular-checkbox > .md-check-box-outline-blank.ng-hide-remove {
    -webkit-animation: delayedopacityfadein 0.5s;
}

.essa-angular-checkbox > .md-done.ng-hide-add {
    -webkit-animation: checkbox-spinout-reverse 1s; /* Chrome, Safari, Opera  */
    -moz-animation: checkbox-spinout-reverse 1s;
    animation: checkbox-spinout-reverse 1s;
}

.essa-angular-checkbox-container > .md-done.ng-hide-add {
    -webkit-animation: checkbox-spinout-reverse 1s; /* Chrome, Safari, Opera  */
    -moz-animation: checkbox-spinout-reverse 1s;
    animation: checkbox-spinout-reverse 1s;
}

.essa-angular-checkbox > .md-done.ng-hide-remove {
    -webkit-animation: delayedopacityfadein 0.5s;
}

.checkbox > label > input {
    margin-right: 10px;
}

.essa-input-number-sm {
    width: 72px;
}

/* todo Port this scss(?) into css. What happened here? */
form {

    &.essa-form-md {

        .essa-middle-row,
        .essa-bottom-row,
        legend,
        .form-group,
        .group {
            padding: 0;
            margin: 0;
        }

        .essa-bottom-row {
            padding-top: 10px;
            padding-bottom: 10px;
        }
    }

    &.essa-form-xl {
        input,
        select,
        input.form-control,
        select.form-control {
            font-size: 1.3em;
        }

        fieldset legend {
            padding-top: 40px;
            font-size: 1.5em;
        }
    }

    fieldset legend {
        padding-top: 20px;
        font-size: 1.5em;
    }

    legend {
        border: none;
    }

    select,
    select.form-control {
        height: 2em;
    }

    .btn-group .btn-link {
        border: none;
        box-shadow: none;
        color: #b0b2b4;
    }

    .btn-group .btn-link:hover {
        color: $essa-blue;
        text-decoration: none;
    }
}
