This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "", | |
"description": "Constructing Drupal 8 docroot with upstream drops-8 updates", | |
"type": "project", | |
"license": "GPL-2.0+", | |
"authors": [ | |
{ | |
"name": "", | |
"email": "" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -a | grep -v '8.0.x\|8.1.x\|8.2.x\| 2061377-151-reroll-wysiwyg-image-styles\|remotes' | xargs git branch -D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if node.field_hero_image.entity %} | |
<img src="{{ file_url(node.field_hero_image.entity.uri.value) }}" | |
alt="{{ node.field_hero_image.alt }}" | |
{% if node.field_hero_image.title %} | |
title="{{ node.field_hero_image.title }}" | |
{% endif %} | |
/> | |
{% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_preprocess_HOOK() for HTML document templates. | |
*/ | |
function THEMENAME_preprocess_html(&$variables) { | |
foreach ($variables['page']['#attached']['html_head'] as $key => $value) { | |
if ($value[1] === 'viewport') { | |
$value[0]['#attributes']['content'] = 'width=device-width,minimum-scale=1,initial-scale=1'; | |
$variables['page']['#attached']['html_head'][$key] = $value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RTBC | |
Needs Review | |
- Rename menu regions (https://www.drupal.org/node/2513526) | |
- Remove classes from C templates (https://www.drupal.org/node/2407723) | |
Needs Work | |
- Dream markup for tabs (https://www.drupal.org/node/1999182) | |
- Remove classes from F templates (https://www.drupal.org/node/2407727) | |
- Remove classes from P templates: very old patch (https://www.drupal.org/node/2407737) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@function em2px($target, $context: $base-font-size-em) { | |
@if $target == 0 { @return 0 } | |
@return ($target / 1em) * ($context / 1em) * 16 + 0px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!Modernizr.svg) { | |
var svgs = document.querySelectorAll('img[src$=".svg"]'); | |
for (var i = 0, j = svgs.length; i < j; i++) { | |
var src = svgs[i].src.replace('.svg', '.png'); | |
} | |
for (var k = 0, l = svgs.length; k < l; k++) { | |
svgs[k].setAttribute('src', src); | |
} | |
} |