updated core to 8.6.1 via composer
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
ABOUT BARTIK
|
||||
------------
|
||||
|
||||
Bartik is the default theme for Drupal 8. It is a flexible, recolorable theme
|
||||
with a responsive and mobile-first layout, supporting 16 regions.
|
||||
|
||||
The Bartik theme is named after Jean Bartik, one of the original programmers
|
||||
for the ENIAC computer.
|
||||
|
||||
This theme is not intended to be used as a base theme.
|
||||
|
||||
To read more about the Bartik theme please see:
|
||||
https://www.drupal.org/docs/8/core/themes/bartik-theme
|
||||
|
||||
ABOUT DRUPAL THEMING
|
||||
--------------------
|
||||
|
||||
See https://www.drupal.org/docs/8/theming for more information on Drupal
|
||||
theming.
|
||||
@@ -2,13 +2,16 @@
|
||||
* @file
|
||||
* Preview for the Bartik theme.
|
||||
*/
|
||||
(function ($, Drupal, drupalSettings) {
|
||||
(function($, Drupal, drupalSettings) {
|
||||
Drupal.color = {
|
||||
logoChanged: false,
|
||||
callback(context, settings, $form) {
|
||||
// Change the logo to be the real one.
|
||||
if (!this.logoChanged) {
|
||||
$('.color-preview .color-preview-logo img').attr('src', drupalSettings.color.logo);
|
||||
$('.color-preview .color-preview-logo img').attr(
|
||||
'src',
|
||||
drupalSettings.color.logo,
|
||||
);
|
||||
this.logoChanged = true;
|
||||
}
|
||||
// Remove the logo if the setting is toggled off.
|
||||
@@ -20,27 +23,61 @@
|
||||
const $colorPalette = $form.find('.js-color-palette');
|
||||
|
||||
// Solid background.
|
||||
$colorPreview.css('backgroundColor', $colorPalette.find('input[name="palette[bg]"]').val());
|
||||
$colorPreview.css(
|
||||
'backgroundColor',
|
||||
$colorPalette.find('input[name="palette[bg]"]').val(),
|
||||
);
|
||||
|
||||
// Text preview.
|
||||
$colorPreview.find('.color-preview-main h2, .color-preview .preview-content').css('color', $colorPalette.find('input[name="palette[text]"]').val());
|
||||
$colorPreview.find('.color-preview-content a').css('color', $colorPalette.find('input[name="palette[link]"]').val());
|
||||
$colorPreview
|
||||
.find('.color-preview-main h2, .color-preview .preview-content')
|
||||
.css('color', $colorPalette.find('input[name="palette[text]"]').val());
|
||||
$colorPreview
|
||||
.find('.color-preview-content a')
|
||||
.css('color', $colorPalette.find('input[name="palette[link]"]').val());
|
||||
|
||||
// Sidebar block.
|
||||
const $colorPreviewBlock = $colorPreview.find('.color-preview-sidebar .color-preview-block');
|
||||
$colorPreviewBlock.css('background-color', $colorPalette.find('input[name="palette[sidebar]"]').val());
|
||||
$colorPreviewBlock.css('border-color', $colorPalette.find('input[name="palette[sidebarborders]"]').val());
|
||||
const $colorPreviewBlock = $colorPreview.find(
|
||||
'.color-preview-sidebar .color-preview-block',
|
||||
);
|
||||
$colorPreviewBlock.css(
|
||||
'background-color',
|
||||
$colorPalette.find('input[name="palette[sidebar]"]').val(),
|
||||
);
|
||||
$colorPreviewBlock.css(
|
||||
'border-color',
|
||||
$colorPalette.find('input[name="palette[sidebarborders]"]').val(),
|
||||
);
|
||||
|
||||
// Footer wrapper background.
|
||||
$colorPreview.find('.color-preview-footer-wrapper').css('background-color', $colorPalette.find('input[name="palette[footer]"]').val());
|
||||
$colorPreview
|
||||
.find('.color-preview-footer-wrapper')
|
||||
.css(
|
||||
'background-color',
|
||||
$colorPalette.find('input[name="palette[footer]"]').val(),
|
||||
);
|
||||
|
||||
// CSS3 Gradients.
|
||||
const gradientStart = $colorPalette.find('input[name="palette[top]"]').val();
|
||||
const gradientEnd = $colorPalette.find('input[name="palette[bottom]"]').val();
|
||||
const gradientStart = $colorPalette
|
||||
.find('input[name="palette[top]"]')
|
||||
.val();
|
||||
const gradientEnd = $colorPalette
|
||||
.find('input[name="palette[bottom]"]')
|
||||
.val();
|
||||
|
||||
$colorPreview.find('.color-preview-header').attr('style', `background-color: ${gradientStart}; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(${gradientStart}), to(${gradientEnd})); background-image: -moz-linear-gradient(-90deg, ${gradientStart}, ${gradientEnd});`);
|
||||
$colorPreview
|
||||
.find('.color-preview-header')
|
||||
.attr(
|
||||
'style',
|
||||
`background-color: ${gradientStart}; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(${gradientStart}), to(${gradientEnd})); background-image: -moz-linear-gradient(-90deg, ${gradientStart}, ${gradientEnd});`,
|
||||
);
|
||||
|
||||
$colorPreview.find('.color-preview-site-name').css('color', $colorPalette.find('input[name="palette[titleslogan]"]').val());
|
||||
$colorPreview
|
||||
.find('.color-preview-site-name')
|
||||
.css(
|
||||
'color',
|
||||
$colorPalette.find('input[name="palette[titleslogan]"]').val(),
|
||||
);
|
||||
},
|
||||
};
|
||||
}(jQuery, Drupal, drupalSettings));
|
||||
})(jQuery, Drupal, drupalSettings);
|
||||
|
||||
@@ -46,10 +46,10 @@ a:active,
|
||||
.region-header,
|
||||
.region-header a,
|
||||
.region-header li a.is-active,
|
||||
.site-branding__text,
|
||||
.site-branding,
|
||||
.site-branding__text a,
|
||||
.site-branding a,
|
||||
.region-header .site-branding__text,
|
||||
.region-header .site-branding,
|
||||
.region-header .site-branding__text a,
|
||||
.region-header .site-branding a,
|
||||
.region-secondary-menu .menu-item a,
|
||||
.region-secondary-menu .menu-item a.is-active {
|
||||
color: #fffeff;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
display: inline-block;
|
||||
margin-right: 1em; /* LTR */
|
||||
margin-bottom: 0.286em;
|
||||
border-bottom: 0;
|
||||
}
|
||||
[dir="rtl"] .site-branding__logo {
|
||||
margin-right: 0;
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
*
|
||||
* These variables are provided to give context about the parent comment (if
|
||||
* any):
|
||||
* - comment_parent: Full parent comment entity (if any).
|
||||
* - parent_comment: Full parent comment entity (if any).
|
||||
* - parent_author: Equivalent to author for the parent comment.
|
||||
* - parent_created: Equivalent to created for the parent comment.
|
||||
* - parent_changed: Equivalent to changed for the parent comment.
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
* Available variables:
|
||||
* - message_list: List of messages to be displayed, grouped by type.
|
||||
* - status_headings: List of all status types.
|
||||
* - display: (optional) May have a value of 'status' or 'error' when only
|
||||
* displaying messages of that specific type.
|
||||
*/
|
||||
#}
|
||||
{% block messages %}
|
||||
|
||||
Reference in New Issue
Block a user