2016-04-20 14:57:59 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
|
|
|
/* [1] Formulaire de type timeline
|
|
|
|
=========================================================*/
|
|
|
|
#WRAPPER > #CONTAINER section[data-timeline]{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
font-size: .9em;
|
|
|
|
color: #000;
|
|
|
|
|
|
|
|
/* (1) On ajoute le liseré à droite pour TOUS les éléments */
|
|
|
|
& *:not(.no-line){
|
2016-04-20 20:58:19 +00:00
|
|
|
display: block;
|
2016-04-20 14:57:59 +00:00
|
|
|
|
|
|
|
color: #333;
|
|
|
|
|
2016-04-21 08:33:03 +00:00
|
|
|
margin: 0 40px;
|
2016-04-20 14:57:59 +00:00
|
|
|
padding: 5px 60px;
|
|
|
|
|
2016-04-21 08:33:03 +00:00
|
|
|
border-left: 2px solid #399ced;
|
2016-04-20 14:57:59 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* (2) Titres de sections */
|
2016-04-21 08:33:03 +00:00
|
|
|
& h3:not(.no-line){
|
2016-04-20 20:58:19 +00:00
|
|
|
display: block;
|
2016-04-21 08:33:03 +00:00
|
|
|
padding: 20px 40px;
|
2016-04-20 14:57:59 +00:00
|
|
|
|
|
|
|
font-size: 1.4em;
|
2016-04-20 15:06:48 +00:00
|
|
|
color: #333;
|
2016-04-20 14:57:59 +00:00
|
|
|
font-weight: bold;
|
|
|
|
|
2016-04-21 08:33:03 +00:00
|
|
|
// TODO: Transformer les background en ::before pour que ca soit juste un cercle avec bg et border
|
|
|
|
// FIXME: Corriger le liseré pour les autres navigateurs que FF
|
2016-04-20 14:57:59 +00:00
|
|
|
|
|
|
|
// Gestion du before (compteur css) //
|
2016-04-20 15:06:48 +00:00
|
|
|
&[data-n]:before{
|
2016-04-21 08:33:03 +00:00
|
|
|
content: attr(data-n);
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
margin-top: .5em;
|
|
|
|
margin-left: -41px;
|
|
|
|
padding: 3px 12px;
|
|
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
// Contour blanc
|
|
|
|
box-shadow: 0 0 0 2px #fff;
|
|
|
|
|
|
|
|
background-color: #399ced;
|
2016-04-20 15:06:48 +00:00
|
|
|
|
|
|
|
font-size: 1.3em;
|
|
|
|
color: #fff;
|
|
|
|
font-weight: bold;
|
|
|
|
|
2016-04-21 08:33:03 +00:00
|
|
|
// On centre sur la ligne
|
|
|
|
transform: translateX(-50%) translateY(-50%);
|
|
|
|
|
2016-04-20 15:06:48 +00:00
|
|
|
}
|
2016-04-20 14:57:59 +00:00
|
|
|
}
|
|
|
|
|
2016-04-20 20:58:19 +00:00
|
|
|
/* (3) Titres des sous-sections */
|
2016-04-21 08:33:03 +00:00
|
|
|
& h4:not(.no-line){
|
2016-04-20 20:58:19 +00:00
|
|
|
display: block;
|
|
|
|
|
2016-04-21 08:33:03 +00:00
|
|
|
padding: 20px 40px;
|
2016-04-20 20:58:19 +00:00
|
|
|
|
|
|
|
font-size: 1.2em;
|
2016-04-21 08:33:03 +00:00
|
|
|
color: darken(#399ced, 20);
|
2016-04-20 20:58:19 +00:00
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
// Gestion du before (compteur css) //
|
|
|
|
&[data-icon]:before{
|
|
|
|
content: attr(data-icon);
|
|
|
|
|
2016-04-21 08:33:03 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
margin-top: .5em;
|
|
|
|
margin-left: -41px;
|
|
|
|
padding: 7px;
|
|
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
// Contour blanc
|
|
|
|
box-shadow: 0 0 0 2px #fff;
|
|
|
|
|
|
|
|
background-color: #399ced;
|
|
|
|
|
2016-04-20 20:58:19 +00:00
|
|
|
font-size: 1em;
|
|
|
|
font-family: 'icomoon';
|
2016-04-21 08:33:03 +00:00
|
|
|
color: #fff;
|
2016-04-20 20:58:19 +00:00
|
|
|
font-weight: bold;
|
|
|
|
|
2016-04-21 08:33:03 +00:00
|
|
|
// On centre sur la ligne
|
|
|
|
transform: translateX(-50%) translateY(-50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (4) Titres des sous-sous-sections */
|
|
|
|
& h5:not(.no-line){
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
padding: 20px 40px;
|
|
|
|
|
|
|
|
font-size: 1.2em;
|
|
|
|
color: darken(#399ced, 20);
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
// Gestion du before (compteur css) //
|
|
|
|
&:before{
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
margin-top: .7em;
|
|
|
|
margin-left: -41px;
|
|
|
|
padding: 7px;
|
|
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
// Contour blanc
|
|
|
|
box-shadow: 0 0 0 2px #fff;
|
|
|
|
|
|
|
|
background-color: #399ced;
|
|
|
|
|
|
|
|
// On centre sur la ligne
|
|
|
|
transform: translateX(-50%) translateY(-50%);
|
2016-04-20 20:58:19 +00:00
|
|
|
}
|
2016-04-21 08:33:03 +00:00
|
|
|
|
|
|
|
// Texte genre text message
|
|
|
|
&[data-text]:after{
|
|
|
|
content: attr(data-text);
|
|
|
|
padding: 6px 10px;
|
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
background: $theme-fg-primary;
|
|
|
|
|
|
|
|
color: #fff;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2016-04-20 20:58:19 +00:00
|
|
|
}
|
|
|
|
|
2016-04-21 08:33:03 +00:00
|
|
|
/* (5) 'Tags' -> textes sur le liseré gauche */
|
|
|
|
& [data-tag]{
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
padding: 40px 60px;
|
2016-04-20 20:58:19 +00:00
|
|
|
|
2016-04-21 08:33:03 +00:00
|
|
|
&:before{
|
|
|
|
content: attr(data-tag);
|
2016-04-20 20:58:19 +00:00
|
|
|
|
2016-04-21 08:33:03 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
margin-top: .5em;
|
|
|
|
margin-left: -41px;
|
|
|
|
padding: 2px;
|
2016-04-20 20:58:19 +00:00
|
|
|
|
2016-04-21 08:33:03 +00:00
|
|
|
background-color: #fff;
|
2016-04-20 20:58:19 +00:00
|
|
|
|
2016-04-21 08:33:03 +00:00
|
|
|
font-size: 1.2em;
|
|
|
|
color: #399ced;
|
|
|
|
font-weight: bold;
|
2016-04-20 20:58:19 +00:00
|
|
|
|
2016-04-21 08:33:03 +00:00
|
|
|
// On centre sur la ligne
|
|
|
|
transform: translateX(-50%) translateY(-50%);
|
|
|
|
}
|
2016-04-20 20:58:19 +00:00
|
|
|
}
|
|
|
|
|
2016-04-20 14:57:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|