This repository has been archived by the owner on Nov 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from pocka/fix/reset-all-style
Do not reset all styles with all: initial
- Loading branch information
Showing
9 changed files
with
62 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script> | ||
export default { | ||
mounted() { | ||
const style = document.createElement('style') | ||
style.textContent = ` | ||
body { | ||
color: tomato; | ||
} | ||
` | ||
style.dataset.savi = 'true' | ||
document.querySelector('head').appendChild(style) | ||
}, | ||
beforeDestroy() { | ||
document | ||
.querySelector('head') | ||
.removeChild(document.querySelector('style[data-savi]')) | ||
} | ||
} | ||
</script> | ||
|
||
<template> | ||
<span>BUTTON</span> | ||
</template> |
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,17 @@ | ||
import { storiesOf } from '@storybook/vue' | ||
|
||
import BulmaButton from './BulmaButton' | ||
|
||
storiesOf('Issues/#21', module).add( | ||
'Do not reset preview style', | ||
() => ({ | ||
components: { BulmaButton }, | ||
template: '<bulma-button/>' | ||
}), | ||
{ | ||
info: { | ||
docsInPanel: false, | ||
summary: '<https://github.com/pocka/storybook-addon-vue-info/issues/21>' | ||
} | ||
} | ||
) |
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 |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
left: 0; | ||
padding: 40px; | ||
|
||
font-family: Roboto, sans-serif; | ||
overflow: auto; | ||
} | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
.preview { | ||
all: initial; | ||
position: relative; | ||
display: block; | ||
} |
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,3 +1,7 @@ | ||
.container { | ||
font-family: Roboto, sans-serif; | ||
} | ||
|
||
.container h1 { | ||
font-size: 24px; | ||
} | ||
|