Compare commits
	
		
			1 Commits 
		
	
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								
								 | 
						fe0c1b7a35 | 4 years ago | 
@ -0,0 +1,107 @@
 | 
			
		||||
<script></script>
 | 
			
		||||
 | 
			
		||||
<header>
 | 
			
		||||
  <div class="logo">
 | 
			
		||||
    <img alt="Logo de la asociación Derecho a Morir Dignamente" src="https://derechoamorir.org/wp-content/uploads/2018/01/logo_sineslogan_web_72pp_transparente.png">
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="hamburger">
 | 
			
		||||
  <svg viewBox="0 0 100 80" width="40" height="40">
 | 
			
		||||
    <rect width="100" height="12"></rect>
 | 
			
		||||
    <rect y="30" width="100" height="12"></rect>
 | 
			
		||||
    <rect y="60" width="100" height="12"></rect>
 | 
			
		||||
  </svg>
 | 
			
		||||
</div>
 | 
			
		||||
  <nav>
 | 
			
		||||
    <ul>
 | 
			
		||||
      <li>^</li>
 | 
			
		||||
      <li>Conócenos</li>
 | 
			
		||||
      <li>Tus derechos</li>
 | 
			
		||||
      <li>Grupos</li>
 | 
			
		||||
      <li>Comunicación</li>
 | 
			
		||||
      <li>Contacto</li>
 | 
			
		||||
      <li>Eventos</li>
 | 
			
		||||
      <li class="menu-highlight">Asóciate</li>
 | 
			
		||||
    </ul>
 | 
			
		||||
    <div class="menumobile"> = </div>
 | 
			
		||||
  </nav>
 | 
			
		||||
</header>
 | 
			
		||||
 | 
			
		||||
<style>
 | 
			
		||||
  .hamburger {
 | 
			
		||||
    width: 64px;
 | 
			
		||||
    align-self: center;
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
  }
 | 
			
		||||
  header {
 | 
			
		||||
  width: 100%;
 | 
			
		||||
  background: white;
 | 
			
		||||
  height: 6rem;
 | 
			
		||||
  padding: 1rem;
 | 
			
		||||
  display: grid;
 | 
			
		||||
  grid-template-columns: 64px 1fr 64px;
 | 
			
		||||
  grid-auto-flow: dense;
 | 
			
		||||
  grid-gap: 4rem;
 | 
			
		||||
  align-items: end;
 | 
			
		||||
  z-index: 50;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
header .logo {
 | 
			
		||||
  grid-column: 2/3;
 | 
			
		||||
  justify-self: center;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
header .logo img {
 | 
			
		||||
  max-width: 150px;
 | 
			
		||||
}
 | 
			
		||||
nav {
 | 
			
		||||
  display: none;
 | 
			
		||||
}
 | 
			
		||||
nav ul {
 | 
			
		||||
  grid-column: 1/2;
 | 
			
		||||
  list-style: none;
 | 
			
		||||
  display: flex;
 | 
			
		||||
  flex-direction: row;
 | 
			
		||||
  justify-content: space-between;
 | 
			
		||||
  padding: 0.5rem 0;
 | 
			
		||||
}
 | 
			
		||||
nav li {
 | 
			
		||||
  text-transform: uppercase;
 | 
			
		||||
  font-size: 0.8rem;
 | 
			
		||||
  padding: 4px 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.menu-highlight {
 | 
			
		||||
  color: white;
 | 
			
		||||
  background: firebrick;
 | 
			
		||||
  box-shadow: -8px 0 0 0 firebrick, 8px 0 0 0 firebrick;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.menumobile {
 | 
			
		||||
  display: none;
 | 
			
		||||
}
 | 
			
		||||
@media (max-width: 768px) {
 | 
			
		||||
  header {
 | 
			
		||||
    grid-template-columns: 1fr 30vw;
 | 
			
		||||
    grid-gap: 2rem;
 | 
			
		||||
    height: auto;
 | 
			
		||||
    padding: 8px;
 | 
			
		||||
    align-items: end;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
  }
 | 
			
		||||
  header .logo {
 | 
			
		||||
    display: grid;
 | 
			
		||||
    align-items: end;
 | 
			
		||||
  }
 | 
			
		||||
  header .logo img {
 | 
			
		||||
    max-width: 30vw;
 | 
			
		||||
  }
 | 
			
		||||
  nav ul {
 | 
			
		||||
    display: none;
 | 
			
		||||
  }
 | 
			
		||||
  .menumobile {
 | 
			
		||||
    display: block;
 | 
			
		||||
    font-size: 3rem;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
 | 
			
		||||
											
												Binary file not shown.
											
										
									
								| 
		 After Width: | Height: | Size: 123 KiB  | 
											
												Binary file not shown.
											
										
									
								| 
		 After Width: | Height: | Size: 36 KiB  | 
											
												Binary file not shown.
											
										
									
								| 
		 After Width: | Height: | Size: 22 KiB  | 
					Loading…
					
					
				
		Reference in New Issue