templates/templates/docs/atoms.html.twig line 1

Open in your IDE?
  1. {% extends "layouts/master.html.twig" %}
  2. {% block stylesheets %}
  3.     {{ parent() }}
  4.     {{ encore_entry_link_tags('css/styleguide') }}
  5. {% endblock %}
  6. {% block bodyClass %}tpl-generic-page{% endblock %}
  7. {% block pageHeader %}
  8.     {% include 'molecules/page-header.html.twig' with {
  9.         breadcrumb: [
  10.             { path: path('index'), title: 'Libro de estilo web da USC' }
  11.         ],
  12.         title: 'Átomos'
  13.     } %}
  14. {% endblock %}
  15. {% block pageContent %}
  16.     <article class="generic-page-wrapper">
  17.         <div class="generic-page-intro">
  18.             <ul>
  19.                 <li><a href="#breadcrumb">Migas de pan</a></li>
  20.                 <li><a href="#buttons">Botóns</a></li>
  21.                 <li><a href="#desc-lists">Lista de descrición</a></li>
  22.                 <li><a href="#embeds">Embed</a></li>
  23.                 <li><a href="#icons">Iconas</a></li>
  24.                 <li><a href="#link-smart-icon">Ligazón con icona intelixente</a></li>
  25.                 <li><a href="#images">Imaxes</a></li>
  26.                 <li><a href="#lead-text">Texto de introdución</a></li>
  27.                 <li><a href="#tags">Etiquetas</a></li>
  28.                 <li><a href="#titles">Títulares</a></li>
  29.                 <li><a href="#text-filter">Filtro de texto</a></li>
  30.                 <li><a href="#dropdown-filter">Filtro despregable</a></li>
  31.                 <li><a href="#selectize-filter">Filtro <em>selectize</em></a></li>
  32.                 <li><a href="#print-button">Botón de imprimir</a></li>
  33.             </ul>
  34.         </div>
  35.         <div class="generic-page-content">
  36.             <div class="org-content-block" id="breadcrumb">
  37.                 <div class="content-block-content-wrapper">
  38.                     <h2>Migas de pan</h2>
  39.                     <p>Serven para indicar a localización da páxina actual na xerarquía de navegación.</p>
  40.                     {%
  41. set code = '<nav>
  42.     <ol class="at-breadcrumb">
  43.         <li class="breadcrumb-item">
  44.             <a href="">Nivel 1</a>
  45.         </li>
  46.         <li class="breadcrumb-item">
  47.             <a href="">Nivel 2</a>
  48.         </li>
  49.     </ol>
  50. </nav>'
  51.                     %}
  52.                     <div class="org-example">
  53.                         <div class="example-display">
  54.                             {{ code|raw }}
  55.                         </div>
  56.                         <pre class="example-code"><code>{{ code }}</code></pre>
  57.                     </div>
  58.                 </div>
  59.             </div>
  60.             <div class="org-content-block" id="buttons">
  61.                 <div class="content-block-content-wrapper">
  62.                     <h2>Botóns</h2>
  63.                     <p>Inclúense diferentes estilos de botóns. Poden usarse tanto con <code>&lt;button&gt;</code> coma con <code>&lt;a&gt;</code>.</p>
  64.                     {%
  65.                         set code = '
  66. <button type="button" class="at-button is-primary">Botón</button>
  67. <a href="" class="at-button is-secondary">Botón secundario</a>
  68. <a href="" class="at-button is-tertiary at-icon-image">Botón con icona</a>
  69. '
  70.                     %}
  71.                     <div class="org-example">
  72.                         <div class="example-display">
  73.                             {{ code|raw }}
  74.                         </div>
  75.                         <pre class="example-code"><code>{{ code }}</code></pre>
  76.                     </div>
  77.                 </div>
  78.             </div>
  79.             <div class="org-content-block" id="desc-lists">
  80.                 <div class="content-block-content-wrapper">
  81.                     <h2>Listas de descrición</h2>
  82.                     {%
  83.                         set code = '<dl class="at-desc-list">
  84.     <dt>Tipo</dt>
  85.     <dd>Presencial</dd>
  86.     <dt>Área</dt>
  87.     <dd>Ciencias Sociais e Xurídicas</dd>
  88. </dl>'
  89.                     %}
  90.                     <div class="org-example">
  91.                         <div class="example-display">
  92.                             {{ code|raw }}
  93.                         </div>
  94.                         <pre class="example-code"><code>{{ code }}</code></pre>
  95.                     </div>
  96.                 </div>
  97.             </div>
  98.             <div class="org-content-block" id="embeds">
  99.                 <div class="content-block-content-wrapper">
  100.                     <h2>Embeds</h2>
  101.                     <p>Para a visualización de contidos embebidos con comportamento responsive. É necesario empregar un modificador en función do ratio de aspecto do elementos entres os dispoñibles: <code>is-21by9</code>, <code>is-16by9</code>, <code>is-4by3</code> ou <code>is-1by1</code>. A lenda é opcional.</p>
  102.                     {%
  103.                         set code = '<figure class="at-embed is-16by9">
  104.     <div class="embed-wrapper">
  105.         <iframe src="https://www.youtube.com/embed/xpljv2ZCv3c" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="allowfullscreen" width="560" height="315" frameborder="0"></iframe>
  106.     </div>
  107.     <figcaption class="embed-caption">Este é un vídeo embebido cunha proporción 16:9</figcaption>
  108. </figure>'
  109.                     %}
  110.                     <div class="org-example">
  111.                         <div class="example-display">
  112.                             {{ code|raw }}
  113.                         </div>
  114.                         <pre class="example-code"><code>{{ code }}</code></pre>
  115.                     </div>
  116.                 </div>
  117.             </div>
  118.             <div class="org-content-block" id="icons">
  119.                 <div class="content-block-content-wrapper">
  120.                     <h2>Iconas</h2>
  121.                     <p>Inclúese unha fonte de iconas propia.</p>
  122.                     <div class="row">
  123.                         <div class="col-md-3">
  124.                             <div class="at-icon-facebook"></div>
  125.                             <code>at-icon-facebook</code>
  126.                         </div>
  127.                         <div class="col-md-3">
  128.                             <div class="at-icon-twitter"></div>
  129.                             <code>at-icon-twitter</code>
  130.                         </div>
  131.                         <div class="col-md-3">
  132.                             <div class="at-icon-whatsapp"></div>
  133.                             <code>at-icon-whatsapp</code>
  134.                         </div>
  135.                         <div class="col-md-3">
  136.                             <div class="at-icon-instagram"></div>
  137.                             <code>at-icon-instagram</code>
  138.                         </div>
  139.                         <div class="col-md-3">
  140.                             <div class="at-icon-intranet"></div>
  141.                             <code>at-icon-intranet</code>
  142.                         </div>
  143.                         <div class="col-md-3">
  144.                             <div class="at-icon-researchgate"></div>
  145.                             <code>at-icon-researchgate</code>
  146.                         </div>
  147.                         <div class="col-md-3">
  148.                             <div class="at-icon-orcid"></div>
  149.                             <code>at-icon-orcid</code>
  150.                         </div>
  151.                         <div class="col-md-3">
  152.                             <div class="at-icon-linkedin"></div>
  153.                             <code>at-icon-linkedin</code>
  154.                         </div>
  155.                         <div class="col-md-3">
  156.                             <div class="at-icon-google"></div>
  157.                             <code>at-icon-google</code>
  158.                         </div>
  159.                         <div class="col-md-3">
  160.                             <div class="at-icon-microsoft"></div>
  161.                             <code>at-icon-microsoft</code>
  162.                         </div>
  163.                         <div class="col-md-3">
  164.                             <div class="at-icon-pinterest"></div>
  165.                             <code>at-icon-pinterest</code>
  166.                         </div>
  167.                         <div class="col-md-3">
  168.                             <div class="at-icon-tv"></div>
  169.                             <code>at-icon-tv</code>
  170.                         </div>
  171.                         <div class="col-md-3">
  172.                             <div class="at-icon-image"></div>
  173.                             <code>at-icon-image</code>
  174.                         </div>
  175.                         <div class="col-md-3">
  176.                             <div class="at-icon-file-doc"></div>
  177.                             <code>at-icon-file-doc</code>
  178.                         </div>
  179.                         <div class="col-md-3">
  180.                             <div class="at-icon-file-excel"></div>
  181.                             <code>at-icon-file-excel</code>
  182.                         </div>
  183.                         <div class="col-md-3">
  184.                             <div class="at-icon-file-odt"></div>
  185.                             <code>at-icon-file-odt</code>
  186.                         </div>
  187.                         <div class="col-md-3">
  188.                             <div class="at-icon-file-pdf"></div>
  189.                             <code>at-icon-file-pdf</code>
  190.                         </div>
  191.                         <div class="col-md-3">
  192.                             <div class="at-icon-file-ppt"></div>
  193.                             <code>at-icon-file-ppt</code>
  194.                         </div>
  195.                         <div class="col-md-3">
  196.                             <div class="at-icon-file-word"></div>
  197.                             <code>at-icon-file-word</code>
  198.                         </div>
  199.                         <div class="col-md-3">
  200.                             <div class="at-icon-file-zip"></div>
  201.                             <code>at-icon-file-zip</code>
  202.                         </div>
  203.                         <div class="col-md-3">
  204.                             <div class="at-icon-access"></div>
  205.                             <code>at-icon-access</code>
  206.                         </div>
  207.                         <div class="col-md-3">
  208.                             <div class="at-icon-arrow"></div>
  209.                             <code>at-icon-arrow</code>
  210.                         </div>
  211.                         <div class="col-md-3">
  212.                             <div class="at-icon-briefcase"></div>
  213.                             <code>at-icon-briefcase</code>
  214.                         </div>
  215.                         <div class="col-md-3">
  216.                             <div class="at-icon-calendar"></div>
  217.                             <code>at-icon-calendar</code>
  218.                         </div>
  219.                         <div class="col-md-3">
  220.                             <div class="at-icon-check"></div>
  221.                             <code>at-icon-check</code>
  222.                         </div>
  223.                         <div class="col-md-3">
  224.                             <div class="at-icon-close"></div>
  225.                             <code>at-icon-close</code>
  226.                         </div>
  227.                         <div class="col-md-3">
  228.                             <div class="at-icon-envelope-open"></div>
  229.                             <code>at-icon-envelope-open</code>
  230.                         </div>
  231.                         <div class="col-md-3">
  232.                             <div class="at-icon-external-link"></div>
  233.                             <code>at-icon-external-link</code>
  234.                         </div>
  235.                         <div class="col-md-3">
  236.                             <div class="at-icon-flag"></div>
  237.                             <code>at-icon-flag</code>
  238.                         </div>
  239.                         <div class="col-md-3">
  240.                             <div class="at-icon-location"></div>
  241.                             <code>at-icon-location</code>
  242.                         </div>
  243.                         <div class="col-md-3">
  244.                             <div class="at-icon-location-alt"></div>
  245.                             <code>at-icon-location-alt</code>
  246.                         </div>
  247.                         <div class="col-md-3">
  248.                             <div class="at-icon-menu"></div>
  249.                             <code>at-icon-menu</code>
  250.                         </div>
  251.                         <div class="col-md-3">
  252.                             <div class="at-icon-menu-secondary"></div>
  253.                             <code>at-icon-menu-secondary</code>
  254.                         </div>
  255.                         <div class="col-md-3">
  256.                             <div class="at-icon-option"></div>
  257.                             <code>at-icon-option</code>
  258.                         </div>
  259.                         <div class="col-md-3">
  260.                             <div class="at-icon-paperclip"></div>
  261.                             <code>at-icon-paperclip</code>
  262.                         </div>
  263.                         <div class="col-md-3">
  264.                             <div class="at-icon-play"></div>
  265.                             <code>at-icon-play</code>
  266.                         </div>
  267.                         <div class="col-md-3">
  268.                             <div class="at-icon-search"></div>
  269.                             <code>at-icon-search</code>
  270.                         </div>
  271.                         <div class="col-md-3">
  272.                             <div class="at-icon-selected"></div>
  273.                             <code>at-icon-selected</code>
  274.                         </div>
  275.                         <div class="col-md-3">
  276.                             <div class="at-icon-selector-down"></div>
  277.                             <code>at-icon-selector-down</code>
  278.                         </div>
  279.                         <div class="col-md-3">
  280.                             <div class="at-icon-selector-up"></div>
  281.                             <code>at-icon-selector-up</code>
  282.                         </div>
  283.                         <div class="col-md-3">
  284.                             <div class="at-icon-square"></div>
  285.                             <code>at-icon-square</code>
  286.                         </div>
  287.                         <div class="col-md-3">
  288.                             <div class="at-icon-last"></div>
  289.                             <code>at-icon-last</code>
  290.                         </div>
  291.                         <div class="col-md-3">
  292.                             <div class="at-icon-first"></div>
  293.                             <code>at-icon-first</code>
  294.                         </div>
  295.                         <div class="col-md-3">
  296.                             <div class="at-icon-plus"></div>
  297.                             <code>at-icon-plus</code>
  298.                         </div>
  299.                         <div class="col-md-3">
  300.                             <div class="at-icon-minus"></div>
  301.                             <code>at-icon-minus</code>
  302.                         </div>
  303.                         <div class="col-md-3">
  304.                             <div class="at-icon-equal"></div>
  305.                             <code>at-icon-equal</code>
  306.                         </div>
  307.                         <div class="col-md-3">
  308.                             <div class="at-icon-etc"></div>
  309.                             <code>at-icon-etc</code>
  310.                         </div>
  311.                         <div class="col-md-3">
  312.                             <div class="at-icon-more"></div>
  313.                             <code>at-icon-more</code>
  314.                         </div>
  315.                         <div class="col-md-3">
  316.                             <div class="at-icon-target"></div>
  317.                             <code>at-icon-target</code>
  318.                         </div>
  319.                         <div class="col-md-3">
  320.                             <div class="at-icon-grid"></div>
  321.                             <code>at-icon-grid</code>
  322.                         </div>
  323.                         <div class="col-md-3">
  324.                             <div class="at-icon-logout"></div>
  325.                             <code>at-icon-logout</code>
  326.                         </div>
  327.                         <div class="col-md-3">
  328.                             <div class="at-icon-alert"></div>
  329.                             <code>at-icon-alert</code>
  330.                         </div>
  331.                         <div class="col-md-3">
  332.                             <div class="at-icon-info"></div>
  333.                             <code>at-icon-info</code>
  334.                         </div>
  335.                         <div class="col-md-3">
  336.                             <div class="at-icon-clock"></div>
  337.                             <code>at-icon-clock</code>
  338.                         </div>
  339.                         <div class="col-md-3">
  340.                             <div class="at-icon-temperature"></div>
  341.                             <code>at-icon-temperature</code>
  342.                         </div>
  343.                     </div>
  344.                 </div>
  345.             </div>
  346.             <div class="org-content-block" id="link-smart-icon">
  347.                 <aside class="content-block-attachments-wrapper">
  348.                     <div class="ml-alert is-attached">
  349.                         <h3 class="at-title">Nota sobre aplicación en Drupal</h3>
  350.                         <div class="at-text">
  351.                             <p>Nos estilos para Drupal contémplase a posibilidade de que a clase deste átomo non vaia na propia ligazón, senón no pai, como se pode ver na segunda lista de ligazóns. Neste caso este átomo debe levar o modificador <code>has-anchor-as-child</code>.</p>
  352.                         </div>
  353.                     </div>
  354.                 </aside>
  355.                 <div class="content-block-content-wrapper">
  356.                     <h2>Ligazón con icona intelixente</h2>
  357.                     {%
  358.                         set code = '<ul>
  359.     <li><a href="https://www.researchgate.net/profile/perfil_exemplo" class="at-link-smart-icon">Ligazón a ResearchGate</a></li>
  360.     <li><a href="https://orcid.org/exemplo" class="at-link-smart-icon">Ligazón a ORCID</a></li>
  361.     <li><a href="https://facebook.com/exemplo" class="at-link-smart-icon">Ligazón a Facebook</a></li>
  362.     <li><a href="https://twitter.com/exemplo" class="at-link-smart-icon">Ligazón a Twitter</a></li>
  363.     <li><a href="https://instagram.com/exemplo" class="at-link-smart-icon">Ligazón a Instagram</a></li>
  364.     <li><a href="https://linkedin.com/exemplo" class="at-link-smart-icon">Ligazón a LinkedIn</a></li>
  365.     <li><a href="https://pinterest.com/exemplo" class="at-link-smart-icon">Ligazón a Pinterest</a></li>
  366.     <li><a href="https://sharepoint.usc.gal/exemplo" class="at-link-smart-icon">Ligazón a intranet</a></li>
  367.     <li><a href="https://usc.gal/exemplo.pdf" class="at-link-smart-icon">Ligazón a un arquivo PDF</a></li>
  368.     <li><a href="https://usc.gal/exemplo.docx" class="at-link-smart-icon">Ligazón a un arquivo Word</a></li>
  369.     <li><a href="https://usc.gal/exemplo.odt" class="at-link-smart-icon">Ligazón a un arquivo ODT</a></li>
  370.     <li><a href="https://usc.gal/exemplo.xlsx" class="at-link-smart-icon">Ligazón a un arquivo Excel</a></li>
  371.     <li><a href="https://usc.gal/exemplo.ppt" class="at-link-smart-icon">Ligazón a un arquivo de presentación</a></li>
  372.     <li><a href="https://usc.gal/exemplo.zip" class="at-link-smart-icon">Ligazón a un arquivo ZIP</a></li>
  373.     <li><a href="https://usc.gal/" class="at-link-smart-icon">Calquera outra ligazón</a></li>
  374. </ul>
  375. <ul class="ml-buttons-list is-vertical">
  376.     <li class="at-button is-tertiary at-link-smart-icon has-anchor-as-child"><a href="https://www.researchgate.net/profile/perfil_exemplo" class="">Ligazón a ResearchGate</a></li>
  377.     <li class="at-button is-tertiary at-link-smart-icon has-anchor-as-child"><a href="https://www.linkedin.com/exemplo" class="">Ligazón a LinkedIn</a></li>
  378.     <li class="at-button is-tertiary at-link-smart-icon has-anchor-as-child"><a href="https://usc.gal/exemplo.pdf">Ligazón a un arquivo PDF</a></li>
  379.     <li class="at-button is-tertiary at-link-smart-icon has-anchor-as-child"><a href="https://usc.gal/">Calquera outra ligazón</a></li>
  380.     <li class="at-button is-tertiary at-link-smart-icon has-anchor-as-child"><a href="https://sharepoint.usc.gal/">Ligazón a intranet</a></li>
  381. </ul>
  382. '
  383.                     %}
  384.                     <div class="org-example">
  385.                         <div class="example-display">
  386.                             {{ code|raw }}
  387.                         </div>
  388.                         <pre class="example-code"><code>{{ code }}</code></pre>
  389.                     </div>
  390.                 </div>
  391.             </div>
  392.             <div class="org-content-block" id="images">
  393.                 <div class="content-block-content-wrapper">
  394.                     <h2>Imaxes</h2>
  395.                     {%
  396.                         set code = '<figure class="at-image">
  397.     <img src="https://picsum.photos/768/433" alt="">
  398.     <figcaption class="image-caption">Texto descritivo</figcaption>
  399. </figure>'
  400.                     %}
  401.                     <div class="org-example">
  402.                         <div class="example-display">
  403.                             {{ code|raw }}
  404.                         </div>
  405.                         <pre class="example-code"><code>{{ code }}</code></pre>
  406.                     </div>
  407.                 </div>
  408.             </div>
  409.             <div class="org-content-block" id="lead-text">
  410.                 <div class="content-block-content-wrapper">
  411.                     <h2>Texto de introdución</h2>
  412.                     {%
  413.                         set code = '<div class="at-lead-text">
  414.     <p>Vestibulum ac convallis lectus. <a href="">Proin in nibh imperdiet</a>, iaculis dui in, aliquet augue. Fusce tincidunt mattis massa et sollicitudin. Proin at lacinia metus.</p>
  415. </div>'
  416.                     %}
  417.                     <div class="org-example">
  418.                         <div class="example-display">
  419.                             {{ code|raw }}
  420.                         </div>
  421.                         <pre class="example-code"><code>{{ code }}</code></pre>
  422.                     </div>
  423.                 </div>
  424.             </div>
  425.             <div class="org-content-block" id="tags">
  426.                 <div class="content-block-content-wrapper">
  427.                     <h2>Etiquetas</h2>
  428.                     {%
  429.                         set code = '
  430. <a href="" class="at-tag is-primary">Etiqueta</a>
  431. <a href="" class="at-tag is-secondary">Etiqueta</a>
  432. <span class="at-tag is-secondary is-dismissable">
  433.     Etiqueta
  434.     <a href="" class="tag-dismiss"><span class="is-sr-only">Eliminar</span></a>
  435. </span>'
  436.                     %}
  437.                     <div class="org-example">
  438.                         <div class="example-display">
  439.                             {{ code|raw }}
  440.                         </div>
  441.                         <pre class="example-code"><code>{{ code }}</code></pre>
  442.                     </div>
  443.                 </div>
  444.             </div>
  445.             <div class="org-content-block" id="titles">
  446.                 <div class="content-block-content-wrapper">
  447.                     <h2>Titulares</h2>
  448.                     {%
  449.                         set code = '<h1 class="at-title is-1">Título 1</h1>
  450. <h2 class="at-title is-2">Título 2</h2>
  451. <h2 class="at-title is-2 is-sans">Título 2</h2>
  452. <h3 class="at-title is-3">Título 3</h3>
  453. <h3 class="at-title is-3 is-light">Título 3</h3>
  454. <h4 class="at-title is-4">Título 4</h4>
  455. <h6 class="at-title is-6">Título 6</h6>
  456. '
  457.                     %}
  458.                     <div class="org-example">
  459.                         <div class="example-display">
  460.                             {{ code|raw }}
  461.                         </div>
  462.                         <pre class="example-code"><code>{{ code }}</code></pre>
  463.                     </div>
  464.                 </div>
  465.             </div>
  466.             <div class="org-content-block" id="text-filter">
  467.                 <div class="content-block-content-wrapper">
  468.                     <h2>Filtro de texto</h2>
  469.                     {%
  470.                         set code = '<usc-text-filter
  471.     label="Filtro de texto"
  472.     name="filter_1"
  473.     icon="at-icon-search"
  474.     target-container="#container-1"
  475.     target-items=".ml-banner"
  476. ></usc-text-filter>'
  477.                     %}
  478.                     <div class="org-example">
  479.                         <div class="example-display">
  480.                             {{ code|raw }}
  481.                         </div>
  482.                         <pre class="example-code"><code>{{ code }}</code></pre>
  483.                     </div>
  484.                 </div>
  485.             </div>
  486.             <div class="org-content-block" id="dropdown-filter">
  487.                 <div class="content-block-content-wrapper">
  488.                     <h2>Filtro despregable</h2>
  489.                     {%
  490.                         set code = '<usc-dropdown-filter
  491.     label="Filtro"
  492.     target-container="#filtered-container-selector"
  493.     target-items=".target-items-selector"
  494.     :initial-value="{key: \'is-type-1\', value: \'Tipo 1\'}"
  495. >
  496.     <template v-slot:default="slotProps">
  497.         <li>
  498.             <button type="button" @click="slotProps.reset">Todos</button>
  499.         </li>
  500.         <li>
  501.             <button type="button" @click="slotProps.filter" data-value="is-type-1">Tipo 1</button>
  502.         </li>
  503.         <li>
  504.             <button type="button" @click="slotProps.filter" data-value="is-type-2">Tipo 2</button>
  505.         </li>
  506.     </template>
  507. </usc-dropdown-filter>
  508. <usc-dropdown-filter
  509.     label="Filtro"
  510. >
  511.     <template v-slot:default>
  512.         <li>
  513.             <a href="">Filtro con ligazón a páxina 1</a>
  514.         </li>
  515.         <li>
  516.             <a href="">Filtro con ligazón a páxina 2</a>
  517.         </li>
  518.     </template>
  519. </usc-dropdown-filter>'
  520.                     %}
  521.                     <div class="org-example">
  522.                         <div class="example-display">
  523.                             {{ code|raw }}
  524.                         </div>
  525.                         <pre class="example-code"><code>{{ code }}</code></pre>
  526.                     </div>
  527.                 </div>
  528.             </div>
  529.             <div class="org-content-block" id="selectize-filter">
  530.                 <div class="content-block-content-wrapper">
  531.                     <h2>Filtro <em>selectize</em></h2>
  532.                     <p>Para filtros tipo despregable con moitos resultados. Permite buscar sobre as opcións diposñibles.</p>
  533.                     {%
  534.                         set code = '<usc-selectize-filter
  535.     label="Filtro"
  536.     target-container="#filtered-container-selector"
  537.     target-items=".target-items-selector"
  538.     :options="[{key: \'is-type-1\', value: \'Tipo 1\'}, {key: \'is-type-2\', value: \'Tipo 2\'}]"
  539. >
  540. </usc-selectize-filter>'
  541.                     %}
  542.                     <div class="org-example">
  543.                         <div class="example-display">
  544.                             {{ code|raw }}
  545.                         </div>
  546.                         <pre class="example-code"><code>{{ code }}</code></pre>
  547.                     </div>
  548.                 </div>
  549.             </div>
  550.             <div class="org-content-block" id="print-button">
  551.                 <div class="content-block-content-wrapper">
  552.                     <h2>Botón de imprimir</h2>
  553.                     <p>Este compoñente permite imprimir unha parte determinada da páxina. Hai que especificarlle o id do elemento que queremos que se imprima na propiedade target. Podemos especificarlle un modificador de tipo de <a href="#buttons">botón</a>.</p>
  554.                     {%
  555.                         set code = '<usc-print-button target="print-button" class="is-primary">
  556.     Imprimir
  557. </usc-print-button>'
  558.                     %}
  559.                     <div class="org-example">
  560.                         <div class="example-display">
  561.                             {{ code|raw }}
  562.                         </div>
  563.                         <pre class="example-code"><code>{{ code }}</code></pre>
  564.                     </div>
  565.                 </div>
  566.             </div>
  567.         </div>
  568.     </article>
  569. {% endblock %}