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
.raised { | |
box-shadow: 0 3px 10px rgba(0,0,0,.23),0 3px 10px rgba(0,0,0,.16); | |
-webkit-transition: box-shadow .28s cubic-bezier(0.4,0,.2,1); | |
transition: box-shadow .28s cubic-bezier(0.4,0,.2,1); | |
} | |
.raised-low{ | |
box-shadow: 0 3px 10px rgba(0,0,0,.23),0 2px 10px rgba(0,0,0,.16); | |
-webkit-transition: box-shadow .28s cubic-bezier(0.4,0,.2,1); | |
transition: box-shadow .28s cubic-bezier(0.4,0,.2,1); |
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
{"Belarus": [ | |
{ | |
"id": "Europe/Minsk", | |
"diff": "GMT+03:00", | |
"rawDiff": 10800000, | |
"name": "Minsk" | |
} | |
], "Philippines": [ | |
{ | |
"id": "Asia/Manila", |
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
{ | |
"countries": { | |
"AD": { | |
"name": "Andorra", | |
"abbr": "AD", | |
"zones": [ | |
"Europe/Andorra" | |
] | |
}, | |
"AE": { |
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
/* MARS ROVERS | |
A squad of robotic rovers are to be landed by NASA on a plateau on Mars. This plateau, which | |
is curiously rectangular, must be navigated by the rovers so that their on-board cameras can | |
get a complete view of the surrounding terrain to send back to Earth. | |
A rover's position and location is represented by a combination of x and y co-ordinates and | |
a letter representing one of the four cardinal compass points. The plateau is divided up into | |
a grid to simplify navigation. An example position might be 0, 0, N, which means the rover is | |
in the bottom left corner and facing North. |
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 asyncLocalStorage = { | |
createCollection: (collectionName, data) => Promise.resolve().then(() => { | |
if (!(data instanceof Object)) { | |
throw Error('Local storage collection can be only valid JSON.'); | |
} | |
return localStorage.setItem(collectionName, JSON.stringify(data)); | |
}), | |
getCollection: collectionName => Promise.resolve().then(() => | |
localStorage.getItem(collectionName)), | |
setItem: (key, value, collectionName) => Promise.resolve() |
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
/** | |
* Fire an event handler to the specified node. Event handlers can detect that the event was fired programatically | |
* by testing for a 'synthetic=true' property on the event object | |
* @param {HTMLNode} node The node to fire the event handler on. | |
* @param {String} eventName The name of the event without the "on" (e.g., "focus") | |
*/ | |
function fireEvent(node, eventName) { | |
// Make sure we use the ownerDocument from the provided node to avoid cross-window problems | |
var doc; | |
if (node.ownerDocument) { |
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
{"lastUpload":"2019-11-12T12:41:08.201Z","extensionVersion":"v3.4.3"} |
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 styled from 'styled-components' | |
const Wrapper = styled.div` | |
// styles here that used to be for .test | |
` | |
const Label = styled.label` | |
// label styles here | |
` |
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
// File: .storybook/config.js | |
import { configure, addDecorator } from '@kadira/storybook'; | |
import Theme from './../src/ui/theme'; | |
import React from 'react'; | |
import { ThemeProvider } from 'styled-components' | |
function loadStories() { | |
require('../stories'); | |
} |
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
/** | |
* nearby.js | |
* http://www.codrops.com | |
* | |
* Licensed under the MIT license. | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
* Copyright 2018, Codrops | |
* http://www.codrops.com | |
*/ |
OlderNewer