cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <header id="header">
    <nav class="menu">
      <div class="logo">
        <img src="http://evasantos.com/ilustraciones/svgs/logo.svg">
        <a href="#" class="btn-menu" id="btn-menu"><i class="icono fa fa-bars fa-2x" aria-hidden="true"></i></a>
      </div>
      <div class="enlaces" id="enlaces">
        <a href="#"><i class="fa fa-home" aria-hidden="true"></i>Home</a>
        <a href="#"><i class="fa fa-file-text-o" aria-hidden="true"></i>Nosotros</a>
        <a href="#"><i class="fa fa-paint-brush" aria-hidden="true"></i>Trabajos</a>
        <a href="#"><i class="fa fa-envelope-open-o" aria-hidden="true"></i>Contáctanos</a>
      </div>
    </nav>            
</header>
<section class="cards">
    <article class="card">
        <div class="miniatura">
                                <img src="http://evasantos.com/ilustraciones/svgs/coche.svg">
        </div>
        <div class="card-content">
                                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nunc tellus, consectetur ut mi at, dapibus suscipit elit. Sed vitae dictum erat. Aliquam cursus enim varius aliquam euismod. .</p>
        </div><!-- .card-content -->
                   
    </article><!-- .card --> 
    <article class="card">
        <div class="miniatura">
          <img src="http://evasantos.com/ilustraciones/svgs/pez.svg">
        </div>
        <div class="card-content">
             <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nec leo vel elit consectetur placerat. Aenean tincidunt felis libero. Aenean egestas metus id risus finibus, vitae venenatis</p>
        </div><!-- .card-content -->
    </article><!-- .card -->
    <article class="card">
        <div class="miniatura">
          <img src="http://evasantos.com/ilustraciones/svgs/cohete.svg">
        </div>
        <div class="card-content">
            <p>Integer vitae consectetur est. Sed tincidunt, nisl sit amet tristique venenatis, eros felis interdum nisl, quis ultrices orci tortor nec </p>
        </div><!-- .card-content -->               
    </article><!-- .card -->

    <article class="card">
        <div class="miniatura">
          <img src="http://evasantos.com/ilustraciones/svgs/setas.svg">
        </div>
        <div class="card-content">
           <p>Mauris id auctor libero. Sed diam sapien, scelerisque nec consequat ut, lobortis eu metus. Sed varius purus ac sapien rutrum, id facilisis quam maximus. Aenean ac est hendrerit</p>
        </div><!-- .card-content -->
    </article><!-- .card -->
</section><!-- .cards -->


<section class="articulos">
        <div class="articulo"><h2>ME GUSTAN LOS COLORINCHIS</h2><hr><p>Mauris ante felis, facilisis nec eleifend id, gravida a turpis. Nullam suscipit, dolor id scelerisque bibendum, augue mi efficitur orci, eu vehicula elit velit eu arcu. Vestibulum egestas ante in libero luctus fringilla. Aenean ullamcorper lacus eget augue pretium commodo. Pellentesque mauris mauris, commodo eget metus eget, rutrum ultrices eros. Mauris molestie turpis diam, at dignissim risus fringilla sed.</p><p>Mauris id auctor libero. Sed diam sapien, scelerisque nec consequat ut, lobortis eu metus. Sed varius purus ac sapien rutrum, id facilisis quam maximus. Aenean ac est hendrerit</p><p>Mauris ante felis, facilisis nec eleifend id, gravida a turpis. Nullam suscipit, dolor id scelerisque bibendum, augue mi efficitur orci, eu vehicula elit velit eu arcu. Vestibulum egestas ante in libero luctus fringilla. Aenean ullamcorper lacus eget augue pretium commodo. Pellentesque mauris mauris, commodo eget metus eget, rutrum ultrices eros. Mauris molestie turpis diam, at dignissim risus fringilla sed.</p>
      </div>
      <div class="articulo"><h2>ME GUSTAN LOS COLORINCHIS</h2><hr><p>Mauris ante felis, facilisis nec eleifend id, gravida a turpis. Nullam suscipit, dolor id scelerisque bibendum, augue mi efficitur orci, eu vehicula elit velit eu arcu. Vestibulum egestas ante in libero luctus fringilla. Aenean ullamcorper lacus eget augue pretium commodo. Pellentesque mauris mauris, commodo eget metus eget, rutrum ultrices eros. Mauris molestie turpis diam, at dignissim risus fringilla sed.</p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nunc tellus, consectetur ut mi at, dapibus suscipit elit. Sed vitae dictum erat. Aliquam cursus enim varius aliquam euismod.</p><p>Mauris ante felis, facilisis nec eleifend id, gravida a turpis. Nullam suscipit, dolor id scelerisque bibendum, augue mi efficitur orci, eu vehicula elit velit eu arcu. Vestibulum egestas ante in libero luctus fringilla. Aenean ullamcorper lacus eget augue pretium commodo. Pellentesque mauris mauris, commodo eget metus eget, rutrum ultrices eros. Mauris molestie turpis diam, at dignissim risus fringilla sed.</p>
      </div>
</section>

            
          
!
            
              
$color1:#AB9F77;
$color2:#e0e7b6;
$color3:#696969;

@import url('https://fonts.googleapis.com/css?family=Francois+One|Roboto');
body{
box-sizing: border-box;
font-size: 16px;
margin: 0;
padding: 0;
}
/* MENU */

#header {
background-color: $color1;
width: 100%;
top: 0;

    .menu{
    width: 90%;
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction:row;
    justify-content: space-between;
    align-items: center;

        .logo{
        display: inline-block;
        margin: 10px 0 10px 10px;

            .btn-menu{
            display: none;
            color: lighten($color1, 100%);
            text-decoration: none;
            font-size: 1em;
            align-self: center;
            margin-right: 10px;
            }
            img{
            vertical-align: top;
            width: 70px;
            }
        }
    }
}

.menu .enlaces{
    display: inline-block;
    text-align: right;
    font-family: 'Francois One', sans-serif;
    letter-spacing: 0.1em;
    a{
        color: lighten($color1, 100%);
        text-decoration: none;
        display: inline-block;
        font-size: 1.2em;
        text-align: center;
        padding: 1em;
    }
     a:hover{
        color:$color3;
    }
    i{
        margin: 5px;
    }
}

.cards{
display:flex;
justify-content: center;

   .card {
    background: $color1;
    border-radius: 10px;
    margin: 0.4em 0.2em 0.2em 0.2em;

        .miniatura{
        background: $color2;
        display: flex;
        justify-content: center;
        border-radius: 10px 10px 0 0;

            img {
            width: 100%;
            max-width: 160px;
            }
        }

        .card-content p{    
        padding: 0.5em 0.8em 0.5em 0.8em;
        color: lighten($color1, 80%);
        font-family: 'Roboto', sans-serif;
        }
    }
}

.articulos{
display:flex;
justify-content: center;

   .articulo {
    background: $color1;
    border-radius: 10px;
    margin: 0.4em 0.2em 0.2em 0.2em;
    padding: 0 0.2em 0 0.2em;
        p{
        padding: 0.5em 0.8em 0.5em 0.8em;
        color: lighten($color1, 80%);
        font-family: 'Roboto', sans-serif;
        }
        h2{
        text-align: center;
        color: lighten($color1, 80%);
        font-family: 'Francois One', sans-serif;
        letter-spacing: 0.1em;
        }
        hr{
        margin-bottom: 1em;
        height: 2px;
        border: none;
        background: $color3;
        }
    }
}

@media all and (min-width:0px){
    .cards, .articulos{
        flex-flow:row wrap;
    }
    .card{
        width:100%;
    }
}
@media all and (min-width:480px){
    .cards, .articulos{
        flex-flow:row wrap;
    }
    .card{
        width:45%;
    }
    .articulo{
        width: 90%;
    }    
}
@media all and (min-width:930px){
    .cards{
        flex-flow:row wrap;
    }
    .card{
        width:23%;
    }
     .articulo{
        width: 46%;
    }
}
@media all and (max-width:780px){

    #header .menu {
        flex-direction: column;
        .logo{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        align-items: flex-start; 
           img{
            width: 50px;
            }
          .btn-menu{
            display: inline-block;
            }
        }
       .enlaces {
        display: flex;
        flex-direction: column;
        width: 100%;
          a{
          border-bottom: 2px solid $color3;
          }
          a:hover{
          background-color: lighten($color1, 10%);
          color: lighten($color1, 100%);
          }
        }
    }   
}



            
          
!
            
              $(function(){

	var header = document.getElementById('header');


	//menu responsive
	//calcular ancho
	var ancho = $(window).width(),
		enlaces = $('#enlaces'),
		btnMenu = $('#btn-menu'),
		icono = $('#btn-menu .icono');

		if (ancho < 780) {
			enlaces.hide();
			icono.addClass('fa-bars');

		}
		btnMenu.on('click', function(e){
			enlaces.slideToggle();
			icono.toggleClass('fa-bars');
			icono.toggleClass('fa-times');
		});

		$(window).on('resize', function(){
			if ($(this).width() > 780) {
				enlaces.show();
				icono.addClass('fa-times');
				icono.removeClass('fa-bars');

			} else {
				enlaces.hide();
				icono.addClass('fa-bars');
				icono.removeClass('fa-times');
			}

		});
});
            
          
!
999px
Loading ..................

Console