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": { | |
"en-GB": "Single article" | |
}, | |
"description": { | |
"en-GB": "Single article output – header and body" | |
}, | |
"template": "containers/global/group/group.html.twig", | |
"template_config": { | |
"config": { |
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": { | |
"en-GB": "Hero" | |
}, | |
"description": { | |
"en-GB": "Hero with optional promotional slogan" | |
}, | |
"template": "containers/media/hero/hero-slogan.html.twig", | |
"template_config": { | |
"model": { |
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 em($target, $context: $base-font-size) { | |
@if $target == 0 { @return 0 } | |
@return $target / $context + 0em; | |
} | |
$base-font-size: 15px; | |
h1 { | |
font-size: em(21px, 15px); // Outputs 1.4em | |
} |
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
// ---- | |
// Sass (v3.3.8) | |
// Compass (v1.0.0.alpha.19) | |
// ---- | |
$red: #ff4242; | |
// Declare this variable early | |
$parent-classes: (); |
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
// This document is a compilated resource from various documents on good practices found elsewhere (see a list of resources at the end of this document). | |
// We hesitate to use the words 'good' or 'bad', since this is a contributor's guide for our code base and not a critique of techniques. We've replaced them with: | |
// No (as in, not our way) and Yes (this is what we expect from contributions) | |
// Elements can be referred to as Tags or Elements, or both | |
/* General principles */ | |
// All code in any code-base should look like a single person typed it, no matter how many people contributed. |
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
//----- Global variables------------- | |
$mr-grid-width: 1200px !default; // The wrapper/container size$mr-gutter-width: 20px !default; // The amount of margin between columns | |
$mr-em-base: 16px !default; | |
$mr-convert-to: "%" !default; | |
//---------------------------------- | |
@function -mr-grid-col-width($cols, $grid-width:$mr-grid-width, $grid-total-cols:$mr-grid-total-column, $gutter-width: $mr-gutter-width){ | |
//$cols The number of columns used to create the current elements width. | |
@return ($grid-width / $grid-total-cols) * $cols - $gutter-width; |
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
//----- Global variables------------- | |
$mr-grid-width: 1200px !default; // The wrapper/container size$mr-gutter-width: 20px !default; // The amount of margin between columns | |
$mr-em-base: 16px !default; | |
$mr-convert-to: "%" !default; | |
//---------------------------------- | |
@function -mr-grid-col-width($cols, $grid-width:$mr-grid-width, $grid-total-cols:$mr-grid-total-column, $gutter-width: $mr-gutter-width){ | |
//$cols The number of columns used to create the current elements width. | |
@return ($grid-width / $grid-total-cols) * $cols - $gutter-width; |
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 | |
/** | |
* @package Molajo | |
* @copyright 2012 Amy Stephen. All rights reserved. | |
* @license GNU GPL v 2, or later and MIT, see License folder | |
* | |
* Place in the root of your website - execute it - and copy the results into your .gitignore | |
*/ | |
$current_path = __DIR__; |