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
.gist { | |
.gist-file { | |
border: none !important; | |
margin-bottom: 0 !important; | |
.gist-data { | |
border-bottom: 2px solid #7f8c8d !important; | |
.line-numbers { | |
border-right: 2px solid #7f8c8d !important; | |
padding: 1em !important; | |
} |
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
import React, { useState } from 'react'; | |
import CountryPicker from 'react-native-country-picker-modal'; | |
import PNF, { PhoneNumberUtil } from 'google-libphonenumber'; | |
const [countryCode, setCountryCode] = useState('AU'); | |
const [phoneNumber, setPhoneNumber] = useState(''); | |
const phoneUtil = PhoneNumberUtil.getInstance(); | |
function setCode ({ cca2 }) { | |
setCountryCode(cca2); |
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
.form { | |
grid-column: 6 / 11; | |
@media (--laptop) { | |
grid-column: 1; | |
} | |
} | |
.form.loading { | |
opacity: 0.4; |
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
figure, form, img, nav, div[aria-hidden], footer, aside:first-of-type, iframe { display: none !important; } | |
aside { top: 0 !important; } | |
aside:first-of-type + div { border-left: none; } | |
main > div { background: white !important; } | |
#main { padding-top: 0; } |
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
// Custom transform and opacity modifier for Stellar.js | |
$.stellar.positionProperty.transfade = { | |
setPosition: function(element, newLeft, originalLeft, newTop, originalTop) { | |
var distance = newTop - originalTop; | |
var rate = $(window).height() / 5; | |
element.css('transform', 'translate3d(0, ' + distance + 'px, 0').css('opacity', 1 - (distance / rate)); | |
} | |
}; |
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-app .l-app--content { | |
padding-bottom: 0; | |
} | |
main.au { | |
padding-top: 121px; | |
} | |
.l-app .l-app--container { | |
padding-top: 100px; |
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
<!-- HTML5 Doctype. Remember to delete these comments (Quirks Mode). --> | |
<!doctype html> | |
<!-- HTML tag --> | |
<html lang=""> | |
<!-- Let's get started --> | |
<head> | |
<!-- Document settings and metadata --> |
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
const gulp = require('gulp'), | |
sync = require('browser-sync').create(), | |
del = require('del'), | |
minimist = require('minimist')(process.argv.slice(2)), | |
$ = require('gulp-load-plugins')(), | |
info = require('./package.json'), | |
header = '/*! Built with Catalyst. */', | |
staticFiles = gulp.src([ | |
'test/source/**/*', | |
'!test/source/**/*.html', |
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
// Sanitize a filename. Try 'df.34.%)sdfE$t5.HF.mp4' | |
var extension = fileName.split('.').slice(0).pop(), | |
sanitized = filename.replace(extension, '').replace(/\W+/g, '') + "." + extension; |
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
var links = document.querySelectorAll('a'); | |
for (var i = 0; i < links.length; i++) { | |
links[i].click(); | |
} |
NewerOlder