Skip to content

Commit

Permalink
add btn in title, need to update style in storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
wcastand committed Apr 25, 2017
1 parent 313b020 commit 4a7c2e3
Show file tree
Hide file tree
Showing 6 changed files with 222 additions and 173 deletions.
2 changes: 2 additions & 0 deletions example/.storybook/addons.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
import '@kadira/storybook/addons'
import '@kadira/storybook-addon-options/register'
import '../../register'
11 changes: 11 additions & 0 deletions example/.storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
import { configure } from '@kadira/storybook'
import { setOptions } from '@kadira/storybook-addon-options'

function loadStories() {
require('../stories')
}
setOptions({
name: 'CUSTOM-OPTIONS',
url: 'https://github.com/kadirahq/storybook-addon-options',
goFullScreen: false,
showLeftPanel: true,
showDownPanel: true,
showSearchBox: false,
downPanelInRight: true,
sortStoriesByKind: true,
})

configure(loadStories, module)
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"devDependencies": {
"@kadira/storybook": "^2.35.3",
"@kadira/storybook-addon-options": "^1.0.2",
"babel-cli": "^6.24.1",
"babel-jest": "^19.0.0",
"babel-preset-env": "^1.4.0",
Expand Down
133 changes: 133 additions & 0 deletions src/css.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
export default `
code[class*="language-"],
pre[class*="language-"] {
color: black;
background: none;
text-shadow: 0 1px white;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
text-shadow: none;
background: #b3d4fc;
}
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
code[class*="language-"]::selection, code[class*="language-"] ::selection {
text-shadow: none;
background: #b3d4fc;
}
@media print {
code[class*="language-"],
pre[class*="language-"] {
text-shadow: none;
}
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #f5f2f0;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: slategray;
}
.token.punctuation {
color: #999;
}
.namespace {
opacity: .7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: #905;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #690;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: #a67f59;
background: hsla(0, 0%, 100%, .5);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a;
}
.token.function {
color: #DD4A68;
}
.token.regex,
.token.important,
.token.variable {
color: #e90;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
`
Loading

0 comments on commit 4a7c2e3

Please sign in to comment.