Commit a4fc70a1 authored by alexpott's avatar alexpott

Issue #3111729 by bnjmnm, prabha1997, ravi.shankar, dww: Stable templates/CSS...

Issue #3111729 by bnjmnm, prabha1997, ravi.shankar, dww: Stable templates/CSS that differ only in comments or indentation should match core's version

(cherry picked from commit 74c0dd0aac4279b05ab5d363689529119089a18c)
parent 35bd80be
......@@ -41,8 +41,8 @@
height: auto;
margin: 0;
padding: 0;
/* Use lighter drag icon against dark background. */
background-color: transparent;
/* Use lighter drag icon against dark background. */
background-image: url(../icons/bebebe/move.svg);
background-repeat: no-repeat;
background-position: center;
......
......@@ -12,7 +12,7 @@
* https://www.drupal.org/node/893530 and
* http://api.drupal.org/api/drupal/includes!theme.inc/function/theme_table/7#comment-5109.
* - header: Table header cells. Each cell contains the following properties:
* - tag: The HTML tag name to use; either TH or TD.
* - tag: The HTML tag name to use; either 'th' or 'td'.
* - attributes: HTML attributes to apply to the tag.
* - content: A localized string for the title of the column.
* - field: Field name (required for column sorting).
......
......@@ -9,7 +9,7 @@
*
* Each item in these variables (primary and secondary) can be individually
* themed in menu-local-task.html.twig.
*
* @ingroup themeable
*/
#}
......
......@@ -79,7 +79,7 @@
right: 0;
left: 0;
}
/* .toolbar-loading is required by toolbar JavaScript to pre-render markup
/* .toolbar-loading is required by Toolbar JavaScript to pre-render markup
* style to avoid extra reflow & flicker. */
@media (min-width: 61em) {
.toolbar-loading.toolbar-horizontal .toolbar .toolbar-bar .toolbar-tab:last-child .toolbar-tray {
......
......@@ -13,7 +13,7 @@
* @ingroup themeable
*/
#}
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<opml version="2.0">
<head>
<title>{{ title }}</title>
......
......@@ -17,7 +17,7 @@
* @ingroup themeable
*/
#}
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="{{ link }}"{{ namespaces }}>
<channel>
<title>{{ title }}</title>
......
{#
/**
* @file
* Default theme implementation for a four-column 25%-25%-25%-25% layout.
* Theme override for a four-column 25%-25%-25%-25% layout.
*
* Available variables:
* - content: The content for this layout.
* - attributes: HTML attributes for the layout <div>.
*
* @ingroup themeable
*/
#}
{%
......
{#
/**
* @file
* Default theme implementation for a three-column layout.
* Theme override for a three-column layout.
*
* Available variables:
* - content: The content for this layout.
* - attributes: HTML attributes for the layout <div>.
*
* @ingroup themeable
*/
#}
{% if content %}
......
{#
/**
* @file
* Default theme implementation to display a two-column layout.
* Theme override to display a two-column layout.
*
* Available variables:
* - content: The content for this layout.
* - attributes: HTML attributes for the layout <div>.
*
* @ingroup themeable
*/
#}
{% if content %}
......
{#
/**
* @file
* Theme override for a language negotiation configuration form.
*
* Available variables:
* - language_types: A list of language negotiation types. Each language type
* contains the following:
* - type: The machine name for the negotiation type.
* - title: The language negotiation type name.
* - description: A description for how the language negotiation type operates.
* - configurable: A radio element to toggle the table.
* - table: A draggable table for the language detection methods of this type.
* - children: Remaining form items for the group.
* - attributes: A list of HTML attributes for the wrapper element.
* - children: Remaining form items for all groups.
*
* @see template_preprocess_language_negotiation_configure_form()
*/
* @file
* Theme override for a language negotiation configuration form.
*
* Available variables:
* - language_types: A list of language negotiation types. Each language type
* contains the following:
* - type: The machine name for the negotiation type.
* - title: The language negotiation type name.
* - description: A description for how the language negotiation type
* operates.
* - configurable: A radio element to toggle the table.
* - table: A draggable table for the language detection methods of this type.
* - children: Remaining form items for the group.
* - attributes: A list of HTML attributes for the wrapper element.
* - children: Remaining form items for all groups.
*
* @see template_preprocess_language_negotiation_configure_form()
*/
#}
{% for language_type in language_types %}
{%
......
......@@ -8,7 +8,6 @@
* - text: The text shown on counter.
* - severity: The severity of the counter.
*
* @ingroup themable
*/
#}
{{ amount }} {{ text }}
......
......@@ -5,8 +5,8 @@
*
* This template will be used when a system config form specifies 'config_form'
* as its #theme callback. Otherwise, by default, system config forms will be
* themed by form.html.twig. This does not alter the appearance of a form at all,
* but is provided as a convenience for themers.
* themed by form.html.twig. This does not alter the appearance of a form at
* all, but is provided as a convenience for themers.
*
* Available variables:
* - form: The confirm form.
......
{#
/**
* @file
* Default theme implementation to present a list of available bundles.
* Theme override to present a list of available bundles.
*
* Available variables:
* - bundles: A list of bundles, each with the following properties:
......@@ -12,8 +12,6 @@
* available if the entity type uses bundle entities.
*
* @see template_preprocess_entity_add_list()
*
* @ingroup themeable
*/
#}
{% if bundles is not empty %}
......
......@@ -27,7 +27,7 @@
* - title: Comment title, linked to the comment.
* - attributes: HTML attributes for the containing element.
* The attributes.class may contain one or more of the following classes:
* - comment: The current template type; e.g., 'theming hook'.
* - comment: The current template type; for instance, 'theming hook'.
* - by-anonymous: Comment by an unregistered user.
* - by-{entity-type}-author: Comment by the author of the parent entity,
* eg. by-node-author.
......
{#
/**
* @file
* Default theme implementation for a missing media error.
* Theme override for a missing media error.
*
* Available variables
* - message: The message text.
......@@ -11,8 +11,6 @@
* is displayed from JavaScript.
*
* @see Drupal.theme.mediaEmbedPreviewError
*
* @ingroup themeable
*/
#}
<div{{ attributes }}>
......
{#
/**
* @file
* Default theme implementation to display an oEmbed resource in an iframe.
*
* @ingroup themeable
* Theme override to display an oEmbed resource in an iframe.
*/
#}
<!DOCTYPE html>
......
......@@ -8,8 +8,6 @@
* - content: Media content.
*
* @see template_preprocess_media()
*
* @ingroup themeable
*/
#}
<article{{ attributes }}>
......
{#
/**
* @file
* Theme override for page wrapper.
* Theme override for a page wrapper.
*
* For consistent wrapping to {{ page }} render in all themes. The
* "data-off-canvas-main-canvas" attribute is required by the off-canvas dialog.
......
......@@ -8,6 +8,7 @@
* Available variables:
* - forums: The forums to display (as processed by forum-list.html.twig).
* - topics: The topics to display.
* - topics_original: Original topics data before modification.
* - topics_pager: The topics pager.
* - forums_defined: A flag to indicate that the forums are configured.
*
......
{#
/**
* @file
* Default theme implementation to display the file entity as an audio tag.
* Theme override to display the file entity as an audio tag.
*
* Available variables:
* - attributes: An array of HTML attributes, intended to be added to the
......@@ -11,8 +11,6 @@
* - file: The full file object.
* - source_attributes: An array of HTML attributes for to be added to the
* source tag.
*
* @ingroup themeable
*/
#}
<audio {{ attributes }}>
......
{#
/**
* @file
* Default theme implementation to display the file entity as a video tag.
* Theme override to display the file entity as a video tag.
*
* Available variables:
* - attributes: An array of HTML attributes, intended to be added to the
......@@ -11,8 +11,6 @@
* - file: The full file object.
* - source_attributes: An array of HTML attributes for to be added to the
* source tag.
*
* @ingroup themeable
*/
#}
<video {{ attributes }}>
......
......@@ -4,18 +4,19 @@
* Theme override for a fieldset element and its children.
*
* Available variables:
* - attributes: HTML attributes for the fieldset element.
* - errors: (optional) Any errors for this fieldset element, may not be set.
* - required: Boolean indicating whether the fieldeset element is required.
* - legend: The legend element containing the following properties:
* - title: Title of the fieldset, intended for use as the text of the legend.
* - attributes: HTML attributes to apply to the legend.
* - attributes: HTML attributes for the <fieldset> element.
* - errors: (optional) Any errors for this <fieldset> element, may not be set.
* - required: Boolean indicating whether the <fieldeset> element is required.
* - legend: The <legend> element containing the following properties:
* - title: Title of the <fieldset>, intended for use as the text
of the <legend>.
* - attributes: HTML attributes to apply to the <legend> element.
* - description: The description element containing the following properties:
* - content: The description content of the fieldset.
* - content: The description content of the <fieldset>.
* - attributes: HTML attributes to apply to the description container.
* - children: The rendered child elements of the fieldset.
* - prefix: The content to add before the fieldset children.
* - suffix: The content to add after the fieldset children.
* - children: The rendered child elements of the <fieldset>.
* - prefix: The content to add before the <fieldset> children.
* - suffix: The content to add after the <fieldset> children.
*
* @see template_preprocess_fieldset()
*/
......@@ -36,7 +37,7 @@
required ? 'form-required',
]
%}
{# Always wrap fieldset legends in a SPAN for CSS positioning. #}
{# Always wrap fieldset legends in a <span> for CSS positioning. #}
<legend{{ legend.attributes }}>
<span{{ legend_span.attributes.addClass(legend_span_classes) }}>{{ legend.title }}</span>
</legend>
......
......@@ -5,7 +5,7 @@
*
* Available variables
* - wrapper_attributes: A list of HTML attributes for the wrapper element.
* - attributes: A list of HTML attributes for the textarea element.
* - attributes: A list of HTML attributes for the <textarea> element.
* - resizable: An indicator for whether the textarea is resizable.
* - required: An indicator for whether the textarea is required.
* - value: The textarea content.
......
{#
/**
* @file
* Default theme implementation to display a one-column layout.
* Theme override to display a one-column layout.
*
* Available variables:
* - content: The content for this layout.
* - attributes: HTML attributes for the layout <div>.
*
* @ingroup themeable
*/
#}
{%
......
{#
/**
* @file
* Default theme implementation for a three column layout.
* Theme override for a three column layout.
*
* This template provides a three column 25%-50%-25% display layout, with
* additional areas for the top and the bottom.
......@@ -9,8 +9,6 @@
* Available variables:
* - content: The content for this layout.
* - attributes: HTML attributes for the layout <div>.
*
* @ingroup themeable
*/
#}
{%
......
{#
/**
* @file
* Default theme implementation for a three column layout.
* Theme override for a three column layout.
*
* This template provides a three column 33%-34%-33% display layout, with
* additional areas for the top and the bottom.
......@@ -9,8 +9,6 @@
* Available variables:
* - content: The content for this layout.
* - attributes: HTML attributes for the layout <div>.
*
* @ingroup themeable
*/
#}
{%
......
{#
/**
* @file
* Default theme implementation for a two column layout.
* Theme override for a two column layout.
*
* This template provides a two column display layout with full width areas at
* the top, bottom and in the middle.
......@@ -9,8 +9,6 @@
* Available variables:
* - content: The content for this layout.
* - attributes: HTML attributes for the layout <div>.
*
* @ingroup themeable
*/
#}
{%
......
{#
/**
* @file
* Default theme implementation to display a two-column layout.
* Theme override to display a two-column layout.
*
* Available variables:
* - content: The content for this layout.
* - attributes: HTML attributes for the layout <div>.
*
* @ingroup themeable
*/
#}
{%
......
......@@ -5,7 +5,7 @@
*
* Available variables:
* - content: The content for this region, typically blocks.
* - attributes: HTML attributes for the region div.
* - attributes: HTML attributes for the region <div>.
* - region: The name of the region variable as defined in the theme's
* .info.yml file.
*
......
{#
/**
* @file
* Default theme implementation to present a media entity in the media library.
* Theme override to present a media entity in the media library.
*
* Available variables:
* - media: The entity with limited access to object properties and methods.
......@@ -30,8 +30,6 @@
*
* @see template_preprocess_media()
* @see media_library_preprocess_media()
*
* @ingroup themeable
*/
#}
<article{{ attributes }}>
......
{#
/**
* @file
* Default theme implementation of a media library item.
* Theme override of a media library item.
*
* This is used when displaying selected media items, either in the field
* widget or in the "Additional selected media" area when adding new
......@@ -13,8 +13,6 @@
* fields or elements surrounding it.
*
* @see template_preprocess_media_library_item()
*
* @ingroup themeable
*/
#}
<div{{ attributes }}>
......
{#
/**
* @file
* Default theme implementation of a container used to wrap the media library's
* modal dialog interface.
* Theme override of a container used to wrap the media library's modal dialog
* interface.
*
* Available variables:
* - attributes: HTML attributes for the containing element.
......@@ -11,8 +11,6 @@
* existing media items to choose from.
*
* @see template_preprocess_media_library_wrapper()
*
* @ingroup themeable
*/
#}
<div{{ attributes }}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment