Difference between revisions of "Template:GO Paris-Saclay/navbarcss"

 
(193 intermediate revisions by the same user not shown)
Line 126: Line 126:
  
  
/************************************************************************
 
Navigation
 
************************************************************************/
 
  
nav{
 
  position: absolute;
 
  top: 0;
 
  left: 0;
 
  width: 100%;
 
  z-index: 2;
 
  background: #fff;
 
  box-shadow: 0 3px 10px -2px rgba(0,0,0,.1);
 
  border: 1px solid rgba(0,0,0,.1);
 
}
 
  
nav ul
 
{
 
    list-style: none;
 
    position: relative;
 
    float: right;
 
    margin-right: 100px;
 
    display: inline-table;
 
}
 
  
nav ul li
+
/************************************************************************
 +
Infographie de fond
 +
************************************************************************/
 +
body
 
{
 
{
   float: left;
+
   max-width: 100%;
  -webkit-transition: all .2s ease-in-out;
+
  -moz-transition: all .2s ease-in-out;
+
  transition: all .2s ease-in-out;
+
 
}
 
}
 
+
/************************************************************************
nav ul li:hover{background: rgba(0,0,0,.15);}
+
bloc1
nav ul li:hover > ul{display: block;}
+
************************************************************************/
nav ul li
+
.bloc1
 
{
 
{
   float: left;
+
   width: 100%;
   -webkit-transition: all .2s ease-in-out;
+
   height: 30em;
   -moz-transition: all .2s ease-in-out;
+
   position: relative;
   transition: all .2s ease-in-out;
+
   z-index: 2;  
 
}
 
}
  
nav ul li a
+
.parent_carreblanc
 
{
 
{
display: block;  
+
  width:6em;
padding: 30px 20px;
+
  height:20em;
color: #222;  
+
  position: absolute;
font-size: .9em;
+
  bottom: 8em;
letter-spacing: 1px;
+
text-decoration: none;
+
text-transform: uppercase;
+
 
}
 
}
  
nav ul ul
+
#carre_blanc
 
{
 
{
display: none;
+
  width: 5em;
background: #fff;
+
  position:absolute;
position: absolute;  
+
  top:1.4em;
top: 100%;
+
box-shadow: -3px 3px 10px -2px rgba(0,0,0,.1);
+
border: 1px solid rgba(0,0,0,.1);
+
 
}
 
}
  
nav ul ul li{float: none; position: relative;}
+
.parent_titres
 
+
nav ul ul li a
+
 
{
 
{
   padding: 15px 30px;  
+
   width:40em;
  border-bottom: 1px solid rgba(0,0,0,.05);
+
   height:20em;
}
+
 
+
nav ul ul ul
+
{
+
  position: absolute;
+
  left: 100%;
+
  top:0;
+
}
+
 
+
.logo_img
+
{
+
   height: 12em;
+
  width:auto;
+
  z-index: 3;
+
 
   position: absolute;
 
   position: absolute;
   margin-left: 4em;
+
   bottom: 7em;
   top:1em;
+
   left: 8em;
 
}
 
}
 
+
#titre_principal {
/************************************************************************
+
   width:auto;
Infographie de fond
+
  height:auto;
************************************************************************/
+
+
 
+
 
+
#carre
+
{
+
   width: 33em;
+
 
   position:absolute;
 
   position:absolute;
   top:4em;
+
   bottom:2em;
   right:0em;
+
   right:0.3em;
 
+
  color: rgb(42,183,202);
 +
  font-size: 4.7em;
 
}
 
}
  
 
+
#sous_titre
#carre_blanc
+
 
{
 
{
   width: 5.5em;
+
   width: auto;
   position:absolute;
+
  color:white;
   top:23em;
+
  letter-spacing: 2px;
 +
   position: absolute;
 +
   bottom: 1.7em;
 +
  right: 0em;
 +
  font-size: 2em;
 
}
 
}
  
 
+
.parent_carremulti
#titre_principal
+
 
{
 
{
   color: rgb(42,183,202);
+
   width:40em;
   font-size: 4.7em;
+
   height:30em;
  width: auto;
+
 
   position: absolute;
 
   position: absolute;
   top: 3.8em;
+
   top: 0em;
   left: 2.5em;
+
   right: 0em;
  z-index: 5;
+
  letter-spacing: 3px;
+
 
}
 
}
  
#sous_titre
+
#carre
 
{
 
{
   color:white;
+
   width: 30em;
  letter-spacing: 2px;
+
 
   position: absolute;
 
   position: absolute;
   top: 12em;
+
   top: -1em;
   left: 5.8em;
+
   right: 0em;
  font-size: 2em;
+
 
}
 
}
  
Line 263: Line 211:
 
{
 
{
 
   width: 35px;
 
   width: 35px;
 +
}
 +
 +
.parent_dis
 +
{
 +
height: 5em;
 +
width: 17em;
 +
position: absolute;
 +
bottom: 2em;
 +
left: 17em;
 
}
 
}
  
 
.discover
 
.discover
 
{
 
{
 +
  width: auto;
 +
font-size: 1.3em;
 
   background-color: rgb(254,215,102);
 
   background-color: rgb(254,215,102);
 
   border-radius: 10px;
 
   border-radius: 10px;
Line 272: Line 231:
 
   text-align: center;
 
   text-align: center;
 
   padding: 10px 10px 10px 10px ;
 
   padding: 10px 10px 10px 10px ;
  font-size: 1.3em;
 
 
   color: white;
 
   color: white;
 
   text-decoration: none;
 
   text-decoration: none;
 
   position:absolute;
 
   position:absolute;
   top:28em;
+
   font-family: 'Josefin Sans'
  left:30em;
+
  
 
}
 
}
  
a
+
a:hover /* Apparence au survol des liens */
 
{
 
{
text-decoration: none;
+
  text-decoration: none;
 +
  color: white;
 +
}
 +
.idea
 +
{
 +
  width:10em
 
}
 
}
  
 +
/************************************************************************
 +
    bloc2
 +
************************************************************************/
 +
.bloc2
 +
{
 +
  width: 100%;
 +
  height: 30em;
 +
  position: relative;
 +
}
 +
.parent_ancre
 +
{
 +
  width:5em
 +
  height: auto;
 +
  position: absolute;
 +
  top:16em; 
 +
}
 +
#ancre
 +
{
 +
  color: rgb(32,56,100);
 +
  font-size: 0.1em
 +
}
 +
.parent_hospitalgo
 +
{
 +
  width:100%;
 +
  height: 70em;
 +
  position: absolute;
 +
  top: -7em;
 +
  z-index: 1;
 +
}
  
#bloc2
+
#hospital
 
{
 
{
 
   width: 100%;
 
   width: 100%;
 
   position: absolute;
 
   position: absolute;
  top:530px;
 
 
}
 
}
 +
  
 
#go
 
#go
 
{
 
{
 
   position: absolute;
 
   position: absolute;
   top: 36.5em;
+
   bottom: 6em;
   left: 17.3em;
+
   left: 17em;
 
   font-size: 2em;
 
   font-size: 2em;
 
   color: white;
 
   color: white;
Line 318: Line 309:
 
  position: absolute;
 
  position: absolute;
 
  top: 200em;
 
  top: 200em;
}
+
width: 20em;
#ancre
+
{
+
  position:absolute;
+
  top: 880px;
+
  font-size: 0.1em;
+
 
}
 
}
  
Line 340: Line 326:
 
{
 
{
 
  position: absolute;
 
  position: absolute;
  top: 60em;
+
  top: 40.5em;
  left: 6em;
+
  left: 2em;
  font-size: 2.5em;
+
  font-size: 3em;
  width: 10em;
+
line-height: 1.3em;
 +
  width: 5em;
 +
text-align: center;
 
  color: rgb(254,75,74);
 
  color: rgb(254,75,74);
 
  font-family: 'Josefin Sans'
 
  font-family: 'Josefin Sans'
 +
 
}
 
}
  
 
#bloc3_text3
 
#bloc3_text3
 
{
 
{
  font-size: 20em;
+
position: absolute;
 +
top: 45.4em;
 +
left: 1em;
 +
  font-size: 3em;
 +
line-height: 1.3em;
 +
width: 10em;
 +
text-align: center;
 +
color:rgb(254,215,102);
 +
font-family: 'Josefin Sans'
 +
 
}
 
}
  
 
#bloc3_text4
 
#bloc3_text4
 
{
 
{
  font-size: 20em;
+
position: absolute;
 +
top: 43em;
 +
left: 21em;
 +
  font-size: 3em;
 +
line-height: 1.3em;
 +
width: 7em;
 +
text-align: center;
 +
color:rgb(42,183,202);
 +
font-family: 'Josefin Sans'
 +
 
}
 
}
  
  
    </style>
+
/************************************************************************
   </head>
+
Navigation
 +
************************************************************************/
 +
 
 +
#cssmenu {
 +
  background: #00000;
 +
  margin: 0;
 +
  width: 100%;
 +
  padding: 0;
 +
  line-height: 1;
 +
  display: block;
 +
  position: absolute;
 +
  top: 0em;
 +
  font-family: 'PT Sans', sans-serif;
 +
}
 +
#cssmenu ul {
 +
  list-style: none;
 +
  margin: 0;
 +
  padding: 0;
 +
  display: block;
 +
}
 +
#cssmenu ul:after,
 +
#cssmenu:after {
 +
  content: " ";
 +
  display: block;
 +
  font-size: 0;
 +
  height: 0;
 +
  clear: both;
 +
  visibility: hidden;
 +
}
 +
#cssmenu ul li {
 +
  margin: 0;
 +
  margin-right: 5px;
 +
  padding: 0;
 +
  display: block;
 +
  position: relative;
 +
}
 +
#cssmenu ul li a {
 +
  text-decoration: none;
 +
  display: block;
 +
  margin: 0;
 +
  -webkit-transition: color .2s ease;
 +
  -moz-transition: color .2s ease;
 +
  -ms-transition: color .2s ease;
 +
  -o-transition: color .2s ease;
 +
  transition: color .2s ease;
 +
  -webkit-box-sizing: border-box;
 +
  -moz-box-sizing: border-box;
 +
  box-sizing: border-box;
 +
}
 +
#cssmenu ul li ul {
 +
  position: absolute;
 +
  left: -9999px;
 +
  top: auto;
 +
}
 +
#cssmenu ul li ul li {
 +
  max-height: 0;
 +
  position: absolute;
 +
  -webkit-transition: max-height 0.4s ease-out;
 +
  -moz-transition: max-height 0.4s ease-out;
 +
  -ms-transition: max-height 0.4s ease-out;
 +
  -o-transition: max-height 0.4s ease-out;
 +
  transition: max-height 0.4s ease-out;
 +
  background: #ffffff;
 +
}
 +
#cssmenu ul li ul li.has-sub:after {
 +
  display: block;
 +
  position: absolute;
 +
  content: "";
 +
  height: 10px;
 +
  width: 10px;
 +
  border-radius: 5px;
 +
  background: #000000;
 +
  top: 13px;
 +
  right: 15px;
 +
}
 +
#cssmenu.align-right ul li ul li.has-sub:after {
 +
  right: auto;
 +
  left: 15px;
 +
}
 +
#cssmenu ul li ul li.has-sub:before {
 +
  display: block;
 +
  position: absolute;
 +
  content: "";
 +
  height: 0;
 +
  width: 0;
 +
  border: 3px solid transparent;
 +
  border-left-color: #ffffff;
 +
  top: 15px;
 +
  right: 15px;
 +
}
 +
#cssmenu.align-right ul li ul li.has-sub:before {
 +
  right: auto;
 +
  left: 15px;
 +
  border-left-color: transparent;
 +
  border-right-color: #ffffff;
 +
}
 +
#cssmenu ul li ul li a {
 +
  font-size: 14px;
 +
  font-weight: 400;
 +
  text-transform: none;
 +
  color: black;
 +
  letter-spacing: 0;
 +
  display: block;
 +
  width: 170px;
 +
  padding: 11px 10px 11px 20px;
 +
}
 +
#cssmenu ul li ul li:hover > a,
 +
#cssmenu ul li ul li.active > a {
 +
   background-color: rgba(254,215,102,0.3);
 +
  color: black;
 +
}
 +
#cssmenu ul li ul li:hover:after,
 +
#cssmenu ul li ul li.active:after {
 +
  background-color: rgba(254,215,102,0.3);
 +
  color: black;
 +
}
 +
#cssmenu ul li ul li:hover > ul {
 +
  left: 100%;
 +
  top: 0;
 +
}
 +
#cssmenu ul li ul li:hover > ul > li {
 +
  max-height: 72px;
 +
  position: relative;
 +
}
 +
#cssmenu > ul > li {
 +
  float: right;
 +
  margin-left: 10px;
 +
}
 +
#cssmenu.align-center > ul > li {
 +
  float: none;
 +
  display: inline-block;
 +
}
 +
#cssmenu.align-center > ul {
 +
  text-align: center;
 +
}
 +
#cssmenu.align-center ul ul {
 +
  text-align: left;
 +
}
 +
#cssmenu.align-right > ul {
 +
  float: right;
 +
}
 +
#cssmenu.align-right > ul > li:hover > ul {
 +
  left: auto;
 +
  right: 0;
 +
}
 +
#cssmenu.align-right ul ul li:hover > ul {
 +
  right: 100%;
 +
  left: auto;
 +
}
 +
#cssmenu.align-right ul ul li a {
 +
  text-align: right;
 +
}
 +
#cssmenu > ul > li:after {
 +
  content: "";
 +
  display: block;
 +
  position: absolute;
 +
  width: 100%;
 +
  height: 0;
 +
  top: 0;
 +
  background: rgb(254,215,102);
 +
  -webkit-transition: height .2s;
 +
  -moz-transition: height .2s;
 +
  -ms-transition: height .2s;
 +
  -o-transition: height .2s;
 +
  transition: height .2s;
 +
}
 +
#cssmenu > ul > li.has-sub > a {
 +
  padding-right: 40px;
 +
}
 +
#cssmenu > ul > li.has-sub > a:after {
 +
  display: block;
 +
  content: "";
 +
  background: #ffffff;
 +
  height: 12px;
 +
  width: 12px;
 +
  position: absolute;
 +
  border-radius: 13px;
 +
  right: 14px;
 +
  top: 16px;
 +
}
 +
#cssmenu > ul > li.has-sub > a:before {
 +
  display: block;
 +
  content: "";
 +
  border: 4px solid transparent;
 +
  border-top-color: white;
 +
  height: 0;
 +
  width: 0;
 +
  position: absolute;
 +
  right: 16px;
 +
  top: 21px;
 +
}
 +
#cssmenu > ul > li > a {
 +
  color: #ffffff;
 +
  padding: 15px 20px;
 +
  font-weight: 700;
 +
  letter-spacing: 1px;
 +
  text-transform: uppercase;
 +
  font-size: 14px;
 +
  position: relative;
 +
}
 +
#cssmenu > ul > li:hover:after,
 +
#cssmenu > ul > li.active:after {
 +
  height: 100%;
 +
}
 +
#cssmenu > ul > li:hover > a,
 +
#cssmenu > ul > li.active > a {
 +
  color: #000000;
 +
}
 +
#cssmenu > ul > li:hover > a:after,
 +
#cssmenu > ul > li.active > a:after {
 +
  background: #000000;
 +
}
 +
#cssmenu > ul > li:hover > a:before,
 +
#cssmenu > ul > li.active > a:before {
 +
  border-top-color: #ffffff;
 +
}
 +
#cssmenu > ul > li:hover > ul {
 +
  left: 0;
 +
}
 +
#cssmenu > ul > li:hover > ul > li {
 +
  max-height: 72px;
 +
  position: relative;
 +
}
 +
#cssmenu #menu-button {
 +
  display: none;
 +
}
 +
#cssmenu > ul > li > a {
 +
  display: block;
 +
}
 +
#cssmenu > ul > li {
 +
  width: auto;
 +
}
 +
#cssmenu > ul > li > ul {
 +
  width: 170px;
 +
  display: block;
 +
}
 +
#cssmenu > ul > li > ul > li {
 +
  width: 170px;
 +
  display: block;
 +
}
 +
@media all and (max-width: 800px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
 +
  #cssmenu > ul {
 +
    max-height: 0;
 +
    overflow: hidden;
 +
    -webkit-transition: max-height 0.35s ease-out;
 +
    -moz-transition: max-height 0.35s ease-out;
 +
    -ms-transition: max-height 0.35s ease-out;
 +
    -o-transition: max-height 0.35s ease-out;
 +
    transition: max-height 0.35s ease-out;
 +
  }
 +
  #cssmenu > ul > li > ul {
 +
    width: 100%;
 +
    display: block;
 +
  }
 +
  #cssmenu.align-right ul li a {
 +
    text-align: left;
 +
  }
 +
  #cssmenu > ul > li > ul > li {
 +
    width: 100%;
 +
    display: block;
 +
  }
 +
  #cssmenu.align-right ul ul li a {
 +
    text-align: left;
 +
  }
 +
  #cssmenu > ul > li > ul > li > a {
 +
    width: 100%;
 +
    display: block;
 +
  }
 +
  #cssmenu ul li ul li a {
 +
    width: 100%;
 +
  }
 +
  #cssmenu.align-center > ul {
 +
    text-align: left;
 +
  }
 +
  #cssmenu.align-center > ul > li {
 +
    display: block;
 +
  }
 +
  #cssmenu > ul.open {
 +
    max-height: 1000px;
 +
    border-top: 1px solid rgba(110, 110, 110, 0.25);
 +
  }
 +
  #cssmenu ul {
 +
    width: 100%;
 +
  }
 +
  #cssmenu ul > li {
 +
    float: none;
 +
    width: 100%;
 +
  }
 +
  #cssmenu ul li a {
 +
    -webkit-box-sizing: border-box;
 +
    -moz-box-sizing: border-box;
 +
    box-sizing: border-box;
 +
    width: 100%;
 +
    padding: 12px 20px;
 +
  }
 +
  #cssmenu ul > li:after {
 +
    display: none;
 +
  }
 +
  #cssmenu ul li.has-sub > a:after,
 +
  #cssmenu ul li.has-sub > a:before,
 +
  #cssmenu ul li ul li.has-sub:after,
 +
  #cssmenu ul li ul li.has-sub:before {
 +
    display: none;
 +
  }
 +
  #cssmenu ul li ul,
 +
  #cssmenu ul li ul li ul,
 +
  #cssmenu ul li ul li:hover > ul,
 +
  #cssmenu.align-right ul li ul,
 +
  #cssmenu.align-right ul li ul li ul,
 +
  #cssmenu.align-right ul li ul li:hover > ul {
 +
    left: 0;
 +
    position: relative;
 +
    right: auto;
 +
  }
 +
  #cssmenu ul li ul li,
 +
  #cssmenu ul li:hover > ul > li {
 +
    max-height: 999px;
 +
    position: relative;
 +
    background: none;
 +
  }
 +
  #cssmenu ul li ul li a {
 +
    padding: 8px 20px 8px 35px;
 +
    color: #ffffff;
 +
  }
 +
  #cssmenu ul li ul ul li a {
 +
    padding: 8px 20px 8px 50px;
 +
  }
 +
  #cssmenu ul li ul li:hover > a {
 +
    color: #000000;
 +
  }
 +
  #cssmenu #menu-button {
 +
    display: block;
 +
    -webkit-box-sizing: border-box;
 +
    -moz-box-sizing: border-box;
 +
    box-sizing: border-box;
 +
    width: 100%;
 +
    padding: 15px 20px;
 +
    text-transform: uppercase;
 +
    font-weight: 700;
 +
    font-size: 14px;
 +
    letter-spacing: 1px;
 +
    color: #ffffff;
 +
    cursor: pointer;
 +
  }
 +
  #cssmenu #menu-button:after {
 +
    display: block;
 +
    content: '';
 +
    position: absolute;
 +
    height: 3px;
 +
    width: 22px;
 +
    border-top: 2px solid #ffffff;
 +
    border-bottom: 2px solid #ffffff;
 +
    right: 20px;
 +
    top: 16px;
 +
  }
 +
  #cssmenu #menu-button:before {
 +
    display: block;
 +
    content: '';
 +
    position: absolute;
 +
    height: 3px;
 +
    width: 22px;
 +
    border-top: 2px solid #ffffff;
 +
    right: 20px;
 +
    top: 26px;
 +
 
 +
 
 +
  }
 +
}
 +
 
 +
<script>
 +
( function( $ ) {
 +
$( document ).ready(function() {
 +
$('#cssmenu').prepend('<div id="menu-button">Menu</div>');
 +
$('#cssmenu #menu-button').on('click', function(){
 +
var menu = $(this).next('ul');
 +
if (menu.hasClass('open')) {
 +
menu.removeClass('open');
 +
}
 +
else {
 +
menu.addClass('open');
 +
}
 +
});
 +
});
 +
} )( jQuery );
 +
 
 +
 
 +
 
 +
 
 +
</script>
 +
 
 +
 
 +
</style>
 
</html>
 
</html>

Latest revision as of 10:55, 23 September 2018