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
[ | |
{ | |
"name": "New York City", | |
"url": "https://www.lonelyplanet.com/usa/new-york-city" | |
}, | |
{ | |
"name": "San Francisco", | |
"url": "https://www.lonelyplanet.com/usa/san-francisco" | |
}, | |
{ |
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, { PropTypes } from "react"; | |
import radium, { Style } from "radium"; | |
import { color } from "../../../settings.json"; | |
import font from "../../utils/font"; | |
const styles = { | |
color: color.detailHeaderSmall, | |
fontFamily: font("benton"), | |
fontSize: "11px", | |
lineHeight: (17 / 11), |
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
// Takes a string and creates a hyphenated slug | |
const slug = string.toLowerCase() | |
.replace(/[\. ,:;&()-]+/g, "-") // replace spaces and some characters with "-" | |
.replace(/-\s*$/, ""); // if last character is a "-", remove it |
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
/// Clamps, aka truncates, multi-line text. Note that non-webkit browsers will | |
/// not see the ellipsis ¯\_(ツ)_/¯ | |
/// @param {Value} $font-size - Font size of the text | |
/// @param {Unitless Value} $line-height - Line height of the text; **must be a unitless value** | |
/// @param {Number} $lines-to-show - Number of lines to show | |
/// @example scss | |
/// p { | |
/// @include line-clamp($font-size: 16px, $line-height: 1.5, $lines-to-show: 3); | |
/// } | |
@mixin line-clamp( |
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
.pop-out-icon { | |
display: block; | |
position: relative; | |
&:after { | |
@include pop-out; | |
bottom: 1.5rem; | |
content: ""; | |
position: absolute; | |
right: 1.5rem; |
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
{% extends '_layouts/default' %} | |
{% set meta = { | |
title: entry.title, | |
url: entry.url, | |
description: entry.description|default(entry.body), | |
keywords: entry.keywords, | |
image: entry.image.first().url | |
} %} |
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-{{ phoneNumber|trim|replace({'(': '', ')': '', ' ': '-', '.': '-'}) }} |
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
$.validator.addMethod('notEqualTo', function(value, element, param) { | |
return this.optional(element) || value !== param; | |
}, 'Value cannot be equal to ' + param + '.'); |
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
<html> | |
<head> | |
<title>Sass Breakpoints</title> | |
</head> | |
<body> | |
<div></div> | |
</body> | |
</html> |
NewerOlder