The Sass folder structure loosely follows the concepts discussed at https://medium.com/p/7fe19ab647fa.
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 | |
/** | |
* @file | |
* Default simple view template to display a rows in a grid. | |
* | |
* - $rows contains a nested array of rows. Each row contains an array of | |
* columns. | |
* | |
* @ingroup views_templates |
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 | |
/** | |
* Format start/end dates of a range for printing to the screen. | |
* ex: "April 11 - 18, 2011" or "December 29, 2011 - January 3, 2012" | |
* | |
* @param DateTime $start : start of the range | |
* @param DateTime $end : end of the range | |
* @return string : the formatted string | |
*/ | |
function mnnshow_format_date_range($start, $end){ |
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
body { | |
min-width: 550px; /* 2x LC width + RC width */ | |
} | |
#container { | |
padding-left: 200px; /* LC width */ | |
padding-right: 150px; /* RC width */ | |
} | |
#container .column { | |
position: relative; | |
float: left; |
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
#container { | |
overflow: hidden; | |
} | |
#container .column { | |
padding-bottom: 20010px; /* X + padding-bottom */ | |
margin-bottom: -20000px; /* X */ | |
} |
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 | |
// Theme serves either minified css/js or uncompressed css/js. | |
$conf['theme_minified_css'] = TRUE; | |
$conf['theme_minified_js'] = TRUE; | |
if (defined('PANTHEON_ENVIRONMENT')) { | |
switch (PANTHEON_ENVIRONMENT) { | |
case 'dev': |
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
/** | |
* Use local settings, if available. | |
*/ | |
$local_settings = dirname(__FILE__) . '/settings.local.php'; | |
if (file_exists($local_settings)) { | |
include $local_settings; | |
} |
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
// Custom Font Awesome :after | |
@mixin font-awesome-after($fa-icon, $margin: 5px) { | |
&:after { | |
font-family: FontAwesome; | |
font-weight: normal; | |
font-style: normal; | |
display: inline-block; | |
content: $fa-icon; | |
text-decoration: inherit; | |
position: relative; |
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
print theme('image_style', array( 'path' => $images[$i]['uri'], 'style_name' => 'photo-slideshow', 'attributes' => array('class' => 'img'.$i))); |