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
$supportsGrid: TRUE; | |
@mixin supportsGrid() { | |
@if $supportsGrid == TRUE { | |
@supports (display: grid) { | |
@content; | |
} | |
} | |
} |
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
@mixin pe-calc($property, $formula, $fallback) { | |
#{$property}: $fallback; | |
#{$property}: calc(#{$formula}); | |
} | |
// usage | |
@include pe-calc(width, '100% - 100px - 18px', 70%); |
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
Error: {"columnNumber":-1,"lineNumber":-1,"message":"ServiceWorker failed to install: ServiceWorker failed to handle event (event.waitUntil Promise rejected)","sourceURL":""} | |
Console: {"lineNumber":0,"message":"Uncaught (in promise) TypeError: Request failed","message_level":3,"sourceIdentifier":1,"sourceURL":""} |
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
# run scss-lint | |
scssLintResult=$(scss-lint -c scss-config.yml) | |
if [[ $scssLintResult == "" ]]; then | |
echo "$(tput setaf 2)scss lint Passed$(tput sgr0)" | |
else | |
echo "$(tput setaf 1)scss lint: $result error(s), aborting commit$(tput sgr0)" | |
scss-lint -c scss-config.yml | |
exit 1 | |
fi |
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
#!/bin/bash | |
# Locate our phpunit. | |
phpunit=`which phpunit` | |
# Define a location to save the output. | |
outputlog="/tmp/phpunit_output_`date +%s`.log" | |
# Get name of the project (probably topmost directory name). | |
projectname=${PWD##*/} |
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
=input-placeholder | |
&.placeholder | |
@content | |
&:-moz-placeholder | |
@content | |
&::-moz-placeholder | |
@content | |
&:-ms-input-placeholder | |
@content | |
&::-webkit-input-placeholder |
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
@mixin px-n-rem($selector,$size) | |
#{$selector}: #{$size}px | |
#{$selector}: +rem-calc($size) | |
## Usage example | |
.something | |
+px-n-rem('padding', 16) | |
## Gives you |