Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663

This commit is contained in:
Greg Anderson 2015-10-08 11:40:12 -07:00
parent eb34d130a8
commit f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions

View file

@ -150,11 +150,6 @@ quote,
code {
margin: .5em 0;
}
code,
pre,
kbd {
font-size: 1.231em;
}
pre {
margin: 0.5em 0;
white-space: pre-wrap;

View file

@ -11,7 +11,8 @@
}
@media all and (max-width: 48em) { /* 768px */
.ui-dialog {
width: 92% !important;
min-width: 92%;
max-width: 92%;
}
}
.ui-dialog .ui-dialog-titlebar {

View file

@ -38,7 +38,3 @@ ul.inline li {
ul.inline li {
display: inline;
}
.item-list .item-list__comma-list,
[dir="rtl"] .item-list .item-list__comma-list {
margin: 0;
}

View file

@ -10,4 +10,12 @@
.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 {
margin-top: 0;
}

View file

@ -0,0 +1,26 @@
/**
* @file
* Tablesort indicator styles.
*/
.tablesort {
float: right; /* LTR */
margin-top: 5px;
width: 10px;
height: 10px;
}
[dir="rtl"] .tablesort {
float: left;
}
.tablesort--asc {
background-image: url(../../../../misc/icons/004875/twistie-down.svg);
}
a:hover .tablesort--asc {
background-image: url(../../../../misc/icons/008ee6/twistie-down.svg);
}
.tablesort--desc {
background-image: url(../../../../misc/icons/004875/twistie-up.svg);
}
a:hover .tablesort--desc {
background-image: url(../../../../misc/icons/008ee6/twistie-up.svg);
}

View file

@ -36,6 +36,12 @@
word-break: break-word;
}
.install-page .site-version {
vertical-align: super;
font-size: 0.5em;
color: #595959;
}
@media all and (max-width: 1010px) and (min-width: 48em) {
.install-page .password-strength,
.install-page .confirm-parent {

View file

@ -8,9 +8,26 @@ version: VERSION
core: 8.x
libraries:
- seven/global-styling
stylesheets-remove:
- core/assets/vendor/jquery.ui/themes/base/dialog.css
- '@classy/css/layout.css'
libraries-override:
core/drupal.vertical-tabs:
css:
component:
misc/vertical-tabs.css: false
core/jquery.ui:
css:
theme:
assets/vendor/jquery.ui/themes/base/theme.css: false
core/jquery.ui.dialog:
css:
component:
assets/vendor/jquery.ui/themes/base/dialog.css: false
classy/dialog:
seven/seven.drupal.dialog
libraries-extend:
core/drupal.vertical-tabs:
- seven/vertical-tabs
core/jquery.ui:
- seven/seven.jquery.ui
quickedit_stylesheets:
- css/components/quickedit.css
regions:

View file

@ -26,6 +26,7 @@ global-styling:
css/components/skip-link.css: {}
css/components/tables.css: {}
css/components/search-admin-settings.css: {}
css/components/tablesort-indicator.css: {}
css/components/system-status-report.css: {}
css/components/tabs.css: {}
css/components/tour.theme.css: {}
@ -91,4 +92,4 @@ seven.drupal.dialog:
version: VERSION
css:
theme:
css/components/dialog.theme.css: {}
css/components/dialog.css: {}

View file

@ -83,6 +83,20 @@ function seven_preprocess_block_content_add_list(&$variables) {
}
}
/**
* Implements hook_preprocess_block() for block content.
*
* Disables contextual links for all blocks.
*/
function seven_preprocess_block(&$variables) {
if (isset($variables['title_suffix']['contextual_links'])) {
unset($variables['title_suffix']['contextual_links']);
unset($variables['elements']['#contextual_links']);
$variables['attributes']['class'] = array_diff($variables['attributes']['class'], ['contextual-region']);
}
}
/**
* Implements hook_preprocess_HOOK() for block admin page templates.
*/
@ -94,18 +108,6 @@ function seven_preprocess_admin_block_content(&$variables) {
}
}
/**
* Implements hook_preprocess_HOOK() for tablesort indicator templates.
*
* Uses Seven's image versions, so the arrows show up as black and not gray on
* gray.
*/
function seven_preprocess_tablesort_indicator(&$variables) {
$theme_path = drupal_get_path('theme', 'seven');
$variables['arrow_asc'] = file_create_url($theme_path . '/images/arrow-asc.png');
$variables['arrow_desc'] = file_create_url($theme_path . '/images/arrow-desc.png');
}
/**
* Implements hook_preprocess_HOOK() for menu-local-action templates.
*/
@ -185,21 +187,3 @@ function seven_form_node_form_alter(&$form, FormStateInterface $form_state) {
$form['revision_information']['#type'] = 'container';
$form['revision_information']['#group'] = 'meta';
}
/**
* Implements hook_library_info_alter().
*/
function seven_library_info_alter(&$libraries, $extension) {
if ($extension == 'core' && isset($libraries['drupal.vertical-tabs'])) {
unset($libraries['drupal.vertical-tabs']['css']['component']['misc/vertical-tabs.css']);
$libraries['drupal.vertical-tabs']['dependencies'][] = 'seven/vertical-tabs';
}
if ($extension == 'core' && isset($libraries['jquery.ui'])) {
unset($libraries['jquery.ui']['css']['theme']['assets/vendor/jquery.ui/themes/base/theme.css']);
$libraries['jquery.ui']['dependencies'][] = 'seven/seven.jquery.ui';
}
if ($extension == 'core' && isset($libraries['drupal.dialog'])) {
unset($libraries['drupal.dialog']['css']['theme']['misc/dialog.theme.css']);
$libraries['drupal.dialog']['dependencies'][] = 'seven/seven.drupal.dialog';
}
}

View file

@ -13,7 +13,12 @@
<header role="banner">
{% if site_name %}
<h1 class="page-title">{{ site_name }}</h1>
<h1 class="page-title">
{{ site_name }}
{% if site_version %}
<span class="site-version">{{ site_version }}</span>
{% endif %}
</h1>
{% endif %}
</header>

View file

@ -27,11 +27,6 @@
* slogan has been disabled in theme settings.
*
* Page content (in order of occurrence in the default page.html.twig):
* - title_prefix: Additional output populated by modules, intended to be
* displayed in front of the main title tag that appears in the template.
* - title: The page title, for use in the actual content.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
* - node: Fully loaded node, if there is an automatically-loaded node
* associated with the page and the node ID is the second argument in the
* page's path (e.g. node/12345 and node/12345/revisions, but not
@ -52,11 +47,6 @@
#}
<header class="content-header clearfix">
<div class="layout-container">
{{ title_prefix }}
{% if title %}
<h1 class="page-title">{{ title }}</h1>
{% endif %}
{{ title_suffix }}
{{ page.header }}
</div>
</header>

View file

@ -1,16 +0,0 @@
{#
/**
* @file
* Seven's theme implementation for displaying a tablesort indicator.
*
* Available variables:
* - style: Either 'asc' or 'desc', indicating the sorting direction.
* - arrow_asc: URL to the image for an ascending arrow.
* - arrow_desc: URL to the image for a descending arrow.
*/
#}
{% if style == 'asc' -%}
<img src="{{ arrow_asc }}" width="9" height="5" alt="{{ 'Sort ascending'|t }}" title="{{ 'Sort ascending'|t }}" />
{% else -%}
<img src="{{ arrow_desc }}" width="9" height="5" alt="{{ 'Sort descending'|t }}" title="{{ 'Sort descending'|t }}" />
{% endif %}