updated core to 8.6.1 via composer

This commit is contained in:
2018-09-12 13:58:26 +02:00
parent a9a219f2ed
commit ea56b9fba3
4443 changed files with 112098 additions and 40708 deletions
+20
View File
@@ -0,0 +1,20 @@
ABOUT SEVEN
-----------
Seven is the default administration theme for core in Drupal 8. This theme is
used on all admin pages and by default on node edit forms.
To read more about the Seven theme's origins (in Drupal 7) please see:
https://www.drupal.org/docs/7/core/themes/seven
See https://www.drupal.org/docs/8/core/themes/seven-theme for more information
on using the Seven theme.
Seven is an internal theme and shouldn't be extended by other themes. Please
see https://www.drupal.org/node/2582945 for more info.
ABOUT DRUPAL THEMING
--------------------
See https://www.drupal.org/docs/8/theming for more information on Drupal 8
theming.
+1 -5
View File
@@ -158,14 +158,10 @@ details {
line-height: 1.295em;
}
details summary {
padding-top: 0.5em;
padding-bottom: 0.5em;
padding: 0.95em 1.45em;
}
details summary:focus {
outline: none;
}
details summary:focus,
details summary:hover {
text-decoration: underline;
}
img {
@@ -0,0 +1,27 @@
/**
* @file
* Collapsible details.
*
* @see collapse.js
*/
.seven-details {
margin-top: 1em;
margin-bottom: 1em;
background-color: #fcfcfa;
border: 1px solid #bfbfbf;
border-radius: 3px;
}
.seven-details__summary {
cursor: pointer;
text-shadow: 0 1px 0 white;
color: #0074bd;
}
.seven-details__summary:hover,
.seven-details__summary:focus,
.seven-details[open] > .seven-details__summary {
color: #004f80;
}
.seven-details__wrapper {
padding: 0 1.5em 1em 1.5em;
}
@@ -116,3 +116,12 @@
.ui-dialog .ajax-progress-throbber .message {
display: none;
}
.ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar {
position: relative;
}
.ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar-close {
top: 10px;
}
.ui-dialog.ui-dialog-off-canvas .ui-widget-content.ui-dialog-content {
background: none;
}
@@ -2,19 +2,21 @@
* Entity meta settings.
*/
.entity-meta {
background-color: #ececec;
background-color: #edede8;
border-left: 1px solid #bfbfbf;
border-right: 1px solid #bfbfbf;
border-radius: 3px;
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.15);
}
.entity-meta__header,
.entity-meta details {
background-color: #f7f7f7;
.entity-meta .seven-details {
background-color: #fcfcfa;
border-top: 1px solid #bfbfbf;
border-bottom: 1px solid #bfbfbf;
}
.entity-meta__header {
padding: 1em 1.5em;
border-radius: 3px 3px 0 0;
}
.entity-meta__title {
font-size: 1.231em;
@@ -28,34 +30,43 @@
.entity-meta__last-saved {
font-style: italic; /* As-designed, but really: why is this italic? */
}
.entity-meta details {
.entity-meta .seven-details {
border-left: 0;
border-right: 0;
border-top: 1px solid #fff;
margin: 0;
border-radius: 0;
}
.entity-meta details:first-child {
border-top-color: #bfbfbf;
.entity-meta .seven-details:last-child {
border-radius: 0 0 3px 3px;
}
.entity-meta details[open] {
.entity-meta .seven-details[open] {
background-color: transparent;
background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.125), transparent 4px);
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.125), transparent 4px);
border-top-width: 0;
padding-top: 1px;
}
.entity-meta details[open] + details[open] {
.entity-meta .seven-details[open] + .seven-details[open] {
background-image: none;
border-top-width: 1px;
padding-top: 0;
}
.entity-meta details > .details-wrapper {
.entity-meta .seven-details > .seven-details__wrapper {
padding-top: 0;
}
.entity-meta details > summary {
.entity-meta .seven-details > summary {
padding: 0.85em 1.25em;
text-shadow: 0 1px 0 white;
}
.entity-meta details .summary {
display: none; /* Hide JS summaries. @todo Rethink summaries. */
/**
* Hide JS summary from the details polyfill to make it consistent with native
* details elements.
*
* @todo Consider removing this after https://www.drupal.org/node/2493957 has
* been solved.
*/
.entity-meta .seven-details .summary {
display: none;
}
+14 -2
View File
@@ -49,6 +49,20 @@ fieldset:not(.fieldgroup) > legend {
.form-item {
margin: 0.75em 0;
}
/**
* When a table row has a single form item, prevent it from adding unnecessary
* extra spacing. If it has multiple form items, allow spacing between them,
* overriding Classy.
*/
tr.odd .form-item,
tr.even .form-item {
margin-top: 0.75em;
margin-bottom: 0.75em;
}
td > .form-item:only-child {
margin-top: 0;
margin-bottom: 0;
}
.form-type-checkbox {
padding: 0;
}
@@ -179,8 +193,6 @@ textarea.form-textarea {
max-width: 100%;
border: 1px solid #b8b8b8;
border-top-color: #999;
background: #fff;
color: #333;
border-radius: 2px;
background: #fcfcfa;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.125);
@@ -3,18 +3,20 @@
border: 0;
border-top: 1px solid #ccc;
}
.system-modules details {
.system-modules .seven-details {
background: none;
border: 0;
margin: 0;
padding: 0;
}
.system-modules summary {
.system-modules .seven-details__summary {
border-bottom: 1px solid #ccc;
padding: 0.95em 0.5em;
}
.system-modules [open] summary {
.system-modules [open] .seven-details__summary {
border-bottom: none;
}
.system-modules .details-wrapper {
.system-modules .seven-details__wrapper {
padding: 0 0 0.5em 0;
}
.system-modules .fieldset-wrapper {
+1 -1
View File
@@ -11,7 +11,7 @@
}
.pager__item {
display: inline-block;
color: #8c8c8c;
color: #757575;
font-size: 1.08em;
margin: 0;
padding: 0 0.4em;
@@ -12,6 +12,8 @@
margin: 0;
width: 100%;
overflow: auto;
background-color: transparent;
border-radius: 0;
}
.system-status-report__entry:last-of-type {
border-bottom: 1px solid #bebfb9;
@@ -64,6 +66,7 @@
.system-status-report details[open] > *,
.system-status-report details > summary:first-child {
display: block;
color: inherit;
}
.system-status-report__status-title .details-title:before,
@@ -21,12 +21,12 @@ details.fieldset-no-legend {
* a layout problem occurs for the Display format details if we don't fix its
* padding), but it's probably safe to just let it apply everywhere.
*/
#views-ui-add-form details details .details-wrapper {
#views-ui-add-form details details .seven-details__wrapper {
padding-left: 0;
padding-right: 0;
}
.views-display-tab details.box-padding .details-wrapper {
.views-display-tab details.box-padding .seven-details__wrapper {
padding: 0;
}
+2 -2
View File
@@ -1,4 +1,4 @@
(function () {
(function() {
function findActiveStep(steps) {
for (let i = 0; i < steps.length; i++) {
if (steps[i].className === 'is-active') {
@@ -26,4 +26,4 @@
if (document.addEventListener) {
document.addEventListener('DOMContentLoaded', installStepsSetup);
}
}());
})();
+7 -4
View File
@@ -5,7 +5,7 @@
* This also supports collapsible navigable is the 'is-collapsible' class is
* added to the main element, and a target element is included.
*/
(function ($, Drupal) {
(function($, Drupal) {
function init(i, tab) {
const $tab = $(tab);
const $target = $tab.find('[data-drupal-nav-tabs-target]');
@@ -18,7 +18,8 @@
function handleResize(e) {
$tab.addClass('is-horizontal');
const $tabs = $tab.find('.tabs');
const isHorizontal = $tabs.outerHeight() <= $tabs.find('.tabs__tab').outerHeight();
const isHorizontal =
$tabs.outerHeight() <= $tabs.find('.tabs__tab').outerHeight();
$tab.toggleClass('is-horizontal', isHorizontal);
if (isCollapsible) {
$tab.toggleClass('is-collapse-enabled', !isHorizontal);
@@ -31,7 +32,9 @@
$tab.addClass('position-container is-horizontal-enabled');
$tab.on('click.tabs', '[data-drupal-nav-tabs-trigger]', openMenu);
$(window).on('resize.tabs', Drupal.debounce(handleResize, 150)).trigger('resize.tabs');
$(window)
.on('resize.tabs', Drupal.debounce(handleResize, 150))
.trigger('resize.tabs');
}
/**
@@ -48,4 +51,4 @@
}
},
};
}(jQuery, Drupal));
})(jQuery, Drupal);
@@ -3,7 +3,7 @@
* Provides responsive behaviors to HTML details elements.
*/
(function ($, Drupal) {
(function($, Drupal) {
/**
* Initializes the responsive behaviors for details elements.
*
@@ -14,26 +14,27 @@
*/
Drupal.behaviors.responsiveDetails = {
attach(context) {
const $details = $(context).find('details').once('responsive-details');
const $details = $(context)
.find('details')
.once('responsive-details');
if (!$details.length) {
return;
}
const $summaries = $details.find('> summary');
function detailsToggle(matches) {
if (matches) {
$details.attr('open', true);
$summaries.attr('aria-expanded', true);
$summaries.on('click.details-open', false);
}
else {
} else {
// If user explicitly opened one, leave it alone.
const $notPressed = $details
.find('> summary[aria-pressed!=true]')
.attr('aria-expanded', false);
$notPressed
.parent('details')
.attr('open', false);
$notPressed.parent('details').attr('open', false);
// After resize, allow user to close previously opened details.
$summaries.off('.details-open');
}
@@ -43,10 +44,9 @@
detailsToggle(event.matches);
}
const $summaries = $details.find('> summary');
const mql = window.matchMedia('(min-width:48em)');
mql.addListener(handleDetailsMQ);
detailsToggle(mql.matches);
},
};
}(jQuery, Drupal));
})(jQuery, Drupal);
+2 -1
View File
@@ -14,6 +14,8 @@
return;
}
var $summaries = $details.find('> summary');
function detailsToggle(matches) {
if (matches) {
$details.attr('open', true);
@@ -31,7 +33,6 @@
detailsToggle(event.matches);
}
var $summaries = $details.find('> summary');
var mql = window.matchMedia('(min-width:48em)');
mql.addListener(handleDetailsMQ);
detailsToggle(mql.matches);
+5
View File
@@ -42,6 +42,11 @@ libraries-override:
assets/vendor/jquery.ui/themes/base/dialog.css: false
classy/dialog:
seven/seven.drupal.dialog
classy/base:
css:
component:
css/components/details.css: false
libraries-extend:
core/ckeditor:
- seven/ckeditor-dialog
+1
View File
@@ -12,6 +12,7 @@ global-styling:
css/components/container-inline.module.css: {}
css/components/breadcrumb.css: {}
css/components/buttons.css: {}
css/components/details.css: {}
css/components/messages.css: {}
css/components/dropbutton.component.css: {}
css/components/entity-meta.css: {}
+10 -5
View File
@@ -6,6 +6,7 @@
*/
use Drupal\Core\Form\FormStateInterface;
use Drupal\media\MediaForm;
/**
* Implements hook_preprocess_HOOK() for HTML document templates.
@@ -167,9 +168,13 @@ function seven_form_node_form_alter(&$form, FormStateInterface $form_state) {
* Implements hook_form_BASE_FORM_ID_alter() for \Drupal\media\MediaForm.
*/
function seven_form_media_form_alter(&$form, FormStateInterface $form_state) {
// @todo Revisit after https://www.drupal.org/node/2892304 is in. It
// introduces a footer region to these forms which will allow for us to
// display a top border over the published checkbox by defining a
// media-edit-form.html.twig template the same way node does.
$form['#attached']['library'][] = 'seven/media-form';
// Only attach CSS from core if this form comes from Media core, and not from
// the contrib Media Entity 1.x branch.
if (\Drupal::moduleHandler()->moduleExists('media') && $form_state->getFormObject() instanceof MediaForm) {
// @todo Revisit after https://www.drupal.org/node/2892304 is in. It
// introduces a footer region to these forms which will allow for us to
// display a top border over the published checkbox by defining a
// media-edit-form.html.twig template the same way node does.
$form['#attached']['library'][] = 'seven/media-form';
}
}
@@ -0,0 +1,51 @@
{#
/**
* @file
* Theme override for a details element.
*
* Available variables
* - attributes: A list of HTML attributes for the details element.
* - errors: (optional) Any errors for this details element, may not be set.
* - title: (optional) The title of the element, may not be set.
* - description: (optional) The description of the element, may not be set.
* - children: (optional) The children of the element, may not be set.
* - value: (optional) The value of the element, may not be set.
*
* @see template_preprocess_details()
*/
#}
{#
Prefix 'details' class to avoid collision with Modernizr.
@todo Remove prefix after https://www.drupal.org/node/2981732 has been solved.
#}
<details{{ attributes.addClass('seven-details') }}>
{%- if title -%}
{%
set summary_classes = [
'seven-details__summary',
required ? 'js-form-required',
required ? 'form-required',
]
%}
<summary{{ summary_attributes.addClass(summary_classes) }}>
{{- title -}}
</summary>
{%- endif -%}
<div class="seven-details__wrapper details-wrapper">
{% if errors %}
<div class="form-item form-item--error-message">
<strong>{{ errors }}</strong>
</div>
{% endif %}
{%- if description -%}
<div class="seven-details__description">{{ description }}</div>
{%- endif -%}
{%- if children -%}
{{ children }}
{%- endif -%}
{%- if value -%}
{{ value }}
{%- endif -%}
</div>
</details>