login.css

191 lines | 3.346 kB Blame History Raw Download
#kc-logo {
    background-image: url("../img/keycloak-logo.png");
    background-repeat: no-repeat;
    position: absolute;
    top: 50px;
    right: 50px;
    height: 37px;
    width: 150px;
}

#kc-header-wrapper {
    font-size: 26px;
    height: 18px;
    text-transform: uppercase;
    display: block;
    position: relative;
    top: -80px;
}

#kc-form-options span {
    display: block;
}

#kc-login {
    float: right;
    margin-left: 10px;
}


#kc-feedback {
    background-position: left bottom;
    background-repeat: no-repeat;
    padding-bottom: 21px;

    position: absolute;
    top: -40px;
    white-space: nowrap;
}

#kc-feedback span {
    padding: 0.90909090909091em 3.63636363636364em;
    border-style: solid;
    border-width: 1px 1px 0px 1px;
    background-repeat: no-repeat;
    background-position: 1.27272727272727em center;
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1.4em;
    border-radius: 2px;
    color: #4d5258;
    margin-bottom: 0;
}

.feedback-error {
    background-image: url(../img/feedback-error-arrow-down.png);
}
.feedback-error span {
    border-color: #b91415;
    background-image: url(../img/feedback-error-sign.png);
    background-color: #f8e7e7;
}

.feedback-success {
    background-image: url(../img/feedback-success-arrow-down.png);
}
.feedback-success span {
    border-color: #4b9e39;
    background-image: url(../img/feedback-success-sign.png);
    background-color: #e4f1e1;
}

.feedback-warning {
    background-image: url(../img/feedback-warning-arrow-down.png);
}
.feedback-warning span {
    border-color: #f17528;
    background-image: url(../img/feedback-warning-sign.png);
    background-color: #fef1e9;
}

/* TOTP */

ol#kc-totp-settings {
    margin: 0;
    padding: 0;
}

ol#kc-totp-settings li {
    margin-top: 1em;
}

ol#kc-totp-settings li:first-of-type {
    margin-top: 0;
}

/* OAuth */

#kc-oauth h3 {
    margin-top: 0;
}

#kc-oauth ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#kc-oauth ul li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    padding: 10px 30px;
}

#kc-oauth ul li:first-of-type {
    border-top: 0;
}

#kc-oauth .kc-role {
    display: inline-block;
    width: 50%;
}

/* Social */

#kc-social-providers ul {
    padding: 0;
    margin: 0;
}

#kc-social-providers li {
    display: block;
    margin-top: 1em;
    width: 130px;
}

#kc-social-providers li:first-of-type {
    margin-top: 0;
}

.zocial.facebook,
.zocial.github,
.zocial.google,
.zocial.twitter {
    background-image: none;
    border-radius: 2px;

    font-family: "Open Sans", sans-serif;
    font-weight: normal;

    box-shadow: none;
    text-shadow: none;
}

.zocial.google {
    background-color: #dd4b39 !important;
}
.zocial.google .text:after {
    content: "+";
}

.zocial.facebook:hover,
.zocial.github:hover,
.zocial.google:hover,
.zocial.twitter:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%) !important;
}

@media (max-width: 767px) {
    #kc-logo {
        position: inherit;
        display: inline-block;
        margin: 20px;
        float: right;
    }

    #kc-feedback {
        position: inherit;
        display: inline-block;
        margin-left: 20px;
    }

    #kc-social-providers {
        margin-top: 30px;
    }

    #kc-social-providers li {
        float: left;
        margin-right: 10px;
        margin-top: 0;
    }
}