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
/* Boundless Plus v2 layout - Hodgie */ | |
html { | |
height: 100%; | |
max-height: 100%; | |
} | |
body { | |
margin: 0; | |
background-color: #333; | |
height: 100%; | |
max-height: 100%; |
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
/* Boundless Plus v2 layout - Hodgie */ | |
html { | |
height: 100%; | |
max-height: 100%; | |
} | |
body { | |
margin: 0; | |
background-color: #333; | |
height: 100%; | |
max-height: 100%; |
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
/** | |
* ribbon banner | |
*/ | |
body{ | |
background: #333; | |
padding: 35px 0 0; | |
position: relative; | |
} | |
.ribbon { |
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
/** | |
* Toggle switch | |
*/ | |
*{ | |
box-sizing: border-box; | |
} | |
input, textarea{ | |
box-sizing: content-box; | |
} | |
body{ |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
*{ | |
+box-sizing(border-box) | |
} | |
input, textarea | |
+box-sizing(content-box) | |
.menu{x-sizing(border-box) |
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
/** | |
* Scroll bug | |
*/ | |
*{ | |
box-sizing: border-box; | |
} | |
input, textarea{ | |
box-sizing: content-box; | |
} | |
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, { Component, PropTypes } from 'react' | |
import Toolbar from 'containers/Toolbar' | |
import InlineMath, { forceUpdateEquation } from 'containers/InlineMath' | |
import EquationEditor from 'components/EquationEditor' | |
import { Editor, EditorState, ContentState, SelectionState, Entity, CompositeDecorator, Modifier, convertToRaw, RichUtils } from 'draft-js' | |
const SUPPORTED_COMMANDS = [ 'italic' ] | |
function findTex(contentBlock, callback) { | |
contentBlock.findEntityRanges( |
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
<!-- | |
Copyright (c) 2013-present, Facebook, Inc. All rights reserved. | |
This file provided by Facebook is for non-commercial testing and evaluation | |
purposes only. Facebook reserves all rights not expressly granted. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
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, useEffect, useRef } from 'react' | |
import cx from 'classnames' | |
import css from './FileDropzone.sass' | |
export function FileDropzone ({ onDrop, children }) { | |
const [dragging, setDragging] = useState(0) | |
const dropRef = useRef() | |
const handleDrag = evt => { |