ArckMax
9/6/2018 - 9:16 AM

styleMaxime.css

/* ------------ TOPBAR  ------------ */

* {
    margin: 0;
} /* remet à zéro les marges de tous les éléments du HTML */

body {
    font-family: tahoma, verdana, arial, sans-serif;
}

#topbar-container {
    background-color: #3b5998;
    color: #fff;
    height: 6em; /* autres unités possibles : %, rem... pas les px !!! */
    transition : height 0.5s;
}

#topbar {
    margin: 0 auto;
    width: 90%;
}

#logo {
    display: inline-block; /* aligne les blocks */
    color: #fff;
    font-size: 2.5em;
    font-weight: bold;
    padding-top: 2%; 
}

#inputs-container {
    display: inline-block;
    float: right;
    margin-top: 1%;
}

.topbar-input-container {
    display: inline-block;
}

.topbar-input-label {
    display: block;
}

#log-in-button {
    border-radius: 2px;
    /* other properties ... */
}

#forgot-account-container {
    width: 72%;
    margin-top: 1%;
}

#forgot-account-container>a {
    text-decoration: none;
    color: #9cb4d8;
    float: right;
}


/* ------------ MAIN  ------------ */


/* ------------ MEDIA QUERIES ------------ */

@media only screen and (max-width: 850px) {
    
    #topbar {
        text-align: center;
        padding-top: 10%;
    }
    #topbar-container {
        height: 100%;
    }

    #logo {
        display: block;
        font-size: 3.3em;
    }
    
    #inputs-container {
        float: none;
        margin-top : 0 auto;
    }


    .topbar-input-container {
        display: block;
        padding-top: 15%;
    }

    .topbar-input-label {
        margin-bottom: 5%;
    }

    #forgot-account-container {
        padding-top: 5%;
    }

}