This file contains 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
.animation-duration(@time) { | |
-webkit-animation-duration: @time; | |
-moz-animation-duration: @time; | |
-ms-animation-duration: @time; | |
-o-animation-duration: @time; | |
animation-duration: @time; | |
} | |
.animation-duration(@time) when (@time = fast) { | |
-webkit-animation-duration: 0.25s; |
This file contains 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
Handlebars.registerHelper('idsafe', function(str) { | |
str = str.replace(/ /g , "-"); | |
return str.toLowerCase(); | |
}); |
This file contains 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
/** | |
* Prepares variables for HTML document templates. | |
* | |
* Default template: html.html.twig. | |
* | |
* @param array $variables | |
* An associative array containing: | |
* - page: A render element representing the page. | |
* | |
* @see system_elements() |
This file contains 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
[15:23:30] Using gulpfile /Library/WebServer/Documents/drupalcore-frontend-toolkit/gulpfile.js | |
[15:23:30] Starting 'csslint'... | |
[15:23:30] Finished 'csslint' after 6.32 ms | |
[15:23:31] 4 errors found in /Library/WebServer/Documents/core/modules/block/css/block.admin.css | |
[15:23:31] [L46:C1] Don't use IDs in selectors. Selectors should not contain IDs. (ids) | |
[15:23:31] [L49:C1] Don't use IDs in selectors. Selectors should not contain IDs. (ids) | |
[15:23:31] [L52:C1] Don't use IDs in selectors. Selectors should not contain IDs. (ids) | |
[15:23:31] [L64:C5] Using width with padding-right can sometimes make elements larger than you expect. Don't use width or height when using padding or border. (box-model) | |
[15:23:31] 2 errors found in /Library/WebServer/Documents/core/modules/ckeditor/css/ckeditor-iframe.css | |
[15:23:31] [L21:C3] Property with star prefix found. Checks for the star property hack (targets IE6/7) (star-property-hack) |
This file contains 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
<div class="box {{class}}"> | |
<h2 class="box__title">{{title}}</h2> | |
<div class="box__content"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> | |
</div> | |
<div class="box__actions"> | |
{% include "atoms-button" with | |
{ | |
"element": "a", | |
"text": "Find out more", |
This file contains 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
{# Load a template from the current active theme registry #} | |
{% include "table.html.twig" %} | |
{# Load a template relative to a module or theme's template directory #} | |
{% include "@module_or_theme/table.html.twig" %} | |
{# Load from the full path #} | |
{% include "themes/mytheme/table.html.twig" %} |
This file contains 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 ($, Drupal) { | |
'use strict'; | |
/** | |
* Initialise the flexslider JS. | |
*/ | |
Drupal.behaviors.felxsliderInit = { | |
attach: function (context, settings) { | |
var slider = $(context).find('.js-slider'); |
This file contains 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
@-moz-document domain("secure.halifax-online.co.uk") { | |
.mvt_content, | |
.layout-default .layout-side, | |
.m-672-dm-sticker, | |
.sp-505-d-newly-upgraded-user-header, | |
.sp-pat-m-hf-01-bank-bar .m-01-menu-bar, | |
.productPromo { | |
display: none; | |
} | |
.secondary { |
This file contains 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
<!-- { Prevent widows without using a liquid filter } --> | |
{% assign split_title = page.title | split: ' ' %} | |
{% capture title %} | |
{% for word in split_title %}{% if forloop.last == true %} {{ word | strip }}{% else %} {{ word }}{% endif %}{% endfor %} | |
{% endcapture %} |
This file contains 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
{% for item in items %} | |
{{ item.content }} | |
{% endfor %} |
OlderNewer