Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542

This commit is contained in:
Pantheon Automation 2015-08-27 12:03:05 -07:00 committed by Greg Anderson
parent 3b2511d96d
commit 81ccda77eb
2155 changed files with 54307 additions and 46870 deletions

View file

@ -1,7 +1,7 @@
bartik.mobile:
label: mobile
mediaQuery: ''
weight: 2
weight: 0
multipliers:
- 1x
bartik.narrow:
@ -13,6 +13,6 @@ bartik.narrow:
bartik.wide:
label: wide
mediaQuery: 'all and (min-width: 851px)'
weight: 0
weight: 2
multipliers:
- 1x

View file

@ -125,6 +125,6 @@ function _bartik_process_page(&$variables) {
if ($variables['hide_site_slogan']) {
// If toggle_site_slogan is FALSE, the site_slogan will be empty, so we
// rebuild it.
$variables['site_slogan'] = Xss::filterAdmin($site_config->get('slogan'));
$variables['site_slogan']['#markup'] = $site_config->get('slogan');
}
}

View file

@ -124,6 +124,10 @@ blockquote:after {
blockquote > p:first-child {
display: inline;
}
.feed-icon {
display: block;
margin: 25px 0 0 0;
}
img {
max-width: 100%;
height: auto;

View file

@ -7,19 +7,23 @@
#content .comment-wrapper h2 {
margin-bottom: 1em;
}
#content .comment-wrapper h2.comment-form__title {
margin-bottom: 1em;
}
.comment {
margin-bottom: 20px;
margin-bottom: 19px;
vertical-align: top;
display: table;
vertical-align: top;
}
.comment__attribution {
display: table-cell;
[dir="rtl"] .comment {
direction: rtl;
}
.comment__meta {
padding: 0 30px 0 0; /* LTR */
vertical-align: top;
overflow: hidden;
font-size: 1.071em;
}
[dir="rtl"] .comment__attribution {
float: right;
[dir="rtl"] .comment__meta {
padding: 0 0 0 30px;
}
.comment__attribution img {
@ -32,32 +36,34 @@
.comment__author .username {
white-space: nowrap;
}
.comment__submitted__data {
.comment__author {
margin: 4px 0;
font-size: 1.071em;
line-height: 1.2;
}
.comment__time {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 0.786em;
margin-bottom: 4px;
color: #68696b;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 0.733em;
line-height: 1.2;
}
.comment__permalink {
font-size: 0.786em;
font-size: 0.733em;
line-height: 1.2;
}
.comment__content {
position: relative;
display: table-cell;
padding: 10px 25px 10px 25px;
vertical-align: top;
width: 100%;
border: 1px solid #d3d7d9;
font-size: 0.929em;
line-height: 1.6;
}
.comment__text {
padding: 10px 25px;
border: 1px solid #d3d7d9;
display: table-cell;
vertical-align: top;
position: relative;
width: 100%;
}
.comment__text:before {
.comment__content:before {
content: '';
position: absolute;
right: 100%; /* LTR */
@ -66,13 +72,13 @@
border-right: 20px solid #d3d7d9; /* LTR */
border-bottom: 20px solid transparent;
}
[dir="rtl"] .comment__text:before {
[dir="rtl"] .comment__content:before {
right: auto;
left: 100%;
border-right: none;
border-left: 20px solid #d3d7d9;
}
.comment__text:after {
.comment__content:after {
content: '';
position: absolute;
right: 100%; /* LTR */
@ -82,7 +88,7 @@
border-bottom: 20px solid transparent;
margin-right: -1px; /* LTR */
}
[dir="rtl"] .comment__text:after {
[dir="rtl"] .comment__content:after {
right: auto;
left: 100%;
border-right: none;
@ -90,6 +96,14 @@
margin-right: 0;
margin-left: -1px;
}
.comment__content h3 {
margin-top: 0.94em;
margin-bottom: 0.45em;
font-size: 1.171em;
}
.comment__content nav {
padding-top: 1px;
}
.comment .indented {
margin-left: 40px; /* LTR */
}
@ -97,13 +111,14 @@
margin-right: 40px;
margin-left: 0;
}
.comment ul.links {
.comment .links {
padding: 0 0 0.25em 0;
}
.comment ul.links li {
.comment .links li {
padding: 0 0.5em 0 0; /* LTR */
font-size: 1.08em;
}
[dir="rtl"] .comment ul.links li {
[dir="rtl"] .comment .links li {
padding: 0 0 0 0.5em;
}
.comment--unpublished {
@ -116,14 +131,11 @@
margin-right: 0;
padding: 5px 5px 5px 2px;
}
.comment-footer {
display: table-row;
}
.comment--unpublished .comment__text:after,
.node--unpublished .comment__text:after {
.comment--unpublished .comment__content:after,
.node--unpublished .comment__content:after {
border-right-color: #fff4f4; /* LTR */
}
[dir="rtl"] .comment--unpublished .comment__text:after,
[dir="rtl"] .node--unpublished .comment__text:after {
[dir="rtl"] .comment--unpublished .comment__content:after,
[dir="rtl"] .node--unpublished .comment__content:after {
border-left-color: #fff4f4;
}

View file

@ -3,15 +3,7 @@
* Contextual links styles for Bartik.
*/
#header .contextual .trigger,
.site-footer .contextual .trigger {
border: none;
}
.contextual-region .contextual .contextual-links a {
.contextual-links a {
border-bottom: none;
font-size: 0.923em;
text-shadow: 0 0 0;
}
.contextual-links {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

View file

@ -1,13 +1,15 @@
/* ---------- Dropbutton ----------- */
.js .dropbutton-multiple.open .dropbutton-widget {
border-radius: 1em;
/**
* @file
* Visual styles for Bartik's dropbutton component.
*/
.js .dropbutton-wrapper .dropbutton-widget {
/* This is required to win over specifity of .js td .dropbutton-widget */
position: relative;
}
.js .dropbutton-widget {
position: relative !important;
border: 1px solid #e4e4e4;
border-bottom-color: #b4b4b4;
border-left-color: #d2d2d2;
border-right-color: #d2d2d2;
border: 1px solid;
border-color: #e4e4e4 #d2d2d2 #b4b4b4 #d2d2d2;
background-color: #fff;
background-image: -webkit-linear-gradient(top, #f3f3f3, #e8e8e8);
background-image: linear-gradient(to bottom, #f3f3f3, #e8e8e8);
@ -16,96 +18,40 @@
text-align: center;
margin: 0.125em 0;
border-radius: 1em;
overflow: hidden;
}
.js .dropbutton-widget:hover {
border-top-color: #e4e4e4;
border-bottom-color: #b4b4b4;
border-left-color: #d2d2d2;
border-right-color: #d2d2d2;
border-color: #e4e4e4 #d2d2d2 #b4b4b4 #d2d2d2;
}
.js .dropbutton-widget .button {
border: none;
margin: 0;
padding: 0.32em 1em;
width: 100%;
border-radius: 1em;
}
.js .dropbutton-widget .button:hover {
border-radius: 1em 0 0 1em; /* LTR */
}
[dir="rtl"].js .dropbutton-widget .button:hover {
border-radius: 0 1em 1em 0;
}
.js .dropbutton-single .dropbutton-widget .dropbutton-action a {
color: #3a3a3a;
}
.js .dropbutton-single .dropbutton-widget .dropbutton-action a:hover {
background: #dedede;
border-radius: 1em;
background: transparent none;
}
.js .dropbutton-multiple .dropbutton-widget .dropbutton-action a {
color: #3a3a3a;
margin-right: 0; /* LTR */
}
[dir="rtl"].js .dropbutton-multiple .dropbutton-widget .dropbutton-action a {
margin-left: 0;
}
.js .dropbutton-multiple .dropbutton-widget .dropbutton-action a:hover {
background: #dedede;
}
.js .dropbutton-multiple .dropbutton-widget .dropbutton-action:first-child a:hover {
border-radius: 1em 0 0 1em; /* LTR */
}
[dir="rtl"].js .dropbutton-multiple .dropbutton-widget .dropbutton-action:first-child a:hover {
border-radius: 0 1em 1em 0;
}
.js .dropbutton-multiple.open .dropbutton-widget .dropbutton-action:first-child a:hover {
border-radius: 1em 0 0 0; /* LTR */
}
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-widget .dropbutton-action:first-child a:hover {
border-radius: 0 1em 0 0;
}
.js .dropdown-widget .publish .button {
border-radius: 1em 0 0 1em; /* LTR */
}
[dir="rtl"].js .dropbutton-widget .publish .button {
border-radius: 0 1em 1em 0;
}
.js .dropbutton-multiple.open .dropbutton-action:first-child a,
.js .dropbutton-multiple.open .dropbutton-action:first-child .button {
border-radius: 1em 0 0 0; /* LTR */
}
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-action:first-child a,
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-action:first-child .button {
border-radius: 0 1em 0 0;
}
.js .dropbutton-multiple.open .dropbutton-action:last-child a,
.js .dropbutton-multiple.open .dropbutton-action:last-child .button {
border-radius: 0 0 0 1em; /* LTR */
}
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-action:last-child a,
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-action:last-child .button {
border-radius: 0 0 1em 0;
}
.js .dropbutton .secondary-action {
border-top-color: #ccc;
}
.js .dropbutton-toggle button {
border-radius: 0 1em 1em 0; /* LTR */
background-color: #e8e8e8;
background-image: -webkit-linear-gradient(top, #e8e8e8, #d2d2d2);
background-image: linear-gradient(to bottom, #e8e8e8, #d2d2d2);
}
[dir="rtl"].js .dropbutton-toggle button {
border-radius: 1em 0 0 1em;
}
.js .dropbutton-toggle .button:hover {
.js .dropbutton-toggle .dropbutton-arrow:hover {
background: #ccc;
}
.js .dropbutton a {
border-bottom: none;
color: #3a3a3a;
border-bottom: 0 none;
}
.js .dropbutton .dropbutton-action:hover,
.js .dropbutton a:hover {
border-bottom-style: none;
background: #dedede;
border-bottom: 0 none;
}

View file

@ -276,6 +276,6 @@ input.form-submit:focus {
}
/* Form error message styles. */
.form-error-message {
color: #ea2800;
.form-item--error-message {
color: #e32700;
}

View file

@ -70,6 +70,7 @@
{%
set classes = [
'comment',
'js-comment',
status != 'published' ? 'comment--' ~ status,
comment.owner.anonymous ? 'by-anonymous',
author_id and author_id == commented_entity.getOwnerId() ? 'by-' ~ commented_entity.getEntityTypeId() ~ '-author',
@ -77,43 +78,37 @@
]
%}
<article role="article"{{ attributes.addClass(classes)|without('role') }}>
<header class="comment-header">
<div class="comment__attribution">
{{ user_picture }}
<div class="comment__submitted">
<p class="comment__author comment__submitted__data">{{ author }}</p>
<p class="comment__time comment__submitted__data">{{ created }}</p>
<p class="comment__permalink comment__submitted__data">{{ permalink }}</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.
#}
{% if parent %}
<p class="visually-hidden">{{ parent }}</p>
{% endif %}
</div>
</div>
</header>
<div class="comment__text">
{#
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.
#}
<span class="hidden" data-comment-timestamp="{{ new_indicator_timestamp }}"></span>
<footer class="comment__meta">
{{ user_picture }}
<p class="comment__author">{{ author }}</p>
<p class="comment__time">{{ created }}</p>
<p class="comment__permalink">{{ permalink }}</p>
{#
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.
Indicate the semantic relationship between parent and child comments
for accessibility. The list is difficult to navigate in a screen
reader without this information.
#}
<span class="hidden new" data-comment-timestamp="{{ new_indicator_timestamp }}"></span>
{% if parent %}
<p class="visually-hidden">{{ parent }}</p>
{% endif %}
</footer>
<div{{ content_attributes.addClass('comment__content') }}>
{% if title %}
{{ title_prefix }}
<h3{{ title_attributes }}>{{ title }}</h3>
<h3{{ title_attributes }}>{{ title }}</h3>
{{ title_suffix }}
{% endif %}
<div{{ content_attributes.addClass('comment__content') }}>
{{ content|without('links') }}
</div>
<footer class="comment__footer">
{% if content.links %}
<nav>{{ content.links }}</nav>
{% endif %}
</footer>
{{ content|without('links') }}
{% if content.links %}
<nav>{{ content.links }}</nav>
{% endif %}
</div>
</article>

View file

@ -7,3 +7,4 @@ core: 8.x
libraries:
- classy/base
- core/normalize

View file

@ -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: {}

View file

@ -0,0 +1,7 @@
/**
* @file
* Stylesheet for results generated by the Search module.
*/
ol.search-results {
list-style: none;
}

View file

@ -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>

View file

@ -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>

View file

@ -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') %}

View file

@ -24,7 +24,7 @@
{% endif %}
{{ content }}
{% if errors %}
<div class="form-error-message">
<div class="form-item--error-message">
<strong>{{ errors }}</strong>
</div>
{% endif %}

View file

@ -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 %}

View file

@ -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 %}

View file

@ -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 %}

View file

@ -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>

View file

@ -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.

View file

@ -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.
*

View file

@ -12,7 +12,7 @@ fieldset:not(.fieldgroup) {
padding: 30px 18px 18px;
position: relative;
}
fieldset:not(.fieldgroup) legend {
fieldset:not(.fieldgroup) > legend {
font-size: 1em;
font-weight: bold;
letter-spacing: 0.08em;
@ -96,14 +96,14 @@ label[for] {
width: 7px;
height: 7px;
}
.form-error-message {
.form-item--error-message {
margin-top: 0.15em;
color: #ea2800;
color: #e32700;
}
.fieldset-wrapper > .form-error-message {
.fieldset-wrapper > .form-item--error-message {
margin-top: 0;
}
.text-format-wrapper .form-error-message {
.text-format-wrapper .form-item--error-message {
border: solid #ccc;
border-width: 0 1px;
margin: 0;

View file

@ -0,0 +1,14 @@
/**
* @file
* Styles for administration pages.
*/
/**
* Add search page select/submit.
*/
.search-admin-settings .container-inline {
margin-bottom: 1em;
}
.search-admin-settings label[for="edit-search-type"] {
display: block;
}

View file

@ -1,12 +1,12 @@
seven.mobile:
label: mobile
mediaQuery: '(min-width: 0em)'
weight: 1
weight: 0
multipliers:
- 1x
seven.wide:
label: wide
mediaQuery: 'screen and (min-width: 40em)'
weight: 0
weight: 1
multipliers:
- 1x

View file

@ -25,6 +25,7 @@ global-styling:
css/components/panel.css: {}
css/components/skip-link.css: {}
css/components/tables.css: {}
css/components/search-admin-settings.css: {}
css/components/system-status-report.css: {}
css/components/tabs.css: {}
css/components/tour.theme.css: {}

View file

@ -75,7 +75,6 @@ function seven_preprocess_node_add_list(&$variables) {
/** @var \Drupal\node\NodeTypeInterface $type */
foreach ($variables['content'] as $type) {
$variables['types'][$type->id()]['label'] = SafeMarkup::checkPlain($type->label());
$variables['types'][$type->id()]['description'] = Xss::filterAdmin($type->getDescription());
$variables['types'][$type->id()]['url'] = \Drupal::url('node.add', array('node_type' => $type->id()));
}
}
@ -85,13 +84,12 @@ function seven_preprocess_node_add_list(&$variables) {
* Implements hook_preprocess_HOOK() for block content add list templates.
*
* Displays the list of available custom block types for creation, adding
* separate variables for the label, description, and url.
* separate variables for the label and url.
*/
function seven_preprocess_block_content_add_list(&$variables) {
if (!empty($variables['content'])) {
foreach ($variables['content'] as $type) {
$variables['types'][$type->id()]['label'] = SafeMarkup::checkPlain($type->label());
$variables['types'][$type->id()]['description'] = Xss::filterAdmin($type->getDescription());
$options = array('query' => \Drupal::request()->query->all());
$variables['types'][$type->id()]['url'] = \Drupal::url('block_content.add_form', array('block_content_type' => $type->id()), $options);
}

View file

@ -1,7 +1,7 @@
stark.mobile:
label: mobile
mediaQuery: '(min-width: 0px)'
weight: 2
weight: 0
multipliers:
- 1x
stark.narrow:
@ -13,6 +13,6 @@ stark.narrow:
stark.wide:
label: wide
mediaQuery: 'all and (min-width: 960px)'
weight: 0
weight: 2
multipliers:
- 1x