sid/css/layout.css

203 lines
2.9 KiB
CSS
Raw Normal View History

/*
*
* Positionnement global et mise en page
* -------------------------------------
* 1. Propriétés globales
2015-10-20 20:10:38 +00:00
* 2. HEADER
* 3. MENU
* 4. AUTH(entification)
* 5. CONTAINER
* 6. msgBox
*
*/
/******************************/
/*** 1. Propriétés globales ***/
/******************************/
*{ /* on supprime le margin/padding par défaut */
2015-10-20 20:10:38 +00:00
margin: 0;
padding: 0;
}
2015-10-20 20:10:38 +00:00
a{ text-decoration: none; color: inherit; }
/* on initialise le body avec les valeurs par défaut [compatibilité] */
body{
/* position */
display: block;
position: absolute;
2015-10-20 20:10:38 +00:00
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background */
background: #fff;
/* overflow */
overflow-x: hidden; /* empêche la barre horizontale de scroll [précaution] */
/* foreground */
2015-10-20 20:10:38 +00:00
font: 16px 'Open Sans', 'Helvetica Neue', 'Arial', 'sans-serif';
}
2015-10-20 20:10:38 +00:00
/*****************/
/*** 2. HEADER ***/
/*****************/
#HEADER{
/* position */
display: flex;
2015-10-20 20:10:38 +00:00
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 48px;
2015-10-20 20:10:38 +00:00
/* flex (as container) */
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
/* background */
2015-10-20 20:10:38 +00:00
background: #1d1d1d;
/* foreground */
2015-10-20 20:10:38 +00:00
font-size: 12px;
}
2015-10-20 20:10:38 +00:00
/***************/
/*** 3. MENU ***/
/***************/
#HEADER #MENU{
/* position */
display: flex;
height: 100%;
/* flex (as container) */
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
}
2015-10-20 20:10:38 +00:00
/***************/
/*** 4. AUTH ***/
/***************/
#AUTH_FILTER{
/* position */
2015-10-20 20:10:38 +00:00
/*display: block;*/ display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background */
2015-10-20 20:10:38 +00:00
background: rgba(0,0,0,.2);
2015-10-20 20:10:38 +00:00
/* z axis */
z-index: 100;
}
2015-10-20 20:10:38 +00:00
#AUTH_FILTER.active{ display: block; }
#AUTH{
/* position */
/*display: block;*/ display: none;
position: fixed;
top: 30%;
left: calc( 50% - 500px/2 );
width: 500px;
/* z axis */
2015-10-20 20:10:38 +00:00
z-index: 101;
}
2015-10-20 20:10:38 +00:00
#AUTH_FILTER.active + #AUTH{ display: block; }
2015-10-20 20:10:38 +00:00
/* tout les INPUT */
#AUTH input{
/* position */
display: block;
2015-10-20 20:10:38 +00:00
position: relative;
top: 0;
left: 25%;
width: calc( 50% - 2*.8em );
margin-bottom: 2em;
padding: .8em;
/* border */
2015-10-20 20:10:38 +00:00
border-radius: 5px;
border: 1px solid #A1A1A1;
/* foreground */
2015-10-20 20:10:38 +00:00
font-family: inherit;
2015-10-20 20:10:38 +00:00
transition: .2s ease-in-out;
-moz-transition: .2s ease-in-out;
-webkit-transition: .2s ease-in-out;
-ms-transition: .2s ease-in-out;
-o-transition: .2s ease-in-out;
}
2015-10-20 20:10:38 +00:00
/* INPUT text/password */
#AUTH input[type=text]:focus,
#AUTH input[type=password]:focus{
border-color: #21a4a8;
box-shadow: 0 0 3px #2bccd4;
}
2015-10-20 20:10:38 +00:00
/* SUBMIT */
#AUTH input[type=submit]{
/* position */
width: 50%;
/* foreground */
color: #fff;
font-weight: bold;
/* background */
background-color: #279cea;
/* xTra */
cursor: pointer;
}
2015-10-20 20:10:38 +00:00
#AUTH input[type=submit]:hover{
background-color: #2494de;
}
2015-10-20 20:10:38 +00:00
/********************/
/*** 5. CONTAINER ***/
/********************/
#CONTAINER{
}
2015-10-20 20:10:38 +00:00
/*****************/
/*** 6. MSGBOX ***/
/*****************/
#MSGBOX{
}