upgrades core to 8.4.2

This commit is contained in:
Bachir Soussi Chiadmi
2017-11-14 16:09:54 +01:00
parent bd60eff9b3
commit c2b4e25be4
3504 changed files with 140306 additions and 38684 deletions
+4
View File
@@ -172,3 +172,7 @@ details summary:focus,
details summary:hover {
text-decoration: underline;
}
img {
max-width: 100%;
height: auto;
}
+13 -2
View File
@@ -42,7 +42,8 @@
color: #000;
text-decoration: underline;
}
.button, .button--primary {
.button,
.button--primary {
background: none !important;
}
.messages {
@@ -70,7 +71,17 @@
background: none;
border-radius: 4px;
}
input.form-autocomplete, input.form-text, input.form-tel, input.form-email, input.form-url, input.form-search, input.form-number, input.form-color, input.form-file, textarea.form-textarea, select.form-select {
input.form-autocomplete,
input.form-text,
input.form-tel,
input.form-email,
input.form-url,
input.form-search,
input.form-number,
input.form-color,
input.form-file,
textarea.form-textarea,
select.form-select {
border-width: 1px;
}
}
+1 -1
View File
@@ -60,7 +60,7 @@
}
.ui-dialog .ui-widget-content.ui-dialog-buttonpane {
background: #f5f5f2;
/*border-top: 1px solid #bfbfbf;*/
/* border-top: 1px solid #bfbfbf; */
margin: 0;
padding: 15px 20px;
border-bottom-left-radius: 5px;
@@ -169,7 +169,7 @@
.dropbutton-single .dropbutton-action a {
padding: 4px 1.5em;
border: 1px solid #a6a6a6;
border-radius: 20em!important;
border-radius: 20em !important;
background-color: #f2f1eb;
background-image: -webkit-linear-gradient(top, #f6f6f3, #e7e7df);
background-image: linear-gradient(to bottom, #f6f6f3, #e7e7df);
@@ -180,7 +180,7 @@
-webkit-transition: all 0.1s;
transition: all 0.1s;
-webkit-font-smoothing: antialiased;
width: auto!important;
width: auto !important;
}
.dropbutton-single .dropbutton-action a:hover,
.dropbutton-single .dropbutton-action a:focus {
@@ -203,6 +203,9 @@
-webkit-transition: none;
transition: none;
}
.dropbutton-single .dropbutton-action a.use-ajax {
float: left;
}
/**
* The dropdown trigger.
@@ -17,6 +17,8 @@
padding: 1em 1.5em;
}
.entity-meta__title {
font-size: 1.231em;
font-weight: bold;
text-shadow: 0 1px 0 #fff;
margin: 0.25em 0;
}
@@ -55,5 +57,5 @@
text-shadow: 0 1px 0 white;
}
.entity-meta details .summary {
display: none; /* Hide JS summaries. @todo Rethink summaries. */
display: none; /* Hide JS summaries. @todo Rethink summaries. */
}
+3 -3
View File
@@ -127,7 +127,6 @@ label[for] {
padding: 0.25em 0.666em 0;
}
/* Filter */
ul.tips,
div.description,
@@ -254,8 +253,9 @@ select {
}
select:focus,
select:hover {
background-image: url(../../../../misc/icons/333333/caret-down.svg),
-webkit-linear-gradient(top, #fcfcfa, #e9e9dd);
background-image:
url(../../../../misc/icons/333333/caret-down.svg),
-webkit-linear-gradient(top, #fcfcfa, #e9e9dd);
color: #1a1a1a;
}
select:hover {
@@ -33,8 +33,6 @@
.ui-state-active,
.ui-widget-content .ui-state-active {
color: #840;
background: #fe6;
border: solid 1px #ed5;
}
.ui-state-error,
.ui-widget-content .ui-state-error {
@@ -0,0 +1,3 @@
.media-form .field--name-status {
margin-top: 1.5em;
}
+12 -6
View File
@@ -10,12 +10,18 @@
.messages pre {
margin: 0;
}
.messages h1, .messages .heading-a,
.messages h2, .messages .heading-b,
.messages h3, .messages .heading-c,
.messages h4, .messages .heading-d,
.messages h5, .messages .heading-e,
.messages h6, .messages .heading-f {
.messages h1,
.messages .heading-a,
.messages h2,
.messages .heading-b,
.messages h3,
.messages .heading-c,
.messages h4,
.messages .heading-d,
.messages h5,
.messages .heading-e,
.messages h6,
.messages .heading-f {
margin-top: 0;
}
@@ -71,7 +71,7 @@
@media screen and (min-width: 61em) {
.system-status-counter__status-icon,
.system-status-counter {
.system-status-counter {
height: 65px;
}
.system-status-counter__status-icon {
@@ -22,7 +22,7 @@
.system-status-report__entry--warning {
background-color: transparent;
}
/* Account for native and poly-filled details element */
/* Account for native and poly-filled details element */
.system-status-report__status-title {
position: relative;
padding: 1em 1em 1em 3em; /* LTR */
@@ -48,6 +48,10 @@ tbody tr.color-error:focus {
background: #fcf4f2;
}
table.no-highlight tr.selected td {
background: transparent;
}
td,
th {
vertical-align: middle;
+3 -3
View File
@@ -1,7 +1,7 @@
/**
* Tabs.
*/
.is-collapse-enabled .tabs,
.is-collapse-enabled .tabs,
.is-horizontal .tabs {
position: relative;
}
@@ -107,7 +107,7 @@ li.tabs__tab a {
}
/* Only add the arrow if there's space */
@media screen and (min-width:18.75em) { /* 300px */
@media screen and (min-width: 18.75em) { /* 300px */
.tabs.primary a {
background: url(../../../../misc/icons/0074bd/chevron-right.svg) 99% center no-repeat;
}
@@ -123,7 +123,7 @@ li.tabs__tab a {
}
/* JS dependent styling */
.is-collapse-enabled .tabs__trigger {
.is-collapse-enabled .tabs__trigger {
box-sizing: content-box;
display: block;
position: absolute;
@@ -74,7 +74,6 @@ details.fieldset-no-legend {
margin-right: 1.5em;
}
.views-admin-dependent .form-item .form-item,
.views-admin-dependent .form-type-checkboxes,
.views-admin-dependent .form-type-radios,
@@ -169,7 +168,7 @@ details.fieldset-no-legend {
*/
.views-displays .secondary {
text-align: left; /* LTR */
text-align: left; /* LTR */
}
[dir="rtl"] .views-displays .secondary {
text-align: right;
@@ -193,14 +192,14 @@ details.fieldset-no-legend {
color: #008BCB;
}
.views-displays .secondary .action-list li:first-child {
.views-displays .secondary .action-list li:first-child {
border-radius: 0 7px 0 0; /* LTR */
}
[dir="rtl"] .views-displays .secondary .action-list li:first-child {
[dir="rtl"] .views-displays .secondary .action-list li:first-child {
border-radius: 7px 0 0 0;
}
.views-displays .secondary .action-list li:last-child {
.views-displays .secondary .action-list li:last-child {
border-radius: 0 0 7px 7px;
}
@@ -1,3 +1,9 @@
.layout-region-node-footer__content {
border-top: 1px solid #bebfb9;
padding-top: 0.5em;
margin-top: 1.5em;
}
/**
* Widescreen
*
@@ -14,4 +20,7 @@
margin-top: 1em;
margin-bottom: 1em;
}
.layout-region-node-footer__content {
margin-top: 0.5em;
}
}
@@ -59,5 +59,4 @@
width: auto;
max-width: 100%;
}
}
@@ -135,7 +135,9 @@
padding: 1em 0;
vertical-align: middle;
}
html, .install-page, .maintenance-page {
html,
.install-page,
.maintenance-page {
margin: 0;
width: 100%;
height: 100%;
@@ -0,0 +1,29 @@
(function () {
function findActiveStep(steps) {
for (let i = 0; i < steps.length; i++) {
if (steps[i].className === 'is-active') {
return i + 1;
}
}
// The final "Finished" step is never "active".
if (steps[steps.length - 1].className === 'done') {
return steps.length;
}
return 0;
}
function installStepsSetup() {
const steps = document.querySelectorAll('.task-list li');
if (steps.length) {
const header = document.querySelector('header[role="banner"]');
const stepIndicator = document.createElement('div');
stepIndicator.className = 'step-indicator';
stepIndicator.innerHTML = `${findActiveStep(steps)}/${steps.length}`;
header.appendChild(stepIndicator);
}
}
if (document.addEventListener) {
document.addEventListener('DOMContentLoaded', installStepsSetup);
}
}());
+9 -6
View File
@@ -1,14 +1,18 @@
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function () {
'use strict';
function findActiveStep(steps) {
for (var i = 0; i < steps.length; i++) {
if (steps[i].className === 'is-active') {
return i + 1;
}
}
// The final "Finished" step is never "active".
if (steps[steps.length - 1].className === 'done') {
return steps.length;
}
@@ -29,5 +33,4 @@
if (document.addEventListener) {
document.addEventListener('DOMContentLoaded', installStepsSetup);
}
})();
})();
+51
View File
@@ -0,0 +1,51 @@
/**
* @file
* Responsive navigation tabs.
*
* 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 init(i, tab) {
const $tab = $(tab);
const $target = $tab.find('[data-drupal-nav-tabs-target]');
const isCollapsible = $tab.hasClass('is-collapsible');
function openMenu(e) {
$target.toggleClass('is-open');
}
function handleResize(e) {
$tab.addClass('is-horizontal');
const $tabs = $tab.find('.tabs');
const isHorizontal = $tabs.outerHeight() <= $tabs.find('.tabs__tab').outerHeight();
$tab.toggleClass('is-horizontal', isHorizontal);
if (isCollapsible) {
$tab.toggleClass('is-collapse-enabled', !isHorizontal);
}
if (isHorizontal) {
$target.removeClass('is-open');
}
}
$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');
}
/**
* Initialise the tabs JS.
*/
Drupal.behaviors.navTabs = {
attach(context, settings) {
const $tabs = $(context).find('[data-drupal-nav-tabs]');
if ($tabs.length) {
const notSmartPhone = window.matchMedia('(min-width: 300px)');
if (notSmartPhone.matches) {
$tabs.once('nav-tabs').each(init);
}
}
},
};
}(jQuery, Drupal));
+8 -15
View File
@@ -1,14 +1,11 @@
/**
* @file
* Responsive navigation tabs.
*
* This also supports collapsible navigable is the 'is-collapsible' class is
* added to the main element, and a target element is included.
*/
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function ($, Drupal) {
'use strict';
function init(i, tab) {
var $tab = $(tab);
var $target = $tab.find('[data-drupal-nav-tabs-target]');
@@ -37,11 +34,8 @@
$(window).on('resize.tabs', Drupal.debounce(handleResize, 150)).trigger('resize.tabs');
}
/**
* Initialise the tabs JS.
*/
Drupal.behaviors.navTabs = {
attach: function (context, settings) {
attach: function attach(context, settings) {
var $tabs = $(context).find('[data-drupal-nav-tabs]');
if ($tabs.length) {
var notSmartPhone = window.matchMedia('(min-width: 300px)');
@@ -51,5 +45,4 @@
}
}
};
})(jQuery, Drupal);
})(jQuery, Drupal);
@@ -0,0 +1,52 @@
/**
* @file
* Provides responsive behaviors to HTML details elements.
*/
(function ($, Drupal) {
/**
* Initializes the responsive behaviors for details elements.
*
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Attaches the responsive behavior to status report specific details elements.
*/
Drupal.behaviors.responsiveDetails = {
attach(context) {
const $details = $(context).find('details').once('responsive-details');
if (!$details.length) {
return;
}
function detailsToggle(matches) {
if (matches) {
$details.attr('open', true);
$summaries.attr('aria-expanded', true);
$summaries.on('click.details-open', false);
}
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);
// After resize, allow user to close previously opened details.
$summaries.off('.details-open');
}
}
function handleDetailsMQ(event) {
detailsToggle(event.matches);
}
var $summaries = $details.find('> summary');
const mql = window.matchMedia('(min-width:48em)');
mql.addListener(handleDetailsMQ);
detailsToggle(mql.matches);
},
};
}(jQuery, Drupal));
+11 -28
View File
@@ -1,22 +1,13 @@
/**
* @file
* Provides responsive behaviors to HTML details elements.
*/
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function ($, Drupal) {
'use strict';
/**
* Initializes the responsive behaviors for details elements.
*
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Attaches the responsive behavior to status report specific details elements.
*/
Drupal.behaviors.responsiveDetails = {
attach: function (context) {
attach: function attach(context) {
var $details = $(context).find('details').once('responsive-details');
if (!$details.length) {
@@ -28,16 +19,10 @@
$details.attr('open', true);
$summaries.attr('aria-expanded', true);
$summaries.on('click.details-open', false);
}
else {
// If user explicitly opened one, leave it alone.
var $notPressed = $details
.find('> summary[aria-pressed!=true]')
.attr('aria-expanded', false);
$notPressed
.parent('details')
.attr('open', false);
// After resize, allow user to close previously opened details.
} else {
var $notPressed = $details.find('> summary[aria-pressed!=true]').attr('aria-expanded', false);
$notPressed.parent('details').attr('open', false);
$summaries.off('.details-open');
}
}
@@ -52,6 +37,4 @@
detailsToggle(mql.matches);
}
};
})(jQuery, Drupal);
})(jQuery, Drupal);
+3 -3
View File
@@ -66,8 +66,8 @@ regions:
regions_hidden:
- sidebar_first
# Information added by Drupal.org packaging script on 2017-08-16
version: '8.3.7'
# Information added by Drupal.org packaging script on 2017-11-03
version: '8.4.2'
core: '8.x'
project: 'drupal'
datestamp: 1502903957
datestamp: 1509719929
+8
View File
@@ -119,3 +119,11 @@ tour-styling:
css:
theme:
css/components/tour.theme.css: {}
media-form:
version: VERSION
css:
layout:
css/components/media.css: {}
dependencies:
- media/form
+18 -31
View File
@@ -23,7 +23,7 @@ function seven_preprocess_html(&$variables) {
}
/**
* Implements hook_pre_render_HOOK() for menu-local-tasks templates.
* Implements hook_preprocess_HOOK() for menu-local-tasks templates.
*
* Use preprocess hook to set #attached to child elements
* because they will be processed by Twig and drupal_render will
@@ -147,42 +147,29 @@ function seven_preprocess_maintenance_page(&$variables) {
/**
* Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm.
*
* Changes vertical tabs to container and adds meta information.
* Changes vertical tabs to container.
*/
function seven_form_node_form_alter(&$form, FormStateInterface $form_state) {
/** @var \Drupal\node\NodeInterface $node */
$node = $form_state->getFormObject()->getEntity();
$form['#theme'] = ['node_edit_form'];
$form['#attached']['library'][] = 'seven/node-form';
$form['advanced']['#type'] = 'container';
$is_new = !$node->isNew() ? format_date($node->getChangedTime(), 'short') : t('Not saved yet');
$form['meta'] = [
'#attributes' => ['class' => ['entity-meta__header']],
'#type' => 'container',
'#group' => 'advanced',
'#weight' => -100,
'published' => [
'#type' => 'html_tag',
'#tag' => 'h3',
'#value' => $node->isPublished() ? t('Published') : t('Not published'),
'#access' => !$node->isNew(),
'#attributes' => [
'class' => ['entity-meta__title'],
],
],
'changed' => [
'#type' => 'item',
'#wrapper_attributes' => ['class' => ['entity-meta__last-saved', 'container-inline']],
'#markup' => '<h4 class="label inline">' . t('Last saved') . '</h4> ' . $is_new,
],
'author' => [
'#type' => 'item',
'#wrapper_attributes' => ['class' => ['author', 'container-inline']],
'#markup' => '<h4 class="label inline">' . t('Author') . '</h4> ' . $node->getOwner()->getUsername(),
],
];
$form['meta']['#type'] = 'container';
$form['meta']['#access'] = TRUE;
$form['meta']['changed']['#wrapper_attributes']['class'][] = 'container-inline';
$form['meta']['author']['#wrapper_attributes']['class'][] = 'container-inline';
$form['revision_information']['#type'] = 'container';
$form['revision_information']['#group'] = 'meta';
}
/**
* 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';
}
@@ -0,0 +1,31 @@
{#
/**
* @file
* Theme override for a node edit form.
*
* Two column template for the node add/edit form.
*
* This template will be used when a node edit form specifies 'node_edit_form'
* as its #theme callback. Otherwise, by default, node add/edit forms will be
* themed by form.html.twig.
*
* Available variables:
* - form: The node add/edit form.
*
* @see seven_form_node_form_alter()
*/
#}
<div class="layout-node-form clearfix">
<div class="layout-region layout-region-node-main">
{{ form|without('advanced', 'footer', 'actions') }}
</div>
<div class="layout-region layout-region-node-secondary">
{{ form.advanced }}
</div>
<div class="layout-region layout-region-node-footer">
<div class="layout-region-node-footer__content">
{{ form.footer }}
{{ form.actions }}
</div>
</div>
</div>