Domingo, 05 Mayo 2024

Misa por el 50 aniversario del IESC, Chiclayo
Misa de aniversario en la iglesia de la Compañía, Arequipa
Misa por el 50 aniversario del IESC en la Parroquia de Santa Rita, Miraflores
Asistentes al brindis con motivo del 50 aniversario del IESC
El presidente del IESC saluda al Papa Francisco en el marco de la conferencia internacional ‘Salvar nuestra casa común y el futuro de la vida sobre la tierra’.
P. Juan Roger Rodríguez en la firma de su libro: 'El Estado peruano, ni confesional ni laico'
(Izq. a der.) Armando Borda, Hans Schelkshorn, Andreas Rendl en el Foro Social Cristiano 'Desafíos para Europa: El Populismo'
Presentación del libro: Evangélicos y poder en América Latina. Autor: José Luis Pérez Guadalupe
(Izq. a der.) Armando Borda, Sebastian Grundberger, Peter Weiss en el Foro Social Cristiano: El Desafío Populista en Europa
Firma del convenio de cooperación de la Universidad Católica de Lublin y el IESC. 10 de mayo.
Seminario Internacional: Políticos cristianos frente a los desafíos globales.
FSC: La Iglesia ante la crisis social en Venezuela

All nav components here—tabs, pills, and lists—share the same base markup and styles through the .nav class.

Basic tabs

Take a regular <ul> of links and add .nav-tabs:

  1. <ul class="nav nav-tabs">
  2.  <li class="active">
  3.  <a href="#">Home</a>
  4.  </li>
  5.  <li><a href="#">...</a></li>
  6.  <li><a href="#">...</a></li>
  7. </ul>

Basic pills

Take that same HTML, but use .nav-pills instead:

  1. <ul class="nav nav-pills">
  2.  <li class="active">
  3.  <a href="#">Home</a>
  4.  </li>
  5.  <li><a href="#">...</a></li>
  6.  <li><a href="#">...</a></li>
  7. </ul>

Disabled state

For any nav component (tabs, pills, or list), add .disabled for gray links and no hover effects. Links will remain clickable, however, unless custom javascript is implemented to prevent those clicks.

  1. <ul class="nav nav-pills">
  2. ...
  3.  <li class="disabled"><a href="#">Home</a></li>
  4. ...
  5. </ul>

Component alignment

To align nav links, use the .pull-left or .pull-right utility classes. Both classes will add a CSS float in the specified direction.


Stackable

As tabs and pills are horizontal by default, just add a second class, .nav-stacked, to make them appear vertically stacked.

Stacked tabs

  1. <ul class="nav nav-tabs nav-stacked">
  2. ...
  3. </ul>

Stacked pills

  1. <ul class="nav nav-pills nav-stacked">
  2. ...
  3. </ul>

Dropdowns

Add dropdown menus with a little extra HTML and the dropdowns javascript plugin.

Tabs with dropdowns

  1. <ul class="nav nav-tabs">
  2.  <li class="dropdown">
  3.  <a class="dropdown-toggle"
  4.  data-toggle="dropdown"
  5.  href="#">
  6. Dropdown
  7.  <b class="caret"></b>
  8.  </a>
  9.  <ul class="dropdown-menu">
  10.  <!-- links -->
  11.  </ul>
  12.  </li>
  13. </ul>

Pills with dropdowns

  1. <ul class="nav nav-pills">
  2.  <li class="dropdown">
  3.  <a class="dropdown-toggle"
  4.  data-toggle="dropdown"
  5.  href="#">
  6. Dropdown
  7.  <b class="caret"></b>
  8.  </a>
  9.  <ul class="dropdown-menu">
  10.  <!-- links -->
  11.  </ul>
  12.  </li>
  13. </ul>

Nav lists

A simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.

Example nav list

Take a list of links and add class="nav nav-list":

  1. <ul class="nav nav-list">
  2.  <li class="nav-header">List header</li>
  3.  <li class="active"><a href="#">Home</a></li>
  4.  <li><a href="#">Library</a></li>
  5. ...
  6. </ul>

Note For nesting within a nav list, include class="nav nav-list" on any nested <ul>.

Horizontal dividers

Add a horizontal divider by creating an empty list item with the class .divider, like so:

  1. <ul class="nav nav-list">
  2. ...
  3.  <li class="divider"></li>
  4. ...
  5. </ul>

Tabbable nav

Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.

Tabbable example

To make tabs tabbable, create a .tab-pane with unique ID for every tab and wrap them in .tab-content.

I'm in Section 1.

Howdy, I'm in Section 2.

What up girl, this is Section 3.

  1. <div class="tabbable"> <!-- Only required for left/right tabs -->
  2.  <ul class="nav nav-tabs">
  3.  <li class="active"><a href="#tab1" data-toggle="tab">Section 1</a></li>
  4.  <li><a href="#tab2" data-toggle="tab">Section 2</a></li>
  5.  </ul>
  6.  <div class="tab-content">
  7.  <div class="tab-pane active" id="tab1">
  8.  <p>I'm in Section 1.</p>
  9.  </div>
  10.  <div class="tab-pane" id="tab2">
  11.  <p>Howdy, I'm in Section 2.</p>
  12.  </div>
  13.  </div>
  14. </div>

Fade in tabs

To make tabs fade in, add .fade to each .tab-pane.

Requires jQuery plugin

All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.

Tabbable in any direction

Tabs on the bottom

Flip the order of the HTML and add a class to put tabs on the bottom.

I'm in Section A.

Howdy, I'm in Section B.

What up girl, this is Section C.

  1. <div class="tabbable tabs-below">
  2.  <div class="tab-content">
  3. ...
  4.  </div>
  5.  <ul class="nav nav-tabs">
  6. ...
  7.  </ul>
  8. </div>

Tabs on the left

Swap the class to put tabs on the left.

I'm in Section A.

Howdy, I'm in Section B.

What up girl, this is Section C.

  1. <div class="tabbable tabs-left">
  2.  <ul class="nav nav-tabs">
  3. ...
  4.  </ul>
  5.  <div class="tab-content">
  6. ...
  7.  </div>
  8. </div>

Tabs on the right

Swap the class to put tabs on the right.

I'm in Section A.

Howdy, I'm in Section B.

What up girl, this is Section C.

  1. <div class="tabbable tabs-right">
  2.  <ul class="nav nav-tabs">
  3. ...
  4.  </ul>
  5.  <div class="tab-content">
  6. ...
  7.  </div>
  8. </div>

To start, navbars are static (not fixed to the top) and include support for a project name and basic navigation. Place one anywhere within a .container, which sets the width of your site and content.

  1. <div class="navbar">
  2.  <div class="navbar-inner">
  3.  <a class="brand" href="#">Title</a>
  4.  <ul class="nav">
  5.  <li class="active"><a href="#">Home</a></li>
  6.  <li><a href="#">Link</a></li>
  7.  <li><a href="#">Link</a></li>
  8.  </ul>
  9.  </div>
  10. </div>

Navbar components

Brand

A simple link to show your brand or project name only requires an anchor tag.

  1. <a class="brand" href="#">Project name</a>

Nav links

Nav items are simple to add via unordered lists.

  1. <ul class="nav">
  2.  <li class="active">
  3.  <a href="#">Home</a>
  4.  </li>
  5.  <li><a href="#">Link</a></li>
  6.  <li><a href="#">Link</a></li>
  7. </ul>

You can easily add dividers to your nav links with an empty list item and a simple class. Just add this between links:

  1. <ul class="nav">
  2. ...
  3.  <li class="divider-vertical"></li>
  4. ...
  5. </ul>

Forms

To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include .navbar-form and either .pull-left or .pull-right to properly align it.

  1. <form class="navbar-form pull-left">
  2.  <input type="text" class="span2">
  3.  <button type="submit" class="btn">Submit</button>
  4. </form>

Search form

For a more customized search form, add .navbar-search to the form and .search-query to the input for specialized styles in the navbar.

  1. <form class="navbar-search pull-left">
  2.  <input type="text" class="search-query" placeholder="Search">
  3. </form>

Component alignment

Align nav links, search form, or text, use the .pull-left or .pull-right utility classes. Both classes will add a CSS float in the specified direction.

Using dropdowns

Add dropdowns and dropups to the nav with a bit of markup and the dropdowns javascript plugin.

  1. <ul class="nav">
  2.  <li class="dropdown">
  3.  <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  4. Account
  5.  <b class="caret"></b>
  6.  </a>
  7.  <ul class="dropdown-menu">
  8. ...
  9.  </ul>
  10.  </li>
  11. </ul>

Visit the javascript dropdowns documentation for more markup and information on calling dropdowns.

Text

Wrap strings of text in an element with .navbar-text, usually on a <p> tag for proper leading and color.


Optional display variations

Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, .navbar.

Fixed to top

Add .navbar-fixed-top and remember to account for the hidden area underneath it by adding at least 40px padding to the <body>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.

  1. <div class="navbar navbar-fixed-top">
  2. ...
  3. </div>

Fixed to bottom

Add .navbar-fixed-bottom instead.

  1. <div class="navbar navbar-fixed-bottom">
  2. ...
  3. </div>

Static top navbar

Create a full-width navbar that scrolls away with the page by adding .navbar-static-top. Unlike the .navbar-fixed-top class, you do not need to change any padding on the body.

  1. <div class="navbar navbar-static-top">
  2. ...
  3. </div>

Responsive navbar

To implement a collapsing responsive navbar, wrap your navbar content in a containing div, .nav-collapse.collapse, and add the navbar toggle button, .btn-navbar.

  1. <div class="navbar">
  2.  <div class="navbar-inner">
  3.  <div class="container">
  4.  
  5.  <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
  6.  <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  7.  <span class="icon-bar"></span>
  8.  <span class="icon-bar"></span>
  9.  <span class="icon-bar"></span>
  10.  </a>
  11.  
  12.  <!-- Be sure to leave the brand out there if you want it shown -->
  13.  <a class="brand" href="#">Project name</a>
  14.  
  15.  <!-- Everything you want hidden at 940px or less, place within here -->
  16.  <div class="nav-collapse">
  17.  <!-- .nav, .navbar-search, .navbar-form, etc -->
  18.  </div>
  19.  
  20.  </div>
  21.  </div>
  22. </div>
Heads up! The responsive navbar requires the collapse plugin and responsive Bootstrap CSS file.

Inverted variation

Modify the look of the navbar by adding .navbar-inverse.

  1. <div class="navbar navbar-inverse">
  2. ...
  3. </div>

Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.

Static example

A rendered modal with header, body, and set of actions in the footer.

  1. <div class="modal hide fade">
  2.  <div class="modal-header">
  3.  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  4.  <h3>Modal header</h3>
  5.  </div>
  6.  <div class="modal-body">
  7.  <p>One fine body…</p>
  8.  </div>
  9.  <div class="modal-footer">
  10.  <a href="#" class="btn">Close</a>
  11.  <a href="#" class="btn btn-primary">Save changes</a>
  12.  </div>
  13. </div>

Live demo

Toggle a modal via JavaScript by clicking the button below. It will slide down and fade in from the top of the page.

  1. <-- Button to trigger modal -->
  2. <a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
  3.  
  4. <-- Modal -->
  5. <div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  6.  <div class="modal-header">
  7.  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  8.  <h3 id="myModalLabel">Modal header</h3>
  9.  </div>
  10.  <div class="modal-body">
  11.  <p>One fine body…</p>
  12.  </div>
  13.  <div class="modal-footer">
  14.  <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
  15.  <button class="btn btn-primary">Save changes</button>
  16.  </div>
  17. </div>

Usage

Via data attributes

Activate a modal without writing JavaScript. Set data-toggle="modal" on a controller element, like a button, along with a data-target="#foo" or href="#foo" to target a specific modal to toggle.

  1. <button type="button" data-toggle="modal" data-target="#myModal">Launch modal</button>

Via JavaScript

Call a modal with id myModal with a single line of JavaScript:

  1. $('#myModal').modal(options)

Options

Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-, as in data-backdrop="".

Nametypedefaultdescription
backdrop boolean true Includes a modal-backdrop element. Alternatively, specify static for a backdrop which doesn't close the modal on click.
keyboard boolean true Closes the modal when escape key is pressed
show boolean true Shows the modal when initialized.
remote path false

If a remote url is provided, content will be loaded via jQuery's load method and injected into the .modal-body. If you're using the data api, you may alternatively use the href tag to specify the remote source. An example of this is shown below:

  1. <a data-toggle="modal" href="remote.html" data-target="#modal">click me</a>

Methods

.modal(options)

Activates your content as a modal. Accepts an optional options object.

  1. $('#myModal').modal({
  2. keyboard: false
  3. })

.modal('toggle')

Manually toggles a modal.

  1. $('#myModal').modal('toggle')

.modal('show')

Manually opens a modal.

  1. $('#myModal').modal('show')

.modal('hide')

Manually hides a modal.

  1. $('#myModal').modal('hide')

Events

Bootstrap's modal class exposes a few events for hooking into modal functionality.

EventDescription
show This event fires immediately when the show instance method is called.
shown This event is fired when the modal has been made visible to the user (will wait for css transitions to complete).
hide This event is fired immediately when the hide instance method has been called.
hidden This event is fired when the modal has finished being hidden from the user (will wait for css transitions to complete).
  1. $('#myModal').on('hidden', function () {
  2.  // do something…
  3. })