css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <h1>Desarrollo de Interfaces 2DAW 2018-2019</h1>
<h3>prof. Laura Isabel López Naves</h3>
<h5 class="separador">Primer Trimestre</h5>
<div class="accordion">
  <div class="item">
    <input id="accordion0" type="checkbox" name="accordion0" hidden="hidden"/>
    <label class="menulabel" for="accordion0">Primeros Pasos</label>
    <div class="accordion-content">
      <ul>
        <h5>Ejercicios:</h5>
        <li><small><b>PRACTICA </b></small><a href="#" target="_blank">Página de repaso</a></li>
        <li><small><b>PRACTICA </b></small><a href="#" target="_blank">Párrafos y Tipografías</a></li>
        <li><small><b>PRACTICA </b></small><a href="#" target="_blank">Elección de los colores de una tienda</a></li>
        <li><small><b>PRACTICA </b></small><a href="#example0">Axure</a></li>
        <li><small><b>PRACTICA </b></small><a href="#example0">Balsamiq</a></li>
        <li class="last"><small><b>PRACTICA </b></small><a href="#" target="_blank">Básicos de etiquetas</a></li>
        <h5>Recursos:</h5>
        <li><a href="https://voodoo.co.com/asides/colorDictionary" target="_blank">Haishoku Soukan</a> 
          <xx-small>hecho por mi</xx-small></li>
        <li><a href="https://www.colourlovers.com/" target="_blank">ColourLovers.net</a></li>
        <li><a href="https://fonts.google.com/" target="_blank">Google Fonts</a></li>
        <li><a href="http://genericons.com/" target="_blank">Genericons</a>
          <xx-small>de los creadores de Wordpress, a mi me gusta mas que font awesome</xx-small></li>
					<li><a href="http://retinart.net/typography/typographicscale/" target="_blank">La escala tipografica</a> 
						<xx-small>normas para una tipografia con contrastes</xx-small></li>
      </ul>
    </div>
  </div>
  <div class="item">
    <input id="accordion1" type="checkbox" name="accordion1" hidden="hidden"/>
    <label class="menulabel" for="accordion1">Formularios & Media</label>
    <div class="accordion-content">
      <ul>
				<li><small><b>PRACTICA </b></small><a href="#" target="_blank">Bootstrap</a></li>
				<li><small><b>PRACTICA </b></small><a href="#" target="_blank">Materialize</a></li>
				<li><small><b>PRACTICA </b></small><a href="#" target="_blank">Formularios con HTML5 y CSS3</a></li>
        <li><small><b>PRACTICA </b></small><a href="#" target="_blank">Formularios con Bootstrap</a></li>
        <h5>Recursos:</h5>
        <li><a href="http://placehold.jp/en.html" target="_blank">Placehold.jp</a> 
          <xx-small>generador de imagenes para layouts</xx-small></li>
				<li><a href="https://frowcss.com/forms.html" target="_blank">Frow.css</a> 
          <xx-small>buenos ejemplos de formularios</xx-small></li>
			</ul>
    </div>
  </div>
  <div class="item">
    <input id="accordion2" type="checkbox" name="accordion2" hidden="hidden"/>
    <label class="menulabel" for="accordion2">Frameworks CSS</label>
    <div class="accordion-content">
      <ul>
        <li><small><b>PRACTICA </b></small><a href="https://getbootstrap.com/" target="_blank">Bootstrap framework</a></li>
        <li><small><b>PRACTICA </b></small><a href="https://materializecss.com/" target="_blank">Materialize CSS</a></li>
        <h5>Recursos:</h5>
				<li><a href="http://voodoo.co.com/legibelle" target="_blank">Legibelle.scss</a> <xx-small>hecho por mi</xx-small></li>
        <li><a href="http://getskeleton.com/" target="_blank">Skeleton CSS</a> <xx-small>un clasico</xx-small></li>
        <li><a href="http://bulma.io" target="_blank">Bulma CSS</a> <xx-small>el chico nuevo</xx-small></li>
      </ul>
    </div>
  </div>
  <div class="item">
    <input id="accordion3" hidden="hidden" type="checkbox" name="accordion3"/>
    <label class="menulabel" for="accordion3">Propiedades propias de CSS</label>
    <div class="accordion-content">
      <ul>
        <h5>Recursos:</h5>
				<li><a href="https://css-tricks.com/almanac/selectors/n/nth-child/" target="_blank">Tutorial sobre nth:child</a> <xx-small>uno de los pseudo-selectores mas utiles</xx-small></li>
        <li><a href="https://techbrij.com/css-selector-adjacent-child-sibling" target="_blank">Comprendiendo +, > & ~</a> <xx-small>tres pseudo-selectores que hay que saber</xx-small></li>
      </ul>
    </div>
  </div>
  <div class="item">
    <input id="accordion4" hidden="hidden" type="checkbox" name="accordion4"/>
    <label class="menulabel" for="accordion4">CSS Grid</label>
    <div class="accordion-content">
      <ul>
        <li>Lorem ipsum</li>
        <h5>Recursos:</h5>
        <li><a href="https://all-markup-news.com/px-to-em/" target="_blank">Conversion de PX a EM</a> <xx-small>la norma es: 16px = 1rem</xx-small></li>
        <li><a href="https://all-markup-news.com/responsive-web-design-formula/" target="_blank">calculadora de Layouts Responsive</a></li>
				<li><a href="https://flexboxfroggy.com/#es" target="_blank">Practicar el flexbox</a></li>
				<li><a href="http://cssgridgarden.com/#es" target="_blank">Practicar el CSS Grid</a></li>
      </ul>
    </div>
  </div>
  <div class="item">
    <input id="accordion5" hidden="hidden" type="checkbox" name="accordion5"/>
    <label class="menulabel" for="accordion5">Accesibilidad</label>
    <div class="accordion-content">
      <ul>
        <li>
          <Lorem>ipsum</Lorem>
        </li>
        <h5>Recursos:</h5>
        <li><a href="https://developers.google.com/web/fundamentals/accessibility/?hl=es" target="_blank">Accesibilidad Info (Google Developer)</a></li>
        <li><a href="https://eu.udacity.com/course/web-accessibility--ud891" target="_blank">Curso de Udacity</a></li>
        <li><a href="https://www.udemy.com/aprende-accesibilidad-web-paso-a-paso/" target="_blank">Curso de la Universidad de Alicante</a></li>
      </ul>
    </div>
  </div>
  <div class="item">
    <input id="accordion6" hidden="hidden" type="checkbox" name="accordion6"/>
    <label class="menulabel" for="accordion6">CSS Next-Gen</label>
    <div class="accordion-content">
      <ul>
        
        <h5>Recursos:</h5>
				<li><a href="https://sass-lang.com/" target="_blank">Preprocesador CSS (SCSS)</a></li>
				<li><a href="https://medium.com/quick-code/top-tutorials-to-learn-sass-and-scss-33e4dcd63e9b" target="_blank">Aprende SCSS Y Sass (Blog)</a></li>
        <li><a href="https://html2jade.org/" target="_blank">Preprocesador HTML (Pug)</a></li>
        <li><a href="https://codeburst.io/getting-started-with-pug-template-engine-e49cfa291e33" target="_blank">Aprende Pug (Blog)</a></li>
      </ul>
    </div>
  </div>
</div>
<h5 class="separador">Segundo Trimestre</h5>
<div class="accordion">
  <div class="item">
    <input id="accordion10" type="checkbox" name="accordion10" hidden="hidden"/>
    <label class="menulabel" for="accordion10">Segunda Eva</label>
    <div class="accordion-content">
      <ul>
        <li>Lorem</li>
        <h5>Recursos:</h5>
        <li>Lorem</li>
      </ul>
    </div>
  </div>
</div>
<h5>&copy;2018 Javier García Hernández</h5>
<h6><a href="https://codepen.io/OOQQ/pen/QZzyrV" target="_blank">Source</a></h6>
<!--//////primer modal-->
<div class="lightbox" id="example0">
  <figure class="lightbox__body"><a class="lightbox__close-btn" href="#"></a>
    <figcaption class="lightbox__content"><img src="http://placehold.jp/150x150.png" <="" img=""/></figcaption>
  </figure>
</div>
            
          
!
            
              /* Reset */
* {margin:0; padding:0;}

$red:red;
$white:white;
$black:black;
$lightGrey:whitesmoke;
$darkGrey:silver;
$darkerGrey:gray;
$blue:#06c;
$header-padding:20px;
$collapse-icon-size:40px;
@mixin transition($transition...){
  transition:$transition;
  -webkit-transition:$transition;
  -moz-transition:$transition;
}

@mixin transform($transform) {
		transform:$transform;
    -ms-transform:$transform;
    -webkit-transform:$transform;
    -moz-transform:$transform;
}

// Optional
body {
  max-width:40rem; //640px
  margin:0 auto;
}

h1, h2, h3, h4, h5, h6 {
  color:$blue;
  font-weight:normal;
  display:block;
}

h1 {
	font-size:2rem;
	margin:2rem 0 0.5rem 0;
}

h3 {
	font-size:1rem;
	font-weight:bold;
	color:$lightGrey;
}

h5 {
	font-size:0.66rem;
	font-weight:bold;
	color:$black;
	margin:1rem 0 0.25rem 0;
}

h6 {
	font-size:0.6rem;
}

a {
	color:$blue;
	text-decoration:underline;
}

a:hover {
	text-decoration:none;
}

.separador{
	margin-top:4rem;
}

xx-small{
	font-size:0.6rem;
}

li {
	list-style-type:none;
	margin-left:1rem;
}

.last {margin-bottom:2rem;}

//accordeon CSS
.accordion {
  .item {
		color:$darkerGrey;
    position:relative;
    overflow:hidden;
    margin-bottom:0.25rem;
    border:0.063rem solid $darkGrey; //1px
    &:hover {
      label.menulabel {
        color:$blue;
      }
    }
    label.menulabel {
      font-size:1.33rem;
      display:block;
      width: 100%;
      border-bottom:0.063rem solid $darkerGrey;
      cursor:pointer;
      position:relative;
      padding:$header-padding;
      overflow:hidden;
      &:after {
        display:none;
        content:"+";
        position:absolute;
        top:50%;
        right:3.5rem;
        margin-top:-$collapse-icon-size/2;
        font-size:$collapse-icon-size;
        color:$blue;
        @include transition(transform 0.2s ease-out);
      }
    }
    input[type="radio"],
    input[type="checkbox"] {
      position:absolute;
      z-index:1;
      &[hidden="hidden"] {
        visiblity:hidden;
        + label{
          &:after{
            display:block
          }
        }
      }
      &:checked {
        ~.accordion-content {
          padding:1rem 1.25rem;
          height:auto;
					line-height:1.5rem;
        }
        + label.menulabel {
          color:$blue;
          &:after {
           @include transform(rotate(45deg));
          }
        }
      }
    }
    .accordion-content {
      padding:0 1.25rem;
      height:0;
      color:$darkerGrey;
      overflow:hidden;
      @include transition(padding 0.2s ease);
    }
  }
}





////////////////////////////css modal
body {
   padding:40px;
   background:$lightGrey;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.lightbox:target {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox__body {
    width: 400px;
    position: relative;
}

.lightbox__content {
    background:$lightGrey;
    padding: 40px;
    border-radius: 2px;
    position: relative;
    
    p {
        margin: 0;
        font-size: 14px;
        line-height: 1.6em;
        color: #444;
    }
}

.lightbox__close-btn::after {
    content:"Volver";
    display:inline-block;
    position:absolute;
    right:-15px;
    top:-15px;
    z-index:3;
    width:auto;
    height:30px;
    cursor:pointer;
    background:$black;
    font-weight:700;
    font-size:11px;
    padding:0 15px;
    line-height:30px;
    color:#fff;
}

.lightbox__close-btn::before {
    content: "";
    display: block;
    position: fixed;
    margin:0;
    background-color: rgba(0, 0, 0, 0.7);
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console