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
// Creating a custom column set for the stats row in footer. | |
.col-md-15 { | |
position: relative; | |
min-height: 1px; | |
padding-right: $grid-gutter-width; | |
padding-left: $grid-gutter-width; | |
@media (min-width: $screen-md-min) { | |
width: 20%; | |
float: left; |
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
copy: { | |
dist: { | |
files: [{ | |
expand: true, | |
dot: true, | |
cwd: '<%= yeoman.app %>', | |
src: [ | |
// Jekyll processes and moves HTML and text files. | |
// Usemin moves CSS and javascript inside of Usemin blocks. | |
// Copy moves asset files and directories. |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
less: { | |
production: { | |
options: { | |
paths: ["bower_components/bootstrap/less"], | |
yuicompress: true | |
}, | |
files: { |
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
// Mixins | |
@mixin gradient($color) { | |
background: -webkit-linear-gradient(top, $color 0%,$color 100%); | |
background: -o-linear-gradient(top, $color 0%,$color 100%); | |
background: -ms-linear-gradient(top, $color 0%,$color 100%); | |
background: linear-gradient(top, $color 0%,$color 100%); | |
background: -moz-linear-gradient(top, $color 0%,$color 100%); | |
} |
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
If you are getting this error: | |
Uncaught Error: Popover requires tooltip.js | |
Just change the order of the JS files in your "bootstrap_subtheme.info" file. | |
"tooltip.js" should be above "popover.js" | |
scripts[] = '../../../libraries/bootstrap_sass/vendor/assets/javascripts/bootstrap/tooltip.js' | |
scripts[] = '../../../libraries/bootstrap_sass/vendor/assets/javascripts/bootstrap/popover.js' |
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
L_PREFER_CANVAS = true; | |
leafletData.getMap().then(function(map) { | |
leafletImage(map, function(err, canvas) { | |
var img = document.createElement('img'); | |
var dimensions = map.getSize(); | |
img.width = dimensions.x; | |
img.height = dimensions.y; | |
img.src = canvas.toDataURL(); |
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
// Comment this function call. | |
// Skipping drawing the markers because we don't need them (CORS error). | |
//map.eachLayer(drawMarkerLayer); | |
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
// Assuming you are inside an event (Mouseover, Click). | |
// Layer comes from the event. | |
// Get the bounds of the layer to display the popup on the north-east bounds. | |
var bounds = layer.getBounds(); | |
var latLng = bounds.getCenter(); |
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
1. Install phantomJs on local machine. | |
sudo apt-get update | |
sudo apt-get install build-essential chrpath git-core libssl-dev libfontconfig1-dev libxft-dev | |
sudo apt-get install phantomjs | |
2. Activate phantomJs from the terminal in a new tab (This should be kept running with the behat testing). | |
phantomjs --webdriver=8643 |
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
<?php | |
/** | |
* Initializes context. | |
* | |
* Every scenario gets its own context object. | |
* | |
* @param array $parameters. | |
* Context parameters (set them up through behat.yml or behat.local.yml). | |
*/ |
OlderNewer