forked from bokuweb/re-bulma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/bokuweb/react-bulma
- Loading branch information
Showing
31 changed files
with
238 additions
and
136 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,33 @@ This repository is heavily under development and unstable. | |
npm i -S re-bulma | ||
``` | ||
|
||
In your javascript pick up the css using | ||
``` sh | ||
import insertCss from 'insert-css'; | ||
import css from '<path to yours or rebulmas>/build/css'; | ||
try { | ||
if (typeof document !== 'undefined' || document !== null) insertCss(css, { prepend: true }); | ||
} catch (e) {} | ||
``` | ||
If you want to change the styles then do the following as well. | ||
``` sh | ||
npm install [email protected] --save-dev | ||
npm install https://github.com/bokuweb/csjs.git --save-dev | ||
npm install lodash.camelcase --save-dev | ||
|
||
add the following to your Gruntfile.js or do similar for your build process | ||
shell: { | ||
buildReBulma: { | ||
command: 'node node_modules/re-bulma/scripts/transform.js | ||
./re-bulma-variables.properties node_modules/re-bulma/src/styles/ build/ no' | ||
} | ||
and include shell:buildReBulma in the grunt.registerTask('default'...) line | ||
|
||
in the re-bulma-variables.properties specify the settings you require (see the | ||
re-bulma/default/re-bulma-variables.properties for reference) | ||
``` | ||
## Development | ||
``` sh | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
primary_color = #1fc8db | ||
primary_hover_color = #199fae | ||
primary_active_color = #199fae | ||
disabled_background_color = #f5f7fa | ||
disabled_border_color = #d3d6db | ||
disabled_opacity = 0.5 | ||
font_size_base = 1rem | ||
|
||
breakpoint_mobile_max = 768px | ||
breakpoint_tablet_min = 769px | ||
breakpoint_tablet_max = 979px | ||
breakpoint_desktop_min = 980px | ||
breakpoint_desktop_max = 1180px | ||
breakpoint_widescreen_min = 1181px | ||
|
||
container_breakpoint_wide_min = 1180px | ||
container_breakpoint_narrow_min = 980px | ||
container_wide_max_width = 1200px | ||
container_narrow_max_width = 960px |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
import Example from './example'; | ||
import insertCss from 'insert-css'; | ||
import css from '../../build/css'; | ||
|
||
try { | ||
if (typeof document !== 'undefined' || document !== null) insertCss(css, { prepend: true }); | ||
} catch (e) {} | ||
|
||
render(<Example />, document.querySelector('#root')); | ||
|
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
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
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
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
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
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
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
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
Oops, something went wrong.