In order to make the storybook visible to everyone. Some changes had to be made to make index.scss compiled with the rest of the codebase, it had to be imported from preview.js, not directly from preview.html.
18 lines
538 B
HTML
18 lines
538 B
HTML
<style>
|
|
code {
|
|
margin: 0 2px;
|
|
padding: 3px 5px;
|
|
white-space: nowrap;
|
|
border-radius: 3px;
|
|
border: 1px solid #EEEEEE;
|
|
color: rgba(51,51,51,0.9);
|
|
background-color: #F8F8F8;
|
|
}
|
|
/* Prevent the index.scss font-family to override code blocks's one. */
|
|
pre * {
|
|
font-family: ui-monospace,Menlo,Monaco,"Roboto Mono","Oxygen Mono","Ubuntu Monospace","Source Code Pro","Droid Sans Mono","Courier New",monospace;
|
|
}
|
|
</style>
|
|
<script>
|
|
window.global = window;
|
|
</script> |