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 from "react" | |
const NewlineToBreak = props => { | |
const { text } = props | |
return ( | |
<span> | |
{text.split("\n").map((item, key) => <span key={key}>{item}<br /></span>)} | |
</span> | |
) |
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
window.matchMedia = window.matchMedia || (() => { | |
return { | |
matches : true, | |
addListener : () => {}, | |
removeListener: () => {}, | |
}; | |
}); |
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 "../../../../scripts/test-setup.js" | |
import React from "react"; | |
import renderer from "react-test-renderer"; | |
import sinon from "sinon"; | |
import {shallow} from "enzyme"; | |
import { BrowserRouter as Router } from "react-router-dom"; | |
import Header from "../"; |
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
"use strict"; | |
/* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this | |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
/*global WindowHelpers:true*/ | |
const intern = require("intern").default; | |
const { assert } = intern.getPlugin("chai"); | |
const { registerSuite } = intern.getInterface("object"); | |
const FunctionalHelpers = require("./lib/helpers.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
{ | |
"name": "cssrecipes-grid", | |
"version": "1.0.0", | |
"description": "BEMish grid component", | |
"keywords": [ | |
"browser", | |
"style", | |
"css", | |
"css-components", | |
"css-recipes", |
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
/** @define Masonry */ | |
.sf-Masonry { | |
column-count: 4; | |
column-gap: 1em; | |
} | |
.sf-Masonry-item { | |
width: 100%; | |
display: inline-block; | |
} |
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
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; |
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
// webpack.config.js | |
var webpack = require("webpack") | |
var ExtractTextPlugin = require("extract-text-webpack-plugin") | |
var path = require("path") | |
var options = require("minimist")(process.argv.slice(2)) | |
var pathDest = (options.docs) ? "./docs" : "./build" | |
var cssnext = require("cssnext-loader") | |
var configSuitcss = require("stylelint-config-suitcss") | |
var ext = function ext() { |
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
// webpack.config.js | |
var webpack = require("webpack"); | |
var ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
var path = require("path"); | |
module.exports = { | |
// The standard entry point and output config | |
entry: { | |
app: "./app" | |
}, |
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
// ---- | |
// Sass (v3.4.13) | |
// Compass (v1.0.3) | |
// ---- | |
$color : #D22C88; | |
.foo { | |
/* | |
border-top: solid 1px #22bfcc; |
NewerOlder