Mercurial > hg > isophonics-drupal-site
annotate core/modules/system/templates/off-canvas-page-wrapper.html.twig @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 1fec387a4317 |
children |
rev | line source |
---|---|
Chris@14 | 1 {# |
Chris@14 | 2 /** |
Chris@14 | 3 * @file |
Chris@14 | 4 * Default theme implementation for a page wrapper. |
Chris@14 | 5 * |
Chris@14 | 6 * For consistent wrapping to {{ page }} render in all themes. The |
Chris@14 | 7 * "data-off-canvas-main-canvas" attribute is required by the off-canvas dialog. |
Chris@14 | 8 * This is used by the core/drupal.dialog.off_canvas library to select the |
Chris@14 | 9 * "main canvas" page element as opposed to the "off canvas" which is the dialog |
Chris@14 | 10 * itself. The "main canvas" element must be resized according to the width of |
Chris@14 | 11 * the "off canvas" dialog so that no portion of the "main canvas" is obstructed |
Chris@14 | 12 * by the off-canvas dialog. The off-canvas dialog can vary in width when opened |
Chris@14 | 13 * and can be resized by the user. The "data-off-canvas-main-canvas" attribute |
Chris@14 | 14 * cannot be removed without breaking the off-canvas dialog functionality. |
Chris@14 | 15 * |
Chris@14 | 16 * Available variables: |
Chris@14 | 17 * - children: Contains the child elements of the page. |
Chris@14 | 18 * |
Chris@14 | 19 * @ingroup themeable |
Chris@14 | 20 */ |
Chris@14 | 21 #} |
Chris@14 | 22 {% if children %} |
Chris@14 | 23 <div class="dialog-off-canvas-main-canvas" data-off-canvas-main-canvas> |
Chris@14 | 24 {{ children }} |
Chris@14 | 25 </div> |
Chris@14 | 26 {% endif %} |