Skip to content

Commit

Permalink
fix: make font-size in body element work in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsn committed Oct 28, 2018
1 parent adf90c4 commit 61f66b5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
16 changes: 0 additions & 16 deletions src/view/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,3 @@ export default Vue.extend({
}
})
</script>

<style>
body {
padding: 0;
margin: 0;
background-color: #ddd;
}
</style>

<style scoped>
#app {
font-family: sans-serif;
font-size: var(--vd-font-size);
color: var(--vd-text-color);
}
</style>
4 changes: 2 additions & 2 deletions src/view/components/PageMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/>
</div>

<div class="page-layout-toolbar">
<div class="vd-reset page-layout-toolbar">
<Toolbar
:width="width"
:height="height"
Expand All @@ -32,7 +32,7 @@
<div
v-if="document"
:class="{ open: openPane }"
class="information-pane"
class="vd-reset information-pane"
>
<p class="information-pane-title">
{{ documentName }}
Expand Down
12 changes: 12 additions & 0 deletions src/view/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,15 @@
--vd-font-size-small: 12px;
--vd-font-size-large: 20px;
}

body {
padding: 0;
margin: 0;
background-color: #ddd;
}

.vd-reset {
font-family: sans-serif;
font-size: var(--vd-font-size);
color: var(--vd-text-color);
}

0 comments on commit 61f66b5

Please sign in to comment.