Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
|
@ -7,3 +7,4 @@ core: 8.x
|
|||
|
||||
libraries:
|
||||
- classy/base
|
||||
- core/normalize
|
||||
|
|
|
@ -15,3 +15,9 @@ drupal.comment.threaded:
|
|||
css:
|
||||
theme:
|
||||
css/comment/comment.theme.css: {}
|
||||
|
||||
search.results:
|
||||
version: VERSION
|
||||
css:
|
||||
theme:
|
||||
css/search/search.theme.css: {}
|
||||
|
|
7
core/themes/classy/css/search/search.theme.css
Normal file
7
core/themes/classy/css/search/search.theme.css
Normal file
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* @file
|
||||
* Stylesheet for results generated by the Search module.
|
||||
*/
|
||||
ol.search-results {
|
||||
list-style: none;
|
||||
}
|
|
@ -70,38 +70,28 @@
|
|||
{%
|
||||
set classes = [
|
||||
'comment',
|
||||
'js-comment',
|
||||
status != 'published' ? status,
|
||||
comment.owner.anonymous ? 'by-anonymous',
|
||||
author_id and author_id == commented_entity.getOwnerId() ? 'by-' ~ commented_entity.getEntityTypeId() ~ '-author',
|
||||
'clearfix',
|
||||
]
|
||||
%}
|
||||
<article{{ attributes.addClass(classes) }}>
|
||||
{% if title %}
|
||||
{{ title_prefix }}
|
||||
{% endif %}
|
||||
|
||||
{#
|
||||
Hide the "new" indicator by default, let a piece of JavaScript ask
|
||||
the server which comments are new for the user. Rendering the final
|
||||
"new" indicator here would break the render cache.
|
||||
Hide the "new" indicator by default, let a piece of JavaScript ask the
|
||||
server which comments are new for the user. Rendering the final "new"
|
||||
indicator here would break the render cache.
|
||||
#}
|
||||
<mark class="hidden" data-comment-timestamp="{{ new_indicator_timestamp }}"></mark>
|
||||
|
||||
{% if title %}
|
||||
<h3{{ title_attributes }}>{{ title }}</h3>
|
||||
{{ title_suffix }}
|
||||
{% endif %}
|
||||
|
||||
|
||||
<footer>
|
||||
<footer class="comment__meta">
|
||||
{{ user_picture }}
|
||||
<p class="submitted">{{ submitted }}</p>
|
||||
<p class="comment__submitted">{{ submitted }}</p>
|
||||
|
||||
{#
|
||||
Indicate the semantic relationship between parent and child comments
|
||||
for accessibility. The list is difficult to navigate in a screen
|
||||
reader without this information.
|
||||
Indicate the semantic relationship between parent and child comments for
|
||||
accessibility. The list is difficult to navigate in a screen reader
|
||||
without this information.
|
||||
#}
|
||||
{% if parent %}
|
||||
<p class="parent visually-hidden">{{ parent }}</p>
|
||||
|
@ -111,9 +101,11 @@
|
|||
</footer>
|
||||
|
||||
<div{{ content_attributes.addClass('content') }}>
|
||||
{{ content|without('links') }}
|
||||
{% if title %}
|
||||
{{ title_prefix }}
|
||||
<h3{{ title_attributes }}>{{ title }}</h3>
|
||||
{{ title_suffix }}
|
||||
{% endif %}
|
||||
{{ content }}
|
||||
</div>
|
||||
{% if content.links %}
|
||||
{{ content.links }}
|
||||
{% endif %}
|
||||
</article>
|
||||
|
|
|
@ -56,6 +56,7 @@
|
|||
* @see template_preprocess_search_result()
|
||||
*/
|
||||
#}
|
||||
{{ attach_library('classy/search.results') }}
|
||||
{{ title_prefix }}
|
||||
<h3{{ title_attributes.addClass('search-result__title') }}>
|
||||
<a href="{{ url }}">{{ title }}</a>
|
||||
|
|
|
@ -14,7 +14,15 @@
|
|||
*
|
||||
* @see https://www.drupal.org/node/2358529
|
||||
*
|
||||
* A 'text-formatted' class is added to assist with default styling of base
|
||||
* elements such as paragraphs and lists that may not have classes assigned to
|
||||
* them. This allows user entered content to have default styling without
|
||||
* interfering with the styles of other UI components such as system generated
|
||||
* lists or other dynamic content.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2539860
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
{% set attributes = attributes.addClass('clearfix') %}
|
||||
{% set attributes = attributes.addClass('clearfix', 'text-formatted') %}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
{% endif %}
|
||||
{{ content }}
|
||||
{% if errors %}
|
||||
<div class="form-error-message">
|
||||
<div class="form-item--error-message">
|
||||
<strong>{{ errors }}</strong>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
</legend>
|
||||
<div class="fieldset-wrapper">
|
||||
{% if errors %}
|
||||
<div class="form-error-message">
|
||||
<div class="form-item--error-message">
|
||||
<strong>{{ errors }}</strong>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
'form-item-' ~ name|clean_class,
|
||||
title_display not in ['after', 'before'] ? 'form-no-label',
|
||||
disabled == 'disabled' ? 'form-disabled',
|
||||
errors ? 'form-error',
|
||||
errors ? 'form-item--error',
|
||||
]
|
||||
%}
|
||||
{%
|
||||
|
@ -81,7 +81,7 @@
|
|||
{{ label }}
|
||||
{% endif %}
|
||||
{% if errors %}
|
||||
<div class="form-error-message">
|
||||
<div class="form-item--error-message">
|
||||
<strong>{{ errors }}</strong>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -10,4 +10,18 @@
|
|||
* @see template_preprocess_select()
|
||||
*/
|
||||
#}
|
||||
<select{{ attributes }}>{{ options }}</select>
|
||||
{% spaceless %}
|
||||
<select{{ attributes }}>
|
||||
{% for option in options %}
|
||||
{% if option.type == 'optgroup' %}
|
||||
<optgroup label="{{ option.label }}">
|
||||
{% for sub_option in option.options %}
|
||||
<option value="{{ sub_option.value }}"{{ sub_option.selected ? ' selected="selected"' }}>{{ sub_option.label }}</option>
|
||||
{% endfor %}
|
||||
</optgroup>
|
||||
{% elseif option.type == 'option' %}
|
||||
<option value="{{ option.value }}"{{ option.selected ? ' selected="selected"' }}>{{ option.label }}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% endspaceless %}
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override for a feed icon.
|
||||
*
|
||||
* Available variables:
|
||||
* - url: An internal system path or a fully qualified external URL of the feed.
|
||||
* - icon: The rendered HTML (<img> tag) for the feed icon image.
|
||||
* - attributes: Remaining HTML attributes for the feed link.
|
||||
* - title: A descriptive title of the feed link.
|
||||
* - class: HTML classes to be applied to the feed link.
|
||||
*
|
||||
* @see template_preprocess_feed_icon()
|
||||
*/
|
||||
#}
|
||||
<a href="{{ url }}"{{ attributes.addClass('feed-icon')|without('href') }}>{{ icon }}</a>
|
|
@ -11,8 +11,6 @@
|
|||
* - href: The link URL. If omitted, the 'title' is shown as a plain text
|
||||
* item in the links list. If 'href' is supplied, the entire link is passed
|
||||
* to l() as its $options parameter.
|
||||
* - html: (optional) Whether or not 'title' is HTML. If set, the title will
|
||||
* not be passed through \Drupal\Component\Utility\SafeMarkup::checkPlain().
|
||||
* - attributes: (optional) HTML attributes for the anchor, or for the <span>
|
||||
* tag if no 'href' is supplied.
|
||||
* - link_key: The link CSS class.
|
||||
|
|
|
@ -8,14 +8,8 @@
|
|||
*
|
||||
* Available variables:
|
||||
* - content: A list of content items. Use 'content' to print all content, or
|
||||
* print a subset such as 'content.field_example'.
|
||||
* - Field variables: For each field attached to the user a corresponding
|
||||
* variable is defined; e.g., account.field_example has a variable
|
||||
* 'field_example' defined. When needing to access a field's raw values,
|
||||
* developers/themers are strongly encouraged to use these variables.
|
||||
* Otherwise they will have to explicitly specify the desired field language,
|
||||
* e.g. account.field_example.en, thus overriding any language negotiation
|
||||
* rule that was previously applied.
|
||||
* print a subset such as 'content.field_example'. Fields attached to a user
|
||||
* such as 'user_picture' are available as 'content.user_picture'.
|
||||
* - attributes: HTML attributes for the container element.
|
||||
* - user: A Drupal User entity.
|
||||
*
|
||||
|
|
Reference in a new issue