Pen Settings

HTML

CSS

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

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!-- 
Ejemplo de ALerta Fija
-->

<body>
  <div class="container">
    <!-- ⚠️ Codigo de alerta fija acá, consdierar padding-button -->
    <div id="alerta-tie" style="padding-bottom: 42px;">
      <div id="tie" class="tie-border-warning">
        <div class="container">
          <div class="uc-alert tie-warning">
            <div class="uc-alert_content"><i class="uc-icon icon-size--sm">warning</i> <span class="p p-size--sm bold my-8">COVID-19: Retorno gradual a la Universidad. Las personas que
                asistan a los campus</span> <span><a href="https://www.uc.cl/uc-contra-el-coronavirus/#formularios" target="_self" class="text-size--sm">deben completar diariamente un formulario online.</a></span></div>
            <div class="uc-alert_close ml-12" style="cursor: pointer; align-self: flex-start;"><i class="uc-icon">close</i></div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- Header global -->
  <header class="uc-header">
    <div id="uc-global-topbar"></div>
    <nav class="uc-navbar">
      <!-- Menú para versión Escritorio -->
      <div class="container d-none d-lg-block">
        <div class="row align-items-center">
          <div class="col-lg-3 col-xl-2">
            <img src="https://kit-digital-uc-desa.s3.amazonaws.com/img/logo-uc-color.svg" alt="Logo de Facultad" class="img-fluid">
          </div>
          <div class="col-lg-8 col-xl-9">
            <div class="h2 text-font--serif text-color--blue mt-24">Facultad o unidad </div>
            <div class="text-color--gray p-size--lg">Bajada</div>
          </div>
        </div>
        <ul class="uc-navbar_nav" style="position: relative; z-index: 99;">
          <li class="nav-item ">
            <a href="/" class="uc-btn btn-inline">Inicio </a>
          </li>
          <li class="nav-item uc-navbar-dropdown">
            <a href="#" class="uc-btn btn-inline">Quienes somos <i class="uc-icon">arrow_drop_down</i> </a>
            <ul class="uc-navbar-dropdown_menu">

              <li class="dropdown_item--heading">
                <a href="#" class="uc-btn">Misión e Historia</a>
              </li>
              <li class="dropdown_item--heading">
                <a href="#" class="uc-btn">Contacto</a>
              </li>
            </ul>
          </li>
          <li class="nav-item uc-navbar-dropdown">
            <a href="/programas-de-estudio/" class="uc-btn btn-inline">Paginas <i class="uc-icon">arrow_drop_down</i> </a>
            <ul class="uc-navbar-dropdown_menu">
              <li class="dropdown_item--heading">
                <a href="#" class="uc-btn">Página padre</a>
                <ul class="uc-navbar-dropdown_child">
                  <li class="uc-navbar-dropdown_item">
                    <a href="#" class="uc-btn">Pagina 1</a>
                  </li>

                  <li class="uc-navbar-dropdown_item">
                    <a href="#" class="uc-btn">Pagina 2</a>
                  </li>

                  <li class="uc-navbar-dropdown_item">
                    <a href="#" class="uc-btn">Pagina 3</a>
                  </li>
                  <li class="uc-navbar-dropdown_item">
                    <a href="#" class="uc-btn">Pagina 4</a>
                  </li>
                  <li class="uc-navbar-dropdown_item">
                    <a href="#" class="uc-btn">Pagina 5</a>
                  </li>
                  <li class="uc-navbar-dropdown_item">
                    <a href="#" class="uc-btn">Pagina 6</a>
                  </li>
                </ul>
              </li>
              <li class="dropdown_item--heading">
                <a href="#" class="uc-btn">Página padre 2</a>
                <ul class="uc-navbar-dropdown_child">
                  <li class="uc-navbar-dropdown_item">
                    <a href="#" class="uc-btn">Pagina 7</a>
                  </li>
                  <li class="uc-navbar-dropdown_item">
                    <a href="#" class="uc-btn">Pagina 8</a>
                  </li>
                  <li class="uc-navbar-dropdown_item">
                    <a href="#" class="uc-btn">Pagina 9</a>
                  </li>
                  <li class="uc-navbar-dropdown_item">
                    <a href="#" class="uc-btn">Pagina 10</a>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
          <li class="nav-item ">
            <a href="#" class="uc-btn btn-inline">Calendario</a>
          </li>
          <li class="nav-item ">
            <a href="#" class="uc-btn btn-inline">Contacto</a>
          </li>
        </ul>
      </div>
      <!-- Menú para versión Móvil -->
      <div class="uc-navbar_mobile navbar_mobile-slide d-block d-lg-none">
        <div class="uc-navbar_mobile-bar navbar-brand">
          <div class="uc-navbar_mobile-logo navbar-light">
            <div class="h2 text-font--serif text-color--blue">Título</div>
          </div>
          <a href="javascript:void(0);" class="uc-navbar_mobile-button">
            <span class="uc-icon"></span>
          </a>
        </div>
        <div class="uc-navbar_mobile-content">
          <ul class="uc-navbar_mobile-list">
            <li class="list-item has-list-children">
              <a class="list-open" href="#">
                Pregrado
                <i class="uc-icon icon-size--sm">arrow_forward_ios</i>
              </a>
              <ul class="list-item list-children">
                <li class="list-item">
                  <a href="#" class="list-close">
                    <div class="uc-icon icon-size--sm">
                      arrow_back_ios
                    </div>
                    Pregrado
                  </a>
                </li>
                <!-- loop de elementos -->
                <li class="list-item has-list-children">
                  <a href="#" class="list-open">
                    Item 1
                    <i class="uc-icon icon-size--sm">arrow_forward_ios</i>
                  </a>
                  <ul class="list-children">
                    <li class="list-item">
                      <a href="#" class="list-close text-color--gray">
                        <span class="uc-icon">arrow_back_ios</span>
                        Item child
                      </a>
                    </li>
                    <li class="list-item">
                      <a href="/">Item child</a>
                    </li>
                    <li class="list-item">
                      <a href="/">Item child</a>
                    </li>
                  </ul>
                </li>
                <li class="list-item">
                  <a href="/">
                    Item child
                    <i class="uc-icon">launch</i>
                  </a>
                </li>
                <li class="list-item">
                  <a href="/">Item child</a>
                </li>
                <li class="list-item">
                  <a href="/">Item child</a>
                </li>
              </ul>
            </li>
            <li class="list-item">
              <a href="#">Item 2</a>
            </li>
            <li class="list-item has-list-children">
              <a class="list-open" href="#">
                Desplegable 2
                <i class="uc-icon icon-size--sm">arrow_forward_ios</i>
              </a>
              <ul class="list-item list-children">
                <li class="list-item">
                  <a href="#" class="list-close">
                    <div class="uc-icon icon-size--sm">
                      arrow_back_ios
                    </div>
                    Desplegable 2
                  </a>
                </li>
                <!-- loop de elementos -->
                <li class="list-item">
                  <a href="#">Item 1</a>
                </li>
                <li class="list-item">
                  <a href="#">Item 2</a>
                </li>
                <li class="list-item">
                  <a href="#">Item 3</a>
                </li>
              </ul>
            </li>
            <li class="list-item">
              <a href="#">Item 4</a>
            </li>
            <li class="list-item">
              <a href="#">Item 5</a>
            </li>
          </ul>
        </div>
    </nav>
  </header>

  <!-- Footer global -->
  <div id="uc-global-footer"></div>
</body>
              
            
!

CSS

              
                /*

Esto se borrará cuando se 
distribuya el CDN en S3

*/

#tie {
  position: fixed;
  background: white;
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.3);
  left: 0;
  right: 0;
  z-index: 100 !important;
}
.tie-border-info {
  border-top: 3px solid #0176de;
}
.tie-border-warning {
  border-top: 3px solid #fec60d;
}
.tie-border-error {
  border-top: 3px solid #f24f4f;
}
              
            
!

JS

              
                
              
            
!
999px

Console