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 { Dashboard, DashboardPanel } from './dashboard'; | |
import { getStore } from './store'; | |
import { ErrorBoundaryAppContainer } from './errorBoundary'; | |
class App extends React.Component { | |
state = { | |
currentStore: getStore(), | |
numPanels: 7 | |
}; |
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 c3 from 'c3'; | |
export function charts() { | |
const errorChart = c3.generate({ | |
bindto: '.js-chart', | |
data: { | |
x: 'date', | |
y: 'errors', | |
url: './data/dummydata.json', |
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
// STRIP UNIT | |
// It strips the unit of measure and returns it | |
@function strip-unit($num) { | |
@return $num / ($num * 0 + 1); | |
} | |
// Media queries mixin | |
// Default widths | |
$default-medium: 768px !default; |
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
// ================================= | |
// Color palette generator | |
// ================================= | |
// Muck around with colors here: | |
$primary-color: salmon; | |
// A global to store the palette(s) | |
$global-color-palettes: () !global; |
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
$legacy-support: ie8 ie9 !default; | |
// This is the default html and body font-size for the base rem value. | |
$rem-base: 16px !default; | |
$line-height-base: 1.8 !default; | |
// REM calculation courtesy of Zurb Foundation :) | |
// CONVERT TO REM | |
@function convert-to-rem($value, $base-value: $rem-base) { |
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
// Set defaults in parameters... | |
@mixin generate-font-face($font-name, $sizes:false, $font-folder-name:false, $font-file-prefix: false, $font-file-suffix: "webfont", $font-name-separator:"-", $dir-separator:"/", $formats:(woff2, ttf, svg, eot)) { | |
$web-font-folder-name: $font-name; | |
@if $font-folder-name != false { | |
$web-font-folder-name: $font-folder-name; | |
} | |
// default font-file prefix |