This file contains hidden or 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
#content { | |
margin-left: 16em; | |
} | |
#sidebarContainer { | |
position: fixed; | |
top: 50px; | |
height: 100%; | |
width: 16em; | |
z-index: 1; |
This file contains hidden or 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
<!doctype html> | |
<meta charset=utf-8> | |
<title>Carousel</title> | |
<style> | |
body { | |
font: 200 12pt 'Helvetica Neue'; | |
} | |
/* Fallback indifferent styles */ | |
.carousel .menu li { | |
display: inline; |
This file contains hidden or 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
x=$('#inputfield'),y=setInterval(function(){(z=$('span.highlight')).length?x.val(z.text()).trigger({type:'keyup',which:32}):clearInterval(y)},10) |
This file contains hidden or 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 gulp from 'gulp'; | |
import sass from 'gulp-sass'; | |
gulp.task('compile-bootstrap', () => ( | |
gulp.src('scss/bootstrap.scss') | |
.pipe(sass()) | |
.pipe(gulp.dest('styles')) | |
)); |
This file contains hidden or 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 { camelCase } from 'lodash'; | |
import gulp from 'gulp'; | |
import sass from 'gulp-sass'; | |
import postcss from 'gulp-postcss'; | |
import transformClasses from 'postcss-transform-classes'; | |
import autoprefixer from 'autoprefixer'; | |
const keywordsThatAppearInBootstrap = { | |
in: '$in', | |
}; |
This file contains hidden or 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 esCssModules from 'es-css-modules'; | |
gulp.task('compile-css', ['compile-bootstrap'], () => { | |
return gulp.src('styles/**/*.css') | |
.pipe(postcss([ | |
esCssModules({ | |
jsFiles: 'src/index.js', | |
}), | |
])) | |
.pipe(gulp.dest('dist')); |
This file contains hidden or 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'; | |
import classnames from 'classnames'; | |
import { | |
container, navbar, navbarLight, bgFaded, navbarToggler, hiddenSmUp, collapse, navbarToggleableXs, | |
navbarBrand, nav, navbarNav, navItem, active, navLink, srOnly, formInline, pullXsRight, btn, | |
btnSuccessOutline, formControl, jumbotron, btnLg, btnPrimary, | |
} from '../../styles/bootstrap.m.css'; | |
export default () => ( | |
<div className={container}> |
This file contains hidden or 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 webpack from 'webpack'; | |
gulp.task('compile-js', ['compile-css'], (cb) => ( | |
webpack({ | |
entry: './src/index', | |
output: { | |
path: './dist', | |
filename: 'index.js', | |
}, | |
module: { |
This file contains hidden or 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 cssnano from 'gulp-cssnano'; | |
import esCssModules from 'es-css-modules'; | |
gulp.task('compile-css', ['compile-bootstrap'], () => { | |
const cssClass = cssClassGenerator(); | |
return gulp.src('styles/**/*.css') | |
.pipe(postcss([ | |
esCssModules({ | |
jsFiles: 'src/index.js', |
This file contains hidden or 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 AddCat = ({ handleCatAddition }) => ( | |
<div> | |
<form method="POST" onSubmit={handleCatAddition}> | |
<input type="hidden" name="action-creator" value="add-cat" /> | |
<input name="name" /> | |
<input type="number" name="age" /> | |
<select name="gender"> | |
<option value="male">Male</option> | |
<option value="female">Female</option> | |
</select> |
OlderNewer